Skip to main content
POST
Create document

Authorizations

Authorization
string
header
required

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

Body

application/json
commit_id
string | null

A UUID that makes the create safe to send again: sent again with the same one, it answers with the document it made instead of making another. The Idempotency-Key header does the same.

jsx
string | null

The whole document to start from, written as JSX (https://rendermate.com/docs/documents): export default (<timeline canvas={{…}}>…</timeline>). When absent, the document starts empty: 10 seconds of 1920×1080 at 30 fps.

message
string | null

The first commit's message.

name
string | null

A name people recognize it by, such as "Q3 update"; at most 200 characters.

project_id
string | null

The project to put it in, prj_…; the workspace's default project when absent.

Response

Created

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.