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.

Request fields
FieldTypeRequirementNotes
clientKeystringRequiredYour API key. Write-only.
taskIdstring (uuid)RequiredThe 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

Response fields
FieldTypeRequirementNotes
errorIdinteger (0 | 1)Required0 for processing or ready; 1 for a failed task.
taskIdstring (uuid)RequiredThe polled task ID.
statusprocessing | ready | failedRequiredCurrent task state.
solutionobjectConditionalPresent when status is ready.
solution.tokenstringConditionalSolved captcha token. Treat it as a secret.
solution.userAgentstringOptionalUser agent reported by the worker, when available.
costnumberConditionalUSD charged, locked at createTask. Present when ready or failed.
errorCodestringConditionalTask 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

Shared authentication and transport errors apply to every operation. Open the full catalog. Full error catalog