> 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/003__confirm_document_upload_as_user.md).

# Confirm Document Upload (User)

GraphQL endpoint: `/user`

Claims an upload prepared by prepareDocumentUpload. The server reads the stored object's real size — not the one declared up front — moves the reservation into the repository and queues the document for AI tagging.

## Query

```graphql
mutation ($id: ID!) {
  confirmDocumentUpload(id: $id) { id fileName byteSize status folderId }
}

```

## Variables

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

## Response

```json
{
  "data": {
    "confirmDocumentUpload": {
      "byteSize": "640",
      "fileName": "invoice.pdf",
      "folderId": null,
      "id": "00000000-0000-4000-8000-000000000001",
      "status": "ACCEPTED"
    }
  }
}
```
