Workflows
Run a workflow
Enqueues a run of the workflow, like the "Run" button in the interface, and returns its identifier and the status it is born with (queued).
workflows:runworkflows:run- 120/min
- Server annotation: Destructive
- Server annotation: Open world
- Requires human confirmation
- Send your own idempotencyKey
Result
generated from the schema
Send your own idempotencyKey
A retry without the same key duplicates the effect. Send your own idempotencyKey (a UUID) and resend the same one if you retry.
Requires human confirmation
Put this tool on your client's “ask before running” list. The annotations are hints that the server declares, not guarantees: do not decide the approval from destructiveHint alone. The server flags this tool with _meta["anthropic, which clients that honor it use to ask a person before every call.
It does not wait for it to finish, and the API has no operation that reads a run yet: its progress is only visible in the Filmo application. If the workflow declares a run form, its fields are required and travel in payload; if any is missing it responds 400 without enqueueing anything. A workflow without any saved version responds 409. It accepts Idempotency-Key: two requests with the same key return the same run instead of enqueueing two.
Arguments
Identifier of the workflow to run.
Limits: min length 1
Values of the run form of the workflow, by field name. If the workflow declares fields they are REQUIRED and are validated against its published version: if any is missing the request responds 400 and nothing is queued. If it declares none, it is ignored.
Idempotency key chosen by the client (a UUID is recommended). Repeating the same key with the same arguments within 24 h returns the stored response without executing again; with different arguments it responds 422. It is the safe way to retry after a network failure.
Limits: min length 1, max length 255
Result
On success the result carries structuredContent with data and meta. These are the attributes of data.
Show the attributes of data
Identifier of the queued run.
Initial state of the run. When just queued it is queued.
Available options: queued, running, waiting, paused, completed, failed, cancelled
An error is a result with isError: true and the problem in content[0].; there is no structuredContent. See Errors.
The same operation by REST
This tool runs POST /api/v1/workflows/{workflowId}/runs.
Related pages
Link to this section: Related pagesWorkflows
Run a workflow
Enqueues a run of the workflow, like the "Run" button in the interface, and returns its identifier and the status it is born with (
queued).Guides
Safe writes
An assistant that can write can also write the wrong thing. Decide which tools need a person, retry without duplicating, and know what a write sets in motion.
Guides
Errors
A tool error is a result with
isError: trueand the problem in the first text block. Branch on itscode.
Was this page helpful?