> For the complete documentation index, see [llms.txt](https://docs.tnid.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tnid.com/api-reference/001_user/012_documents/005__get_user_document.md).

# Get User Document

GraphQL endpoint: `/user`

Fetches one of the calling user's documents by id, including a short-lived download URL. Returns null if the document doesn't exist or belongs to another user.

## Query

```graphql
query ($id: ID!) {
  document(id: $id) {
    id
    fileName
    summary
    url
    taggingError
  }
}

```

## Variables

```json
{
  "id": "00000000-0000-4000-8000-000000000001"
}
```

## Response

```json
{
  "data": {
    "document": {
      "fileName": "invoice.pdf",
      "id": "00000000-0000-4000-8000-000000000001",
      "summary": "Q2 supplier invoice.",
      "taggingError": null,
      "url": "http://localhost:4566/tnid-v2-documents-local/user/uploads/1.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=SOME_RANDOM_ACCESS_KEY%2F20260115%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260115T090000Z&X-Amz-Expires=600&X-Amz-SignedHeaders=host&X-Amz-Signature=0000000000000000000000000000000000000000000000000000000000000000"
    }
  }
}
```
