GET Job Status

Poll for status and retrieve results for a Wire task

GEThttps://api.anakin.io/v1/wire/jobs/{id}

Retrieve the status and results of a Wire task. Poll this endpoint until the job reaches completed or failed. See the Polling Jobs guide for recommended patterns.


Path Parameters

ParameterTypeDescription
id requiredstringThe job ID returned from POST /v1/wire/task

Response — Processing

200 OK
{
  "status": "processing",
  "retry_after_ms": 2000
}

Response — Completed

200 OK
{
  "status": "completed",
  "data": {
    "name": "Jane Doe",
    "headline": "Software Engineer at Acme Corp",
    "location": "San Francisco, CA",
    "connections": 500
  },
  "credits_used": 2,
  "execution_ms": 8420
}

Response — Completed (file result)

200 OK

Some actions return a file (e.g. a PDF) instead of inline JSON. In that case data is null and a files array lists the artifacts. Fetch the bytes from GET /jobs/{id}/download.

{
  "status": "completed",
  "data": null,
  "files": [
    {
      "name": "statement-2026-07-15.pdf",
      "content_type": "application/pdf",
      "size_bytes": 128623
    }
  ],
  "credits_used": 1,
  "execution_ms": 5575
}

Response — Failed

200 OK
{
  "status": "failed",
  "error": {
    "code": "EXECUTION_FAILED",
    "message": "The target page could not be loaded."
  },
  "credits_used": 0
}

Response Fields

FieldTypeDescription
statusstringprocessing, completed, or failed
retry_after_msnumberMilliseconds to wait before polling again (present when processing)
dataobjectStructured result data (present when completed; null for a file result)
filesarrayFile artifacts, present when the result is a file (then data is null). Each entry is { name, content_type, size_bytes }. Download the bytes via GET /jobs/{id}/download
credits_usednumberCredits charged for this job. 0 on failure (credits are refunded)
execution_msnumberTotal execution time in milliseconds
errorobjectError details (present when failed)

Job Statuses

StatusDescription
processingJob is queued or actively running
completedJob finished successfully — data is populated
failedJob encountered an error — credits were refunded

Error Responses

CodeHTTPWhen
NOT_FOUND404The job doesn't exist, or belongs to another user
{
  "status": "error",
  "error": { "code": "NOT_FOUND", "message": "Job not found" }
}

Code Examples

curl https://api.anakin.io/v1/wire/jobs/7c3f1a2b-4d5e-6f7a-8b9c-0d1e2f3a4b5c \
  -H "X-API-Key: your_api_key"

For polling patterns, see the Polling Jobs reference.