Reference
Read a task
The task's current state. Results are kept for 10 minutes after the task finishes. With ?wait=N the call returns as soon as the task finishes, or after N seconds with its current state.
Authorization
Your API key in the Authorization header: Bearer sy_live_…. Clients that can’t set that header send the same key as X-API-Key.
Parameters
- idstring · in the pathrequired
- waitinteger · in the query · 0 to 60
Seconds to wait for the task to finish (0-60, default 0).
Answers
- 200
The task.
Fields of the answer
- idstringrequired
- typestringrequired
The captcha kind, as in the request.
- statusstringrequired
queued, running, ready (solved) or failed. Tolerate new values.
- sitestring
The registrable domain the task was routed for.
- policystring
The routing policy used (balanced, cheapest, fastest, pinned).
- reservedstringrequired
An amount in US dollars, as a decimal string.
- solutionobject
Present when status is ready.
Fields of solution- tokenstringrequired
Submit this as the captcha response.
- userAgentstring
Reuse this user agent with the token, when present.
- cookiesobject
- errorobject
- Fields of error
- codestringrequired
A stable error code (see the error code list); tolerate new values.
- messagestringrequired
- providerstring
Who solved it.
- coststring
An amount in US dollars, as a decimal string.
- attemptsobject[]
Every attempt, in order.
Fields of attempts- nintegerrequired
- providerstringrequired
- codestring
The error code, absent for the solving attempt.
- durationMsintegerrequired
- createdAtstring · date-timerequired
- finishedAtstring · date-time
- 400
The request is invalid (
BAD_PARAMS,BAD_URL,UNSUPPORTED_TYPE,BAD_SITEKEY,BAD_PROXY, ...); 413 when the body is over 64 KiB. - 401
The API key is missing, invalid or revoked (
UNAUTHORIZED).Header
WWW-Authenticate. - 403
The key may not use this product (
FORBIDDEN). - 404
No such task for this account, or its result has expired (
NOT_FOUND). - 500
Something went wrong on our side (
INTERNALand other ops codes).
Generated from openapi.yaml 0.21.0