# Get Code Records GET https://fai.buildwithfern.com/code/{domain} Reference: https://buildwithfern.com/learn/docs/ai-features/ask-fern/api-reference/code/get-code-records ## OpenAPI Specification ```yaml openapi: 3.1.1 info: title: Get Code Records version: endpoint_code.get_code_records paths: /code/{domain}: get: operationId: get-code-records summary: Get Code Records tags: - - subpackage_code parameters: - name: domain in: path required: true schema: type: string - name: page in: query description: The page number for pagination required: false schema: type: - integer - 'null' - name: limit in: query description: The number of code entries per page required: false schema: type: - integer - 'null' - name: Authorization in: header description: >- Bearer authentication of the form `Bearer `, where token is your auth token. required: true schema: type: string responses: '200': description: Successful Response content: application/json: schema: $ref: '#/components/schemas/GetCodeRecordsResponse' '422': description: Validation Error content: {} components: schemas: Code: type: object properties: code_id: type: string domain: type: string chunk: type: string document: type: string title: type: - string - 'null' url: type: - string - 'null' version: type: - string - 'null' product: type: - string - 'null' keywords: type: - array - 'null' items: type: string authed: type: - boolean - 'null' created_at: type: string format: date-time updated_at: type: string format: date-time required: - code_id - domain - chunk - document - created_at - updated_at PaginationResponse: type: object properties: total: type: integer page: type: integer limit: type: integer required: - total - page - limit GetCodeRecordsResponse: type: object properties: documents: type: array items: $ref: '#/components/schemas/Code' description: List of code entries for the domain pagination: $ref: '#/components/schemas/PaginationResponse' description: Pagination information for the code list required: - documents - pagination ```