Get document
curl --request GET \
--url https://api.rendermate.com/v1/documents/{document_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.rendermate.com/v1/documents/{document_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.rendermate.com/v1/documents/{document_id}', 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/{document_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.rendermate.com/v1/documents/{document_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.rendermate.com/v1/documents/{document_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rendermate.com/v1/documents/{document_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
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
}Documents
Get document
Read a document at one version (the latest by default) as JSX, with the version number. The JSX starts with a comment that explains its notation. Read it before editing: edit_document needs that version as its base_version, and its edits replace text in this JSX.
MCP tool: get_document.
GET
/
v1
/
documents
/
{document_id}
Get document
curl --request GET \
--url https://api.rendermate.com/v1/documents/{document_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.rendermate.com/v1/documents/{document_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.rendermate.com/v1/documents/{document_id}', 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/{document_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.rendermate.com/v1/documents/{document_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.rendermate.com/v1/documents/{document_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rendermate.com/v1/documents/{document_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
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
Query Parameters
Response
OK
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.