You hear a job has ended in one of three ways. Pick the one that fits your caller.
1. Read it again: status_url and next_step
The answer that starts a job carries status_url, the URL that reads it. While the job runs, its answers also carry next_step: the exact call to make and how long to wait, for example:
next_step says what to do with the result, or is null.
Background run answers also keep poll_url, the same URL as status_url.
2. Get a webhook: webhook_url
Pass webhook_url when you start the job, and Valendata sends one POST to it when the job ends. Every long job above takes it except two: a repair the skill’s chat starts, and a workflow made from a task. Read those with their status_url. A schedule takes it too, for each run it fires.
- The body is what the job’s
status_urlreturns, plusevent. - It is signed like every Valendata webhook. See About webhooks for the signature, the retries and the address rules.
- It is sent once per job, however the job ended: finished, failed or stopped.
3. From an AI assistant: tasks
An MCP client that supports the tasks extension gets a task back from a long tool and reads it withtasks/get until it has ended. Which tools answer with a task, and the task’s fields, are in MCP Tasks.
A client without the extension gets the tool’s normal answer. Its text and its next_step name the tool to call next and when, for example Call get_skill_speed_trial(skill="books", trial_id="st_…") in about 3 minutes.
