Skip to main content
GET
Get carrier account
One connected Telnyx account with its numbers, status and last refusal. Requires carrier_accounts:read.
The account comes back inside data, as every single-resource read does:
numbers lists the numbers on the account now. A number you removed is not in it: it is in removed_numbers, newest first, with the id it had, its number and removed_at, so a call or a charge on it still names a number. Every call on this account keeps its carrier_account and carrier_call_id on GET /calls: filter by carrier_account_id to list them, whichever number placed or answered them. webhook_url — the exact URL a Call Control App you made must use — contains a secret for your account, so an ordinary read leaves it out. Ask for it with ?include=webhook_url, which needs a carrier_accounts:manage key (a key without it is refused 403 INSUFFICIENT_SCOPE), and treat it like a password:
Connect returns it too, and so does an update that sends a new api_key.

Is the account synced?

sync_status answers without running a sync. enabled: false means Yappr does not sync this account by itself: reason is connection_required (choose its Call Control App first) or account_paused (turn it back on). ready: false (sync_not_ready) means Yappr has not switched number syncing on yet: nothing to do, it starts by itself. Otherwise reason is the last sync’s error (last_sync_error), never_synced when none has run yet (the next test, Turn back on or the daily run does it, or sync now), or null when the last one worked. sync is what that last sync found. signature_verified turns true after the first call event that verified against your public key. If last_error.code is public_key_mismatch, the public key you saved does not match your Telnyx account: update it. Another workspace’s id answers 404 CARRIER_ACCOUNT_NOT_FOUND. A segment that is not an id at all answers 404 RESOURCE_ID_INVALID, as on every resource.

Authorizations

Authorization
string
header
required

Your Yappr API key (e.g. ypr_live_...). Generate one in the dashboard under Settings → API Keys. No key is 401 MISSING_KEY; a key that is not one of ours, or is revoked, is 401 INVALID_KEY; an expired one is 401 EXPIRED_KEY. A valid key without the scope an operation needs is 403 INSUFFICIENT_SCOPE on every operation, and the message names the scope. Every response, a 401 included, carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset: the budget is 60 requests a minute per API key. Every 429, whatever its code, carries Retry-After (whole seconds, never zero): the per-key budget's RATE_LIMIT asks for what is left of the minute, a route's daily cap (RATE_LIMITED) for the time until that cap resets. All four headers are listed in Access-Control-Expose-Headers, so a browser can read them. A path the API does not serve (an unknown sub-path, an id left empty) is 404 ROUTE_NOT_FOUND, and a method a served path does not take is 405 METHOD_NOT_ALLOWED with an Allow header; both are answered before any scope check, and nothing is read or changed. A trailing slash is ignored where it cannot be an id left empty (POST /calls/ is POST /calls) and refused where it can (GET /calls/). A doubled slash inside a path is merged into one before the request reaches the API (GET //calls is GET /calls).

Path Parameters

id
string<uuid>
required

Query Parameters

include
enum<string>

webhook_url adds the account's webhook URL to data. Only a carrier_accounts:manage key may ask; any other value is 400 CARRIER_ACCOUNTS_QUERY_INVALID.

Available options:
webhook_url

Response

The account

data
object

Your own Telnyx account, connected so agents can call from the numbers you own there. Yappr places each call on your Call Control App, with your API key, so the call runs on your Telnyx account and Telnyx bills you for it. The API key is write-only: no response ever contains it.