Skip to main content

Queue an on-demand run of a routine

POST 

https://platform.docana.com/api/v1/agents/:agentId/routines/:routineId/run/

Requires Authorization: ApiKey <key> with the FULL or ROUTINE scope; session cookies are rejected. The routine must be enabled and have an enabled API trigger. Accepts an optional JSON body { text?: string } (max 10k chars) that is passed to the routine as a prefix to the saved prompt. Answers 202 once the run is queued; the spawned thread and execution ids appear on the run row once the worker finishes.

Request

Responses

The run was queued