> 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/013__ask_user_document_question.md).

# Ask A Question Of Your Documents

GraphQL endpoint: `/user`

Answers a natural-language question from the calling user's documents and names the documents the answer drew on. Only accepted documents are searched, and only the passages that matched are sent to the model.

The answer shown here comes from a stubbed model, so the wording is illustrative rather than something the service guarantees.

## Query

```graphql
mutation ($question: String!) {
  askUserDocumentQuestion(question: $question) {
    answer
    citations {
      id
      fileName
    }
  }
}

```

## Variables

```json
{
  "question": "when does my tv warranty end"
}
```

## Response

```json
{
  "data": {
    "askUserDocumentQuestion": {
      "answer": "Your TV warranty ends on 2027-01-01.",
      "citations": [
        {
          "fileName": "tv-warranty.pdf",
          "id": "00000000-0000-4000-8000-000000000001"
        }
      ]
    }
  }
}
```
