Batches

Retrieve a single batch by ID.

get/batches/{id}

Request

  • Base URL
    https://api.exa.ai
  • URL
    https://api.exa.ai/batches/{id}
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Path parameters

idstring required

Batch ID.

Headers

Exa-Beta'batches-2026-06-06' required

Required beta token for the Batch API.

Response

OK

idstring required

Batch ID. New batch IDs are returned with the batch_ prefix.

object'batch' required

The object type, always batch.

status'in_progress' | 'completed' | 'cancelling' | 'cancelled' | 'expired' required

Lifecycle status of the batch.

createdAtstring date-time required

When the batch was created.

expiresAtstring date-time nullable required

When the batch expires, or null if it does not expire.

endedAtstring date-time nullable required

When the batch reached a terminal status, or null while it is still running.

resultsUrlstring nullable required

Short-lived download URL for the batch results file (JSONL), or null until the batch completes. Fetch it directly, without an API key. Retrieve the batch again for a fresh URL after it expires.

metadataobject required

Caller-provided key-value metadata for your own tracking.

Changes

    • info

      added the non-success response with the status

    • warning

      deleted the header request parameter Exa-Version

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status