# Get Code Record By Id GET https://fai.buildwithfern.com/code/{domain}/{code_id} Reference: https://buildwithfern.com/learn/docs/ai-features/ask-fern/api-reference/code/get-code-record-by-id ## OpenAPI Specification ```yaml openapi: 3.1.1 info: title: Get Code Record By Id version: endpoint_code.get_code_record_by_id paths: /code/{domain}/{code_id}: get: operationId: get-code-record-by-id summary: Get Code Record By Id tags: - - subpackage_code parameters: - name: domain in: path required: true schema: type: string - name: code_id in: path required: true schema: type: string - 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/GetCodeRecordResponse' '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 GetCodeRecordResponse: type: object properties: document: $ref: '#/components/schemas/Code' description: The requested code required: - document ```