Run Workflow
Initiate an execution of a Workflow by name. You can run the latest version, choose a version by label or version number, pass input variables and metadata, and optionally receive results asynchronously with a callback URL.Documentation Index
Fetch the complete documentation index at: https://docs.promptlayer.com/llms.txt
Use this file to discover all available pages before exploring further.
Behavior Notes
workflow_label_nameandworkflow_version_numberidentify a specific version; omit both to run the latest version.- When
callback_urlis provided, the API accepts the run immediately and posts results to your callback when execution finishes. - Use Get Workflow Version Execution Results to poll for execution output.
Related
Authorizations
Path Parameters
The name of the workflow to execute.
Body
Parameters to run a workflow by label, version number, or latest version. workflow_label_name and workflow_version_number are mutually exclusive.
Specify a workflow label name to run a specific labeled version.
Specify a workflow version number to run a specific version.
A dictionary of metadata key-value pairs.
A dictionary of input variables required by the workflow.
If set to true, all outputs from the workflow execution will be returned.
HTTP URL where execution results are posted asynchronously. When provided, the API returns 202 Accepted immediately.
Response
Workflow execution created successfully
Response after initiating a workflow execution.

