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

# GET /documents/{code}

`GET /documents/{code}`

## Request

- Base URL: `https://instance_name.quable.com/api_1.php`
- URL: `https://instance_name.quable.com/api_1.php/documents/{code}`
- Auth: none declared

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.dev/quable/apis/quable-pim-dam-api-v4.md) - [All operations](https://skmtc.dev/quable/apis/quable-pim-dam-api-v4/llms.txt) - [OpenAPI document](https://skmtc.dev/quable/apis/quable-pim-dam-api-v4/revisions/3d11b340c0f2?raw)
