API overview
Base URL, authentication, the endpoint map, errors, idempotency, pagination, rate limits and money.
REST over HTTPS, JSON in and out, versioned under /v1. This page covers what every endpoint shares: authentication, the endpoint map, errors, idempotency, pagination, rate limits, money and the spend guard. The interactive OpenAPI reference is at api.routergrowth.com/api-reference, with the schema at /openapi.json.
Base URL
https://api.routergrowth.com/v1
Send request bodies as JSON with Content-Type: application/json. Without that header the body is not read as JSON and the call fails with invalid_request.
Authentication
Every endpoint takes a bearer key, except the public catalog (POST /v1/discover, GET /v1/catalog/*), GET /v1/referrals/terms, the feedback routes and the dashboard's sign-in routes:
curl -X POST https://api.routergrowth.com/v1/inspect \
-H "Authorization: Bearer $ROUTERGROWTH_API_KEY" \
-H "Content-Type: application/json" \
-d '{"capability": "contact.find"}'
Mint keys in the dashboard under Settings > API keys (a signed-in session: an API key cannot mint keys), then list and revoke them with /v1/api-keys. A key is shown once and stored only as a hash. A missing, unknown, revoked or expired key answers 401 invalid_api_key. GET /v1/auth/whoami returns the workspace and environment behind a key.
The hosted API issues live keys (rg_live_) only: runs call real providers and bill the wallet, and a paid call is never served simulated data. The rg_test_ prefix belongs to development deployments of the API, where providers are mocked; api.routergrowth.com does not mint test keys.
The same header also carries the dashboard's session token (rg_sess_) and the token of an app connected over OAuth (rg_oauth_, such as an MCP connector). Besides the public routes, a connected app may call POST /v1/inspect, POST /v1/run, GET /v1/runs, GET /v1/runs/{id} and its cancel, GET /v1/wallet, GET /v1/wallet/transactions, GET /v1/events, GET /v1/spend-guard and GET /v1/auth/whoami, and gets 403 forbidden on the rest. The MCP server at /mcp takes the same API key in the same header.
Endpoints
| Endpoints | What they do |
|---|---|
POST /, GET / |
Search capabilities and raw endpoints by job description. No key. |
GET /, GET / |
Every listed capability, or one, with its schema, offers and catalog prices. No key. |
GET /, GET /, GET / |
The providers, one provider, and the raw endpoints it serves. No key. |
POST / |
The contract and your exact price for one capability or raw endpoint. Free. |
POST / |
Run a capability or a raw endpoint under max_. Billable. |
GET /, GET /, POST / |
List, poll and cancel runs. |
GET /, POST / |
Everything already done to one subject (an email, domain, LinkedIn URL, handle, phone or name), read from the run log; the batch form dedupes a list. Free. |
POST /, GET /, GET/, POST / |
Saved queries: each refresh returns only the new and changed records. |
GET /, GET/, GET/, POST / |
Events and webhooks: replies, bounces, LinkedIn messages and dropped sessions, read as a stream or pushed to your URL, signed. Free. |
/ and the routes under it (rows, query, CSV export and import), /, /, GET/ |
Workspace tables, the suppression list and the repeat-send guard, opt-in per workspace. Free. |
GET /, GET /, POST /, POST /, GET/, GET /, GET / |
Balance, ledger, top-ups by card or by USDC over x402, auto top-up and invoices. |
GET/ |
The workspace's daily cap and per-run ceiling. |
GET /, POST /, POST /, POST / |
The optional monthly plan. |
GET /, GET / |
Your referral link and earnings; terms, what an invite offers, needs no key. |
GET/, DELETE / |
List, mint and revoke keys. |
GET/, DELETE / |
Connected accounts for outbound. |
GET / |
The workspace's sending domains and inboxes, plus domains bought with domain. and not yet set up for email (registered_). Free, no provider call. |
GET /, DELETE / |
Apps connected over OAuth (MCP connectors); a disconnect takes effect at once. |
POST /, GET /. |
Report a missing capability, a bug or a misleading doc on the open Agent Feedback Protocol. No key. |
Changing auto top-up, reading invoices, starting, changing or cancelling a plan, opening the billing portal, minting a key, and connecting or disconnecting an account need a dashboard session: an API key gets 403 forbidden. The sign-in routes under /v1/auth/ issue those sessions for the dashboard; an integration needs none of them except GET /v1/auth/whoami.
The error envelope
Every error, from any endpoint, has the same shape. request_id is also sent as the X-Request-Id header:
{
"error": {
"code": "insufficient_balance",
"message": "Available balance $0.02 is below the $0.05 this run reserves. Add $20 by card: https://api.routergrowth.com/v1/pay/... (each link opens a secure checkout, no sign-in needed).",
"request_id": "req_8f3c1a9e2b7d4f60a1c5e9b2d7f0c3a4",
"details": {"add_funds": {"amount": "20.00", "url": "https://api.routergrowth.com/v1/pay/..."}}
}
}
Branch on code (stable and enumerable: see Errors) and show message to people. details, when present, carries structured context: the checkout links on insufficient_balance, each failing field (details.errors) on a validation failure, retry_after_seconds on rate_limited. A body that fails validation answers 400 invalid_request, never 422. Every API error also carries Link: </feedback>; rel="agent-feedback": include the request_id in a feedback report or when writing to support.
Idempotency
Send an Idempotency-Key header (any unique string) on POST /v1/run to make it safe to retry; it is the only endpoint that reads one. A key already used returns its original run with an Idempotent-Replay: true header, without running or billing again. Keys are scoped to the workspace and never expire, and a replay ignores the body, so use a new key for each distinct call. A run refused before any provider was called (status failed, no attempts, nothing charged) frees its key, so the corrected retry runs under the same one; retry a blocked run, or one that reached a provider, with a new key. Details: Run.
Pagination
Lists take a limit. Where a list continues past one page, the answer says how to read the next one:
| List | Next page |
|---|---|
table rows, GET / |
pass next_ back as cursor; it is null on the last page |
GET / (oldest first) |
pass next_ back as after; has_ says whether more is waiting |
GET / |
pass next_ back as offset; it is null on the last page |
people. results |
pass the run result's next_ as input. with the same filters (People search) |
GET /v1/runs, GET /v1/wallet/transactions and GET /v1/watch return the newest items, up to limit (default 50, at most 200), with no cursor: narrow them with their filters.
Rate limits
Limits are counted per key (the bearer sent), or per IP address for calls without one:
| Route | Limit |
|---|---|
POST / |
60 requests a minute |
GET /, POST / |
120 a minute |
everything else under / |
600 a minute |
POST / (the MCP server) |
300 a minute |
POST / |
30 a minute and 300 an hour, per IP |
One IP address also has a ceiling about ten times a single key's, shared by every key it sends. Routes under /v1/auth/, GET /v1/auth/whoami included, count per IP whatever key is sent, and the sign-in routes among them are tighter. Past a limit the call answers 429 rate_limited with a Retry-After header and details.retry_after_seconds; nothing ran, so retry after that delay. Request bodies are capped at 1 MB, and at 8 MB on POST /v1/run and POST /mcp (inline attachments); a larger body answers 413 payload_too_large.
Money
Amounts are decimal strings in US dollars, with up to six decimal places ("0.0312", "20"), kept as integer microdollars on an append-only ledger. Send them as strings too: "max_cost": "0.10", not 0.1, which fails validation. Every run holds its maximum charge on the wallet before the provider call and settles or releases it afterwards, so no run is charged without a hold. A capability quotes its price before it runs; a raw endpoint settles on the provider's measured cost after the run, never above max_cost (how a run is held and settled).
Spend guard
Two optional controls stop a run before any money moves:
- the daily cap: when today's settled charges plus open holds (UTC day) would pass
daily_limit, the run endsblockedwithbudget_exceeded; - the per-run ceiling: a run whose hold would exceed
per_run_limitendsblockedwithcost_limit_exceeded.
GET /v1/spend-guard returns enabled, daily_limit, spent_today, remaining_today, resets_at (the next 00:00 UTC), timezone and per_run_limit. POST /v1/spend-guard sets them:
{"enabled": true, "daily_limit": "25", "per_run_limit": "1"}
enabled switches the daily cap and is required on every POST; daily_limit falls back to "25" when omitted, so send both as GET returned them. per_run_limit applies whenever it is set: omit it to leave it unchanged, send null to turn it off. The floors are "0.01" for daily_limit and "0.001" for per_run_limit. POST /v1/run answers a blocked run with 402 and the code; the stored run shows status: blocked and a controls entry naming the control. Nothing is charged: raise or disable the control, or wait for the reset.
The guard sees runs only: charges made outside a run (connected-account seats, and the monthly renewals of sending domains, inboxes and warm-ups) neither count toward spent_today nor stop at the cap.
Reading this as an agent? This page as markdown: /docs/api/overview.md · every page: /docs/llms.txt