# Get Document By Id GET https://fai.buildwithfern.com/document/{domain}/{document_id} Reference: https://buildwithfern.com/learn/docs/ai-features/ask-fern/api-reference/document/get-document-by-id ## OpenAPI Specification ```yaml openapi: 3.1.1 info: title: Get Document By Id version: endpoint_document.get_document_by_id paths: /document/{domain}/{document_id}: get: operationId: get-document-by-id summary: Get Document By Id tags: - - subpackage_document parameters: - name: domain in: path required: true schema: type: string - name: document_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/GetDocumentResponse' '422': description: Validation Error content: {} components: schemas: Document: type: object properties: document_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: - document_id - domain - chunk - document - created_at - updated_at GetDocumentResponse: type: object properties: document: $ref: '#/components/schemas/Document' description: The requested document required: - document ```