POST /webhook/chain-request
Links several configs so they run one after another. A routine is created for each config and the routines are chained together through next_routine_id.
Authentication: x-api-key. Cost: 3 credits for every routine in the chain.
Request
curl -X POST https://api.jetscrape.com/webhook/chain-request \
-H "Content-Type: application/json" \
-H "x-api-key: js_YOUR_API_KEY" \
-d '{ "config_ids": [101, 102, 103] }'config_ids(number array, required) — config ids in the order they should run.
Response
{
"success": true,
"message": "Chain created",
"head_routine_id": 34,
"chain": [
{ "step": 1, "config_id": 101, "routine_id": 34, "next_routine_id": 35 },
{ "step": 2, "config_id": 102, "routine_id": 35, "next_routine_id": 36 },
{ "step": 3, "config_id": 103, "routine_id": 36 }
]
}head_routine_id is the head of the chain. Trigger the whole chain by passing that id to POST /webhook/run-routine.
A typical chain
config 101 → collect product URLs from the category page
config 102 → pull details from each product page
config 103 → pull the review pagesLimitations
- Chain routines cannot be combined with one-time URL overrides — see Running Routines.
- A chain is linear. For branching or conditional steps, use Flows.
- If a step fails, later steps may not find the input they expect; verify each step with
check-job.
Chain or flow?
- Run saved configs in sequence — a chain request.
- Different request bodies per step, overrides, running a single step — flows.
- Manage the pipeline visually in the dashboard — flows.