---
title: "Get Document"
method: GET
path: "/api/v1/document/{id}"
tags: ["Documents"]
---

# Get Document

`GET /api/v1/document/{id}`

## Path parameters

- `id` string, required

## Headers

- `CodeGPT-Org-Id` string

## Response `200`

Successful Response

- GetDocumentDataWithContent
  - `id` string — Document id
  - `created_at` string, date-time — Date when the document was created
  - `file_id` string — File id
  - `user_id` string — User id
  - `name` string — Name of the document
  - `org_id` string — ID of the Organization the document belongs to
  - `file_type` 'txt' — Type of the file
  - `metadata` Metadata
    - `title` string — Title of the document
    - `description` string — Description of the document
    - `summary` string — Summary of the document
    - `keywords` string — Keywords of the document
    - `language` string — Language of the document
  - `tokens` integer — Number of tokens in the document
  - `chunk_count` integer — Number of chunks in the document
  - `content` string — Content of the document

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/codegpt/apis/codegpt-api-beta.md) · [All operations](https://skmtc.net/codegpt/apis/codegpt-api-beta/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/codegpt/codegpt-api-beta/versions/0a70b3b0cec3/schema)
