GET/v1/documents/:id

Get Document

Retrieve a single document by ID.

Retrieve a single document with its full content. Only returns documents that belong to the authenticated user. This endpoint does not count toward your monthly usage quota.

Path parameters

ParameterTypeRequiredDescription
idstringYesDocument UUID

Response

Returns the full document, including content.

FieldTypeDescription
idstringDocument UUID
titlestringDocument title
contentstringFull markdown content
template_idstringTemplate applied to the document
theme_modestringColor theme
is_publishedbooleanWhether the document is currently published
slugstring or nullURL slug if published
published_atstring or nullISO 8601 publish timestamp
descriptionstring or nullDocument description for SEO
page_widthstring or nullPage width: "standard", "wide", or "full"
visibilitystring or nullAccess level: "link" or "public"
word_countintegerWord count
created_atstringISO 8601 creation timestamp
updated_atstringISO 8601 last update timestamp

Errors

StatusCodeDescription
401unauthorizedMissing or invalid API key
404not_foundDocument does not exist or does not belong to you
500internal_errorUnexpected server error
curl https://api.unmarkdown.com/v1/documents/d4f7a8b2-1234-5678-9abc-def012345678 \
  -H "Authorization: Bearer um_your_key_here"
const response = await fetch(
  "https://api.unmarkdown.com/v1/documents/d4f7a8b2-1234-5678-9abc-def012345678",
  {
    headers: {
      "Authorization": "Bearer um_your_key_here",
    },
  }
);

const document = await response.json();
console.log(document.title);
console.log(document.content);
import requests

response = requests.get(
    "https://api.unmarkdown.com/v1/documents/d4f7a8b2-1234-5678-9abc-def012345678",
    headers={"Authorization": "Bearer um_your_key_here"},
)

document = response.json()
print(document["title"])
print(document["content"])

Response 200 OK

{
  "id": "d4f7a8b2-1234-5678-9abc-def012345678",
  "title": "Weekly Report",
  "content": "# Weekly Report\n\n## Summary\n\nKey highlights from this week.\n\n## Metrics\n\n| Metric | Value |\n|--------|-------|\n| Users  | 1,240 |\n| Docs   | 3,450 |",
  "template_id": "executive",
  "theme_mode": "light",
  "is_published": true,
  "slug": "weekly-report",
  "published_at": "2026-02-14T12:00:00.000Z",
  "description": "Weekly team update with key metrics",
  "page_width": "standard",
  "visibility": "link",
  "word_count": 450,
  "created_at": "2026-02-14T12:00:00.000Z",
  "updated_at": "2026-02-15T09:30:00.000Z"
}