For developers
API reference
Read and write Rendra documents from any agent, CLI or backend. Bearer token, JSON in, JSON out: the same endpoints the app itself uses. The full spec is openapi.json.
Authentication
Every request sends an Authorization: Bearer header with a personal access token. A token belongs to one workspace and has one or both of these scopes:
docs:read- List, get, search, PDF.
docs:write- Create, update, delete, propose, refresh.
Quick start
Put your token in place of the placeholder and paste this into a terminal.
curl https://www.rendra.design/api/v1/workspace \
-H "Authorization: Bearer rendra_YOUR_TOKEN_HERE"Both need a Rendra account.
/api/v1/workspaceGet the active workspace
Call this first from an agent to confirm it's connected to the right workspace.
Requires scope: docs:read
curl https://www.rendra.design/api/v1/workspace \
-H "Authorization: Bearer rendra_YOUR_TOKEN_HERE"{
"workspace": {
"slug": "acme",
"name": "Acme",
"plan": "pro",
"createdAt": "2026-01-04T10:22:11.000Z"
},
"docs": {
"total": 42,
"published": 18
},
"auth": {
"kind": "token",
"scopes": [
"docs:read",
"docs:write"
]
}
}Errors
401- Missing, malformed, or revoked token.
403- Token lacks the required scope.
429- Rate limit hit. Wait
Retry-Afterseconds and try again. 500- Unexpected server error.
404- Workspace not found.
/api/v1/documentsList documents
Returns a page of document summaries (no html body — fetch one doc for that).
Requires scope: docs:read
curl https://www.rendra.design/api/v1/documents \
-H "Authorization: Bearer rendra_YOUR_TOKEN_HERE"{
"documents": [
{
"slug": "onboarding-playbook",
"title": "Onboarding Playbook",
"status": "published",
"docType": "playbook",
"collection": "People ops",
"tags": [
"hiring"
],
"updatedAt": "2026-04-01T09:12:33.000Z"
}
],
"pagination": {
"limit": 50,
"offset": 0,
"returned": 1
}
}Parameters
statusoptional- string · queryactive (default) | all | draft | review | published | archived. Any other value returns 400.
typeoptional- string · queryguide | playbook | policy | runbook | brief | spec
collectionoptional- string · queryMatch on collection name, case and spaces aside.
favoriteoptional- string · queryPass
1ortrueto only return favorites. limitoptional- integer · query1..200 (default 50).
offsetoptional- integer · query0..10000 (default 0).
Errors
400- Unknown
statusvalue (Unknown status "…". Use one of: active, all, draft, review, published, archived.). 401- Missing, malformed, or revoked token.
403- Token lacks the required scope.
429- Rate limit hit. Wait
Retry-Afterseconds and try again. 500- Unexpected server error.
/api/v1/documentsCreate a document
Creates a new document from raw HTML. Rendra normalizes the markup, computes stats, and generates a collision-free slug from the title.
Requires scope: docs:write
curl -X POST https://www.rendra.design/api/v1/documents \
-H "Authorization: Bearer rendra_YOUR_TOKEN_HERE" \
-H "Content-Type: application/json" \
-d '{"title":"Onboarding Playbook","subtitle":"Ship a new hire in week one","html":"<h1>Welcome</h1><p>Day one...</p>","status":"draft","docType":"playbook","collection":"People ops","tags":["hiring","week-one"]}'{
"title": "Onboarding Playbook",
"subtitle": "Ship a new hire in week one",
"html": "<h1>Welcome</h1><p>Day one...</p>",
"status": "draft",
"docType": "playbook",
"collection": "People ops",
"tags": [
"hiring",
"week-one"
]
}{
"document": {
"slug": "onboarding-playbook",
"title": "Onboarding Playbook",
"status": "draft",
"docType": "playbook",
"html": "<h1>Welcome</h1><p>Day one...</p>",
"createdAt": "2026-04-17T08:00:00.000Z",
"updatedAt": "2026-04-17T08:00:00.000Z"
}
}Errors
400- Invalid JSON body or validation error.
401- Missing, malformed, or revoked token.
403- Token lacks the required scope.
429- Rate limit hit. Wait
Retry-Afterseconds and try again. 500- Unexpected server error.
402- Free plan document cap reached (10 docs). Upgrade to Pro to create more.
/api/v1/documents/{slug}Get one document
Returns the full document, including the HTML body.
Requires scope: docs:read
curl https://www.rendra.design/api/v1/documents/onboarding-playbook \
-H "Authorization: Bearer rendra_YOUR_TOKEN_HERE"{
"document": {
"slug": "onboarding-playbook",
"title": "Onboarding Playbook",
"status": "published",
"html": "<h1>Welcome</h1><p>...</p>"
}
}Parameters
slugrequired- string · pathDocument slug (unique within the workspace).
Errors
401- Missing, malformed, or revoked token.
403- Token lacks the required scope.
429- Rate limit hit. Wait
Retry-Afterseconds and try again. 500- Unexpected server error.
404- No document with that slug.
/api/v1/documents/{slug}Update a document
Partial update: send only the fields you want to change. Dates (lastReviewedAt, reviewDueAt) are YYYY-MM-DD or an empty string to clear. Status changes are gated by the state machine; invalid transitions return 409. Changing the title regenerates the slug.
Requires scope: docs:write
curl -X PATCH https://www.rendra.design/api/v1/documents/onboarding-playbook \
-H "Authorization: Bearer rendra_YOUR_TOKEN_HERE" \
-H "Content-Type: application/json" \
-d '{"status":"published","tags":["hiring","week-one","people-ops"]}'{
"status": "published",
"tags": [
"hiring",
"week-one",
"people-ops"
]
}{
"document": {
"slug": "onboarding-playbook",
"status": "published",
"lastReviewedAt": "2026-04-17"
}
}Parameters
slugrequired- string · pathCurrent document slug.
Errors
400- Invalid JSON body, validation error (for example a date that is not YYYY-MM-DD), or no field to change (
Nothing to update: send at least one field to change.). 401- Missing, malformed, or revoked token.
403- Token lacks the required scope.
429- Rate limit hit. Wait
Retry-Afterseconds and try again. 500- Unexpected server error.
404- No document with that slug.
409- Invalid status transition, or the document changed since your
baseRevision(the body hascurrentRevision).
/api/v1/documents/{slug}Delete a document
Moves the document to the trash for 30 days. Append ?permanent=true to delete it immediately.
Requires scope: docs:write
curl -X DELETE https://www.rendra.design/api/v1/documents/onboarding-playbook \
-H "Authorization: Bearer rendra_YOUR_TOKEN_HERE"(empty body — 204 No Content)Parameters
slugrequired- string · pathDocument slug.
permanentoptional- boolean · queryIf true, skip the trash and delete permanently.
Errors
400- The document could not be deleted in its current state.
401- Missing, malformed, or revoked token.
403- Token lacks the required scope.
429- Rate limit hit. Wait
Retry-Afterseconds and try again. 500- Unexpected server error.
404- No document with that slug.
/api/v1/documents/{slug}/pdfGet print-ready HTML
Returns a self-contained HTML page styled for A4. In a browser, it auto-invokes window.print(). Send Accept: application/pdf to skip the auto-print (useful when piping to a headless browser).
Requires scope: docs:read
curl https://www.rendra.design/api/v1/documents/onboarding-playbook/pdf \
-H "Authorization: Bearer rendra_YOUR_TOKEN_HERE"<!doctype html> ... (full print-ready HTML)Parameters
slugrequired- string · pathDocument slug.
Errors
401- Missing, malformed, or revoked token.
403- Token lacks the required scope.
429- Rate limit hit. Wait
Retry-Afterseconds and try again. 500- Unexpected server error.
404- No document with that slug.
/api/v1/documents/{slug}/propose-updatePropose a section rewrite
Waits for a person to approve
Proposes a rewrite of one section. The proposal lands in the Suggested updates queue: the live document is never modified directly. A human approves from the UI before the rewrite is applied.
Requires scope: docs:write
curl -X POST https://www.rendra.design/api/v1/documents/onboarding-playbook/propose-update \
-H "Authorization: Bearer rendra_YOUR_TOKEN_HERE" \
-H "Content-Type: application/json" \
-d '{"section_id":"pricing-table","proposed_html":"<section data-rendra-refresh id=\"pricing-table\">…</section>","diff_summary":"Bumped Pro tier to $24/mo per the 2026 update."}'{
"section_id": "pricing-table",
"proposed_html": "<section data-rendra-refresh id=\"pricing-table\">…</section>",
"diff_summary": "Bumped Pro tier to $24/mo per the 2026 update."
}{
"ok": true,
"proposal_id": 142
}Removed: Pro $19/mo
Added: Pro $24/mo
Bumped Pro tier to $24/mo per the 2026 update. Nothing changes until someone approves it.
Parameters
slugrequired- string · pathDocument slug.
Errors
400- Invalid JSON body or validation error.
401- Missing, malformed, or revoked token.
403- Token lacks the required scope.
429- Rate limit hit. Wait
Retry-Afterseconds and try again. 500- Unexpected server error.
404- No document with that slug, or no section with that
section_idin it.
/api/v1/documents/{slug}/sections/{sectionId}/refreshRun a section refresh on demand
Waits for a person to approve
Same worker as the cron-driven Rendra Refresh tick, kicked off on demand (typically from the MCP trigger_section_refresh tool). The section must already have a configured refresh job. Empty body = refresh using the section's configured source + model. Result lands in Suggested updates for human approval.
Requires scope: docs:write
curl -X POST https://www.rendra.design/api/v1/documents/onboarding-playbook/sections/pricing-table/refresh \
-H "Authorization: Bearer rendra_YOUR_TOKEN_HERE" \
-H "Content-Type: application/json" \
-d '{"source_data":"plan,price_usd\npro,24\nteam,48","source_label":"Billing API /v1/prices","source_fetched_at":"2026-04-02T09:00:00Z"}'{
"source_data": "plan,price_usd\npro,24\nteam,48",
"source_label": "Billing API /v1/prices",
"source_fetched_at": "2026-04-02T09:00:00Z"
}{
"ok": true,
"proposal_id": 143,
"summary": "Updated pricing to match Apr 2026 source."
}Removed: Pro $19/mo
Added: Pro $24/mo
Updated pricing to match Apr 2026 source. Nothing changes until someone approves it.
Parameters
slugrequired- string · pathDocument slug.
sectionIdrequired- string · pathId of the
<section data-rendra-refresh>block to refresh.
Errors
400- Invalid JSON body or validation error.
401- Missing, malformed, or revoked token.
403- Token lacks the required scope.
429- Rate limit hit. Wait
Retry-Afterseconds and try again. 500- Unexpected server error.
404- Document or refresh job not found. The section needs a configured refresh job before it can be refreshed.
409- The refresh worker hit an unrecoverable error.
/api/v1/documents/searchSearch documents
Case-insensitive substring match across title, subtitle, summary, owner, and collection.
Requires scope: docs:read
curl "https://www.rendra.design/api/v1/documents/search?q=onboarding" \
-H "Authorization: Bearer rendra_YOUR_TOKEN_HERE"{
"query": "onboarding",
"documents": [],
"pagination": {
"limit": 20,
"returned": 0
}
}Parameters
qrequired- string · querySearch text (non-empty).
limitoptional- integer · query1..100 (default 20).
statusoptional- string · querySame semantics as on GET /documents.
Errors
400- Missing the required
qquery parameter, or an unknownstatusvalue. 401- Missing, malformed, or revoked token.
403- Token lacks the required scope.
429- Rate limit hit. Wait
Retry-Afterseconds and try again. 500- Unexpected server error.