curl --request POST \
--url https://api.rendermate.com/v1/documents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"commit_id": "<string>",
"jsx": "<string>",
"message": "<string>",
"name": "<string>",
"project_id": "<string>"
}
'import requests
url = "https://api.rendermate.com/v1/documents"
payload = {
"commit_id": "<string>",
"jsx": "<string>",
"message": "<string>",
"name": "<string>",
"project_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
commit_id: '<string>',
jsx: '<string>',
message: '<string>',
name: '<string>',
project_id: '<string>'
})
};
fetch('https://api.rendermate.com/v1/documents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.rendermate.com/v1/documents",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'commit_id' => '<string>',
'jsx' => '<string>',
'message' => '<string>',
'name' => '<string>',
'project_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.rendermate.com/v1/documents"
payload := strings.NewReader("{\n \"commit_id\": \"<string>\",\n \"jsx\": \"<string>\",\n \"message\": \"<string>\",\n \"name\": \"<string>\",\n \"project_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.rendermate.com/v1/documents")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"commit_id\": \"<string>\",\n \"jsx\": \"<string>\",\n \"message\": \"<string>\",\n \"name\": \"<string>\",\n \"project_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rendermate.com/v1/documents")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"commit_id\": \"<string>\",\n \"jsx\": \"<string>\",\n \"message\": \"<string>\",\n \"name\": \"<string>\",\n \"project_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"author": {
"id": "api_key_01JF3Q1C5E7G9J2M4N6Q8S0T2W",
"name": "ci",
"via": "api"
},
"commit_id": "0193f2a4-c1d8-7b2e-9f3a-6c5d4e8b7a10",
"committed_at": "2026-12-03T10:15:00Z",
"id": "doc_01JF3QZ8X6N2V7K4M9P5R1T3WY",
"message": "Shorten the intro",
"sha256": "9f2c4e1a7b3d5f8e0c6a2b4d8f1e3c5a7b9d0f2e4c6a8b1d3f5e7c9a0b2d4f6e",
"version": 12
}Create document
Create a document: a video edit with versions, like a git repository. Starts empty (10 seconds of 1920x1080 at 30 fps), or from a whole document written as JSX: export default (<timeline canvas={{...}} schemaVersion={...}>...</timeline>), where each node is an element whose tag is its type, with an id, its fields as attributes and its children inside. Times are seconds, colours “#rrggbb”, and Doc.keys([seconds, value, easing], …) is a keyframe curve. The JSX get_document returns starts with a comment that explains the whole notation (https://rendermate.com/docs/documents). Write the document out whole, without Doc.cut or Doc.more. edit_document’s description shows how to write each kind of node and asset. To start from scratch, create the document empty, then edit it with jsx: the whole document, keeping the canvas get_document returned.
MCP tool: create_document.
curl --request POST \
--url https://api.rendermate.com/v1/documents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"commit_id": "<string>",
"jsx": "<string>",
"message": "<string>",
"name": "<string>",
"project_id": "<string>"
}
'import requests
url = "https://api.rendermate.com/v1/documents"
payload = {
"commit_id": "<string>",
"jsx": "<string>",
"message": "<string>",
"name": "<string>",
"project_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
commit_id: '<string>',
jsx: '<string>',
message: '<string>',
name: '<string>',
project_id: '<string>'
})
};
fetch('https://api.rendermate.com/v1/documents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.rendermate.com/v1/documents",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'commit_id' => '<string>',
'jsx' => '<string>',
'message' => '<string>',
'name' => '<string>',
'project_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.rendermate.com/v1/documents"
payload := strings.NewReader("{\n \"commit_id\": \"<string>\",\n \"jsx\": \"<string>\",\n \"message\": \"<string>\",\n \"name\": \"<string>\",\n \"project_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.rendermate.com/v1/documents")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"commit_id\": \"<string>\",\n \"jsx\": \"<string>\",\n \"message\": \"<string>\",\n \"name\": \"<string>\",\n \"project_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rendermate.com/v1/documents")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"commit_id\": \"<string>\",\n \"jsx\": \"<string>\",\n \"message\": \"<string>\",\n \"name\": \"<string>\",\n \"project_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"author": {
"id": "api_key_01JF3Q1C5E7G9J2M4N6Q8S0T2W",
"name": "ci",
"via": "api"
},
"commit_id": "0193f2a4-c1d8-7b2e-9f3a-6c5d4e8b7a10",
"committed_at": "2026-12-03T10:15:00Z",
"id": "doc_01JF3QZ8X6N2V7K4M9P5R1T3WY",
"message": "Shorten the intro",
"sha256": "9f2c4e1a7b3d5f8e0c6a2b4d8f1e3c5a7b9d0f2e4c6a8b1d3f5e7c9a0b2d4f6e",
"version": 12
}Authorizations
Body
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.
Response
Created
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.