Authorization header with your API key:
Content-Type: application/json.
Get an API key
Create and manage keys from your dashboard at aisearchapi.dev. New accounts start with 500 free credits — no card required. Sign-up requires a work email address — personal and disposable providers (gmail, outlook, etc.) aren’t accepted.1
Sign in to the dashboard
Go to aisearchapi.dev and sign in (or create an
account).
2
Create your team workspace
On first sign-in you’ll be asked to create a team — every workspace on AI
Search API is a team, so keys, credits, and billing all live under it. Name
it and continue; you can invite teammates later from Settings → Members.
3
Create a key
In your team workspace, open Settings → API Keys and generate a new key.
Copy it immediately — the full value is shown only once.
4
Store it as an environment variable
Keep the key in a server-side secret, for example
AISEARCH_API_KEY. Never
commit it to source control.Authenticate a request
Send the key in theAuthorization header on every call.
Keep keys server-side
If a key is ever exposed, revoke it in the dashboard and issue a new one.Auth errors
Every error response uses the same flat envelope — a stablecode, an actionable error message, the request’s correlation id, and a deep link into the error catalog:
401:
Returned by the core data-plane endpoints (
POST /v1/search, GET /v1/jobs,
/v1/usage, /v1/artifacts) whenever the key is unusable — this covers a
missing Authorization header, a malformed header, and a well-formed key
that is wrong, revoked, or unknown. On these endpoints, a missing key and an
invalid key are indistinguishable.Returned only by the account-management endpoints when no
Authorization
header is sent. The core data-plane endpoints never emit this — they return
AUTH_INVALID instead.No auth required for health
The liveness endpoint is public and does not require a key:GET /v1/surfaces and GET /v1/regions are intentionally public, so an agent or client can enumerate the live capability matrix and region targeting before it has a key. Their data is public and safe. Every other /v1/* route returns 401 AUTH_INVALID without a valid key.
Make your first request
Send a search and read the result, end to end.