Skip to main content
GET
List SIP endpoints
The workspace’s SIP endpoints, newest first, all kinds, with total for paging. auth_mode tells them apart: a username-and-password trunk carries its sip_username, max_concurrent_calls, sip_connection and password_rotated_at (when its password last changed, null until the first rotate), a SIP address endpoint its sip_uri, and an extension endpoint (register) its register object. A trunk’s password is never listed: it is returned only when the trunk is created and by rotate-password. An extension’s password is never returned at all. Requires sip_endpoints:read. The list takes limit (1 to 200, default 50; a larger value is capped at 200) and offset (default 0), both whole numbers, and name: only the endpoints with exactly that name (letter case included). Names are not unique, so name can match more than one. Anything else, such as a filter like status, is refused with 400 SIP_ENDPOINT_QUERY_INVALID rather than answered with every endpoint. So is a parameter sent twice (?limit=10&limit=20 would have used one of the two) or with no value (?limit=). issues[] names each parameter at fault, all of them in one answer, with code query_param_unknown, query_param_repeated, query_param_blank or query_param_invalid (limit=ten). Paging by offset is not a snapshot. The list is newest first, so an endpoint created while you page pushes the rest down a row (the next page repeats one), and one deleted pulls them up (the next page skips one). There is no cursor yet. To read every endpoint, page until you have total, drop repeats by id, and read the list once more if total changed while you paged. To find one endpoint, use name or get it by id. A SIP address endpoint’s sip_uri (and the slug inside it) is its only credential (see what protects a SIP address), and a trunk’s sip_username is half of its, so they go only to a key that also holds sip_endpoints:manage. A key with sip_endpoints:read alone, such as one made from the Read-only preset, gets every endpoint with slug, sip_uri and sip_username set to null: it sees which endpoints exist and which agent answers each, but can’t call them. An extension endpoint’s register.status (pending, registering, registered, failed, disabled or unknown) is re-read from Yappr’s carrier when it is more than 15 seconds old. A list of more than 20 extension endpoints serves the stored values instead, so check register.status_checked_at, the time Yappr last asked the carrier; read one endpoint with GET /sip-endpoints/{id} for a fresh status. unknown with a register.status_detail means the carrier’s status cannot be read right now. It is not a failure: do not treat the extension as down, and read again later. While it is, register.last_activity_at and register.last_activity_kind name the newest call that went through the extension in the last 24 hours and after its settings last changed, if there was one (what they mean); they are null otherwise. The register object is your own phone system’s data, so a key with sip_endpoints:read sees it. The carrier’s connection and the endpoint’s internal address are never returned.

Errors

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).

Query Parameters

limit
integer
default:50

Page size. A value above 200 is capped at 200.

Required range: 1 <= x <= 200
offset
integer
default:0
Required range: x >= 0
name
string

Only the endpoints with exactly this name, letter case included. Names are not unique, so it can match more than one.

Required string length: 1 - 200

Response

The workspace's SIP endpoints

data
object[]
total
integer
limit
integer
offset
integer