Run a journey now, as a job
sites_by_slug_journeys_by_journey_runWraps POST /api/sites/{slug}/journeys/{journey}/run. Run a journey now, as a job. Queues a run of the journey on each of its models, as the journey page's Run now does; the monitor starts it within a minute and a run takes from 15 seconds to a few minutes. Answers 202 with Location: poll it until status is finished. One at a time per journey, 5 an hour per team. Each model's run is charged like a scheduled one (each run at model cost plus 50%, at least $0.02) and counts against the team's monthly journey budget. Asking again while one is open answers 409 with the open one's Location. It acts for the whole team. Needs an Admin key, on a team with 10 sites or more.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"slug": "<slug>",
"journey": "<journey>"
},
"name": "sites_by_slug_journeys_by_journey_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | site slug, as in /api/sites | |
| journey | Yes | the journey's slug, as in its page's address /sites/{slug}/journeys/{journey} |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | A run asked for with Run now, and the run it made | |
| next_steps | No | calls that usually come next, each naming its tool |