Docs

Authentication: API keys, errors and plan limits

Everything a key can tell you and every way a call can be refused — written for people wiring Reqbeat into Zapier, Make, n8n or their own code. Full request and response shapes are in the API reference; if you have not made a first call yet, start with the quickstart.

One key, two headers

Every /v1 endpoint authenticates with an API key. Send it either way — both are equivalent:

curl -s 'https://api.reqbeat.com/v1/whoami' -H "X-API-Key: $REQBEAT_API_KEY"
# or
curl -s 'https://api.reqbeat.com/v1/whoami' -H "Authorization: Bearer $REQBEAT_API_KEY"

GET /v1/whoami is the probe endpoint: it is never billed, and it answers with what the key resolves to — your customer_id, account_id, the plan tier the key runs on (tier, tier_name) and the key's scopes. Connector platforms use it as the connection test; you can too.

The four status codes, and what each one means

  • 401 — no key. The request carried neither header. Body: {"detail":"Missing API key: send an X-API-Key header or an Authorization: Bearer token"}.
  • 403 — bad key. A key was sent but it is invalid or has been revoked. Body: {"detail":"Invalid or revoked API key"}. The fix is a fresh key: rotate it from a key you still hold, or sign in and mint a new one. In Zapier or Make, a 401 or 403 means reconnect the account.
  • 403 — missing scope. The key is valid but lacks the scope the endpoint needs (see scopes below). Body: {"detail":{"reason":"scope_required","required_scope":"webhooks","endpoint":"/v1/watches"}}. Mint a key that carries that scope.
  • 402 — the key works, the plan is spent. The key is over its plan's call quota, or the account passed its spend cap. The body says which (reason: quota_exceeded or spend_cap_exceeded), carries the quota counters, and includes an upgrade_url — the connector apps surface it as "upgrade your Reqbeat plan".
  • 429 — too fast. Per-key limit over a 60-second window, set by the plan. Honor Retry-After and the RateLimit-* headers and the call succeeds on the retry.

Managing keys is self-serve

A key you hold can manage the keys on its own account — no dashboard round-trip, no support ticket:

  • GET /v1/keys — every key on the account, active and revoked, with last_used_at.
  • POST /v1/keys — mint another key for the same account. The new key's account and tier always come from the key that authorized the mint, never from the request.
  • POST /v1/keys/{id}/rotate — mint the replacement and revoke the old key in one call, built for unattended agents rotating their own credential.
  • DELETE /v1/keys/{id} — revoke. Keys of other accounts 404, so a leaked id reveals nothing.

Give each integration its own key: when you unplug a tool, revoke its key and nothing else changes.

Scopes: give each key only what it needs

Every key carries a list of scopes, from four values:

  • read — every data read: companies/{id}/*, reqs/search, reqs/qualified, jobs/search, jobs/role, markets/role-demand, companies/resolve, events, attribution, clay/enrich.
  • write — POST companies/{id}/outcomes and POST migration-import.
  • webhooks — POST webhooks, watches (create, list, delete) and webhook-deliveries (list, detail, replay) — the push-delivery surface documented in the webhook reference.
  • account — the key endpoints above and account/pause, account/resume.

whoami, quickstart, onboarding, usage and pricing need no scope, so the connection test passes for any valid key. The scope each endpoint needs is also in the OpenAPI spec as x-required-scope.

A signup key carries all four. When you mint or rotate a key, send scopes to narrow it. A key can only hand out scopes it holds itself: asking for more is a 403 that names the extra scopes, and an unknown value is a 422 that lists the four. Leave scopes out and a mint copies the scopes of the key that authorized it, while a rotation keeps the scopes of the key being replaced.

Keys for Zapier, Make, n8n and other automation tools should carry read and webhooks only:

curl -s -X POST 'https://api.reqbeat.com/v1/keys' \
  -H "X-API-Key: $REQBEAT_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"scopes": ["read", "webhooks"]}'

What a free key can do vs a paid one

Scopes aside, every key is bounded by its plan: a daily call quota and a per-minute rate, both visible live on /v1/pricing:

Plan Calls / day Calls / minute
Free 100 20
Trial 10,000 100
Starter 50,000 500
Growth 200,000 2,000

A free key is a real key: the same endpoints, the same webhooks, a smaller allowance. Exhausting it returns the structured 402 above rather than silently degrading, so an automation built on the free tier fails loudly and upgrades cleanly. Plans, watch allowances and spend caps are on pricing; the recipes show scoped keys wired into Clay, n8n and MCP agents end to end.

Mint a free key and point /v1/whoami at it — that is the whole setup.

Start free. No credit card.