Skip to main content
POST
Exa Answer
Generate an answer to a question using Exa search results, with optional citations and source text. This is a passthrough to Exa’s Answer API, exposed through the Novita gateway with a platform route prefix. To authenticate with your Novita API key, get one from the Novita dashboard. Base URL: https://api.novita.ai.

Quickstart

Running the quickstart above returns the following. The request returned 8 citations; three are shown here.

Request Headers

All endpoints require platform API authentication.
string
required
Use application/json.
string
default:"Bearer YOUR_API_KEY"
required
Platform API key, formatted as Bearer YOUR_API_KEY.

Request Body

string
required
Natural-language question or instruction. Minimum length is 1.
boolean
Whether to return source page text. Default is false.
object
JSON Schema Draft 7 object for structured answer output.

Examples

Basic answer

Structured answer

Answer with source text

Set text: true to return the full source text alongside each citation, useful when you want to display or re-verify the evidence.

List-shaped structured answer

An outputSchema can return an array when you expect several items rather than a single fact.

Response

string
Unique request identifier.
string | object
Generated answer. It can be structured according to the outputSchema provided in the request.
object[]
Search results used to generate the answer.

Errors

Errors are returned as a JSON envelope with code, reason, message, and metadata. The platform validates and authenticates the request before forwarding it to Exa, so some errors originate at the platform and others are surfaced from upstream. For validation failures, message is a JSON-encoded string carrying the detailed error and tag. The examples below show that inner detail decoded for readability.

Notes

  • All request bodies are JSON.
  • Extra Exa parameters not listed here may be passed through.
  • Response shapes can vary depending on request options.
  • This document intentionally omits billing-related fields.

References

For more details, see the Exa Answer API reference.
Last modified on July 30, 2026