API reference / POST
getTaskResult
Polls a task and returns processing, ready, or failed.
Request
Send a JSON body to https://api.solvemoor.com/getTaskResult. The key travels in the body as clientKey.
| Field | Type | Requirement | Notes |
|---|---|---|---|
clientKey | string | Required | Your API key. Write-only. |
taskId | string (uuid) | Required | The ID returned by createTask. |
POST /getTaskResult
curl -sS https://api.solvemoor.com/getTaskResult \
-H "Content-Type: application/json" \
-d '{
"clientKey": "YOUR_API_KEY",
"taskId": "<task-id>"
}'Placeholders only: YOUR_API_KEY, YOUR_SITE_KEY, and <task-id>. No solved token is shown.
Response
| Field | Type | Requirement | Notes |
|---|---|---|---|
errorId | integer (0 | 1) | Required | 0 for processing or ready; 1 for a failed task. |
taskId | string (uuid) | Required | The polled task ID. |
status | processing | ready | failed | Required | Current task state. |
solution | object | Conditional | Present when status is ready. |
solution.token | string | Conditional | Solved captcha token. Treat it as a secret. |
solution.userAgent | string | Optional | User agent reported by the worker, when available. |
cost | number | Conditional | USD charged, locked at createTask. Present when ready or failed. |
errorCode | string | Conditional | Task failure code when status is failed. |
Behavior
- status is processing while the task is queued, leased, or processing.
- status ready includes solution.token and the charged cost.
- A failed task is still HTTP 200 with errorId 1, status failed, errorCode, and cost 0.
- The retained result expires after CLIENT_RESULT_TTL; then the endpoint returns 410 ERROR_TASK_EXPIRED.
- A task that belongs to another key returns 404 ERROR_NO_SUCH_TASK.
Errors
ERROR_NO_SUCH_TASK404ERROR_TASK_EXPIRED410ERROR_CAPTCHA_UNSOLVABLE200ERROR_TASK_TIMEOUT200ERROR_PROXY_CONNECTION_FAILED200ERROR_PROXY_BANNED200ERROR_SITE_UNREACHABLE200ERROR_WORKER_FAILURE200
Shared authentication and transport errors apply to every operation. Open the full catalog. Full error catalog