Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Exa Agent API

The Agent API from Exa — 4 operation(s) for agent.

Exa Agent API is one of 19 APIs that Exa publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 2 JSON Schema definitions.

Tagged areas include Agent. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a JSON-LD context, and 2 JSON Schemas.

This API exposes 6 operations across 4 paths, and defines 19 schemas. It is described by OpenAPI 3.1.0, at version 2.0.0.

Requests are made against a single base URL, https://api.exa.ai.

6 operations 4 paths 19 schemas 1 DELETE3 GET2 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
2.0.0
Base URL
https://api.exa.ai
Authentication
API Key, HTTP Bearer
Resource Areas
1

Authentication & Security 2

Exa Agent API declares 2 security schemes for authenticating requests. An API key is passed in the header as x-api-key (apiKey). It accepts HTTP bearer tokens (bearer). By default, every request must be authenticated.

  • apiKey — Pass your Exa API key in the x-api-key header. You can also authenticate with Authorization: Bearer .
  • bearer — Pass your Exa API key in the x-api-key header. You can also authenticate with Authorization: Bearer .

Paths & Operations 6

Across 4 paths, the API surfaces 6 operations — 1 DELETE, 3 GET, 2 POST. Each is listed below with its method, path, parameters, and response codes.

Agent 6
POST
/agent/runs
Create a run
createAgentRun 2 params body → 200400401429500
GET
/agent/runs
List runs
listAgentRuns 3 params → 200400401500
GET
/agent/runs/{id}
Get a run
getAgentRun 2 params → 200400401404429500
DELETE
/agent/runs/{id}
Delete a run
deleteAgentRun 2 params → 200400401404429500
POST
/agent/runs/{id}/cancel
Cancel a run
cancelAgentRun 2 params → 200400401404429500
GET
/agent/runs/{id}/events
List run events
listAgentRunEvents 6 params → 200400401404429500

Schemas 19

The contract defines 19 schemas that model the data the API accepts and returns. The most detailed are AgentRun (10 properties), CreateAgentRunRequest (8 properties), AgentRunRequest (7 properties), AgentCostDollars (5 properties). Each schema is shown below with its type and property counts.

AgentStopReason
string
AgentEffort
string
Cost and reasoning effort preference for the run. auto lets Exa choose the appropriate effort.
AgentRunEvent
object
4 properties 4 required
AgentCitation
object
2 properties 1 required
AgentUsage
object
4 properties 4 required
AgentRunOutput
object
3 properties 3 required
AgentRun
object
10 properties 10 required
DeleteAgentRunResponse
object
3 properties 3 required
AgentGrounding
object
4 properties 2 required
AgentRunStatus
string
AgentRunList
object
4 properties 4 required
CreateAgentRunRequest
object
8 properties 1 required
AgentRunEventList
object
4 properties 4 required
AgentRunRequest
object
Canonicalized request fields stored with the run.
7 properties
AgentErrorResponse
object
1 property 1 required
AgentRunId
string
Agent run ID. New run IDs are returned with the agentrun prefix.
AgentCostDollars
object
5 properties 5 required
JsonValue
Any JSON value.
AgentError
object
3 properties 3 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

exa-ai-agent-api-openapi.yml Raw ↑

Other APIs Exa publishes across the network.

Exa Answer API
Exa Contents API
Exa Enrichments API
Exa Events API
Exa Imports API
Exa Items API
Exa Monitors API
Exa Monitors Runs API
Exa Research API
Exa Runs API
Exa Search API
Exa Searches API