> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Exa Agent Runs submit

> Hand a research task to an agent that works in the background.

Hand a research task to an agent that works in the background. `query` and an `Idempotency-Key` are required; `effort` trades depth against time, `outputSchema` shapes the result, `dataSources` restricts where it looks, and `previousRunId` continues an earlier run. Asynchronous. Submitting returns HTTP 202 and a job envelope — `id`, `object`, `endpoint`, `status`, `createdAt`, `completedAt`, `pricing`, `output`, `error` — with `output` still null. Poll [`get_exa_agent_run`](https://aisa.one/docs/api-reference/search/get_exa-agent-run) until terminal; `output` then carries `text`, `structured` and `grounding`. A one-sentence question completed in well under a minute. Billed at a flat rate per run — `pricing.billingMode` is `fixed_request`, so unlike a Firecrawl crawl the price does not grow with what it finds. Use it when a report is the deliverable. For an answer you read in one sitting, [`post_exa_answer`](https://aisa.one/docs/api-reference/search/post_exa-answer) returns in about two seconds. Send a fresh `Idempotency-Key` per distinct task.

> [!NOTE]
>
> **First time?** Point any MCP client at `https://mcp.aisa.one/mcp` — Claude
> Code, Codex, Cursor, VS Code and the rest. Authorization is OAuth: the client
> opens a browser, you click Allow once, and there is no key to paste. Your
> agent then reaches every endpoint through a few meta tools: `search`,
> `list_categories`, `get_details` and `batch_quote` are free, `batch_use` is
> billed per call. Setup per client is in
> [Connect via MCP](https://aisa.one/docs/agent-quickstart.md); the live tool list and what each call
> costs are on [aisa.one/mcp](https://aisa.one/mcp#connect).

[Set this endpoint up in your agent →](https://aisa.one/mcp?from=/api-reference/search/post_exa-agent-runs)

## Request contract

* **Method and path:** POST /apis/v1/exa/agent/runs
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/exa/agent/runs`
* **Idempotency-Key:** header; required
* **X-AISA-Max-Price-USD:** header; optional
* **X-AISA-Cost-Mode:** header; optional

[Complete OpenAPI definition](https://aisa.one/docs/openapi/exa.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "post_exa_agent_runs",
  "method": "POST",
  "path": "/apis/v1/exa/agent/runs",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [
    {
      "description": "Trimmed UTF-8 length must be 1 through 191 bytes.",
      "in": "header",
      "name": "Idempotency-Key",
      "required": true,
      "schema": {
        "pattern": "\\S",
        "type": "string"
      }
    },
    {
      "description": "Optional maximum customer authorization in USD, validated by the runtime price parser.",
      "in": "header",
      "name": "X-AISA-Max-Price-USD",
      "schema": {
        "type": "string"
      }
    },
    {
      "description": "Return a read-only cost quote instead of submitting a job.",
      "in": "header",
      "name": "X-AISA-Cost-Mode",
      "schema": {
        "enum": [
          "quote"
        ],
        "type": "string"
      }
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "example": {
          "query": "Find the official documentation for Go"
        },
        "schema": {
          "additionalProperties": false,
          "properties": {
            "effort": {
              "default": "minimal",
              "description": "Only minimal effort is supported; omitted, empty and null values normalize to minimal.",
              "enum": [
                null,
                "",
                "minimal"
              ],
              "type": [
                "string",
                "null"
              ]
            },
            "query": {
              "description": "Non-empty query after trimming whitespace.",
              "pattern": "\\S",
              "type": "string"
            },
            "systemPrompt": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "query"
          ],
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

Published reference price: \$0.1 USD per completed job. Your account price may differ; use a request quote where supported.


## OpenAPI

````yaml openapi/exa.json POST /apis/v1/exa/agent/runs
openapi: 3.1.0
info:
  description: ''
  title: Exa
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    exa:
      description: ''
      title: Exa
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: d10529a4463a002dd39ad505e0bc30212230a00b2034082221e854d90728a9b8
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/exa/agent/runs
    - /apis/v1/exa/answer
    - /apis/v1/exa/contents
    - /apis/v1/exa/search
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:ab46e78f199b7355eb8b0849ccc6b69f09ed9c898a6d7b83d8a86b70a43c863a
    facts_hash: d10529a4463a002dd39ad505e0bc30212230a00b2034082221e854d90728a9b8
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: exa
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/exa/agent/runs:
    post:
      summary: Exa Agent Runs submit
      description: >-
        Owner-scoped local asynchronous job lifecycle. Disabling new admission
        does not disable existing job reads or cancellation. Runtime
        availability and access policy also apply.
      operationId: post_exa_agent_runs
      parameters:
        - description: Trimmed UTF-8 length must be 1 through 191 bytes.
          in: header
          name: Idempotency-Key
          required: true
          schema:
            pattern: \S
            type: string
        - description: >-
            Optional maximum customer authorization in USD, validated by the
            runtime price parser.
          in: header
          name: X-AISA-Max-Price-USD
          schema:
            type: string
        - description: Return a read-only cost quote instead of submitting a job.
          in: header
          name: X-AISA-Cost-Mode
          schema:
            enum:
              - quote
            type: string
      requestBody:
        content:
          application/json:
            example:
              query: Find the official documentation for Go
            schema:
              additionalProperties: false
              properties:
                effort:
                  default: minimal
                  description: >-
                    Only minimal effort is supported; omitted, empty and null
                    values normalize to minimal.
                  enum:
                    - null
                    - ''
                    - minimal
                  type:
                    - string
                    - 'null'
                query:
                  description: Non-empty query after trimming whitespace.
                  pattern: \S
                  type: string
                systemPrompt:
                  type:
                    - string
                    - 'null'
              required:
                - query
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  currency:
                    type:
                      - string
                      - 'null'
                  estimate_kind:
                    type:
                      - string
                      - 'null'
                  estimated_at:
                    format: date-time
                    type:
                      - string
                      - 'null'
                  estimated_cost_micros_usd:
                    type:
                      - integer
                      - 'null'
                  max_cost_micros_usd:
                    type:
                      - integer
                      - 'null'
                  may_exceed_estimate:
                    type:
                      - boolean
                      - 'null'
                  metadata:
                    additionalProperties: {}
                    type:
                      - object
                      - 'null'
                  object:
                    type:
                      - string
                      - 'null'
                  pricing_version:
                    type:
                      - string
                      - 'null'
                required:
                  - currency
                  - estimate_kind
                  - estimated_at
                  - estimated_cost_micros_usd
                  - may_exceed_estimate
                  - object
                type: object
          description: >-
            Read-only cost quote when X-AISA-Cost-Mode is quote; no job is
            created.
        '202':
          content:
            application/json:
              schema:
                properties:
                  completedAt:
                    format: date-time
                    type:
                      - string
                      - 'null'
                  createdAt:
                    format: date-time
                    type:
                      - string
                      - 'null'
                  endpoint:
                    type:
                      - string
                      - 'null'
                  error:
                    properties:
                      code:
                        type:
                          - string
                          - 'null'
                      message:
                        type:
                          - string
                          - 'null'
                    type:
                      - object
                      - 'null'
                  id:
                    type:
                      - string
                      - 'null'
                  object:
                    const: integration_async_job
                    type: string
                  output: {}
                  outputExpired:
                    type:
                      - boolean
                      - 'null'
                  pricing:
                    properties:
                      authorizedMicrosUSD:
                        type:
                          - integer
                          - 'null'
                      billingMode:
                        type:
                          - string
                          - 'null'
                      currency:
                        type:
                          - string
                          - 'null'
                      finalMicrosUSD:
                        type:
                          - integer
                          - 'null'
                    type:
                      - object
                      - 'null'
                  status:
                    enum:
                      - queued
                      - running
                      - completed
                      - failed
                      - cancelled
                    type: string
                required:
                  - completedAt
                  - createdAt
                  - endpoint
                  - error
                  - id
                  - object
                  - output
                  - pricing
                  - status
                type: object
          description: Success
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.