Wait for a job
wait_for_jobPolls an async job until it reaches a terminal status or timeout, then returns the job document with the file link.
Instructions
Polls an async job (job_id returned by a download endpoint) until it reaches a terminal status (CompletedJob, Error, NotFound, BadRequest) or the timeout elapses, then returns the job document with the file link.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | The job_id returned by the download endpoint. | |
| timeout_seconds | No | How long to wait (default 120). |