---
title: "Get document by ID (Legacy)"
method: POST
path: "/legacy/get_document_id"
tags: ["Legacy"]
---

# Get document by ID (Legacy)

`POST /legacy/get_document_id`

## Request

- Base URL: `https://next.frase.io/api/v1`
- URL: `https://next.frase.io/api/v1/legacy/get_document_id`
- Auth: one of:
  - API key in header `X-API-KEY`
  - HTTP bearer

Legacy endpoint to get a document by ID.

## Request body

- object
  - `doc_id` string, required: The document ID (content or brief UUID)

## Response `200`

Document data

- object
  - `doc_id` string
  - `type` 'content' | 'brief'
  - `title` string
  - `text` string, nullable: Content body (content type only)
  - `status` string
  - `word_count` integer, nullable
  - `meta_title` string, nullable
  - `meta_description` string, nullable
  - `target_keywords` string[]
  - `content_type` string, nullable: Brief content type (brief type only)
  - `outline` unknown[], nullable: Brief outline (brief type only)
    - unknown
  - `target_word_count` integer, nullable: Brief target word count (brief type only)
  - `created_at` string, date-time
  - `updated_at` string, date-time, nullable
  - `published_at` string, date-time, nullable

---

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