Skip to main content

Overview

Trigger a task by its identifier. The task must be deployed and active in the target environment. Returns the ID of the newly created run.
Authentication with a secret key is required. This endpoint is not available with a Personal Access Token.

Endpoint

Path parameters

string
required
The id you assigned to the task in your task() definition, e.g. "my-task".

Request body

any
Any JSON-serializable value to pass as the task’s payload. The shape must match what the task’s run function expects.
object
An optional JSON object that is available inside the run via context. Useful for passing request-scoped metadata.
object

Response

string
The unique ID of the newly created run, prefixed with run_.

Examples

Response example