Signup comes with $1 in credit. No subscription needed.Claim your $1
Docs: Quickstart: API
Get started

Quickstart: API

A first REST call in five minutes: sign up, mint a key, discover, inspect, run, read the wallet.

A first real call in five minutes: create a workspace and a key, find a capability, inspect its price, run it, then read the wallet and the run log. Every call is plain HTTPS and JSON, so the same steps work from curl, a script or an agent.

1. Create a workspace and a key

Sign up on the dashboard with Google, GitHub, or an email and a password. Google and GitHub vouch for the address, so the workspace is ready at once. A password signup starts locked until you prove the address: click Send code on the dashboard and enter the code we email you (adding funds also unlocks it). Until then every run fails with email_unverified. Once the address is proven, the workspace gets $1 of signup credit for real calls, which expires 7 days after it is granted.

Mint a key under Settings > API keys. It is shown only once, so store it now:

export ROUTERGROWTH_API_KEY=rg_live_...

Keys are minted from a dashboard session only: an API key cannot create keys. Building an agent that speaks MCP? It can skip the key and connect with OAuth instead: see the MCP quickstart.

2. Find a capability

curl -X POST https://api.routergrowth.com/v1/discover \
  -H "Content-Type: application/json" \
  -d '{"query": "find a verified email for a person"}'

Discover is free and needs no key: it searches the catalog and never executes a paid call. One ranked list holds capabilities (with status, providers and starting_price) and raw endpoints (with their cost model), followed by hints. Send Content-Type: application/json on every POST: without it the body is not read as JSON and the API answers 400 invalid_request.

3. Inspect it

curl -X POST https://api.routergrowth.com/v1/inspect \
  -H "Authorization: Bearer $ROUTERGROWTH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"capability": "contact.find"}'

The response is the contract: input_schema, output_fields, one offer per provider at your workspace's price, the billing conditions, and waterfall.max_cost_for_all.amount, the max_cost that lets every provider in the waterfall try. Inspect before the first run of a capability, and tell the user what it costs when that matters to them: they asked, they set a budget, or a batch would pass about $1.

4. Run it

curl -X POST https://api.routergrowth.com/v1/run \
  -H "Authorization: Bearer $ROUTERGROWTH_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: my-unique-value-1" \
  -d '{
    "capability": "contact.find",
    "input": {"first_name": "Alex", "last_name": "Rivera", "company_domain": "example.com"},
    "routing": {"provider": "auto", "strategy": "best_value", "max_cost": "0.10"}
  }'

Set max_cost to the waterfall.max_cost_for_all.amount that step 3 returned (0.10 stands in for it here). On a lookup such as contact.find a lower cap is raised to it anyway, so a found email costs at most that. The request waits up to wait_seconds (default 30, at most 120) and answers 200 with the finished run. A run still going answers 202 with the same shape and done: false: poll GET /v1/runs/{run_id}?wait=60 instead of submitting it again.

A successful response looks like:

{
  "run_id": "run_...",
  "status": "succeeded",
  "done": true,
  "stoppable": false,
  "poll_url": "/v1/runs/run_...",
  "kind": "capability",
  "capability": "contact.find",
  "endpoint": null,
  "provider": "icypeas",
  "routing_reason": "lowest quoted price first, no measured results yet",
  "billing": {"currency": "USD", "quoted": "0.013884", "charged": "0.013884", "platform_funded": true},
  "timing": {"duration_ms": 2412},
  "attempts": [{"provider": "icypeas", "outcome": "succeeded", "duration_ms": 2412, "detail": null}],
  "request_id": "req_...",
  "created_at": "2026-10-28T09:30:00+00:00",
  "coverage": {"status": "complete", "providers_attempted": ["icypeas"], "providers_succeeded": ["icypeas"], "providers_failed": []},
  "result": {"email": "alex.rivera@example.com", "status": "valid", "person": {"first_name": "Alex", "last_name": "Rivera"}, "...": "..."},
  "next_steps": [
    {"goal": "get the person's profile and role history", "call": "run", "capability": "person.enrich", "input": {"email": "alex.rivera@example.com"}},
    {"goal": "find the person's phone number", "call": "run", "capability": "contact.phone", "input": {"email": "alex.rivera@example.com"}}
  ]
}

Prices on this page are catalog prices, which start at the Scale plan rate; inspect returns your workspace's exact price. billing.charged is what settled, and a contact.find miss charges nothing. next_steps lists the calls that usually follow, with their input filled from the result: suggestions only, each billed like any run if you make it. Every field: Run.

The Idempotency-Key header makes the call safe to retry: a replay returns the original run with an Idempotent-Replay: true response header instead of executing again. A run refused before any provider was called (above max_cost, a short balance, an invalid input) does not hold its key, so the corrected retry runs under the same key.

5. Check the wallet and history

curl https://api.routergrowth.com/v1/wallet -H "Authorization: Bearer $ROUTERGROWTH_API_KEY"
curl https://api.routergrowth.com/v1/runs   -H "Authorization: Bearer $ROUTERGROWTH_API_KEY"
curl "https://api.routergrowth.com/v1/history?q=alex.rivera@example.com" -H "Authorization: Bearer $ROUTERGROWTH_API_KEY"

The wallet answers balance, reserved (held for runs in flight) and available, plus signup_credit (left and expires_at) while the signup credit lasts, and trial_rate_until while a new workspace still pays the Scale rate (its first 7 days, or until its first payment). /v1/runs lists recent runs, newest first, as receipts without their result: fetch one run at its poll_url for that. The last call is the run log read by subject: every run that mentions that person in its input or result, the outbound touches, and paid results you can reuse instead of buying again. Check it before enriching or messaging anyone (details).

The dashboard shows the same workspace in the browser: balance, keys, runs and usage.

6. Go one tier down when you need to

Discover also returns raw endpoints: one provider's own endpoint, with kind: "endpoint". Inspect one to get the provider's request shape, then run it with max_cost set, because a raw run has no quote and settles on the provider's measured cost after the call.

curl -X POST https://api.routergrowth.com/v1/discover \
  -H "Content-Type: application/json" \
  -d '{"query": "google organic serp", "kind": "endpoint"}'

curl -X POST https://api.routergrowth.com/v1/inspect \
  -H "Authorization: Bearer $ROUTERGROWTH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"provider": "dataforseo", "endpoint": "/v3/serp/google/organic/live/advanced"}'

curl -X POST https://api.routergrowth.com/v1/run \
  -H "Authorization: Bearer $ROUTERGROWTH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "provider": "dataforseo",
    "endpoint": "/v3/serp/google/organic/live/advanced",
    "input": {"keyword": "best crm", "location_code": 2840, "language_code": "en"},
    "routing": {"max_cost": "0.05"}
  }'

result.data is the provider's payload untouched. When discover says a capability wraps the endpoint, prefer the capability: normalized output, a quote, failover.

Next

Reading this as an agent? This page as markdown: /docs/quickstart-api.md · every page: /docs/llms.txt