---
title: "Get document"
method: GET
path: "/api/v2/documents/{id}"
tags: ["KYC Documents"]
---

# Get document

`GET /api/v2/documents/{id}`

## Request

- Base URL: `https://app.didlogic.com`
- URL: `https://app.didlogic.com/api/v2/documents/{id}`
- Auth: HTTP bearer

Get a document by ID.

`document.files[].role` feeds documents_files_download_file; `document.identity_id` feeds identities_index.
Rows: documents_index.

## Path parameters

- `id` integer, required

## Response `200`

returns the document details

- object
  - `document` object, required
    - `name` string, required: Document name
    - `id` integer, required: Document identifier
    - `user_id` integer, required
    - `country` string, required: Country of the document, as given at upload; for a letter of intent, the country of the purchased number
    - `created_at` string, required
    - `expired_at` string, required
    - `approvement_status` 'in review' | 'verified' | 'rejected' | 'expired', required: Document approval status (in review = pending, verified = approved)
    - `doc_type` string, required: Document type identifier
    - `identity_id` unknown, required
    - `identity` unknown, required
    - `files` object[], required: Uploaded document files
      - `role` string, required
      - `label` string, required
      - `url` string, required
      - `name` string, required

## Other responses

- `401`: returns unauthorized
- `404`: The requested resource could not be found.

---

[API](https://skmtc.dev/didlogic/apis/get-started.md) · [All operations](https://skmtc.dev/didlogic/apis/get-started/llms.txt) · [OpenAPI document](https://skmtc.dev/didlogic/apis/get-started/revisions/dc972d592b34?raw)
