Skip to main content
DELETE
Stop answering a number's calls in Yappr
Stop answering here. Undoes answer a number’s calls in Yappr: Yappr puts the number back on the connection it was on before (carrier_state.previous_connection_name), or on no connection if it had none, so its calls go where they went before. That connection is the only setting Yappr changes in your Telnyx account. Requires carrier_accounts:manage. It works even while Yappr has switched carrier accounts off for the workspace: putting a number back is never refused CARRIER_ACCOUNTS_NOT_ENABLED, so a line is never stranded on Yappr’s app. The number stays in Yappr: its agents stay assigned, calls out from it keep working, and its carrier_state.state reads not_configured again. You can configure it again at any time.
If the number’s connection was already changed away from the app in Telnyx, Yappr records that and sends nothing (changed: false). Yappr changes the connection, then reads the number back. If Telnyx still shows it on the app, nothing is recorded and the answer is 502 RESTORE_NOT_APPLIED: its calls still reach Yappr. Try again in a minute. To stop answering on every configured number of an account at once and disconnect it, disconnect with ?restore_routing=true.

If the old connection is gone

If the connection the number was on no longer exists in Telnyx, Telnyx refuses to put it back and the answer is 409 PREVIOUS_ROUTING_GONE. The number’s calls still reach Yappr. Pick a connection for it yourself in Telnyx (Numbers → My Numbers), then sync: its carrier_state.state reads not_configured.

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
phone_number_id
string<uuid>
required

Response

Its calls go back to where they went before (carrier_state.state is not_configured)

data
object
changed
boolean

false when the number was no longer on the app: nothing was sent to Telnyx.