Skip to main content

Base URL

Authentication

All requests require an API key passed as a Bearer token:
Generate keys in the Yappr dashboard under Settings → API Keys. Each key can be scoped to specific permissions. Workspace settings → Developers in the dashboard (https://app.goyappr.com/en/settings/developers) has this address, the rate limit and the pages to start from.

Your first key is a dashboard step

There is no API call that issues a key out of nothing, and there is no bootstrap endpoint. A person creates the first key in the dashboard. That is deliberate: the scope that issues keys, api_keys:manage, is the one scope that can widen a workspace’s whole API surface, so it enters the workspace through a person and never through a request. From there the journey is code:
  1. In the dashboard, Settings → API Keys → Create. Pick Full access, or Custom with API keys → Manage ticked (Manage ticks Read with it) — or tick API keys → Manage on a key you already have, under Edit scopes. Copy the secret — it is shown once. This is the only key that can reach /api-keys. Settings → API Keys and Settings → Developers both say this on screen.
  2. From code, use that key with POST /api-keys to issue one narrow key per job or per client — a nightly export that only reads leads, a per-client key that only places calls.
  3. Rotate and revoke from code: issue the replacement under a new name (a name belongs to one active key), move over, then revoke the old key with DELETE /api-keys/{id}. Only step 1 ever needs a browser — though Rotate on a key’s card in the dashboard does the same in one step, with a grace period for the old secret.
A key issued in step 2 never receives api_keys:manage, so it cannot issue keys of its own. If you want an integration that can audit the inventory without being able to change it, give it api_keys:read instead — it lists names, prefixes and scopes and can neither issue nor revoke.

Presets

The dashboard offers three starting points when you create a key. Each is a fixed set of scopes — tick or untick anything afterwards. Read-only sees the work and changes nothing. It deliberately leaves out billing:read, api_keys:read, affiliates:read and carrier_accounts:read — the workspace’s spend, its keys, its referral earnings and its own Telnyx account — so a read-only key you hand to a client or a reporting tool cannot read those resources. The Telnyx account stays hidden where a number or a call is shown, too: carrier_account is null on GET /phone-numbers, on a campaign’s from_phone_number and on a call, and a call’s carrier_call_id (the id your Telnyx account gave it) is null, unless the key holds carrier_accounts:read. A SIP endpoint’s address (sip_uri), the credential that reaches your agent, and a SIP trunk’s username (sip_username) go only to a key with sip_endpoints:manage, and a trunk’s password is returned only once, when it is issued. Add any of them by hand when a key needs it. Calling hours need no scope to read.

Limiting a key to some agents

A scope says what kind of thing a key may touch. agent_ids says whose. An agency that runs one workspace with an agent per client gives each client a key limited to that client’s agents — set it under Settings → API Keys (Agents this key can reach) or send agent_ids to POST /api-keys. To check a key’s reach later, GET /api-keys/{id} names its agents, and each card in the dashboard shows them. A key limited to some agents reaches those agents and what belongs to them, and nothing else: Everything the whole workspace shares — tools, phone numbers, billing status, dispositions, lead tags, the Do-Not-Call list, calling hours, API keys — answers 403 API_KEY_AGENT_SCOPED, and so does calling from a number none of its agents answers or calls from (another client’s caller ID, or a number no agent uses). Naming another agent answers 403 AGENT_OUTSIDE_KEY_SCOPE, whether that agent exists or not. The limit and the scopes both apply: a key limited to one agent with only calls:read reads that agent’s calls and nothing more. A limited key is not issued a scope it could never use — agents:create, tools:create, and the scopes of what the whole workspace shares: POST /api-keys refuses them by name, and the dashboard greys them out under Only these agents.

API Key Scopes

Rate Limiting

60 requests per minute per API key. Every response includes: Over the limit the answer is 429 with the code RATE_LIMIT, and it carries one header more: Nothing in a 429 was acted on. Wait Retry-After seconds, then send the same request again — with the same Idempotency-Key, where one was used. Every 429 carries Retry-After, whatever its code. Besides this per-key budget, a few routes have a daily cap per workspace of their own, answered 429 RATE_LIMITED (carrier accounts: 10 accounts connected, 20 updates and 48 sync runs a day, and the others listed under Errors; SIP trunks: 20 creates a day). Their Retry-After is the time left until that cap’s window resets, which can be hours; a cap that cannot say asks for 60 seconds, the length of this window, so retrying after it is never early. The X-RateLimit-* headers on such an answer still describe the key’s per-minute budget, not the daily cap. A browser can read all four headers: every answer lists them in Access-Control-Expose-Headers. The counter is per API key, and once your key is recognised every request counts against it once — including the ones that come back 4xx, and including requests you send in parallel. Firing a batch concurrently does not buy you extra room: each request in the batch takes its own slot, and X-RateLimit-Remaining on each one is the figure after that request was counted. The only requests that take no slot are the two refused before the key has a window at all: a 401 (no key, or one that is unknown, revoked or expired) and a 403 WORKSPACE_MISMATCH. A 401 still carries the three headers, with X-RateLimit-Remaining equal to the limit, because nothing was counted. A 403 INSUFFICIENT_SCOPE comes from a recognised key and counts like any other answer. Two keys have two separate windows, so splitting a heavy integration across keys is the supported way to go faster. Reading a burst. One key has one counter, so inside one window it never hands out the same X-RateLimit-Remaining twice. The numbers arrive out of order — the responses race each other back — but sorted they are consecutive, with nothing skipped and nothing repeated. So a burst that does repeat a Remaining almost always went over more than one key; that is the first reading, not a miscount. The one exception is rare and deliberate: if the counter is briefly unavailable, requests are served rather than refused, and two that are in flight on the same key in that moment can be told the same Remaining — the only case in which slightly more than the cap gets through. Grouping by X-RateLimit-Reset usually separates the keys, but it cannot prove the opposite: the reset is a whole second, so two keys whose windows opened in the same second share it. On a 429, Retry-After is what is left of that key’s current window, so every refusal from the same key asks for about the same wait; it is whole seconds, never zero, and waiting it out is the whole of the back-off — there is nothing to add on top.

Error Codes

Every error carries a code — these are the fallbacks a refusal falls back to when it names nothing more specific. Every code the workflow, tool, connected-account and call-request endpoints return — with the action that clears it — is on the Error Codes page.

SIP endpoint codes

Extension endpoints (auth_mode: "register") add these codes to the SIP endpoint calls. Each is documented where it can happen, on create and update.

Discovery

GET https://api.goyappr.com (no path, no auth) returns a list of every endpoint: the same operations this reference documents, plus retired ones marked (retired — 410).

What the dashboard has and this API does not

Four things you can see in the Yappr dashboard have no endpoint here, and probing for one gets 404 NOT_FOUND rather than anything more helpful. All four are dashboard-only, so build around them rather than waiting for them: Those four are the gaps we know about. If you find another surface with no endpoint behind it, POST /report-issue takes a report and needs no particular scope.