Skip to main content
GET
Get SIP endpoint
One SIP endpoint, in the same shape as the list. A trunk’s password is never returned here: it is returned only when the trunk is created and by rotate-password. Requires sip_endpoints:read. A SIP address endpoint’s sip_uri (and the slug inside it) is its only credential, and a trunk’s sip_username is half of its, so they are returned 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 the endpoint with slug, sip_uri and sip_username set to null. It takes no query parameters. One it is sent, such as ?include=password, is refused with 400 SIP_ENDPOINT_QUERY_INVALID, by name in issues[], rather than answered as if it had not been sent: no read returns a password. An extension endpoint (auth_mode: "register") carries a register object. Its register.status is read from Yappr’s carrier when the stored one is more than 15 seconds old, so polling this call every few seconds is safe. While the status is pending or registering, wait: registration takes a few minutes. unknown with register.status_detail “we cannot read the carrier status right now (this does not mean the extension is not working)” means Yappr cannot read the carrier’s status: it is not failed, calls are not stopped because of it, and the first read that succeeds replaces it, so read again later. In that state register.last_activity_at and register.last_activity_kind carry the newest call that went through the extension in the last 24 hours and after its settings last changed: inbound_call is a call from your phone system that reached Yappr through the extension (it counts once it arrives, answered or not), outbound_call an answered call the agent placed out through it (it shows that outbound calls work, not that incoming calls arrive). An outbound call nobody picked up, or one your phone system refused, is not evidence. It is evidence that a call went through, not a registration: status stays unknown, status_detail is unchanged, and a call never turns it into registered. In every other state both fields are null. Only this call and the list fill them: the responses to create and update carry null, so read the endpoint again to see the call. For an extension with no such call, check your phone system’s list of registered extensions or devices, or send a test call. status_checked_at is the time of the last attempt to read the carrier, not of the last answer, so during an outage it does not show that the status is current. registered does not prove that calls and transfers work; send a test call. The extension’s password is never returned. register.pbx_feature_code and register.pbx_feature_code_hangup_after_secs are the endpoint’s transfer code and its hang-up time, or null when none is set; they are returned to every key that may read endpoints. register.outbound is null, or the endpoint’s calls out through the extension: enabled, caller_number, phone_number_id, dial_format, dial_prefix and paused (null, or { "reason": "phone_system_refused", "since", "last_sip_code" } after three refusals in a row).

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

Path Parameters

id
string<uuid>
required

Response

The SIP endpoint

data
object

A SIP endpoint lets your own phone system (a PBX, a contact-center platform or a SIP provider) send calls to a Yappr agent, without a Yappr phone number. It comes in three kinds, set by auth_mode when you create it:

  • credentials: username and password. Yappr issues a SIP username and password. Your phone system sends calls to sip.telnyx.eu or sip.telnyx.com with them, dialling any number or extension, and the endpoint's agent answers every call. A call with a wrong username or password is refused before it reaches Yappr. The password is returned only once: by create and by rotate-password. Any agent of the workspace can answer, including one that runs a workflow: see inbound_agent_id.
  • uri: SIP address only. Your phone system dials the endpoint's sip_uri, with no username or password. It works with any agent, including one that runs a workflow. The address is the secret: anyone who has it can call the agent, on your workspace's minutes, so treat it like an API key. Calls are not filtered by source address. To replace it, create a new endpoint, point your phone system at it, then delete the old one; calls to a deleted or switched-off endpoint are refused before they are answered.
  • register: register as an extension. For a hosted phone system that only gives you an extension account (server, username, password). Yappr registers to it like a softphone and the agent answers the calls the system routes to that extension. Yappr does not keep or return the extension's password. You send it to create the endpoint and again whenever it changes on your phone system, because Yappr's carrier holds it to keep the extension registered and to place transfers. The register object carries the settings and the registration status. See Register as an extension.

sip_username and sip_connection appear on username-and-password trunks only, max_concurrent_calls on trunks and extension endpoints, register on extension endpoints only, and allowed_source_ips on SIP address endpoints only. List, get and update never return a password. A SIP address endpoint's slug and sip_uri are its credential, and a trunk's sip_username is half of its, so list and get return them only to a key that also holds sip_endpoints:manage; with sip_endpoints:read alone (the Read-only preset) they are null. The setup guide covers the phone system side.