Skip to main content
GET
Get document

Authorizations

Authorization
string
header
required

An API key from the dashboard, such as sk_live_…. It acts in its workspace.

Path Parameters

document_id
string
required

Query Parameters

alias
string

An alias, such as latest; latest when neither this nor version is given.

version
integer<uint64>

A version, by number.

Required range: x >= 0

Response

OK

commit_id
string
required

The commit that made the version.

id
string
required

The document, doc_….

sha256
string
required

SHA-256 of the document as canonical JSON.

version
integer<uint64>
required

The version's number: 1 for the document as created, one more for each commit.

Required range: x >= 0
author
object | null

The API key, or the member, that made it.

committed_at
string | null

RFC 3339.

jsx
string | null

The Rendermate document at this version, written as JSX; only when it's read, not when it's created or committed. Edit it with edit_document, giving this version as base_version.

message
string | null

What the commit changes and why.