Rendley docs

Agent

#Create an agent session

POST/v1/agent/sessions

Start a new agent session and stream results over Server-Sent Events.

Request body

attachmentsobject[]Optional
media_idstringRequired
local_authoringbooleanOptional

LocalAuthoring signals that the caller (an interactive MCP-driven LLM) can author motion-clip userCode itself for free. When set, create_motion_clip pauses with a motion_clip_authoring interrupt instead of generating (and charging) server-side, and shows 0 cost in the plan review. Only sent by interactive headless sessions; normal in-editor usage omits it.

messagestringRequired
planner_onlybooleanOptional

PlannerOnly forces the planner runner and bypasses the semantic session router. Set by non-interactive callers (the MCP bridge) that always want the full planning flow and can't recover from a direct-edit misroute. Omitted for normal in-editor usage, which keeps semantic routing.

project_idstringRequired
thread_idstringRequired
unattendedbooleanOptional

Unattended signals that NOBODY can answer a question mid-run — the caller fires the job and polls for the result (the REST /v1/agent path). The clarify tool then answers itself inline ("proceed with the most reasonable assumption") instead of pausing for input that would never arrive. Only sent by non-interactive headless sessions; a human editor or an interactive MCP-driven LLM can both answer, so they omit it.

Response codes
200

OK

400

Bad Request

401

Unauthorized

#Resume an agent session

POST/v1/agent/sessions/resume

Resume an interrupted agent session and stream results over Server-Sent Events.

Request body

interrupt_idstringOptional
interrupt_type"plan_review" | "request_upgrade" | "tool_review" | "context_request" | "command_execution" | "file_upload" | "edit_feedback" | "motion_clip_authoring" | "clarify"Optional
responsestringRequired
thread_idstringRequired
Response codes
200

OK

400

Bad Request

401

Unauthorized

#Create an agent thread

POST/v1/agent/threads

Create a new agent thread for a project.

Request body

project_idstringRequired
Response codes
200

OK

400

Bad Request

401

Unauthorized

#Get the thread's pending interrupt

GET/v1/agent/threads/{threadID}/pending-interrupt

Return the last sent-but-unanswered interrupt for a thread so a client whose SSE stream died can replay it and resume the run.

Path parameters

threadIDstring

Thread ID

Response codes
200

OK

400

Bad Request

401

Unauthorized

#Get the last agent thread

GET/v1/agent/threads/last

Get the most recent agent thread for a project.

Query parameters

project_idstringRequired

Project ID

Response codes
200

OK

400

Bad Request

401

Unauthorized