UnmarkdownDocs

Get Document

Retrieve a single document by its ID, including its full Markdown content and metadata.

Returns the full document object including Markdown source in the content field, template settings, and publishing status.

Note
This endpoint does not count toward your monthly API quota.
GET/v1/documents/:id

Retrieve a single document by ID, including full Markdown content.

Request

bash
curl https://api.unmarkdown.com/v1/documents/d290f1ee-6c54-4b01-90e6-d701748f0851 \
  -H "Authorization: Bearer um_your_api_key"

Response

json
{
  "id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
  "title": "My Document",
  "content": "# My Document\n\nThis is the full markdown content.",
  "template_id": "swiss",
  "theme_mode": "light",
  "is_published": true,
  "slug": "my-document",
  "published_at": "2026-02-17T10:30:00Z",
  "description": "A sample document",
  "page_width": "standard",
  "visibility": "link",
  "word_count": 1250,
  "created_at": "2026-02-15T08:00:00Z",
  "updated_at": "2026-02-17T10:30:00Z"
}

Error Response

json
{
  "error": {
    "code": "not_found",
    "message": "Document not found",
    "status": 404
  }
}

Status Codes

StatusDescription
200Success
401Missing or invalid API key
404Document not found or belongs to a different user
429Rate limit exceeded
500Internal server error