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

# Get Document

> Returns details of a single document in a project

```
GET /openapi/memorylake/api/v1/projects/{id}/documents/{documentId}
```

Returns the details of a single document, including file name and processing status.

<Note>
  **Permission required:** [`project:doc_read`](/features/team-collaboration/permission-reference#read-a-single-document) · `instance`
</Note>

### Path Parameters

<ParamField path="id" type="string" required>
  Project ID
</ParamField>

<ParamField path="documentId" type="string" required>
  Project document ID
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET 'https://app.memorylake.ai/openapi/memorylake/api/v1/projects/proj-a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6/documents/doc-1234567890abcdef' \
    -H 'Authorization: Bearer sk_xxxxxx'
  ```
</RequestExample>

### Response

<ResponseField name="data" type="object">
  <Expandable title="Document object">
    <ResponseField name="id" type="string">Document ID</ResponseField>
    <ResponseField name="name" type="string">File name</ResponseField>
    <ResponseField name="status" type="string">Processing status: `pending`, `running`, `okay`, or `error`</ResponseField>
    <ResponseField name="drive_item_id" type="string">Drive item identifier</ResponseField>
    <ResponseField name="created_at" type="string">Creation timestamp</ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json Success (200) theme={null}
  {
    "success": true,
    "data": {
      "id": "doc-1234567890abcdef",
      "name": "report.pdf",
      "status": "okay",
      "drive_item_id": "sc-4d2beb72e9af4b01:inode-926ead7cac284666",
      "created_at": "2024-01-15T10:30:00Z"
    }
  }
  ```
</ResponseExample>
