POST
/
research
/
tasks
curl -X POST 'https://api.exa.ai/research/tasks' \
  -H 'x-api-key: YOUR-EXA-API-KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "input": {
      "instructions": "What species of ant are similar to honeypot ants?"
    },
    "output": {
      "schema": {
        "type": "object",
        "required": ["answer"],
        "properties": {
            "answer": { "type": "string" }
        },
        "additionalProperties": false
      }
    }
  }'
{
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}

Get your Exa API key

Authorizations

x-api-key
string
header
required

API key can be provided either via x-api-key header or Authorization header with Bearer scheme

Body

application/json

Response

200 - application/json

OK

The response is of type object.