# Get Documents GET https://fai.buildwithfern.com/document/{domain} Reference: https://buildwithfern.com/learn/docs/ai-features/ask-fern/api-reference/document/get-documents ## OpenAPI Specification ```yaml openapi: 3.1.1 info: title: Get Documents version: endpoint_document.get_documents paths: /document/{domain}: get: operationId: get-documents summary: Get Documents tags: - - subpackage_document 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 documents 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/GetDocumentsResponse' '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 PaginationResponse: type: object properties: total: type: integer page: type: integer limit: type: integer required: - total - page - limit GetDocumentsResponse: type: object properties: documents: type: array items: $ref: '#/components/schemas/Document' description: List of documents for the domain pagination: $ref: '#/components/schemas/PaginationResponse' description: Pagination information for the document list required: - documents - pagination ```