Tasks API
run
. See Runs API for how to track a run's status or fetch a run's
output after you've executed a task.Endpoints
Execute Task
Execute a task with a set of parameter values and receive a run ID to track the task's execution. Check on the status of your newly created run with /runs/get.
Execute TaskCopied1curl https://api.airplane.dev/v0/tasks/execute \2-X POST \3-H "X-Airplane-API-Key: $AIRPLANE_API_KEY" \4-H "X-Airplane-Env-Slug: prod" \5-d '{6"paramValues": {7"limit": "20",8"user": "eric"9},10"resources": {11"db": "demo_db"12},13"slug": "hello_world"14}'
Headers
Slug of the environment to execute the task in. Either an ID or a slug can be provided.
ID of the environment to execute the task in. Either an ID or a slug can be provided.
Body Parameters
Unique ID of the task. You can find your task's ID by visiting the task's page on Airplane. The task ID is located at the end of the url.
e.g. the task ID for https://app.airplane.dev/tasks/tsk20210728zxb2vxn
is tsk20210728zxb2vxn
Either an ID or a slug must be provided.
Mapping of parameter slug to value. You can find your task's parameter slugs inside the
task editor on Airplane or by running airplane tasks list
from the CLI.
Mapping of resource aliases to id identifiers used by the task.
Unique slug of the task. You can find your task's slug next to the task's name within the
task editor on Airplane or by running airplane tasks list
from the CLI.
Either an ID or a slug must be provided.
ResponseCopied1{2"runID": "run20220215zv10o6s52qj"3}
Response
Unique ID of the task execution's run.