Tasks
Create a task
Run a new task against an existing worker and wait for the result. Send a taskId of a prior task to add a follow-up turn instead of starting a fresh task. Send multipart/form-data to attach files; the bytes are bootstrapped into the worker's workspace before the task starts. The task runs to completion on the server even if the connection drops; subscribe to task webhooks for long-running tasks.
post/api/tasks
Request body
Example request
{
"input": "What's the weather today in Barcelona?",
"budget": "standard",
"taskId": "tsk_2Z-YWz3hFq6VlW",
"workerId": "wrk_vk81XUHKHG-qr4"
}Response
Worker object reflecting the final task result.
Example response
{
"url": "https://v3.handinger.com/worker/wrk_vk81XUHKHG-qr4"
}