Exa

Neural search, contents, find-similar, and answer

View as Markdown

Proxies Exa’s neural-search API. The gateway exposes Exa’s sibling endpoints under /exa, all on the single host api.exa.ai:

POST /exa/<endpoint> → https://api.exa.ai/<endpoint>

POST only. Every control travels in the JSON body and is forwarded unchanged.

Endpoints

The gateway accepts exactly this whitelist; any other subpath returns the gateway’s 404 without reaching Exa.

EndpointPurpose
searchNeural / keyword web search
contentsFetch contents for result URLs
findSimilarFind pages similar to a URL
answerGenerate an answer with sources

Exa’s async /research API is deliberately not exposed.

What the gateway injects and strips

Exa accepts its key as either an x-api-key header or an Authorization: Bearer token. The gateway injects the header and drops the bearer, foreclosing both channels:

  • The x-api-key header is injected, overwriting any client-supplied one.
  • The Authorization header is stripped before forwarding — this also removes Exa’s second auth channel, so a client can’t smuggle a key past via Authorization.

Examples

The response is Exa’s JSON, returned unchanged. For request and response fields, follow Exa’s documentation — the gateway does not alter them.