Check the task your Run request created; the Run call itself doesn't wait, and returns a taskid and socketaccesstoken.
Poll
POST https://api.wiro.ai/v1/Task/Detailwithtasktoken(the socketaccesstoken) ortaskid: every 3 seconds at first, less often for long tasks.Stop when
tasklist[0].statusistask_postprocess_endortask_cancel, not attask_end, which comes before the file upload.task_errorisn't final, so keep waiting (if it never changes, use Task/Kill).At
task_postprocess_end,pexit"0"means success; any other value means it failed. Results are inoutputs(text models also indebugoutput);totalcostis the cost.
Or follow the task over a WebSocket, or set a callbackUrl so Wiro POSTs the result when it completes. /sync on the Run URL waits up to 40 minutes; after an HTTP 504 the task keeps running and is billed as usual, so don't run it again.
More: first request, slow responses, task statuses and Task Detail docs.
