POST Research Query

Start an agentic research job

POSThttps://api.anakin.io/v1/agentic-search

Start an agentic research pipeline. The job runs through 4 stages (query refinement, web search, citation scraping, analysis) and may take several minutes to complete. Poll for results using GET /v1/agentic-search/{id}.


Request Body

{
  "prompt": "Comprehensive analysis of quantum computing trends"
}
ParameterTypeDescription
prompt requiredstringResearch query or question

Response

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

Response Fields

FieldTypeDescription
job_idstringUnique identifier for the agentic search job
statusstringJob status (pending)
messagestringConfirmation message
created_atstringISO 8601 timestamp of job creation

Use the job_id with GET /v1/agentic-search/{id} to poll for results. Agentic searches typically take longer than standard scrapes — poll every 10 seconds.


Code Examples

curl -X POST https://api.anakin.io/v1/agentic-search \
  -H "X-API-Key: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Comprehensive analysis of quantum computing trends"
  }'