---
title: "GET /documents/{code}"
method: GET
path: "/documents/{code}"
tags: ["Documents"]
---

# GET /documents/{code}

`GET /documents/{code}`

Get a specific document

## Path parameters

- `code` string, required

## Response `200`

Success

- DocumentSingle
  - `id` integer
  - `code` string
  - `type` string
  - `document_type` string
  - `active` boolean
  - `created_at` string, datetime
  - `updated_at` string, datetime
  - `fields` array[]
    - object[]
  - `completeness` DocumentSingleCompletenessElement[]
    - `code` object
      - `locale` object
        - `ratio` integer
        - `success` boolean
  - `links` LinkElement[]
    - `rel` string
    - `href` string
  - `variants` DocumentSingleVariantElement[]
    - `id` integer
    - `code` string
    - `active` boolean
    - `fields` string[]
    - `links` LinkElement[]
      - `rel` string
      - `href` string
  - `medias` DocumentSingleMediaElement[]
    - `id` integer
    - `code` string
    - `active` boolean
    - `fields` string[]
    - `links` LinkElement[]
      - `rel` string
      - `href` string
  - `parent_documents` DocumentSimple[]
    - `id` integer
    - `code` string
    - `type` string
    - `document_type` string
    - `active` boolean
    - `created_at` string, datetime
    - `updated_at` string, datetime
    - `links` LinkElement[]
      - `rel` string
      - `href` string
  - `target_documents` DocumentSimple[]
    - `id` integer
    - `code` string
    - `type` string
    - `document_type` string
    - `active` boolean
    - `created_at` string, datetime
    - `updated_at` string, datetime
    - `links` LinkElement[]
      - `rel` string
      - `href` string

## Other responses

- `404` — The document does not exist

---

[API](https://skmtc.net/quable/apis/quable-pim-api-documentation-v5.md) · [All operations](https://skmtc.net/quable/apis/quable-pim-api-documentation-v5/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/quable/quable-pim-api-documentation-v5/versions/1641096abb34/schema)
