GET Get Results

Poll for agentic search status and retrieve results

Get Search Result

GEThttps://api.anakin.io/v1/agentic-search/{id}

Retrieve the status and results of an agentic search job. Agentic searches run through multiple stages and may take several minutes — poll every 10 seconds.


Path Parameters

ParameterTypeDescription
id requiredstringThe job ID returned from the submit endpoint

Response — Processing

202 Accepted
{
  "job_id": "3f8aa45d-6ea3-4107-88ce-7f39ecf48a84",
  "status": "pending",
  "message": "Job is pending",
  "created_at": "2024-01-01T12:00:00.000Z"
}

Response — Completed

200 OK
{
  "id": "3f8aa45d-6ea3-4107-88ce-7f39ecf48a84",
  "status": "completed",
  "jobType": "agentic_search",
  "generatedJson": {
    "summary": "Summary of the research findings...",
    "structured_data": {
      "developments": [
        {
          "title": "Quantum Computing Advances",
          "description": "Recent developments in quantum computing...",
          "organization": "IBM",
          "date": "2024-01"
        }
      ]
    },
    "data_schema": {
      "description": "Schema for structured data extraction",
      "fields": {
        "developments": {
          "type": "array",
          "description": "List of developments"
        }
      }
    }
  },
  "createdAt": "2024-01-01T12:00:00.000Z",
  "completedAt": "2024-01-01T12:05:00.000Z",
  "durationMs": 33500
}

Response Fields

FieldTypeDescription
idstringUnique identifier for the job
statusstringpending, processing, completed, or failed
jobTypestringAlways agentic_search for this endpoint
generatedJsonobjectThe full agentic search result (see below)
createdAtstringISO 8601 timestamp of job creation
completedAtstringISO 8601 timestamp of completion
durationMsnumberTotal processing time in milliseconds

generatedJson Fields

FieldTypeDescription
summarystringConcise summary of findings
structured_dataobjectDynamic structured data matching data_schema.fields
data_schemaobjectSchema describing the structured data format

Job Statuses

StatusDescription
pendingJob is queued
processingResearch pipeline is running
completedResearch report is ready
failedJob encountered an error

Code Examples

curl -X GET https://api.anakin.io/v1/agentic-search/3f8aa45d-6ea3-4107-88ce-7f39ecf48a84 \
  -H "X-API-Key: your_api_key"

For polling patterns, see the Polling Jobs reference.