Exa
Neural search, contents, find-similar, and answer
Proxies Exa’s neural-search API. The gateway exposes Exa’s sibling endpoints under /exa, all on the single host api.exa.ai:
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.
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-keyheader is injected, overwriting any client-supplied one. - The
Authorizationheader is stripped before forwarding — this also removes Exa’s second auth channel, so a client can’t smuggle a key past viaAuthorization.
Examples
Search
Answer
The response is Exa’s JSON, returned unchanged. For request and response fields, follow Exa’s documentation — the gateway does not alter them.