Skip to main content
GET
/
documents
/
{document_id}
Get document
curl --request GET \
  --url https://api.timeless.day/v1/documents/{document_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "doc_abc123",
  "title": "Meeting summary",
  "format": "markdown",
  "content": "# Weekly standup\n\n## Key decisions\n- Proceed with the new API design\n\n## Action items\n- Alice: Update the spec by Friday\n",
  "created_at": "2025-01-15T10:35:00Z"
}

Authorizations

Authorization
string
header
required

API token from your Timeless dashboard.

Path Parameters

document_id
string
required

The document ID (e.g., doc_abc123).

Query Parameters

format
enum<string>
default:html

Output format for the document content.

  • html — HTML markup
  • markdown — Markdown text
  • raw — raw/plain text
  • docx — base64-encoded Word document
  • json — JSON array of content blocks
Available options:
html,
markdown,
raw,
docx,
json

Response

The document.

id
string
required
Example:

"doc_abc123"

title
string
required
Example:

"Meeting summary"

format
enum<string>
required
Available options:
html,
markdown,
raw,
docx,
json
content
string
required

Document content in the requested format. For docx, this is base64-encoded. For json, this is a JSON-serialized array of content blocks.

created_at
string<date-time>
required