Create Template Run
Path parameters
The ID of the template, as shown in the ElevenLabs app or by GET /v1/flows/templates.
Headers
Request
Input values keyed by input port id. Every input port of the version being run must be given; a missing or unknown id is rejected. Pass {} for a template with no inputs.
The template snapshot to run. Pass a specific version id to pin that snapshot, or latest (the default when omitted) to run the template’s most recently published version. Only published versions can be pinned, except by the template’s owner, who may also pin an unpublished saved snapshot to try it out before publishing. The live draft is never run through this API.
Include to send the run’s result to the workspace’s configured flows webhooks once the run’s status reaches completed or failed. One event for the whole run: the flows_template_run event’s data matches the terminal response of GET /v1/flows/templates/{template_id}/runs/{run_id}.
Response
The template this run executed, so a webhook consumer running several templates can tell their runs apart without keeping a run-to-template map.
The template version this run executed. Resolved when the run is created, so a run started with latest records the concrete version it ran.
The run’s status, rolled up from its outputs: pending until an output starts, generating while any output is unfinished, completed once every output has completed, and failed once every output has finished and at least one failed. completed and failed are terminal: the flows_template_run webhook fires once the run reaches either.
The run’s outputs, keyed by output port id. Each is a TemplateOutput discriminated on type, the type of its port’s content_schema.