HTTP API
Use the HTTP API from servers, notebooks and any language. There is no SDK to install; the API is plain JSON over HTTPS, and the API reference lists every endpoint.
Find, describe and the catalog work without a key. Everything else needs one.
API keys
Create keys at Settings → API, with agentrouter keys add <name>, or POST /v1/keys. The dashboard shows a newly created key once. Default scopes are read, invoke, topup, feedback and dispute; add manage only for keys that create other keys or budgets. Give each server or job its own key and a key budget, and revoke keys you no longer use.
Keep keys in your secret store. Never put them in client-side code, URLs or logs.
A complete call
Handling responses
See Errors for every code, and Runs for results, pagination and stopping.
Scripts and CI without code
The CLI wraps the same API with AGENTROUTER_API_KEY, exit codes and --json output, and writes results to files with --output.