Runbooks API
session
. See Sessions API for how to track a
session's status after you've executed a runbook.Endpoints
Execute Runbook
Execute a runbook and receive a session ID to track the runbook's execution. Check on the status of your newly created session with /sessions/get.
Execute RunbookCopied1curl https://api.airplane.dev/v0/runbooks/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"slug": "hello_world"11}'
Headers
Slug of the environment to execute the runbook in. Either an ID or a slug can be provided.
ID of the environment to execute the runbook in. Either an ID or a slug can be provided.
Body Parameters
Unique ID of the runbook. You can find your runbook's ID by visiting the runbook's page on Airplane. The runbook ID is located at the end of the url.
e.g. the runbook ID for https://app.airplane.dev/runbooks/rbk20220120z15kl79
is rbk20220120z15kl79
Mapping of parameter slug to value. You can find your runbooks's parameter slugs inside the runbook editor on Airplane.
Unique slug of the runbook. You can find your runbook's slug next to the runbook's name within the runbook editor on Airplane.
Either an ID or a slug must be provided.
ResponseCopied1{2"sessionID": "ses20220120za1pskd"3}
Response
Unique ID of the runbook's session.