---
title: "Get a document"
method: GET
path: "/v1/documents/{document_id}"
tags: ["Documents"]
---

# Get a document

`GET /v1/documents/{document_id}`

## Request

- Base URL: `https://api.documentpro.ai`
- URL: `https://api.documentpro.ai/v1/documents/{document_id}`
- Auth: API key in header `x-api-key`

## Path parameters

- `document_id` string, uuid, required

## Response `200`

Document detail, including its parser_runs history.

- Document
  - `document_id` string, uuid
  - `user_id` string, uuid
  - `source_name` string
  - `s3_key` string: Temporary S3 URL for the source file.
  - `file_name` string
  - `file_extension` string
  - `num_pages` integer
  - `meta_tags` object
  - `parser_runs` object[]
    - `template_id` string, uuid
    - `template_title` string
    - `request_id` string, uuid
    - `params` object
    - `datetime` string, date-time
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `400`: Malformed request or invalid arguments.
- `401`: Missing or invalid x-api-key.
- `403`: API key does not have access to the requested resource, or a plan limit was hit.
- `404`: The requested resource does not exist on this account.
- `500`: Something went wrong on DocumentPro's side.

---

[API](https://skmtc.dev/documentpro/apis/documentpro-api.md) · [All operations](https://skmtc.dev/documentpro/apis/documentpro-api/llms.txt) · [OpenAPI document](https://skmtc.dev/documentpro/apis/documentpro-api/revisions/05d6bd485e28?raw)
