GET
/v1/documents/:idGet 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
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Document UUID |
Response
Returns the full document, including content.
| Field | Type | Description |
|---|---|---|
id | string | Document UUID |
title | string | Document title |
content | string | Full markdown content |
template_id | string | Template applied to the document |
theme_mode | string | Color theme |
is_published | boolean | Whether the document is currently published |
slug | string or null | URL slug if published |
published_at | string or null | ISO 8601 publish timestamp |
description | string or null | Document description for SEO |
page_width | string or null | Page width: "standard", "wide", or "full" |
visibility | string or null | Access level: "link" or "public" |
word_count | integer | Word count |
created_at | string | ISO 8601 creation timestamp |
updated_at | string | ISO 8601 last update timestamp |
Errors
| Status | Code | Description |
|---|---|---|
| 401 | unauthorized | Missing or invalid API key |
| 404 | not_found | Document does not exist or does not belong to you |
| 500 | internal_error | Unexpected 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"
}