Run a task
Execute a task that has already been created. By default the call blocks until the run finishes. Pass async: true to return immediately, in which case you should poll GET /runs to retrieve the result once it’s ready.
Authorizations
Enter your API key as the bearer token. Set header: Authorization to Bearer <api_key>
Body
ID of the task to execute.
Arguments to pass to the task. Optional if the task does not require any arguments.
Mapping of secret slot names to secret IDs. Each slot defined in the task's required_secrets must be mapped to a user-owned secret.
When true, return immediately with a pending run; poll retrieveRun for the result.
Maximum execution time in seconds before the run is timed out.
1 <= x <= 3600Response
Successful response
Unique identifier for the object.
ID of the task executed in this run.
Arguments in this run for the task's input parameters.
Lifecycle status of the run: pending, running, success, failed, timed_out, result_too_large, or internal_error.
pending, running, success, failed, timed_out, result_too_large, internal_error Execution result of the run. In JSON, matching the task's output schema.
Whether the run has associated logs
Timestamp when the object was created.
Timestamp when the object was last updated.
Secrets to use for this run. This dict must be a mapping of secret slot names to secret IDs.