> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lacy.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get documents

> Get all documents in a knowledgebase

This endpoint returns a list of all documents in a specific knowledgebase.

### Path Parameters

**knowledgebaseId** `integer` *required*

The unique identifier of the knowledgebase

### Response

**data** `array`

Array of document objects

**document properties**

**id** `integer`

The unique identifier of the document

**name** `string`

The name of the document

**description** `string`

Optional description of the document

**type** `string`

Document type: `website`, `pdf`, `txt`, or `docx`

**type\_label** `string`

Human-readable type label

**status** `string`

Processing status: `processing`, `active`, or `failed`

**status\_label** `string`

Human-readable status label

**created\_at** `string`

ISO 8601 timestamp of creation

**updated\_at** `string`

ISO 8601 timestamp of last update

```json 200 Response theme={null}
{
  "data": [
    {
      "id": 1,
      "name": "Product Manual",
      "description": "Complete product user manual",
      "type": "pdf",
      "type_label": "PDF",
      "status": "active",
      "status_label": "Active",
      "created_at": "2025-01-05T10:30:00.000000Z",
      "updated_at": "2025-01-05T10:35:00.000000Z"
    },
    {
      "id": 2,
      "name": "Company Website",
      "description": "Main website content",
      "type": "website",
      "type_label": "Website",
      "status": "processing",
      "status_label": "Processing",
      "created_at": "2025-01-08T09:00:00.000000Z",
      "updated_at": "2025-01-08T09:00:00.000000Z"
    }
  ]
}
```

```json 404 Knowledgebase Not Found theme={null}
{
  "error": "Knowledgebase not found."
}
```

### Document Statuses

| Status | Description |
| - | - |
| `processing` | Document is being parsed and embedded into the vector database |
| `active` | Document has been processed and is ready for use |
| `failed` | Document processing failed |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.