Signup comes with $1 in credit. No subscription needed.Claim your $1
Docs: API overview
API reference

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 /v1/discover, GET /v1/catalog/search?q= Search capabilities and raw endpoints by job description. No key.
GET /v1/catalog/capabilities, GET /v1/catalog/capabilities/{capability} Every listed capability, or one, with its schema, offers and catalog prices. No key.
GET /v1/catalog/providers, GET /v1/catalog/providers/{provider}, GET /v1/catalog/providers/{provider}/endpoints The providers, one provider, and the raw endpoints it serves. No key.
POST /v1/inspect The contract and your exact price for one capability or raw endpoint. Free.
POST /v1/run Run a capability or a raw endpoint under max_cost. Billable.
GET /v1/runs, GET /v1/runs/{id}, POST /v1/runs/{id}/cancel List, poll and cancel runs.
GET /v1/history?q=, POST /v1/history 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 /v1/watch, GET /v1/watch, GET/DELETE /v1/watch/{id}, POST /v1/watch/{id}/refresh Saved queries: each refresh returns only the new and changed records.
GET /v1/events, GET/POST /v1/webhooks, GET/PATCH/DELETE /v1/webhooks/{id}, POST /v1/webhooks/{id}/test Events and webhooks: replies, bounces, LinkedIn messages and dropped sessions, read as a stream or pushed to your URL, signed. Free.
/v1/tables and the routes under it (rows, query, CSV export and import), /v1/suppressions, /v1/outbound-guard, GET/POST /v1/features Workspace tables, the suppression list and the repeat-send guard, on for every workspace. Free.
GET /v1/wallet, GET /v1/wallet/transactions, POST /v1/wallet/topups/checkout, POST /v1/wallet/topups/x402, GET/POST /v1/wallet/auto-topup, GET /v1/wallet/invoices, GET /v1/wallet/invoices/{id} Balance, ledger, top-ups by card or by USDC over x402, auto top-up and invoices.
GET/POST /v1/spend-guard The workspace's daily cap and per-run ceiling.
GET /v1/plan, POST /v1/plan, POST /v1/plan/cancel, POST /v1/plan/portal The optional monthly plan.
GET /v1/referrals, GET /v1/referrals/terms Your referral link and earnings; terms, what an invite offers, needs no key.
GET/POST /v1/api-keys, DELETE /v1/api-keys/{id} List, mint and revoke keys.
GET/POST /v1/{linkedin,instagram,whatsapp,gmail}/accounts, DELETE /v1/{network}/accounts/{name} Connected accounts for outbound.
GET /v1/email/inboxes The workspace's sending domains and inboxes, plus domains bought with domain.register and not yet set up for email (registered_domains). Free, no provider call.
GET /v1/connected-apps, DELETE /v1/connected-apps/{id} Apps connected over OAuth (MCP connectors); a disconnect takes effect at once.
POST /feedback, GET /.well-known/agent-feedback 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 /v1/suppressions pass next_cursor back as cursor; it is null on the last page
GET /v1/events (oldest first) pass next_after back as after; has_more says whether more is waiting
GET /v1/catalog/providers/{provider}/endpoints pass next_offset back as offset; it is null on the last page
people.search results pass the run result's next_cursor as input.cursor 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 /v1/discover 60 requests a minute
GET /v1/catalog/*, POST /v1/inspect 120 a minute
everything else under /v1 600 a minute
POST /mcp (the MCP server) 300 a minute
POST /feedback 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 ends blocked with budget_exceeded. What the agent model cost today in the RouterGrowth app (chat turns, loop runs, replies read) counts toward it, and at the cap the app starts no new chat turn or loop run until the reset;
  • the per-run ceiling: a run whose hold would exceed per_run_limit ends blocked with cost_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 and the app's agent model: other 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