Run Workflow
Trigger a workflow run manually
Published ·Updated
/v1/workflows/{id}/runcurl -X POST "https://api.orshot.com/v1/workflows/<ID>/run" \
-H "Authorization: Bearer <ORSHOT_API_KEY>"const res = await fetch("https://api.orshot.com/v1/workflows/<ID>/run", {
method: "POST",
headers: {
Authorization: "Bearer <ORSHOT_API_KEY>",
},
});
const data = await res.json();import requests
response = requests.post(
"https://api.orshot.com/v1/workflows/<ID>/run",
headers={"Authorization": "Bearer <ORSHOT_API_KEY>"},
)
data = response.json()$ch = curl_init("https://api.orshot.com/v1/workflows/<ID>/run");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer <ORSHOT_API_KEY>",
]);
$data = json_decode(curl_exec($ch), true);
curl_close($ch);require "net/http"
require "json"
uri = URI("https://api.orshot.com/v1/workflows/<ID>/run")
req = Net::HTTP::Post.new(uri)
req["Authorization"] = "Bearer <ORSHOT_API_KEY>"
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(req) }
data = JSON.parse(res.body)Enterprise Only
The Workflows API is available only to first party clients like the Orshot MCP server and workspaces on the Enterprise plan. Checkout the Enterprise Pricing to get access.
Overview#
Queue a manual run of a workflow. The run executes asynchronously; the response returns immediately with a runId you can poll via the run detail endpoint.
A run uses one automation credit when at least one row succeeds. A run with no successful rows, or a cancelled run, gives the credit back. Renders made by the run use render credits as usual.
https://api.orshot.com/v1/workflows/:id/runPath Parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
id | Integer | Yes | The unique ID of the workflow |
Request#
await fetch("https://api.orshot.com/v1/workflows/44/run", {
method: "POST",
headers: {
Authorization: "Bearer <ORSHOT_API_KEY>",
},
});{
"runId": 5121,
"status": "queued"
}Returns 202 Accepted. Poll GET /v1/workflows/:id/runs/:runId for progress and per-step results.
Error Responses#
Workflow Not Runnable (400)#
{
"error": "Workflow is not runnable",
"details": ["no destination"],
"hints": ["Add a destination step so every render is delivered somewhere."]
}Plan Gated Steps (403)#
{
"error": "This workflow uses steps that need a higher plan",
"code": "plan_gated"
}Incompatible Steps (409)#
Returned when a step was saved at a node version that cannot be upgraded to the current one. Rebuild that step using the node catalog (GET /v1/workflows/nodes).
{
"error": "This workflow cannot be safely edited or run by this Orshot deployment",
"code": "workflow_version_incompatible",
"details": ["Node \"render\" cannot be upgraded from version 1 to 2"],
"compatibility": [
{
"code": "missing_node_migration",
"nodeKey": "render",
"canonicalKey": "render",
"storedVersion": 1,
"supportedVersion": 2,
"message": "Node \"render\" cannot be upgraded from version 1 to 2"
}
]
}Run Already Queued (409)#
{
"error": "A run is already queued"
}Workflow Not Found (404)#
{
"error": "Not found"
}Notes#
- The workflow does not need to be active for a manual run; a complete draft runs fine.
- A manual run of a polling workflow reads and advances the poll cursor, exactly like a scheduled run.
Rate Limits#
- 60 requests per minute per workspace
Ready to automate?
Start rendering images, PDFs and videos from your templates in under 2 minutes. Free plan, no credit card.
Get your API key- Image, PDF and video generation via API
- Visual editor with AI and smart layouts
- Zapier, Make, MCP and 40+ integrations
- White-label embed for your own app
- 100 free credits a month, no credit card required