Skip to main content
DELETE
Delete SIP endpoint
Deletes the endpoint for good. Requires sip_endpoints:manage. Re-route the calls in your phone system first: from then on, every call it sends here is refused.
  • Username-and-password trunk. Yappr first removes the trunk’s username and password at its carrier, so they stop working within seconds: your phone system’s next call is refused with SIP 403 Forbidden. Only then is the endpoint deleted. If the carrier can’t be reached, nothing is deleted and the answer is 502; try again. In the dashboard, only workspace owners and admins can delete a trunk.
  • Extension endpoint (register). Yappr first deletes the extension’s connection at its carrier, then the endpoint. Your phone system is not told. The carrier can keep registering the extension on your phone system for hours after the delete (observed: one registration kept refreshing for more than 4 hours 40 minutes), so your phone system keeps routing the extension’s calls to the carrier, which rejects them meanwhile, and callers hear a failure. While that lasts, a new endpoint with the same extension name fails with already in use, also when the deleted endpoint never registered (for example a wrong password). Re-route or remove the extension on your phone system before you delete. If the carrier can’t be reached, nothing is deleted and the answer is 502; try again. In the dashboard, only workspace owners and admins can delete one.
  • SIP address endpoint. From then on, calls to its sip_uri are refused before they are answered (SIP 603 Decline). Calls already in progress finish normally. Every endpoint gets a fresh random address, so a deleted address is never handed out again.
You may not need to delete:
  • To replace a trunk’s password that may have leaked or was lost, issue a new one.
  • To replace a SIP address that may have leaked, create a new endpoint first, point your phone system at its sip_uri, then delete the old one, so no call is dropped in between.
  • To change an extension’s agent, call limit, server or password, edit the endpoint with update (send register.password for a new password). Don’t delete and re-create it.
  • To stop calls for a while, switch the endpoint off with is_active: false (update). Re-route the calls in your phone system first: a trunk or SIP address endpoint then refuses calls with SIP 603 Decline, and your system may not try its next route after it; an extension endpoint’s phone system isn’t told.
An extension endpoint that called out through your phone system also answers campaigns_without_number. Its number (provider: "phone_system" under Phone numbers) is removed with it, and this says how many campaigns were calling from that number. They keep their history and lose the number: from_phone_number_id becomes null, so each one calls from its agent’s own number, or can’t launch until you pick another with PATCH /campaigns/{id}.

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

Deleted

ok
boolean
required
Example:

true

campaigns_without_number
integer

Only for an extension endpoint that called out through your phone system (it had a phone_system number). How many campaigns were calling from that number, which is removed with the endpoint: they keep their history and lose their number (from_phone_number_id becomes null, so they call from their agent's own number, or cannot launch until you pick one with PATCH /campaigns/{id}). 0 when none was.

Required range: x >= 0
Example:

1