Create a SIP endpoint, so that calls from your own phone system reach an
agent. Requires sip_endpoints:manage. Limit: 20 create attempts per
workspace in 24 hours that run from the first attempt, all three kinds
together. The limit counts attempts, not endpoints created.
auth_mode: "credentials" creates a username-and-password
trunk. The response carries the username, the server settings and the
password, the password only this once. In the dashboard, only
workspace owners and admins can create one. While
GET /sip-endpoints/status answers
credentials_available: false, nothing is created: this answers
403 SIP_TRUNKS_NOT_ENABLED (trunks aren’t switched on for your
workspace) or 409 VOICE_NOT_READY (Yappr can’t take trunk calls right
now). A trunk only brings calls in: it can’t place calls. An agent on a
trunk call can hand the caller back to your phone system with a
SIP-address transfer destination. Any agent of the
workspace can answer, including one that runs a workflow: publish its
workflow first, because calls to an agent that is switched off, or whose
workflow has never been published, are refused with SIP 603 Decline,
and the create doesn’t check this.
auth_mode: "uri" (the default) creates a SIP address endpoint. The
response carries the sip_uri your phone system dials, with no username
or password. It works with any agent, including one that runs a
workflow. The address is the endpoint’s only credential: anyone who has
it can call the agent.
auth_mode: "register" creates an extension endpoint, for a hosted
phone system that only gives you an extension account. Send the
extension’s register.server, register.username and
register.password; Yappr registers to your phone system like a
softphone, and the agent answers the calls it routes to that extension.
Yappr does not store the password or return it; its carrier holds it to
keep the extension registered and to place transfers, so send the new one
with an update whenever it changes on your phone system. Registration
takes a few minutes: poll register.status. A workspace can hold 5.
While GET /sip-endpoints/status
answers register_available: false, nothing is created: this answers
403 SIP_REGISTER_NOT_ENABLED or 409 VOICE_NOT_READY.
A field the endpoint does not read is refused by name with
400 SIP_ENDPOINT_REQUEST_INVALID, and so is a value for a field of the
other kind of endpoint. That includes sip_username and sip_password
(Yappr issues both on a username-and-password trunk; a SIP address endpoint
and an extension endpoint have neither: an extension’s login goes inside
register) and a top-level transport, which is not a setting.
The setup guide says what to enter in your phone
system, and which platforms can send calls to a username-and-password trunk.
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. Use one
when you already have a business line and want unanswered, after-hours or escalated
calls to land on an agent instead of voicemail. Choose the kind with auth_mode:
register: register as an extension. For a hosted phone system that gives you
only an extension account (a server, a username and a password) and no way to add
a trunk. Yappr registers to it like a softphone, and the agent answers the calls
your system routes to that extension. See Register as an
extension.
credentials: username and password (recommended). 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 agent answers every call. A
call with a wrong username or password is refused before it reaches Yappr. A
trunk only brings calls in: it can’t place calls. An agent can still hand a
trunk caller back to your phone system with a SIP-address
transfer. Any agent can answer, including one that runs a
workflow (below).
uri: SIP address only (the default). Your phone system dials one SIP
address, with no username or password. The address is the secret: anyone who
has it can call the agent. It works with any agent.
Requires sip_endpoints:manage. A workspace can make 20 create attempts in
24 hours, all three kinds together. The 24 hours run from the first attempt, and the
limit counts attempts, not endpoints created. The setup guide covers
the phone system side, and which platforms can send calls to a
username-and-password trunk.
Username-and-password trunk
In the dashboard, only workspace owners and admins can create one. Check
GET /sip-endpoints/status first: while
credentials_available is false, nothing is created, and this answers
403 SIP_TRUNKS_NOT_ENABLED (username-and-password trunks aren’t switched on for
your workspace: ask Yappr support) or 409 VOICE_NOT_READY (Yappr can’t take trunk
calls right now: try again in a few minutes).Any agent in the workspace can answer, including one that runs a workflow:
its calls run the agent’s published workflow. Publish the workflow first
(Create agent): calls to an agent that is switched
off, or whose workflow has never been published, are refused with SIP
603 Decline, and the create doesn’t check this.
sip_password is in this response only. Store it now: neither the API nor the
dashboard can show it again. If it is lost,
issue a new one.
Creating trunks from a script
Read sip_password from the response and put it straight where it is used: your
phone system’s own API, or a secret store (a vault or your cloud’s secret manager)
that the phone system’s setup reads from. Never write it to a file, a log, a ticket
or a chat, and never print it in a CI job’s output. Keep only the trunk’s id and
sip_username in your own records.
Send an Idempotency-Key with every create, so a timeout can
be retried without making a second trunk.
If the password could not be stored (the store was down, the script crashed after
the create), don’t look for it again: no read returns it, and a
replay doesn’t either. Issue a new
one and store that.
To hand a trunk over to someone else, give them the password through the same
secret store, never in the open.
What to enter in the phone system:
Setting
Value
SIP server
From Israel or Europe, sip.telnyx.eu (in sip_connection.alternate_servers), the closest. Elsewhere, for example in the US, sip_connection.server (sip.telnyx.com). Every one of them takes the same username and password, so another one makes a backup route.
Transport
TLS on port 5061 (recommended; TLS 1.2 or 1.3), or TCP or UDP on port 5060.
Username, password
sip_username and sip_password. If your system asks for a realm, it is the server name you send to.
Registration and keep-alives
Recommended. Over TLS or TCP, register the trunk or send keep-alives (SIP OPTIONS, such as Asterisk’s qualify_frequency) every 30 seconds or less: either keeps the connection open. Over UDP behind NAT or a firewall, send keep-alives every 30 seconds or less even if your system registers, because a registration is refreshed only every few minutes. Otherwise the agent’s hang-up may not reach your system (details).
Codecs
G.711 (µ-law or A-law) first. G.722, G.729 and Opus also work; G.729 costs some sound quality.
SRTP
Off, or mandatory (RTP/SAVP). Never optional or best effort: that call fails with 488.
Number dialled
Any number or extension; the trunk’s agent answers every call. What was dialled is recorded as the number called, which the dashboard’s call log shows (in the API, to is null for calls on a SIP endpoint). Yappr keeps only its letters, digits and + * # . _ - (up to 64 characters); if nothing is left, or it contains the trunk’s username, the number called is recorded as sip-trunk.
Caller ID
The caller’s number in From or P-Asserted-Identity (P-Asserted-Identity wins). If your system sends only the trunk’s username as the From user, Yappr records the call with no caller number: the API’s from is null, and the dashboard’s call log shows Unknown caller.
Simultaneous calls
Set this trunk’s channel limit in your system to its max_concurrent_calls.
If the same phone system or IP address also sends calls to another Telnyx trunk,
add the header X-Telnyx-Username: <sip_username> to this trunk’s calls. The
setup guide has the settings for 3CX, FreePBX,
Cisco CUBE, Twilio and other platforms.Transfers on trunk calls use a SIP address as the
destination (for example sip:reception@pbx.example.com): your phone system places
the new call, and it must accept the transfer request. A phone-number destination
isn’t dialled from a trunk call; the caller stays with the agent and the call’s
events record a transfer_failed with error_codeUNAVAILABLE_ON_SIP_TRUNK.When a trunk already has max_concurrent_calls calls ringing or in progress, the
next call is refused with SIP 486 Busy Here, so your phone system can retry or try
another route. (This describes username-and-password trunks. On an extension endpoint the call is refused too, and the code your phone system sees isn’t specified.) Leave it out and the trunk takes 2 calls at once; the most it can
take is 8. Yappr’s own limit on simultaneous calls applies too, and is answered the
same way.
Register as an extension
For a hosted phone system that only gives you an extension account. Use a
username-and-password trunk instead whenever your system can add a SIP trunk.
In the dashboard, only workspace owners and admins can create one. Check
GET /sip-endpoints/status first: while
register_available is false, nothing is created, and this answers
403 SIP_REGISTER_NOT_ENABLED (extension endpoints aren’t switched on for your
workspace: ask Yappr support) or 409 VOICE_NOT_READY (try again in a few minutes).
Yappr does not keep the password: it doesn’t store it, return it or log it. It is
passed to Yappr’s carrier, which holds it to keep the extension registered (it
re-registers about every hour) and to place transfers through the extension. If it
changes on your phone system, send the new one with
PATCH /sip-endpoints/{id}
(register.password): until you do, the registration can still read registered
while transfers fail.Registration takes a few minutes.register.status starts as pending; read
it with GET /sip-endpoints/{id} until it is
registered or failed. registered means your phone system accepted the
registration. It does not prove that calls and transfers work: send a test call,
and a test transfer if the agent transfers.On your phone system:
Allow the address in register.allow_list.sip_ip for SIP (ports 5060 and 5061)
and for media (RTP, UDP ports 16384 to 32768), in both directions.
Use a dedicated extension that receives calls and can dial only your
internal transfer destinations: no outbound, phone-network or international calls. Anyone who learns the
endpoint’s internal address could place calls as that extension.
The extension username is 2 to 128 characters: letters, digits, +, - and _
(a dot, @ or space cannot be registered; a 3-digit extension such as 101
works). It must be unique across Yappr, first come first served. A username
another endpoint already registers is refused with
409 SIP_REGISTER_EXTENSION_IN_USE; with a short extension a clash is likely, so
create a dedicated extension on your phone system with a distinctive name and
register that one. A name can also stay taken after you delete its endpoint (see
changing or removing an extension endpoint).
Send the calls you want answered to the extension.
Yappr re-registers on a one-hour interval, and there is no setting for it. UDP is
the transport that was tested end to end; tcp and tls are accepted. A
workspace can hold 5 extension endpoints; Yappr support can raise that for a workspace.A transfer on an extension call is a new call that Yappr places through your
extension (no SIP REFER), to a SIP address such as sip:reception@pbx.example.com
(only the part before the @ is used). It uses two channels on your phone system.
If that call fails or isn’t answered within about 25 seconds, the call ends: the
agent doesn’t take the caller back.Set your phone system’s transfer code once, and transfers go through your phone
system instead. Most hosted phone systems move a call when the extension on it
presses a transfer code, such as ## and then the extension. Put that code in
register.pbx_feature_code (on create, or later with
PATCH /sip-endpoints/{id}) and every transfer
to an extension on this endpoint’s calls, on every agent, presses it: your phone
system moves the caller, the person who answers sees the caller’s own number, and
Yappr leaves the call, with no second channel and no transfer minutes. There is
nothing to set on each transfer. If your code starts an attended transfer, one your
phone system completes only when the extension that pressed it hangs up, also set
register.pbx_feature_code_hangup_after_secs (4 is a good start): Yappr then hangs
up itself, that hang-up completes the transfer, and there is no fallback, so test it
once. Only without it (the dashboard’s attended transfer switch off), if your phone
system doesn’t take the code within about 12 seconds, Yappr places the new call above
instead. The setup guide
covers both.The setup guide explains what the
endpoint can and can’t do, how a transfer works and how to delete one safely.
SIP address endpoint
Leave out auth_mode (or send "uri"). Yappr generates the address: a readable
prefix (the slug you send, or one derived from name), a hyphen and 24 random
characters, about 120 bits that cannot be guessed. The response carries the full
address in sip_uri. Hand it to whoever runs the phone system; they paste it into
their PBX or CPaaS as the destination for the relevant route.
Authentication: none. Set it to “none” or “anonymous”; there is no username or password.
Transport: UDP or TCP on port 5060, or TLS on port 5061. Over UDP or TCP the
address crosses the network in clear text, so use TLS where your system supports it.
Codecs: G.711 (µ-law or A-law) or G.722.
What protects a SIP address
The address is the endpoint’s only credential. Read this before you hand it out.
Anyone who has the address can call the agent. There is no username or
password, and the call is billed to your workspace. The address reaches this one
agent only: it cannot place calls or reach your phone system.
Over UDP or TCP the address travels in clear text. It can be read on the
network path between your phone system and Yappr, so send over TLS where you can.
Whatever the transport, it sits in your phone system’s configuration, logs and SIP
traces.
Calls are not filtered by where they come from.allowed_source_ips is stored
with the endpoint for your records, but no call is checked against it: a call to
the address is answered wherever it comes from.
The calls API does not return the address, but it is not hidden everywhere. A
call that arrives on the endpoint reads to: null and sip_endpoint_id on
GET /calls and
GET /calls/{id}, and its To is empty in the export.
The dashboard’s call logs still show it as the number called, and the call details
your agent’s tools and webhooks receive carry it as the called number
(callee_number), so anyone who can read those can read the address. Don’t log or
forward callee_number from these calls
(what tools and webhooks receive).
Treat the address like an API key. Limit who can read the phone system’s
configuration, switch the endpoint off with is_active: false while it is not in
use, and replace it whenever it may have been seen by someone who should not have
it.
The address cannot be changed. To move to a new one, create a new endpoint,
point your phone system at its sip_uri, then
delete the old one, in that order, so no
call is dropped in between. Calls to a deleted address are refused before they
are answered (SIP 603 Decline).
Retrying a create
Send an Idempotency-Key header (16 to 128 letters, digits, underscores or hyphens)
and a create can be retried safely, for example after a timeout, when you can’t tell
whether it went through:
The same key and the same body within 24 hours answer 200 with the endpoint
the first request created and "replayed": true beside data. Nothing new is
created, and the create limit is not spent. A trunk’s sip_password is never in
a replay: it was returned once, to the first answer. If that answer was lost,
issue a new password.
The same key with a different body is refused with
409 IDEMPOTENCY_KEY_REUSED, and nothing is created. Use a new key for a new
endpoint.
After 24 hours the key is free again, and a create with it makes a new
endpoint.
Without a key, every create makes a new endpoint, as before.
The key is your workspace’s own: another workspace’s same key is a different
request. Names are not unique, so two endpoints can share one; to find yours by
name, list with GET /sip-endpoints?name=.
Caller ID
On every kind, the caller’s number comes from your phone system, so Yappr does not
use it to recognize returning callers (lead memory). There is no setting to change
this, in the API or the dashboard.
What the body may carry
Field
Required
What it takes
name
yes
1 to 200 characters. Shown in the dashboard.
inbound_agent_id
yes
The id of an agent in this workspace. It answers every call on the endpoint. Any agent can answer on any kind of endpoint, a workflow agent included (see above).
auth_mode
no
credentials (username and password), register (an extension, with register) or uri (SIP address, the default).
max_concurrent_calls
no
Username-and-password trunks and extension endpoints only: 1 to 8 calls at once. Default 2. null is refused: every endpoint has a limit.
register
with register
Extension endpoints only: an object, below.
register.server
yes
The registrar of your phone system: a host name or IP address with an optional :port. No sip: prefix, path or credentials. It must resolve to a public address: a private, loopback or link-local address, or a Yappr or Telnyx host, is refused with SIP_REGISTER_HOST_INVALID.
register.username
yes
The extension: 2 to 128 characters; letters, digits, +, - and _, starting with a letter, digit or +. A dot, @ or space cannot be registered. A 3-digit extension such as 101 works. Unique across Yappr, first come first served.
register.password
yes
The extension’s password: 1 to 128 characters. Yappr doesn’t store, return or log it. Its carrier holds it to register and to place transfers, so send the new one when it changes on your phone system.
register.auth_username
no
Only when your phone system logs in with a user other than the extension: 1 to 128 letters, digits and . _ @ + -.
register.transport
no
udp (default), tcp or tls.
register.region
no
middle_east (default) or europe: the region that registers. It decides the address in allow_list: 192.76.120.75 for the Middle East (observed live) and 192.76.120.72 for Europe (this address comes from the carrier’s documentation and was not observed live: read it from allow_list).
register.pbx_feature_code
no
Your phone system’s in-call transfer code, used by every transfer to an extension on this endpoint’s calls (above): 1 to 32 characters of 0-9, *, #, A-D and the pauses w (half a second) and W (one second), with at least one key, for example ## or *2. The extension is sent right after it; to put it elsewhere, write {extension} once where it goes (*2{extension}#). null or "" means none.
register.pbx_feature_code_hangup_after_secs
no
Only with register.pbx_feature_code, when the code starts an attended transfer: Yappr hangs up this many seconds after the code, and that hang-up completes the transfer, so there is no fallback to the new call: test it once. A whole number from 1 to 10; 4 is a good start. null means none, and a code your phone system doesn’t take within about 12 seconds then falls back to the new call.
register.outbound
no
Calls out through the extension: { "enabled": true, "caller_number": "+97235550100", "dial_format": "national", "dial_prefix": null }. caller_number (E.164, the number your phone system shows) is required when enabled is true; dial_format is national (the default, Israeli numbers only) or e164 (the country code without the plus sign); dial_prefix is one digit. Refused before anything is created with 403 SIP_REGISTER_OUTBOUND_NOT_ENABLED, 409 VOICE_NOT_READY or 409 PHONE_NUMBER_IN_USE. See outbound calls through the extension.
slug
no
SIP address endpoints only: the readable start of the address, 2 to 12 letters, digits and single hyphens, starting and ending with a letter or digit. Yappr lowercases it. It can’t be a reserved word, or start with one followed by a hyphen: yappr, admin, internal, system, api, sip, telnyx, trunk, root, test, sudo, support. The random part is always added after it. Leave it out and the prefix is derived from name.
allowed_source_ips
no
SIP address endpoints only: a list of up to 50 IPv4 or IPv6 addresses, each optionally with a /prefix, for example ["203.0.113.7/32", "2001:db8::/32"]. Recorded only, never checked (see above). [] and null both mean no list is recorded.
Anything else is refused with 400 SIP_ENDPOINT_REQUEST_INVALID, by name, rather
than dropped, and so is a value for a field of the other kind of endpoint (slug or
allowed_source_ips on a username-and-password trunk or an extension endpoint,
max_concurrent_calls on a SIP address endpoint, register on any other kind). That
includes sip_username and sip_password: on a username-and-password trunk Yappr
issues both, and a SIP address endpoint and an extension endpoint have neither (an
extension’s login goes inside register). A top-level transport is not a setting
either: a SIP address takes UDP, TCP or TLS, a trunk lists its transports in
sip_connection, and an extension’s is register.transport. A slug or an address
that does not fit is refused the same way, never rewritten, and nothing is created.Every fault is named in one answer, so a script can fix them all before it sends
the request again. error is the first, in one sentence, and says how many more
there are; issues[] holds each one, with path the field as a pointer and code
what is wrong with it:
{ "error": "Give the endpoint a name: name is required and cannot be blank. 2 more problems are listed in issues.", "code": "SIP_ENDPOINT_REQUEST_INVALID", "issues": [ { "code": "field_required", "path": "/name", "message": "Give the endpoint a name: name is required and cannot be blank." }, { "code": "field_invalid", "path": "/inbound_agent_id", "message": "inbound_agent_id is required: the id of the agent that answers calls to this endpoint." }, { "code": "field_invalid", "path": "/allowed_source_ips/1", "message": "allowed_source_ips must hold IPv4 or IPv6 addresses, each optionally with a /prefix (for example 203.0.113.7/32 or 2001:db8::/32). \"not-an-ip\" is not." } ]}
field_unknown is a field this call does not take, field_required one it needs,
and field_invalid a value it can’t take, or a field of the other kind of endpoint.
An allowed_source_ips entry is named at its index. A
register.pbx_feature_code_hangup_after_secs sent without a code is field_required
at /register/pbx_feature_code. An Idempotency-Key that can’t
be one (too short, a character it can’t hold, or the header sent twice) is refused the
same way, as header_invalid at Idempotency-Key.
Errors
Status
code
Meaning
400
SIP_ENDPOINT_REQUEST_INVALID
A field is missing or does not fit (for example max_concurrent_calls outside 1 to 8, or null, or a slug outside the rules above, or register missing or incomplete on an extension endpoint, or a register.pbx_feature_code that can’t be pressed as keys), the agent is not in this workspace, a field belongs to the other kind of endpoint or is not one this call takes, or the body is not a JSON object. issues[] names every one at its pointer; error says the first. Nothing was created.
400
SIP_ENDPOINT_QUERY_INVALID
The request has a query parameter: this call takes none. issues[] names each. Nothing was created.
400
SIP_REGISTER_HOST_INVALID
Extension endpoints: register.server isn’t a public host name or address (a scheme, a path, a private or loopback address, or a Yappr or Telnyx host). Nothing was created.
403
INSUFFICIENT_SCOPE
The API key does not hold sip_endpoints:manage, and the message names it.
403
FORBIDDEN_ROLE
Dashboard: only workspace owners and admins can create a username-and-password trunk or an extension endpoint.
403
SIP_TRUNKS_NOT_ENABLED
Username-and-password trunks aren’t switched on for this workspace. Nothing was created. Ask Yappr support to switch them on; SIP address endpoints are not affected.
403
SIP_REGISTER_NOT_ENABLED
Extension endpoints aren’t switched on for this workspace. Nothing was created. Ask Yappr support to switch them on; the other kinds are not affected.
409
VOICE_NOT_READY
Yappr can’t answer calls on username-and-password trunks or extension endpoints right now, for example during an update. Nothing was created; try again in a few minutes. SIP address endpoints are not affected.
409
SIP_REGISTER_LIMIT_REACHED
Extension endpoints: the workspace already holds its limit (5 unless Yappr support raised it), or Yappr has no room for another registration right now. Nothing was created. Delete one you don’t use, or ask Yappr support.
409
SIP_REGISTER_SETUP_IN_PROGRESS
Extension endpoints: a create with the same Idempotency-Key started an endpoint whose setup hasn’t finished. Wait a minute and list your endpoints; if it is still switched off, delete it and create it again (if the new one then reads failed with “extension username already in use”, use a different extension name).
409
SIP_REGISTER_EXTENSION_IN_USE
Extension endpoints: this extension username is already used by another live endpoint. Nothing was created. Use another extension name, or edit that endpoint. A name held by a deleted endpoint (it can stay held for hours, also when that endpoint never registered) is not refused here: the endpoint is created and later shows the status failed, “extension username already in use”. To change an endpoint of yours, edit it instead of deleting and re-creating it. Usernames are unique across Yappr, first come first served, so with a short extension such as 101 a clash is likely: create a dedicated extension on your phone system with a distinctive name (letters, digits, - or _).
409
IDEMPOTENCY_KEY_REUSED
This Idempotency-Key already created an endpoint, within the last 24 hours, from a different body. Nothing was created. Send the original body to get that endpoint, or use a new key.
409
CONFLICT
A SIP address endpoint got an address that is already taken (rare). Nothing was created; send the request again for a new random address.
429
RATE_LIMITED
This workspace already made 20 create attempts in the current 24 hours, which run from its first attempt. The limit counts attempts, not endpoints created, so an attempt that failed can count too. Nothing was created; try again once the 24 hours are up.
429
RATE_LIMIT
The same limit, reached by a SIP address endpoint’s create, which answers with this code. (Your API key’s own request rate limit uses it too; error says which.) Nothing was created.
500
INTERNAL_ERROR
Yappr could not save the endpoint. Nothing was created; try again.
502
SIP_TRUNK_PROVISIONING_FAILED
The username and password could not be set up with Yappr’s carrier. Nothing was created; try again in a minute.
502
SIP_REGISTER_PROVIDER_ERROR
Extension endpoints: the registration could not be set up with Yappr’s carrier. Yappr undoes the attempt and nothing is created, and you can try again in a minute. If it could not confirm the undo, the answer says so: the endpoint stays in your list, switched off. Delete it, then create it again.
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).
Headers
Idempotency-Key
string
Makes a retry safe. The same key and the same accepted body within 24
hours answer 200 with the endpoint the first request created and
replayed: true, never a trunk's password (issue a new one with
rotate-password); the same key with another body is 409
IDEMPOTENCY_KEY_REUSED. Scoped to this workspace. After 24 hours the
key makes a new endpoint. Without it, every create makes a new endpoint.
Pattern: ^[A-Za-z0-9_-]{16,128}$
Body
application/json
name
string
required
A label, shown in the dashboard.
Required string length: 1 - 200
Example:
"Main office PBX"
inbound_agent_id
string<uuid>
required
An agent in this workspace. It answers every call on the endpoint. Any agent can answer, a workflow agent included; publish its workflow first (an agent that is switched off, or whose workflow has never been published, can't take calls, and a trunk refuses them with SIP 603 Decline).
auth_mode
enum<string>
default:uri
credentials: a username-and-password trunk. uri: a SIP
address endpoint. register: an extension endpoint, with
register. Any kind answers with any agent. Without auth_mode you get
uri, exactly as before username-and-password trunks existed.
Available options:
credentials,
uri,
register
max_concurrent_calls
integer
default:2
Username-and-password trunks and extension endpoints only. The most
calls the endpoint takes at once (ringing and in progress), 1 to
8; the next one is refused (a trunk answers SIP 486 Busy Here). Omit it for
2. null is refused: every endpoint has a limit.
Required range: 1 <= x <= 8
Example:
5
register
object
Extension endpoints only: the extension account your phone system gave you.
Yappr does not store the password or return it. It is passed to Yappr's
carrier, which holds it to keep the extension registered and to place
transfers.
Show child attributes
slug
string
SIP address endpoints only. An optional readable start for the
address: 2 to 12 letters, digits and single hyphens, starting and
ending with a letter or digit. Yappr lowercases it and adds a
hyphen and 24 random characters after it. It can't be a reserved
word, or start with one followed by a hyphen: yappr, admin,
internal, system, api, sip, telnyx, trunk, root,
test, sudo, support. Derived from name when omitted. A
prefix that does not fit is refused, never rewritten.
Required string length: 2 - 12
Pattern: ^[A-Za-z0-9]+(-[A-Za-z0-9]+)*$
Example:
"after-hours"
allowed_source_ips
string[] | null
deprecated
SIP address endpoints only. Source addresses to record with the
endpoint: IPv4 or IPv6 addresses, each optionally with a /prefix.
Recorded only — calls are not checked against them. [] and
null both mean none is recorded. An entry that is not an
address is refused.
Maximum array length: 50
Response
A retry with the same Idempotency-Key and body, within 24 hours: the
endpoint the first request created, with replayed: true. Nothing new
was created. A trunk's sip_password is not in it.
data
object
required
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.
Show child attributes
replayed
enum<boolean>
required
Available options:
true
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Yappr","colors":{"primary":"#6366f1","light":"#818cf8","dark":"#4f46e5"},"favicon":"https://mintcdn.com/yappr/E1AQ46GZ-5iPcyPp/favicon.svg?fit=max\u0026auto=format\u0026n=E1AQ46GZ-5iPcyPp\u0026q=85\u0026s=a8c28fe51e78b8e4701c773698ba2378","logo":{"light":"https://mintcdn.com/yappr/E1AQ46GZ-5iPcyPp/logo/light.svg?fit=max\u0026auto=format\u0026n=E1AQ46GZ-5iPcyPp\u0026q=85\u0026s=a117ff3aa08c2017e8d58b0da5be882f","dark":"https://mintcdn.com/yappr/E1AQ46GZ-5iPcyPp/logo/dark.svg?fit=max\u0026auto=format\u0026n=E1AQ46GZ-5iPcyPp\u0026q=85\u0026s=613f48501928d9122f97fb91bfcf9b87"},"api":{"openapi":"openapi.yaml"},"footer":{"socials":{"website":"https://goyappr.com"}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"yappr","hasAudioNarration":false,"actualSubdomain":"yappr","customDomains":["docs.goyappr.com"],"gitSource":{"type":"github","owner":"simon-isf","repo":"hebrew-voice-ai","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6b097bda241cbb20e7401d81","clientVersion":"0.0.4340","searchFilterCounts":[{"language":"default","tag":"API Reference","count":210},{"language":"default","tag":"Tools \u0026 integrations","count":35},{"language":"default","tag":"Agent Eval","count":24},{"language":"default","tag":"Agents","count":20},{"language":"default","tag":"Tools","count":19},{"language":"default","tag":"Connected accounts","count":16},{"language":"default","tag":"Campaigns","count":15},{"language":"default","tag":"Carrier accounts","count":14},{"language":"default","tag":"Workflows","count":12},{"language":"default","tag":"Billing","count":11}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/sip-endpoints/create","slug":"/api-reference/sip-endpoints/create","pageMetadata":{"title":"Create SIP Endpoint","openapi":"POST /sip-endpoints","description":"Create a SIP endpoint, so that calls from your own phone system reach an\nagent. Requires `sip_endpoints:manage`. Limit: 20 create attempts per\nworkspace in 24 hours that run from the first attempt, all three kinds\ntogether. The limit counts attempts, not endpoints created.\n\n- `auth_mode: \"credentials\"` creates a **username-and-password\n trunk**. The response carries the username, the server settings and the\n password, **the password only this once**. In the dashboard, only\n workspace owners and admins can create one. While\n [GET /sip-endpoints/status](/api-reference/sip-endpoints/status) answers\n `credentials_available: false`, nothing is created: this answers\n `403 SIP_TRUNKS_NOT_ENABLED` (trunks aren't switched on for your\n workspace) or `409 VOICE_NOT_READY` (Yappr can't take trunk calls right\n now). A trunk only brings calls in: it can't place calls. An agent on a\n trunk call can hand the caller back to your phone system with a\n [SIP-address transfer destination](/concepts/sip-trunks#transfers). Any agent of the\n workspace can answer, including one that runs a workflow: publish its\n workflow first, because calls to an agent that is switched off, or whose\n workflow has never been published, are refused with SIP `603 Decline`,\n and the create doesn't check this.\n- `auth_mode: \"uri\"` (the default) creates a **SIP address endpoint**. The\n response carries the `sip_uri` your phone system dials, with no username\n or password. It works with any agent, including one that runs a\n workflow. The address is the endpoint's only credential: anyone who has\n it can call the agent.\n- `auth_mode: \"register\"` creates an **extension endpoint**, for a hosted\n phone system that only gives you an extension account. Send the\n extension's `register.server`, `register.username` and\n `register.password`; Yappr registers to your phone system like a\n softphone, and the agent answers the calls it routes to that extension.\n Yappr does not store the password or return it; its carrier holds it to\n keep the extension registered and to place transfers, so send the new one\n with an update whenever it changes on your phone system. Registration\n takes a few minutes: poll `register.status`. A workspace can hold 5.\n While [GET /sip-endpoints/status](/api-reference/sip-endpoints/status)\n answers `register_available: false`, nothing is created: this answers\n `403 SIP_REGISTER_NOT_ENABLED` or `409 VOICE_NOT_READY`.\n\nA field the endpoint does not read is refused by name with\n`400 SIP_ENDPOINT_REQUEST_INVALID`, and so is a value for a field of the\nother kind of endpoint. That includes `sip_username` and `sip_password`\n(Yappr issues both on a username-and-password trunk; a SIP address endpoint\nand an extension endpoint have neither: an extension's login goes inside\n`register`) and a top-level `transport`, which is not a setting.\n\nThe [setup guide](/concepts/sip-trunks) says what to enter in your phone\nsystem, and which platforms can send calls to a username-and-password trunk.\n","href":"/api-reference/sip-endpoints/create"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n a: \"a\",\n code: \"code\",\n li: \"li\",\n p: \"p\",\n strong: \"strong\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Create a SIP endpoint, so that calls from your own phone system reach an\\nagent. Requires \", _jsx(_components.code, {\n children: \"sip_endpoints:manage\"\n }), \". Limit: 20 create attempts per\\nworkspace in 24 hours that run from the first attempt, all three kinds\\ntogether. The limit counts attempts, not endpoints created.\"]\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"auth_mode: \\\"credentials\\\"\"\n }), \" creates a \", _jsx(_components.strong, {\n children: \"username-and-password\\ntrunk\"\n }), \". The response carries the username, the server settings and the\\npassword, \", _jsx(_components.strong, {\n children: \"the password only this once\"\n }), \". In the dashboard, only\\nworkspace owners and admins can create one. While\\n\", _jsx(_components.a, {\n href: \"/api-reference/sip-endpoints/status\",\n children: \"GET /sip-endpoints/status\"\n }), \" answers\\n\", _jsx(_components.code, {\n children: \"credentials_available: false\"\n }), \", nothing is created: this answers\\n\", _jsx(_components.code, {\n children: \"403 SIP_TRUNKS_NOT_ENABLED\"\n }), \" (trunks aren’t switched on for your\\nworkspace) or \", _jsx(_components.code, {\n children: \"409 VOICE_NOT_READY\"\n }), \" (Yappr can’t take trunk calls right\\nnow). A trunk only brings calls in: it can’t place calls. An agent on a\\ntrunk call can hand the caller back to your phone system with a\\n\", _jsx(_components.a, {\n href: \"/concepts/sip-trunks#transfers\",\n children: \"SIP-address transfer destination\"\n }), \". Any agent of the\\nworkspace can answer, including one that runs a workflow: publish its\\nworkflow first, because calls to an agent that is switched off, or whose\\nworkflow has never been published, are refused with SIP \", _jsx(_components.code, {\n children: \"603 Decline\"\n }), \",\\nand the create doesn’t check this.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"auth_mode: \\\"uri\\\"\"\n }), \" (the default) creates a \", _jsx(_components.strong, {\n children: \"SIP address endpoint\"\n }), \". The\\nresponse carries the \", _jsx(_components.code, {\n children: \"sip_uri\"\n }), \" your phone system dials, with no username\\nor password. It works with any agent, including one that runs a\\nworkflow. The address is the endpoint’s only credential: anyone who has\\nit can call the agent.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"auth_mode: \\\"register\\\"\"\n }), \" creates an \", _jsx(_components.strong, {\n children: \"extension endpoint\"\n }), \", for a hosted\\nphone system that only gives you an extension account. Send the\\nextension’s \", _jsx(_components.code, {\n children: \"register.server\"\n }), \", \", _jsx(_components.code, {\n children: \"register.username\"\n }), \" and\\n\", _jsx(_components.code, {\n children: \"register.password\"\n }), \"; Yappr registers to your phone system like a\\nsoftphone, and the agent answers the calls it routes to that extension.\\nYappr does not store the password or return it; its carrier holds it to\\nkeep the extension registered and to place transfers, so send the new one\\nwith an update whenever it changes on your phone system. Registration\\ntakes a few minutes: poll \", _jsx(_components.code, {\n children: \"register.status\"\n }), \". A workspace can hold 5.\\nWhile \", _jsx(_components.a, {\n href: \"/api-reference/sip-endpoints/status\",\n children: \"GET /sip-endpoints/status\"\n }), \"\\nanswers \", _jsx(_components.code, {\n children: \"register_available: false\"\n }), \", nothing is created: this answers\\n\", _jsx(_components.code, {\n children: \"403 SIP_REGISTER_NOT_ENABLED\"\n }), \" or \", _jsx(_components.code, {\n children: \"409 VOICE_NOT_READY\"\n }), \".\"]\n }), \"\\n\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"A field the endpoint does not read is refused by name with\\n\", _jsx(_components.code, {\n children: \"400 SIP_ENDPOINT_REQUEST_INVALID\"\n }), \", and so is a value for a field of the\\nother kind of endpoint. That includes \", _jsx(_components.code, {\n children: \"sip_username\"\n }), \" and \", _jsx(_components.code, {\n children: \"sip_password\"\n }), \"\\n(Yappr issues both on a username-and-password trunk; a SIP address endpoint\\nand an extension endpoint have neither: an extension’s login goes inside\\n\", _jsx(_components.code, {\n children: \"register\"\n }), \") and a top-level \", _jsx(_components.code, {\n children: \"transport\"\n }), \", which is not a setting.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"The \", _jsx(_components.a, {\n href: \"/concepts/sip-trunks\",\n children: \"setup guide\"\n }), \" says what to enter in your phone\\nsystem, and which platforms can send calls to a username-and-password trunk.\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`A SIP endpoint lets your own phone system (a PBX, a contact-center platform or a\nSIP provider) send calls to a Yappr agent without a Yappr phone number. Use one\nwhen you already have a business line and want unanswered, after-hours or escalated\ncalls to land on an agent instead of voicemail. Choose the kind with `,_jsx(_components.code,{children:`auth_mode`}),`:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`register`}),`: register as an extension.`]}),` For a hosted phone system that gives you\nonly an extension account (a server, a username and a password) and no way to add\na trunk. Yappr registers to it like a softphone, and the agent answers the calls\nyour system routes to that extension. See `,_jsx(_components.a,{href:`#register-as-an-extension`,children:`Register as an\nextension`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`credentials`}),`: username and password (recommended).`]}),` Yappr issues a SIP username and\npassword. Your phone system sends calls to `,_jsx(_components.code,{children:`sip.telnyx.eu`}),` or `,_jsx(_components.code,{children:`sip.telnyx.com`}),`\nwith them, dialling any number or extension, and the agent answers every call. A\ncall with a wrong username or password is refused before it reaches Yappr. A\ntrunk only brings calls in: it can’t place calls. An agent can still hand a\ntrunk caller back to your phone system with a SIP-address\n`,_jsx(_components.a,{href:`/concepts/sip-trunks#transfers`,children:`transfer`}),`. Any agent can answer, including one that runs a\nworkflow (`,_jsx(_components.a,{href:`#username-and-password-trunk`,children:`below`}),`).`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`uri`}),`: SIP address only (the default).`]}),` Your phone system dials one SIP\naddress, with no username or password. The address is the secret: anyone who\nhas it can call the agent. It works with any agent.`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Requires `,_jsx(_components.code,{children:`sip_endpoints:manage`}),`. A workspace can make 20 create attempts in\n24 hours, all three kinds together. The 24 hours run from the first attempt, and the\nlimit counts attempts, not endpoints created. The `,_jsx(_components.a,{href:`/concepts/sip-trunks`,children:`setup guide`}),` covers\nthe phone system side, and which platforms can send calls to a\nusername-and-password trunk.`]}),`\n`,_jsx(Heading,{level:`2`,id:`username-and-password-trunk`,children:`Username-and-password trunk`}),`\n`,_jsxs(_components.p,{children:[`In the dashboard, only workspace owners and admins can create one. Check\n`,_jsx(_components.a,{href:`/api-reference/sip-endpoints/status`,children:`GET /sip-endpoints/status`}),` first: while\n`,_jsx(_components.code,{children:`credentials_available`}),` is `,_jsx(_components.code,{children:`false`}),`, nothing is created, and this answers\n`,_jsx(_components.code,{children:`403 SIP_TRUNKS_NOT_ENABLED`}),` (username-and-password trunks aren’t switched on for\nyour workspace: ask Yappr support) or `,_jsx(_components.code,{children:`409 VOICE_NOT_READY`}),` (Yappr can’t take trunk\ncalls right now: try again in a few minutes).`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Any agent in the workspace can answer,`}),` including one that runs a workflow:\nits calls run the agent’s published workflow. Publish the workflow first\n(`,_jsx(_components.a,{href:`/api-reference/agents/create`,children:`Create agent`}),`): calls to an agent that is switched\noff, or whose workflow has never been published, are refused with SIP\n`,_jsx(_components.code,{children:`603 Decline`}),`, and the create doesn’t check this.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.goyappr.com/sip-endpoints`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer ypr_live_...\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"name\": \"Main office PBX\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"inbound_agent_id\": \"3f1c2b9e-7a4d-4e21-9c55-1b2d3e4f5a6b\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"auth_mode\": \"credentials\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"max_concurrent_calls\": 5`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`28`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`28`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"8d0c5f4e-2b1a-4c3d-9e8f-7a6b5c4d3e2f\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Main office PBX\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"auth_mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"credentials\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"slug\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"sip_uri\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"sip_username\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"yp4k7d2m9x1q8w3z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"max_concurrent_calls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"sip_connection\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"server\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sip.telnyx.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"alternate_servers\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sip.telnyx.eu\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sip.telnyx.me\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"transports\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"protocol\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"tls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"port\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5061`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"recommended\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"protocol\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"tcp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"port\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5060`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"protocol\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"udp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"port\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5060`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"registration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"optional\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"inbound_agent_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"3f1c2b9e-7a4d-4e21-9c55-1b2d3e4f5a6b\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"is_active\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"last_call_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-10-01T12:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"updated_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-10-01T12:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"password_rotated_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"sip_password\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Ex4mpleOnlyNotARealPassword12345\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`sip_password`}),` is in this response only. Store it now: neither the API nor the\ndashboard can show it again. If it is lost,\n`,_jsx(_components.a,{href:`/api-reference/sip-endpoints/rotate-password`,children:`issue a new one`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`creating-trunks-from-a-script`,children:`Creating trunks from a script`}),`\n`,_jsxs(_components.p,{children:[`Read `,_jsx(_components.code,{children:`sip_password`}),` from the response and put it straight where it is used: your\nphone system’s own API, or a secret store (a vault or your cloud’s secret manager)\nthat the phone system’s setup reads from. Never write it to a file, a log, a ticket\nor a chat, and never print it in a CI job’s output. Keep only the trunk’s `,_jsx(_components.code,{children:`id`}),` and\n`,_jsx(_components.code,{children:`sip_username`}),` in your own records.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Send an `,_jsx(_components.a,{href:`#retrying-a-create`,children:_jsx(_components.code,{children:`Idempotency-Key`})}),` with every create, so a timeout can\nbe retried without making a second trunk.`]}),`\n`,_jsxs(_components.li,{children:[`If the password could not be stored (the store was down, the script crashed after\nthe create), don’t look for it again: no read returns it, and a\n`,_jsx(_components.a,{href:`#retrying-a-create`,children:`replay`}),` doesn’t either. `,_jsx(_components.a,{href:`/api-reference/sip-endpoints/rotate-password`,children:`Issue a new\none`}),` and store that.`]}),`\n`,_jsx(_components.li,{children:`To hand a trunk over to someone else, give them the password through the same\nsecret store, never in the open.`}),`\n`]}),`\n`,_jsx(_components.p,{children:`What to enter in the phone system:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Setting`}),_jsx(_components.th,{children:`Value`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`SIP server`}),_jsxs(_components.td,{children:[`From Israel or Europe, `,_jsx(_components.code,{children:`sip.telnyx.eu`}),` (in `,_jsx(_components.code,{children:`sip_connection.alternate_servers`}),`), the closest. Elsewhere, for example in the US, `,_jsx(_components.code,{children:`sip_connection.server`}),` (`,_jsx(_components.code,{children:`sip.telnyx.com`}),`). Every one of them takes the same username and password, so another one makes a backup route.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Transport`}),_jsx(_components.td,{children:`TLS on port 5061 (recommended; TLS 1.2 or 1.3), or TCP or UDP on port 5060.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Username, password`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`sip_username`}),` and `,_jsx(_components.code,{children:`sip_password`}),`. If your system asks for a realm, it is the server name you send to.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Registration and keep-alives`}),_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`Recommended.`}),` Over TLS or TCP, register the trunk or send keep-alives (SIP `,_jsx(_components.code,{children:`OPTIONS`}),`, such as Asterisk’s `,_jsx(_components.code,{children:`qualify_frequency`}),`) every 30 seconds or less: either keeps the connection open. Over UDP behind NAT or a firewall, send keep-alives every 30 seconds or less even if your system registers, because a registration is refreshed only every few minutes. Otherwise the agent’s hang-up may not reach your system (`,_jsx(_components.a,{href:`/concepts/sip-trunks#register-or-send-keep-alives`,children:`details`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Codecs`}),_jsx(_components.td,{children:`G.711 (µ-law or A-law) first. G.722, G.729 and Opus also work; G.729 costs some sound quality.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`SRTP`}),_jsxs(_components.td,{children:[`Off, or mandatory (RTP/SAVP). Never optional or best effort: that call fails with `,_jsx(_components.code,{children:`488`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Number dialled`}),_jsxs(_components.td,{children:[`Any number or extension; the trunk’s agent answers every call. What was dialled is recorded as the number called, which the dashboard’s call log shows (in the API, `,_jsx(_components.code,{children:`to`}),` is `,_jsx(_components.code,{children:`null`}),` for calls on a SIP endpoint). Yappr keeps only its letters, digits and `,_jsx(_components.code,{children:`+ * # . _ -`}),` (up to 64 characters); if nothing is left, or it contains the trunk’s username, the number called is recorded as `,_jsx(_components.code,{children:`sip-trunk`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Caller ID`}),_jsxs(_components.td,{children:[`The caller’s number in `,_jsx(_components.code,{children:`From`}),` or `,_jsx(_components.code,{children:`P-Asserted-Identity`}),` (`,_jsx(_components.code,{children:`P-Asserted-Identity`}),` wins). If your system sends only the trunk’s username as the `,_jsx(_components.code,{children:`From`}),` user, Yappr records the call with no caller number: the API’s `,_jsx(_components.code,{children:`from`}),` is `,_jsx(_components.code,{children:`null`}),`, and the dashboard’s call log shows `,_jsx(_components.strong,{children:`Unknown caller`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Simultaneous calls`}),_jsxs(_components.td,{children:[`Set this trunk’s channel limit in your system to its `,_jsx(_components.code,{children:`max_concurrent_calls`}),`.`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`If the same phone system or IP address also sends calls to another Telnyx trunk,\nadd the header `,_jsx(_components.code,{children:`X-Telnyx-Username: \u003csip_username>`}),` to this trunk’s calls. The\n`,_jsx(_components.a,{href:`/concepts/sip-trunks#platforms`,children:`setup guide`}),` has the settings for 3CX, FreePBX,\nCisco CUBE, Twilio and other platforms.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/concepts/sip-trunks#transfers`,children:`Transfers`}),` on trunk calls use a SIP address as the\ndestination (for example `,_jsx(_components.code,{children:`sip:reception@pbx.example.com`}),`): your phone system places\nthe new call, and it must accept the transfer request. A phone-number destination\nisn’t dialled from a trunk call; the caller stays with the agent and the call’s\nevents record a `,_jsx(_components.code,{children:`transfer_failed`}),` with `,_jsx(_components.code,{children:`error_code`}),` `,_jsx(_components.code,{children:`UNAVAILABLE_ON_SIP_TRUNK`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`When a trunk already has `,_jsx(_components.code,{children:`max_concurrent_calls`}),` calls ringing or in progress, the\nnext call is refused with SIP `,_jsx(_components.code,{children:`486 Busy Here`}),`, so your phone system can retry or try\nanother route. (This describes username-and-password trunks. On an extension endpoint the call is refused too, and the code your phone system sees isn’t specified.) Leave it out and the trunk takes 2 calls at once; the most it can\ntake is 8. Yappr’s own limit on simultaneous calls applies too, and is answered the\nsame way.`]}),`\n`,_jsx(Heading,{level:`2`,id:`register-as-an-extension`,children:`Register as an extension`}),`\n`,_jsxs(_components.p,{children:[`For a hosted phone system that only gives you an extension account. Use a\nusername-and-password trunk instead whenever your system can add a SIP trunk.\nIn the dashboard, only workspace owners and admins can create one. Check\n`,_jsx(_components.a,{href:`/api-reference/sip-endpoints/status`,children:`GET /sip-endpoints/status`}),` first: while\n`,_jsx(_components.code,{children:`register_available`}),` is `,_jsx(_components.code,{children:`false`}),`, nothing is created, and this answers\n`,_jsx(_components.code,{children:`403 SIP_REGISTER_NOT_ENABLED`}),` (extension endpoints aren’t switched on for your\nworkspace: ask Yappr support) or `,_jsx(_components.code,{children:`409 VOICE_NOT_READY`}),` (try again in a few minutes).`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`16`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.goyappr.com/sip-endpoints`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer ypr_live_...\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"name\": \"Hosted PBX extension\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"inbound_agent_id\": \"3f1c2b9e-7a4d-4e21-9c55-1b2d3e4f5a6b\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"auth_mode\": \"register\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"max_concurrent_calls\": 2,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"register\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"server\": \"sip1.example.net\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"username\": \"101\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"password\": \"ExtensionPasswordFromYourPhoneSystem\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"transport\": \"udp\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"region\": \"middle_east\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`36`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`36`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"5e9a7c21-3b4d-4f60-8a1c-2d3e4f5a6b7c\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Hosted PBX extension\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"auth_mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"register\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"slug\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"sip_uri\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"max_concurrent_calls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"inbound_agent_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"3f1c2b9e-7a4d-4e21-9c55-1b2d3e4f5a6b\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"is_active\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"last_call_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-10-04T12:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"updated_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-10-04T12:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"register\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"server\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sip1.example.net\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"username\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"101\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"auth_username\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"transport\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"udp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"region\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"middle_east\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"pbx_feature_code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"pbx_feature_code_hangup_after_secs\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"outbound\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pending\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status_detail\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status_checked_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"last_activity_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"last_activity_kind\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"allow_list\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"sip_ip\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"192.76.120.75\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"sip_ports\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5060`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5061`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"rtp_ports\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"16384-32768\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"note\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"allow these on your phone system\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Yappr does not keep the password`}),`: it doesn’t store it, return it or log it. It is\npassed to Yappr’s carrier, which holds it to keep the extension registered (it\nre-registers about every hour) and to place transfers through the extension. If it\nchanges on your phone system, send the new one with\n`,_jsx(_components.a,{href:`/api-reference/sip-endpoints/update`,children:_jsx(_components.code,{children:`PATCH /sip-endpoints/{id}`})}),`\n(`,_jsx(_components.code,{children:`register.password`}),`): until you do, the registration can still read `,_jsx(_components.code,{children:`registered`}),`\nwhile transfers fail.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Registration takes a few minutes.`}),` `,_jsx(_components.code,{children:`register.status`}),` starts as `,_jsx(_components.code,{children:`pending`}),`; read\nit with `,_jsx(_components.a,{href:`/api-reference/sip-endpoints/get`,children:_jsx(_components.code,{children:`GET /sip-endpoints/{id}`})}),` until it is\n`,_jsx(_components.code,{children:`registered`}),` or `,_jsx(_components.code,{children:`failed`}),`. `,_jsx(_components.code,{children:`registered`}),` means your phone system accepted the\nregistration. It does `,_jsx(_components.strong,{children:`not`}),` prove that calls and transfers work: send a test call,\nand a test transfer if the agent transfers.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`On your phone system:`})}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Allow the address in `,_jsx(_components.code,{children:`register.allow_list.sip_ip`}),` for SIP (ports 5060 and 5061)\nand for media (RTP, UDP ports 16384 to 32768), in both directions.`]}),`\n`,_jsxs(_components.li,{children:[`Use a `,_jsx(_components.strong,{children:`dedicated extension`}),` that receives calls and can dial only your\ninternal transfer destinations: no outbound, phone-network or international calls. Anyone who learns the\nendpoint’s internal address could place calls as that extension.`]}),`\n`,_jsxs(_components.li,{children:[`The extension username is 2 to 128 characters: letters, digits, `,_jsx(_components.code,{children:`+`}),`, `,_jsx(_components.code,{children:`-`}),` and `,_jsx(_components.code,{children:`_`}),`\n(a dot, `,_jsx(_components.code,{children:`@`}),` or space cannot be registered; a 3-digit extension such as `,_jsx(_components.code,{children:`101`}),`\nworks). It must be `,_jsx(_components.strong,{children:`unique across Yappr`}),`, first come first served. A username\nanother endpoint already registers is refused with\n`,_jsx(_components.code,{children:`409 SIP_REGISTER_EXTENSION_IN_USE`}),`; with a short extension a clash is likely, so\ncreate a dedicated extension on your phone system with a distinctive name and\nregister that one. A name can also stay taken after you delete its endpoint (see\n`,_jsx(_components.a,{href:`/concepts/sip-trunks#changing-or-removing-an-extension-endpoint`,children:`changing or removing an extension endpoint`}),`).`]}),`\n`,_jsx(_components.li,{children:`Send the calls you want answered to the extension.`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Yappr re-registers on a one-hour interval, and there is no setting for it. UDP is\nthe transport that was tested end to end; `,_jsx(_components.code,{children:`tcp`}),` and `,_jsx(_components.code,{children:`tls`}),` are accepted. A\nworkspace can hold 5 extension endpoints; Yappr support can raise that for a workspace.`]}),`\n`,_jsxs(_components.p,{children:[`A `,_jsx(_components.strong,{children:`transfer`}),` on an extension call is a new call that Yappr places through your\nextension (no SIP REFER), to a SIP address such as `,_jsx(_components.code,{children:`sip:reception@pbx.example.com`}),`\n(only the part before the `,_jsx(_components.code,{children:`@`}),` is used). It uses two channels on your phone system.\nIf that call fails or isn’t answered within about 25 seconds, the call ends: the\nagent doesn’t take the caller back.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Set your phone system’s transfer code once, and transfers go through your phone\nsystem instead.`}),` Most hosted phone systems move a call when the extension on it\npresses a transfer code, such as `,_jsx(_components.code,{children:`##`}),` and then the extension. Put that code in\n`,_jsx(_components.code,{children:`register.pbx_feature_code`}),` (on create, or later with\n`,_jsx(_components.a,{href:`/api-reference/sip-endpoints/update`,children:_jsx(_components.code,{children:`PATCH /sip-endpoints/{id}`})}),`) and every transfer\nto an extension on this endpoint’s calls, on every agent, presses it: your phone\nsystem moves the caller, the person who answers sees the caller’s own number, and\nYappr leaves the call, with no second channel and no transfer minutes. There is\nnothing to set on each transfer. If your code starts an attended transfer, one your\nphone system completes only when the extension that pressed it hangs up, also set\n`,_jsx(_components.code,{children:`register.pbx_feature_code_hangup_after_secs`}),` (4 is a good start): Yappr then hangs\nup itself, that hang-up completes the transfer, and there is no fallback, so test it\nonce. Only without it (the dashboard’s attended transfer switch off), if your phone\nsystem doesn’t take the code within about 12 seconds, Yappr places the new call above\ninstead. The `,_jsx(_components.a,{href:`/concepts/sip-trunks#hand-the-call-to-your-phone-system-with-its-transfer-code`,children:`setup guide`}),`\ncovers both.`]}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.a,{href:`/concepts/sip-trunks#register-as-an-extension`,children:`setup guide`}),` explains what the\nendpoint can and can’t do, how a transfer works and how to delete one safely.`]}),`\n`,_jsx(Heading,{level:`2`,id:`sip-address-endpoint`,children:`SIP address endpoint`}),`\n`,_jsxs(_components.p,{children:[`Leave out `,_jsx(_components.code,{children:`auth_mode`}),` (or send `,_jsx(_components.code,{children:`\"uri\"`}),`). Yappr generates the address: a readable\nprefix (the `,_jsx(_components.code,{children:`slug`}),` you send, or one derived from `,_jsx(_components.code,{children:`name`}),`), a hyphen and 24 random\ncharacters, about 120 bits that cannot be guessed. The response carries the full\naddress in `,_jsx(_components.code,{children:`sip_uri`}),`. Hand it to whoever runs the phone system; they paste it into\ntheir PBX or CPaaS as the destination for the relevant route.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.goyappr.com/sip-endpoints`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer ypr_live_...\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{ \"name\": \"After-hours\", \"inbound_agent_id\": \"3f1c2b9e-7a4d-4e21-9c55-1b2d3e4f5a6b\" }'`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`15`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`15`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"After-hours\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"auth_mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"uri\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"slug\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"after-hours-bz3r3mtypuwuw8tpdw3x392s\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"inbound_agent_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"3f1c2b9e-7a4d-4e21-9c55-1b2d3e4f5a6b\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"is_active\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"last_call_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"allowed_source_ips\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-10-01T12:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"updated_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-10-01T12:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"sip_uri\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sip:after-hours-bz3r3mtypuwuw8tpdw3x392s@yappr-byoc.sip.telnyx.com\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`On the phone system side:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Destination`}),`: the `,_jsx(_components.code,{children:`sip_uri`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Authentication`}),`: none. Set it to “none” or “anonymous”; there is no username or password.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Transport`}),`: UDP or TCP on port 5060, or TLS on port 5061. Over UDP or TCP the\naddress crosses the network in clear text, so use TLS where your system supports it.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Codecs`}),`: G.711 (µ-law or A-law) or G.722.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`what-protects-a-sip-address`,children:`What protects a SIP address`}),`\n`,_jsx(_components.p,{children:`The address is the endpoint’s only credential. Read this before you hand it out.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Anyone who has the address can call the agent.`}),` There is no username or\npassword, and the call is billed to your workspace. The address reaches this one\nagent only: it cannot place calls or reach your phone system.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Over UDP or TCP the address travels in clear text.`}),` It can be read on the\nnetwork path between your phone system and Yappr, so send over TLS where you can.\nWhatever the transport, it sits in your phone system’s configuration, logs and SIP\ntraces.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Calls are not filtered by where they come from.`}),` `,_jsx(_components.code,{children:`allowed_source_ips`}),` is stored\nwith the endpoint for your records, but no call is checked against it: a call to\nthe address is answered wherever it comes from.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`The calls API does not return the address, but it is not hidden everywhere.`}),` A\ncall that arrives on the endpoint reads `,_jsx(_components.code,{children:`to: null`}),` and `,_jsx(_components.code,{children:`sip_endpoint_id`}),` on\n`,_jsx(_components.a,{href:`/api-reference/calls/list`,children:_jsx(_components.code,{children:`GET /calls`})}),` and\n`,_jsx(_components.a,{href:`/api-reference/calls/get`,children:_jsx(_components.code,{children:`GET /calls/{id}`})}),`, and its `,_jsx(_components.code,{children:`To`}),` is empty in the export.\nThe dashboard’s call logs still show it as the number called, and the call details\nyour agent’s tools and webhooks receive carry it as the called number\n(`,_jsx(_components.code,{children:`callee_number`}),`), so anyone who can read those can read the address. Don’t log or\nforward `,_jsx(_components.code,{children:`callee_number`}),` from these calls\n(`,_jsx(_components.a,{href:`/concepts/sip-trunks#what-your-tools-and-webhooks-receive`,children:`what tools and webhooks receive`}),`).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Treat the address like an API key.`}),` Limit who can read the phone system’s\nconfiguration, switch the endpoint off with `,_jsx(_components.code,{children:`is_active: false`}),` while it is not in\nuse, and replace it whenever it may have been seen by someone who should not have\nit.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`The address cannot be changed.`}),` To move to a new one, create a new endpoint,\npoint your phone system at its `,_jsx(_components.code,{children:`sip_uri`}),`, then\n`,_jsx(_components.a,{href:`/api-reference/sip-endpoints/delete`,children:`delete`}),` the old one, in that order, so no\ncall is dropped in between. Calls to a deleted address are refused before they\nare answered (SIP `,_jsx(_components.code,{children:`603 Decline`}),`).`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`retrying-a-create`,children:`Retrying a create`}),`\n`,_jsxs(_components.p,{children:[`Send an `,_jsx(_components.code,{children:`Idempotency-Key`}),` header (16 to 128 letters, digits, underscores or hyphens)\nand a create can be retried safely, for example after a timeout, when you can’t tell\nwhether it went through:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.goyappr.com/sip-endpoints`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer ypr_live_...\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Idempotency-Key: pbx-main-office-2026-10-02\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{ \"name\": \"Main office PBX\", \"inbound_agent_id\": \"3f1c2b9e-7a4d-4e21-9c55-1b2d3e4f5a6b\", \"auth_mode\": \"credentials\" }'`})]}),`\n`]})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`The same key and the same body within 24 hours`}),` answer `,_jsx(_components.code,{children:`200`}),` with the endpoint\nthe first request created and `,_jsx(_components.code,{children:`\"replayed\": true`}),` beside `,_jsx(_components.code,{children:`data`}),`. Nothing new is\ncreated, and the create limit is not spent. `,_jsxs(_components.strong,{children:[`A trunk’s `,_jsx(_components.code,{children:`sip_password`}),` is never in\na replay`]}),`: it was returned once, to the first answer. If that answer was lost,\n`,_jsx(_components.a,{href:`/api-reference/sip-endpoints/rotate-password`,children:`issue a new password`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`The same key with a different body`}),` is refused with\n`,_jsx(_components.code,{children:`409 IDEMPOTENCY_KEY_REUSED`}),`, and nothing is created. Use a new key for a new\nendpoint.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`After 24 hours`}),` the key is free again, and a create with it makes a new\nendpoint.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Without a key`}),`, every create makes a new endpoint, as before.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`The key is your workspace’s own: another workspace’s same key is a different\nrequest. Names are not unique, so two endpoints can share one; to find yours by\nname, list with `,_jsx(_components.a,{href:`/api-reference/sip-endpoints/list`,children:_jsx(_components.code,{children:`GET /sip-endpoints?name=`})}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`caller-id`,children:`Caller ID`}),`\n`,_jsx(_components.p,{children:`On every kind, the caller’s number comes from your phone system, so Yappr does not\nuse it to recognize returning callers (lead memory). There is no setting to change\nthis, in the API or the dashboard.`}),`\n`,_jsx(Heading,{level:`2`,id:`what-the-body-may-carry`,children:`What the body may carry`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`What it takes`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{children:`yes`}),_jsx(_components.td,{children:`1 to 200 characters. Shown in the dashboard.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`inbound_agent_id`})}),_jsx(_components.td,{children:`yes`}),_jsx(_components.td,{children:`The id of an agent in this workspace. It answers every call on the endpoint. Any agent can answer on any kind of endpoint, a workflow agent included (see above).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`auth_mode`})}),_jsx(_components.td,{children:`no`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`credentials`}),` (username and password), `,_jsx(_components.code,{children:`register`}),` (an extension, with `,_jsx(_components.code,{children:`register`}),`) or `,_jsx(_components.code,{children:`uri`}),` (SIP address, the default).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`max_concurrent_calls`})}),_jsx(_components.td,{children:`no`}),_jsxs(_components.td,{children:[`Username-and-password trunks and extension endpoints only: 1 to 8 calls at once. Default 2. `,_jsx(_components.code,{children:`null`}),` is refused: every endpoint has a limit.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`register`})}),_jsxs(_components.td,{children:[`with `,_jsx(_components.code,{children:`register`})]}),_jsx(_components.td,{children:`Extension endpoints only: an object, below.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`register.server`})}),_jsx(_components.td,{children:`yes`}),_jsxs(_components.td,{children:[`The registrar of your phone system: a host name or IP address with an optional `,_jsx(_components.code,{children:`:port`}),`. No `,_jsx(_components.code,{children:`sip:`}),` prefix, path or credentials. It must resolve to a public address: a private, loopback or link-local address, or a Yappr or Telnyx host, is refused with `,_jsx(_components.code,{children:`SIP_REGISTER_HOST_INVALID`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`register.username`})}),_jsx(_components.td,{children:`yes`}),_jsxs(_components.td,{children:[`The extension: 2 to 128 characters; letters, digits, `,_jsx(_components.code,{children:`+`}),`, `,_jsx(_components.code,{children:`-`}),` and `,_jsx(_components.code,{children:`_`}),`, starting with a letter, digit or `,_jsx(_components.code,{children:`+`}),`. A dot, `,_jsx(_components.code,{children:`@`}),` or space cannot be registered. A 3-digit extension such as `,_jsx(_components.code,{children:`101`}),` works. Unique across Yappr, first come first served.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`register.password`})}),_jsx(_components.td,{children:`yes`}),_jsx(_components.td,{children:`The extension’s password: 1 to 128 characters. Yappr doesn’t store, return or log it. Its carrier holds it to register and to place transfers, so send the new one when it changes on your phone system.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`register.auth_username`})}),_jsx(_components.td,{children:`no`}),_jsxs(_components.td,{children:[`Only when your phone system logs in with a user other than the extension: 1 to 128 letters, digits and `,_jsx(_components.code,{children:`. _ @ + -`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`register.transport`})}),_jsx(_components.td,{children:`no`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`udp`}),` (default), `,_jsx(_components.code,{children:`tcp`}),` or `,_jsx(_components.code,{children:`tls`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`register.region`})}),_jsx(_components.td,{children:`no`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`middle_east`}),` (default) or `,_jsx(_components.code,{children:`europe`}),`: the region that registers. It decides the address in `,_jsx(_components.code,{children:`allow_list`}),`: `,_jsx(_components.code,{children:`192.76.120.75`}),` for the Middle East (observed live) and `,_jsx(_components.code,{children:`192.76.120.72`}),` for Europe (this address comes from the carrier’s documentation and was not observed live: read it from `,_jsx(_components.code,{children:`allow_list`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`register.pbx_feature_code`})}),_jsx(_components.td,{children:`no`}),_jsxs(_components.td,{children:[`Your phone system’s in-call transfer code, used by every transfer to an extension on this endpoint’s calls (`,_jsx(_components.a,{href:`#register-as-an-extension`,children:`above`}),`): 1 to 32 characters of `,_jsx(_components.code,{children:`0`}),`-`,_jsx(_components.code,{children:`9`}),`, `,_jsx(_components.code,{children:`*`}),`, `,_jsx(_components.code,{children:`#`}),`, `,_jsx(_components.code,{children:`A`}),`-`,_jsx(_components.code,{children:`D`}),` and the pauses `,_jsx(_components.code,{children:`w`}),` (half a second) and `,_jsx(_components.code,{children:`W`}),` (one second), with at least one key, for example `,_jsx(_components.code,{children:`##`}),` or `,_jsx(_components.code,{children:`*2`}),`. The extension is sent right after it; to put it elsewhere, write `,_jsx(_components.code,{children:`{extension}`}),` once where it goes (`,_jsx(_components.code,{children:`*2{extension}#`}),`). `,_jsx(_components.code,{children:`null`}),` or `,_jsx(_components.code,{children:`\"\"`}),` means none.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`register.pbx_feature_code_hangup_after_secs`})}),_jsx(_components.td,{children:`no`}),_jsxs(_components.td,{children:[`Only with `,_jsx(_components.code,{children:`register.pbx_feature_code`}),`, when the code starts an attended transfer: Yappr hangs up this many seconds after the code, and that hang-up completes the transfer, so there is no fallback to the new call: test it once. A whole number from 1 to 10; 4 is a good start. `,_jsx(_components.code,{children:`null`}),` means none, and a code your phone system doesn’t take within about 12 seconds then falls back to the new call.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`register.outbound`})}),_jsx(_components.td,{children:`no`}),_jsxs(_components.td,{children:[`Calls out through the extension: `,_jsx(_components.code,{children:`{ \"enabled\": true, \"caller_number\": \"+97235550100\", \"dial_format\": \"national\", \"dial_prefix\": null }`}),`. `,_jsx(_components.code,{children:`caller_number`}),` (E.164, the number your phone system shows) is required when `,_jsx(_components.code,{children:`enabled`}),` is `,_jsx(_components.code,{children:`true`}),`; `,_jsx(_components.code,{children:`dial_format`}),` is `,_jsx(_components.code,{children:`national`}),` (the default, Israeli numbers only) or `,_jsx(_components.code,{children:`e164`}),` (the country code without the plus sign); `,_jsx(_components.code,{children:`dial_prefix`}),` is one digit. Refused before anything is created with `,_jsx(_components.code,{children:`403 SIP_REGISTER_OUTBOUND_NOT_ENABLED`}),`, `,_jsx(_components.code,{children:`409 VOICE_NOT_READY`}),` or `,_jsx(_components.code,{children:`409 PHONE_NUMBER_IN_USE`}),`. See `,_jsx(_components.a,{href:`/concepts/sip-trunks#outbound-calls-through-the-extension`,children:`outbound calls through the extension`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`slug`})}),_jsx(_components.td,{children:`no`}),_jsxs(_components.td,{children:[`SIP address endpoints only: the readable start of the address, 2 to 12 letters, digits and single hyphens, starting and ending with a letter or digit. Yappr lowercases it. It can’t be a reserved word, or start with one followed by a hyphen: `,_jsx(_components.code,{children:`yappr`}),`, `,_jsx(_components.code,{children:`admin`}),`, `,_jsx(_components.code,{children:`internal`}),`, `,_jsx(_components.code,{children:`system`}),`, `,_jsx(_components.code,{children:`api`}),`, `,_jsx(_components.code,{children:`sip`}),`, `,_jsx(_components.code,{children:`telnyx`}),`, `,_jsx(_components.code,{children:`trunk`}),`, `,_jsx(_components.code,{children:`root`}),`, `,_jsx(_components.code,{children:`test`}),`, `,_jsx(_components.code,{children:`sudo`}),`, `,_jsx(_components.code,{children:`support`}),`. The random part is always added after it. Leave it out and the prefix is derived from `,_jsx(_components.code,{children:`name`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`allowed_source_ips`})}),_jsx(_components.td,{children:`no`}),_jsxs(_components.td,{children:[`SIP address endpoints only: a list of up to 50 IPv4 or IPv6 addresses, each optionally with a `,_jsx(_components.code,{children:`/prefix`}),`, for example `,_jsx(_components.code,{children:`[\"203.0.113.7/32\", \"2001:db8::/32\"]`}),`. Recorded only, never checked (see above). `,_jsx(_components.code,{children:`[]`}),` and `,_jsx(_components.code,{children:`null`}),` both mean no list is recorded.`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Anything else is refused with `,_jsx(_components.code,{children:`400 SIP_ENDPOINT_REQUEST_INVALID`}),`, by name, rather\nthan dropped, and so is a value for a field of the other kind of endpoint (`,_jsx(_components.code,{children:`slug`}),` or\n`,_jsx(_components.code,{children:`allowed_source_ips`}),` on a username-and-password trunk or an extension endpoint,\n`,_jsx(_components.code,{children:`max_concurrent_calls`}),` on a SIP address endpoint, `,_jsx(_components.code,{children:`register`}),` on any other kind). That\nincludes `,_jsx(_components.code,{children:`sip_username`}),` and `,_jsx(_components.code,{children:`sip_password`}),`: on a username-and-password trunk Yappr\nissues both, and a SIP address endpoint and an extension endpoint have neither (an\nextension’s login goes inside `,_jsx(_components.code,{children:`register`}),`). A top-level `,_jsx(_components.code,{children:`transport`}),` is not a setting\neither: a SIP address takes UDP, TCP or TLS, a trunk lists its transports in\n`,_jsx(_components.code,{children:`sip_connection`}),`, and an extension’s is `,_jsx(_components.code,{children:`register.transport`}),`. A `,_jsx(_components.code,{children:`slug`}),` or an address\nthat does not fit is refused the same way, never rewritten, and nothing is created.`]}),`\n`,_jsxs(_components.p,{children:[`Every fault is named in one answer, so a script can fix them all before it sends\nthe request again. `,_jsx(_components.code,{children:`error`}),` is the first, in one sentence, and says how many more\nthere are; `,_jsx(_components.code,{children:`issues[]`}),` holds each one, with `,_jsx(_components.code,{children:`path`}),` the field as a pointer and `,_jsx(_components.code,{children:`code`}),`\nwhat is wrong with it:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Give the endpoint a name: name is required and cannot be blank. 2 more problems are listed in issues.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"SIP_ENDPOINT_REQUEST_INVALID\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"issues\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"field_required\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"path\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"/name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Give the endpoint a name: name is required and cannot be blank.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"field_invalid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"path\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"/inbound_agent_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"inbound_agent_id is required: the id of the agent that answers calls to this endpoint.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"field_invalid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"path\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"/allowed_source_ips/1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"allowed_source_ips must hold IPv4 or IPv6 addresses, each optionally with a /prefix (for example 203.0.113.7/32 or 2001:db8::/32). `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`not-an-ip`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` is not.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`field_unknown`}),` is a field this call does not take, `,_jsx(_components.code,{children:`field_required`}),` one it needs,\nand `,_jsx(_components.code,{children:`field_invalid`}),` a value it can’t take, or a field of the other kind of endpoint.\nAn `,_jsx(_components.code,{children:`allowed_source_ips`}),` entry is named at its index. A\n`,_jsx(_components.code,{children:`register.pbx_feature_code_hangup_after_secs`}),` sent without a code is `,_jsx(_components.code,{children:`field_required`}),`\nat `,_jsx(_components.code,{children:`/register/pbx_feature_code`}),`. An `,_jsx(_components.code,{children:`Idempotency-Key`}),` that can’t\nbe one (too short, a character it can’t hold, or the header sent twice) is refused the\nsame way, as `,_jsx(_components.code,{children:`header_invalid`}),` at `,_jsx(_components.code,{children:`Idempotency-Key`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`code`})}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`SIP_ENDPOINT_REQUEST_INVALID`})}),_jsxs(_components.td,{children:[`A field is missing or does not fit (for example `,_jsx(_components.code,{children:`max_concurrent_calls`}),` outside 1 to 8, or `,_jsx(_components.code,{children:`null`}),`, or a `,_jsx(_components.code,{children:`slug`}),` outside the rules above, or `,_jsx(_components.code,{children:`register`}),` missing or incomplete on an extension endpoint, or a `,_jsx(_components.code,{children:`register.pbx_feature_code`}),` that can’t be pressed as keys), the agent is not in this workspace, a field belongs to the other kind of endpoint or is not one this call takes, or the body is not a JSON object. `,_jsx(_components.code,{children:`issues[]`}),` names every one at its pointer; `,_jsx(_components.code,{children:`error`}),` says the first. Nothing was created.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`SIP_ENDPOINT_QUERY_INVALID`})}),_jsxs(_components.td,{children:[`The request has a query parameter: this call takes none. `,_jsx(_components.code,{children:`issues[]`}),` names each. Nothing was created.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`SIP_REGISTER_HOST_INVALID`})}),_jsxs(_components.td,{children:[`Extension endpoints: `,_jsx(_components.code,{children:`register.server`}),` isn’t a public host name or address (a scheme, a path, a private or loopback address, or a Yappr or Telnyx host). Nothing was created.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`INSUFFICIENT_SCOPE`})}),_jsxs(_components.td,{children:[`The API key does not hold `,_jsx(_components.code,{children:`sip_endpoints:manage`}),`, and the message names it.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`FORBIDDEN_ROLE`})}),_jsx(_components.td,{children:`Dashboard: only workspace owners and admins can create a username-and-password trunk or an extension endpoint.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`SIP_TRUNKS_NOT_ENABLED`})}),_jsx(_components.td,{children:`Username-and-password trunks aren’t switched on for this workspace. Nothing was created. Ask Yappr support to switch them on; SIP address endpoints are not affected.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`SIP_REGISTER_NOT_ENABLED`})}),_jsx(_components.td,{children:`Extension endpoints aren’t switched on for this workspace. Nothing was created. Ask Yappr support to switch them on; the other kinds are not affected.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`409`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`VOICE_NOT_READY`})}),_jsx(_components.td,{children:`Yappr can’t answer calls on username-and-password trunks or extension endpoints right now, for example during an update. Nothing was created; try again in a few minutes. SIP address endpoints are not affected.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`409`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`SIP_REGISTER_LIMIT_REACHED`})}),_jsx(_components.td,{children:`Extension endpoints: the workspace already holds its limit (5 unless Yappr support raised it), or Yappr has no room for another registration right now. Nothing was created. Delete one you don’t use, or ask Yappr support.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`409`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`SIP_REGISTER_SETUP_IN_PROGRESS`})}),_jsxs(_components.td,{children:[`Extension endpoints: a create with the same `,_jsx(_components.code,{children:`Idempotency-Key`}),` started an endpoint whose setup hasn’t finished. Wait a minute and list your endpoints; if it is still switched off, delete it and create it again (if the new one then reads `,_jsx(_components.code,{children:`failed`}),` with “extension username already in use”, use a different extension name).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`409`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`SIP_REGISTER_EXTENSION_IN_USE`})}),_jsxs(_components.td,{children:[`Extension endpoints: this extension username is already used by another live endpoint. Nothing was created. Use another extension name, or edit that endpoint. A name held by a deleted endpoint (it can stay held for hours, also when that endpoint never registered) is not refused here: the endpoint is created and later shows the status `,_jsx(_components.code,{children:`failed`}),`, “extension username already in use”. To change an endpoint of yours, edit it instead of deleting and re-creating it. Usernames are unique across Yappr, first come first served, so with a short extension such as `,_jsx(_components.code,{children:`101`}),` a clash is likely: create a dedicated extension on your phone system with a distinctive name (letters, digits, `,_jsx(_components.code,{children:`-`}),` or `,_jsx(_components.code,{children:`_`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`409`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`IDEMPOTENCY_KEY_REUSED`})}),_jsxs(_components.td,{children:[`This `,_jsx(_components.code,{children:`Idempotency-Key`}),` already created an endpoint, within the last 24 hours, from a different body. Nothing was created. Send the original body to get that endpoint, or use a new key.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`409`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`CONFLICT`})}),_jsx(_components.td,{children:`A SIP address endpoint got an address that is already taken (rare). Nothing was created; send the request again for a new random address.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`429`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`RATE_LIMITED`})}),_jsx(_components.td,{children:`This workspace already made 20 create attempts in the current 24 hours, which run from its first attempt. The limit counts attempts, not endpoints created, so an attempt that failed can count too. Nothing was created; try again once the 24 hours are up.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`429`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`RATE_LIMIT`})}),_jsxs(_components.td,{children:[`The same limit, reached by a SIP address endpoint’s create, which answers with this code. (Your API key’s own request rate limit uses it too; `,_jsx(_components.code,{children:`error`}),` says which.) Nothing was created.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`500`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`INTERNAL_ERROR`})}),_jsx(_components.td,{children:`Yappr could not save the endpoint. Nothing was created; try again.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`502`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`SIP_TRUNK_PROVISIONING_FAILED`})}),_jsx(_components.td,{children:`The username and password could not be set up with Yappr’s carrier. Nothing was created; try again in a minute.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`502`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`SIP_REGISTER_PROVIDER_ERROR`})}),_jsx(_components.td,{children:`Extension endpoints: the registration could not be set up with Yappr’s carrier. Yappr undoes the attempt and nothing is created, and you can try again in a minute. If it could not confirm the undo, the answer says so: the endpoint stays in your list, switched off. Delete it, then create it again.`})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create SIP Endpoint","openapi":"POST /sip-endpoints","description":"Create a SIP endpoint, so that calls from your own phone system reach an\nagent. Requires `sip_endpoints:manage`. Limit: 20 create attempts per\nworkspace in 24 hours that run from the first attempt, all three kinds\ntogether. The limit counts attempts, not endpoints created.\n\n- `auth_mode: \"credentials\"` creates a **username-and-password\n trunk**. The response carries the username, the server settings and the\n password, **the password only this once**. In the dashboard, only\n workspace owners and admins can create one. While\n [GET /sip-endpoints/status](/api-reference/sip-endpoints/status) answers\n `credentials_available: false`, nothing is created: this answers\n `403 SIP_TRUNKS_NOT_ENABLED` (trunks aren't switched on for your\n workspace) or `409 VOICE_NOT_READY` (Yappr can't take trunk calls right\n now). A trunk only brings calls in: it can't place calls. An agent on a\n trunk call can hand the caller back to your phone system with a\n [SIP-address transfer destination](/concepts/sip-trunks#transfers). Any agent of the\n workspace can answer, including one that runs a workflow: publish its\n workflow first, because calls to an agent that is switched off, or whose\n workflow has never been published, are refused with SIP `603 Decline`,\n and the create doesn't check this.\n- `auth_mode: \"uri\"` (the default) creates a **SIP address endpoint**. The\n response carries the `sip_uri` your phone system dials, with no username\n or password. It works with any agent, including one that runs a\n workflow. The address is the endpoint's only credential: anyone who has\n it can call the agent.\n- `auth_mode: \"register\"` creates an **extension endpoint**, for a hosted\n phone system that only gives you an extension account. Send the\n extension's `register.server`, `register.username` and\n `register.password`; Yappr registers to your phone system like a\n softphone, and the agent answers the calls it routes to that extension.\n Yappr does not store the password or return it; its carrier holds it to\n keep the extension registered and to place transfers, so send the new one\n with an update whenever it changes on your phone system. Registration\n takes a few minutes: poll `register.status`. A workspace can hold 5.\n While [GET /sip-endpoints/status](/api-reference/sip-endpoints/status)\n answers `register_available: false`, nothing is created: this answers\n `403 SIP_REGISTER_NOT_ENABLED` or `409 VOICE_NOT_READY`.\n\nA field the endpoint does not read is refused by name with\n`400 SIP_ENDPOINT_REQUEST_INVALID`, and so is a value for a field of the\nother kind of endpoint. That includes `sip_username` and `sip_password`\n(Yappr issues both on a username-and-password trunk; a SIP address endpoint\nand an extension endpoint have neither: an extension's login goes inside\n`register`) and a top-level `transport`, which is not a setting.\n\nThe [setup guide](/concepts/sip-trunks) says what to enter in your phone\nsystem, and which platforms can send calls to a username-and-password trunk.\n","href":"/api-reference/sip-endpoints/create"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Username-and-password trunk","slug":"username-and-password-trunk","depth":2,"children":[{"title":"Creating trunks from a script","slug":"creating-trunks-from-a-script","depth":3,"children":[]}]},{"title":"Register as an extension","slug":"register-as-an-extension","depth":2,"children":[]},{"title":"SIP address endpoint","slug":"sip-address-endpoint","depth":2,"children":[{"title":"What protects a SIP address","slug":"what-protects-a-sip-address","depth":3,"children":[]}]},{"title":"Retrying a create","slug":"retrying-a-create","depth":2,"children":[]},{"title":"Caller ID","slug":"caller-id","depth":2,"children":[]},{"title":"What the body may carry","slug":"what-the-body-may-carry","depth":2,"children":[]},{"title":"Errors","slug":"errors","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Create SIP endpoint","description":"Create a SIP endpoint, so that calls from your own phone system reach an\nagent. Requires `sip_endpoints:manage`. Limit: 20 create attempts per\nworkspace in 24 hours that run from the first attempt, all three kinds\ntogether. The limit counts attempts, not endpoints created.\n\n- `auth_mode: \"credentials\"` creates a **username-and-password\n trunk**. The response carries the username, the server settings and the\n password, **the password only this once**. In the dashboard, only\n workspace owners and admins can create one. While\n [GET /sip-endpoints/status](/api-reference/sip-endpoints/status) answers\n `credentials_available: false`, nothing is created: this answers\n `403 SIP_TRUNKS_NOT_ENABLED` (trunks aren't switched on for your\n workspace) or `409 VOICE_NOT_READY` (Yappr can't take trunk calls right\n now). A trunk only brings calls in: it can't place calls. An agent on a\n trunk call can hand the caller back to your phone system with a\n [SIP-address transfer destination](/concepts/sip-trunks#transfers). Any agent of the\n workspace can answer, including one that runs a workflow: publish its\n workflow first, because calls to an agent that is switched off, or whose\n workflow has never been published, are refused with SIP `603 Decline`,\n and the create doesn't check this.\n- `auth_mode: \"uri\"` (the default) creates a **SIP address endpoint**. The\n response carries the `sip_uri` your phone system dials, with no username\n or password. It works with any agent, including one that runs a\n workflow. The address is the endpoint's only credential: anyone who has\n it can call the agent.\n- `auth_mode: \"register\"` creates an **extension endpoint**, for a hosted\n phone system that only gives you an extension account. Send the\n extension's `register.server`, `register.username` and\n `register.password`; Yappr registers to your phone system like a\n softphone, and the agent answers the calls it routes to that extension.\n Yappr does not store the password or return it; its carrier holds it to\n keep the extension registered and to place transfers, so send the new one\n with an update whenever it changes on your phone system. Registration\n takes a few minutes: poll `register.status`. A workspace can hold 5.\n While [GET /sip-endpoints/status](/api-reference/sip-endpoints/status)\n answers `register_available: false`, nothing is created: this answers\n `403 SIP_REGISTER_NOT_ENABLED` or `409 VOICE_NOT_READY`.\n\nA field the endpoint does not read is refused by name with\n`400 SIP_ENDPOINT_REQUEST_INVALID`, and so is a value for a field of the\nother kind of endpoint. That includes `sip_username` and `sip_password`\n(Yappr issues both on a username-and-password trunk; a SIP address endpoint\nand an extension endpoint have neither: an extension's login goes inside\n`register`) and a top-level `transport`, which is not a setting.\n\nThe [setup guide](/concepts/sip-trunks) says what to enter in your phone\nsystem, and which platforms can send calls to a username-and-password trunk.\n","operationId":"createSipEndpoint","tags":["SIP Endpoints"],"parameters":["81d9e0d9-1368-4230-b11e-6884cdef7248"],"requestBody":"5fc5b20e-9b3e-4965-ab97-18d4f856dc79","responses":{"200":"4bf232b2-ee3f-4edc-a7a4-98e04adae507","201":"ecbc0d0b-6d20-4db3-b164-a40d3891810d","400":"1b57a700-6af9-472d-80c1-ee3ce76bd498","401":"6d1ecafe-ec62-41cb-b1d2-5d3f09ca9dbb","403":"dc85ffde-1b40-42a7-a1dc-9873a9e948f9","409":"e9ec9d1d-a393-4fe5-8256-d3d7d6fd21ea","429":"a9b13e37-16bc-4ee2-ae8a-d1eccdec2ec7","500":"37545ffe-ccb0-42e6-a087-17e0ec6b372e","502":"bd238f77-0428-40ea-9b43-29a51acf1810"},"method":"post","type":"path","servers":["dc0c5f7d-c0c3-40b9-9c53-ce2239f5b67d"],"security":["2767439e-f0c6-4cd4-a450-ba11a6ab8311"],"path":"/sip-endpoints","baseUrlOptions":["https://api.goyappr.com"],"title":"Create SIP endpoint","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"81d9e0d9-1368-4230-b11e-6884cdef7248":{"in":"header","name":"Idempotency-Key","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,128}$","isRequired":false,"description":"Makes a retry safe. The same key and the same accepted body within 24\nhours answer 200 with the endpoint the first request created and\n`replayed: true`, never a trunk's password (issue a new one with\nrotate-password); the same key with another body is 409\n`IDEMPOTENCY_KEY_REUSED`. Scoped to this workspace. After 24 hours the\nkey makes a new endpoint. Without it, every create makes a new endpoint.\n","uniqueKey":"","typeLabel":"string"},"description":"Makes a retry safe. The same key and the same accepted body within 24\nhours answer 200 with the endpoint the first request created and\n`replayed: true`, never a trunk's password (issue a new one with\nrotate-password); the same key with another body is 409\n`IDEMPOTENCY_KEY_REUSED`. Scoped to this workspace. After 24 hours the\nkey makes a new endpoint. Without it, every create makes a new endpoint.\n"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["name","inbound_agent_id"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200,"description":"A label, shown in the dashboard.","example":"Main office PBX","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"inbound_agent_id":{"type":"string","format":"uuid","description":"An agent in this workspace. It answers every call on the endpoint. Any agent can answer, a workflow agent included; publish its workflow first (an agent that is switched off, or whose workflow has never been published, can't take calls, and a trunk refuses them with SIP `603 Decline`).","isRequired":true,"uniqueKey":"inbound_agent_id","typeLabel":"string\u003cuuid>"},"auth_mode":{"type":"string","enum":["credentials","uri","register"],"default":"uri","description":"`credentials`: a username-and-password trunk. `uri`: a SIP\naddress endpoint. `register`: an extension endpoint, with\n`register`. Any kind answers with any agent. Without `auth_mode` you get\n`uri`, exactly as before username-and-password trunks existed.\n","uniqueKey":"auth_mode","typeLabel":"enum\u003cstring>"},"max_concurrent_calls":{"type":"integer","minimum":1,"maximum":8,"default":2,"description":"Username-and-password trunks and extension endpoints only. The most\ncalls the endpoint takes at once (ringing and in progress), 1 to\n8; the next one is refused (a trunk answers SIP `486 Busy Here`). Omit it for\n2. `null` is refused: every endpoint has a limit.\n","example":5,"uniqueKey":"max_concurrent_calls","typeLabel":"integer"},"register":{"type":"object","description":"Extension endpoints only: the extension account your phone system gave you.\nYappr does not store the password or return it. It is passed to Yappr's\ncarrier, which holds it to keep the extension registered and to place\ntransfers.\n","required":["server","username","password"],"properties":{"server":{"type":"string","description":"The registrar, as a host name or IP address with an optional `:port`\n(1 to 65535). No `sip:` prefix, path or credentials. It is checked\nwhen you save: it must resolve to a public address, not a private,\nloopback or link-local one, and not a Yappr or Telnyx host.\n","example":"sip1.example.net","isRequired":true,"uniqueKey":"register.server","typeLabel":"string"},"username":{"type":"string","maxLength":128,"minLength":2,"pattern":"^[A-Za-z0-9+][A-Za-z0-9+_-]{1,127}$","description":"The extension: 2 to 128 characters; letters, digits, `+`, `-` and `_`,\nstarting with a letter, digit or `+`. A dot, `@` or space cannot be\nregistered. A 3-digit extension such as `101` works. Unique across\nYappr, first come first served: with a short extension a clash is\nlikely, so create a dedicated extension on your phone system with a\ndistinctive name and register that one.\n","example":"101","isRequired":true,"uniqueKey":"register.username","typeLabel":"string"},"password":{"type":"string","minLength":1,"maxLength":128,"writeOnly":true,"description":"The extension's password. Yappr does not store, return or log it. It is\npassed to Yappr's carrier, which holds it to register (about every\nhour) and to place transfers: send the new one in an update whenever it\nchanges on your phone system.\n","isRequired":true,"uniqueKey":"register.password","typeLabel":"string"},"auth_username":{"oneOf":[{"type":"string","maxLength":128,"description":"Only when your phone system logs in with a user other than the extension: 1 to 128 letters, digits and `. _ @ + -`.","uniqueKey":"register.auth_username.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":128,"description":"Only when your phone system logs in with a user other than the extension: 1 to 128 letters, digits and `. _ @ + -`.","uniqueKey":"register.auth_username.oneOf.1","typeLabel":"null"}],"uniqueKey":"register.auth_username","typeLabel":"string | null"},"transport":{"type":"string","enum":["udp","tcp","tls"],"default":"udp","uniqueKey":"register.transport","typeLabel":"enum\u003cstring>"},"region":{"type":"string","enum":["middle_east","europe"],"default":"middle_east","description":"The Telnyx region that registers. Pick the one nearer your phone system.\nIt decides the address in `allow_list`: `192.76.120.75` for\n`middle_east` (observed live) and `192.76.120.72` for `europe` (this\naddress comes from the carrier's documentation and was not observed\nlive; read it from `allow_list`).\n","uniqueKey":"register.region","typeLabel":"enum\u003cstring>"},"pbx_feature_code":{"oneOf":[{"type":"string","examples":["##","*2","*2{extension}#"],"description":"Your phone system's in-call transfer code, set once for every transfer on this\nendpoint's calls, on every agent, whose destination is an extension a keypad can dial\n(`sip:400@pbx.example.com`): Yappr presses the code and then the extension, your phone\nsystem moves the caller, and Yappr leaves the call. Without\n`pbx_feature_code_hangup_after_secs`, if your phone system hasn't taken the call\nwithin about 12 seconds, Yappr places a new call through the extension instead;\nwith it, Yappr's own hang-up completes the transfer and there is no fallback. A transfer tool or flow step with a code of its own uses that one. 1 to\n32 characters of `0`-`9`, `*`, `#`, `A`-`D` and the pauses `w` (half a second) and\n`W` (one second), with at least one key.\n`{extension}` may appear once and is replaced by the extension; without it the\nextension is sent right after the code (`##` and `sip:400@pbx.example.com` send\n`##400`). Surrounding spaces are trimmed before these checks, and the code is stored\ntrimmed. Anything else is refused with `field_invalid` at\n`/register/pbx_feature_code`. Leave it out, or send `null` or `\"\"`, for none.\n","uniqueKey":"register.pbx_feature_code.oneOf.0","typeLabel":"string"},{"type":"null","examples":["##","*2","*2{extension}#"],"description":"Your phone system's in-call transfer code, set once for every transfer on this\nendpoint's calls, on every agent, whose destination is an extension a keypad can dial\n(`sip:400@pbx.example.com`): Yappr presses the code and then the extension, your phone\nsystem moves the caller, and Yappr leaves the call. Without\n`pbx_feature_code_hangup_after_secs`, if your phone system hasn't taken the call\nwithin about 12 seconds, Yappr places a new call through the extension instead;\nwith it, Yappr's own hang-up completes the transfer and there is no fallback. A transfer tool or flow step with a code of its own uses that one. 1 to\n32 characters of `0`-`9`, `*`, `#`, `A`-`D` and the pauses `w` (half a second) and\n`W` (one second), with at least one key.\n`{extension}` may appear once and is replaced by the extension; without it the\nextension is sent right after the code (`##` and `sip:400@pbx.example.com` send\n`##400`). Surrounding spaces are trimmed before these checks, and the code is stored\ntrimmed. Anything else is refused with `field_invalid` at\n`/register/pbx_feature_code`. Leave it out, or send `null` or `\"\"`, for none.\n","uniqueKey":"register.pbx_feature_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"register.pbx_feature_code","typeLabel":"string | null"},"pbx_feature_code_hangup_after_secs":{"oneOf":[{"type":"integer","minimum":1,"maximum":10,"examples":[4],"description":"Only with `pbx_feature_code`. Set it when your phone system's code starts an\nattended transfer that completes when the extension that typed it hangs up: Yappr\nhangs up this many seconds after the code (counted once its key presses have\nplayed), and until then the agent is off the line, silent and not listening. That\nhang-up is the hand-off, so there is no fallback: test it once. 4 is a good start.\nA whole number from 1 to 10 (`field_invalid` at\n`/register/pbx_feature_code_hangup_after_secs`); without a code it is\n`field_required` at `/register/pbx_feature_code`. Leave it out (or `null`) to wait\nfor your phone system to take the call.\n","uniqueKey":"register.pbx_feature_code_hangup_after_secs.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"maximum":10,"examples":[4],"description":"Only with `pbx_feature_code`. Set it when your phone system's code starts an\nattended transfer that completes when the extension that typed it hangs up: Yappr\nhangs up this many seconds after the code (counted once its key presses have\nplayed), and until then the agent is off the line, silent and not listening. That\nhang-up is the hand-off, so there is no fallback: test it once. 4 is a good start.\nA whole number from 1 to 10 (`field_invalid` at\n`/register/pbx_feature_code_hangup_after_secs`); without a code it is\n`field_required` at `/register/pbx_feature_code`. Leave it out (or `null`) to wait\nfor your phone system to take the call.\n","uniqueKey":"register.pbx_feature_code_hangup_after_secs.oneOf.1","typeLabel":"null"}],"uniqueKey":"register.pbx_feature_code_hangup_after_secs","typeLabel":"integer | null"},"outbound":{"type":"object","required":["enabled"],"additionalProperties":false,"description":"Calls out through the extension. Yappr's own setting: it needs no password, is not sent to\nthe carrier and does not count toward the 30 changes an hour. On PATCH a field you leave\nout keeps its value. Switching it on is refused with `403 SIP_REGISTER_OUTBOUND_NOT_ENABLED`\nfor a workspace it isn't enabled for, and `409 VOICE_NOT_READY` while the voice server\ncan't place these calls; switching it off always works.\n","properties":{"enabled":{"type":"boolean","description":"`true` to call out through the extension (also lifts a pause), `false` to stop.","isRequired":true,"uniqueKey":"register.outbound.enabled","typeLabel":"boolean"},"caller_number":{"type":"string","pattern":"^\\+[1-9][0-9]{6,14}$","example":"+97235550100","description":"The number your phone system shows, in E.164 form. Required the first time outbound is\nswitched on (`field_required` at `/register/outbound/caller_number`). A number already\nin Yappr is refused with `409 PHONE_NUMBER_IN_USE`.\n","uniqueKey":"register.outbound.caller_number","typeLabel":"string"},"dial_format":{"type":"string","enum":["national","e164"],"default":"national","uniqueKey":"register.outbound.dial_format","typeLabel":"enum\u003cstring>"},"dial_prefix":{"oneOf":[{"type":"string","pattern":"^[0-9]$","description":"One digit, or `null` for none.","uniqueKey":"register.outbound.dial_prefix.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[0-9]$","description":"One digit, or `null` for none.","uniqueKey":"register.outbound.dial_prefix.oneOf.1","typeLabel":"null"}],"uniqueKey":"register.outbound.dial_prefix","typeLabel":"string | null"}},"uniqueKey":"register.outbound","typeLabel":"object"}},"uniqueKey":"register","typeLabel":"object"},"slug":{"type":"string","minLength":2,"maxLength":12,"pattern":"^[A-Za-z0-9]+(-[A-Za-z0-9]+)*$","description":"SIP address endpoints only. An optional readable start for the\naddress: 2 to 12 letters, digits and single hyphens, starting and\nending with a letter or digit. Yappr lowercases it and adds a\nhyphen and 24 random characters after it. It can't be a reserved\nword, or start with one followed by a hyphen: `yappr`, `admin`,\n`internal`, `system`, `api`, `sip`, `telnyx`, `trunk`, `root`,\n`test`, `sudo`, `support`. Derived from `name` when omitted. A\nprefix that does not fit is refused, never rewritten.\n","example":"after-hours","uniqueKey":"slug","typeLabel":"string"},"allowed_source_ips":{"oneOf":[{"type":"array","deprecated":true,"maxItems":50,"description":"SIP address endpoints only. Source addresses to record with the\nendpoint: IPv4 or IPv6 addresses, each optionally with a /prefix.\nRecorded only — calls are not checked against them. `[]` and\n`null` both mean none is recorded. An entry that is not an\naddress is refused.\n","items":{"type":"string","example":"203.0.113.0/24","uniqueKey":"allowed_source_ips.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"allowed_source_ips.oneOf.0","typeLabel":"string[]"},{"type":"null","deprecated":true,"maxItems":50,"description":"SIP address endpoints only. Source addresses to record with the\nendpoint: IPv4 or IPv6 addresses, each optionally with a /prefix.\nRecorded only — calls are not checked against them. `[]` and\n`null` both mean none is recorded. An entry that is not an\naddress is refused.\n","items":{"type":"string","example":"203.0.113.0/24"},"uniqueKey":"allowed_source_ips.oneOf.1","typeLabel":"null"}],"uniqueKey":"allowed_source_ips","typeLabel":"string[] | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"credentials":{"title":"credentials","summary":"Username-and-password trunk","value":{"name":"Main office PBX","inbound_agent_id":"3f1c2b9e-7a4d-4e21-9c55-1b2d3e4f5a6b","auth_mode":"credentials","max_concurrent_calls":5}},"uri":{"title":"uri","summary":"SIP address endpoint","value":{"name":"After-hours","inbound_agent_id":"3f1c2b9e-7a4d-4e21-9c55-1b2d3e4f5a6b"}},"register":{"title":"register","summary":"Extension endpoint","value":{"name":"Hosted PBX extension","inbound_agent_id":"3f1c2b9e-7a4d-4e21-9c55-1b2d3e4f5a6b","auth_mode":"register","max_concurrent_calls":2,"register":{"server":"sip1.example.net","username":"101","password":"ExtensionPasswordFromYourPhoneSystem","transport":"udp","region":"middle_east"}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"4bf232b2-ee3f-4edc-a7a4-98e04adae507":{"description":"A retry with the same `Idempotency-Key` and body, within 24 hours: the\nendpoint the first request created, with `replayed: true`. Nothing new\nwas created. A trunk's `sip_password` is not in it.\n","content":{"application/json":{"schema":{"type":"object","required":["data","replayed"],"properties":{"data":{"type":"object","description":"A SIP endpoint lets your own phone system (a PBX, a contact-center\nplatform or a SIP provider) send calls to a Yappr agent, without a Yappr\nphone number. It comes in three kinds, set by `auth_mode` when you create it:\n\n- `credentials`: **username and password**. Yappr issues a SIP username\n and password. Your phone system sends calls to `sip.telnyx.eu` or\n `sip.telnyx.com` with them, dialling any number or extension, and the\n endpoint's agent answers every call. A call with a wrong username or\n password is refused before it reaches Yappr. The password is returned\n only once: by [create](/api-reference/sip-endpoints/create) and by\n [rotate-password](/api-reference/sip-endpoints/rotate-password). Any agent\n of the workspace can answer, including one that runs a workflow: see\n `inbound_agent_id`.\n- `uri`: **SIP address only**. Your phone system dials the endpoint's\n `sip_uri`, with no username or password. It works with any agent,\n including one that runs a workflow. The address is the secret:\n anyone who has it can call the agent, on your workspace's minutes, so\n treat it like an API key. Calls are not filtered by source address. To\n replace it, create a new endpoint, point your phone system at it, then\n delete the old one; calls to a deleted or switched-off endpoint are\n refused before they are answered.\n- `register`: **register as an extension**. For a hosted phone system that\n only gives you an extension account (server, username, password).\n Yappr registers to it like a softphone and the agent answers the calls\n the system routes to that extension. Yappr does not keep or return the\n extension's password. You send it to create the endpoint and again\n whenever it changes on your phone system, because Yappr's carrier holds\n it to keep the extension registered and to place transfers.\n The `register` object carries the settings and the registration\n `status`. See [Register as an extension](/concepts/sip-trunks#register-as-an-extension).\n\n`sip_username` and `sip_connection` appear on username-and-password\ntrunks only, `max_concurrent_calls` on trunks and extension endpoints,\n`register` on extension endpoints only, and `allowed_source_ips` on SIP\naddress endpoints only. List, get and update never return a password. A SIP\naddress endpoint's `slug` and `sip_uri` are its credential, and a trunk's\n`sip_username` is half of its, so list and get return them only to a key\nthat also holds `sip_endpoints:manage`; with `sip_endpoints:read` alone\n(the Read-only preset) they are `null`. The\n[setup guide](/concepts/sip-trunks) covers the phone system side.\n","required":["id","name","auth_mode","slug","sip_uri","inbound_agent_id","is_active","last_call_at","created_at","updated_at"],"properties":{"id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"data.id","typeLabel":"string\u003cuuid>"},"name":{"type":"string","example":"Main office PBX","isRequired":true,"uniqueKey":"data.name","typeLabel":"string"},"auth_mode":{"type":"string","enum":["credentials","uri","register"],"description":"`credentials`: a username-and-password trunk. `uri`: a SIP address\nendpoint. `register`: an extension on your phone system that Yappr\nregisters to. Endpoints created before username-and-password trunks\nexisted are `uri`. It cannot be changed after the endpoint is created.\n","example":"credentials","isRequired":true,"uniqueKey":"data.auth_mode","typeLabel":"enum\u003cstring>"},"slug":{"oneOf":[{"type":"string","description":"SIP address endpoints: the user part of `sip_uri`, made of a readable\nprefix (the `slug` you sent, or one derived from `name`), a hyphen and\n24 random characters, about 120 bits that cannot be guessed. `null` on\nusername-and-password trunks, and on list and get for a key without\n`sip_endpoints:manage`.\n","example":"after-hours-bz3r3mtypuwuw8tpdw3x392s","isRequired":true,"uniqueKey":"data.slug.oneOf.0","typeLabel":"string"},{"type":"null","description":"SIP address endpoints: the user part of `sip_uri`, made of a readable\nprefix (the `slug` you sent, or one derived from `name`), a hyphen and\n24 random characters, about 120 bits that cannot be guessed. `null` on\nusername-and-password trunks, and on list and get for a key without\n`sip_endpoints:manage`.\n","example":"after-hours-bz3r3mtypuwuw8tpdw3x392s","isRequired":true,"uniqueKey":"data.slug.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.slug","typeLabel":"string | null"},"sip_uri":{"oneOf":[{"type":"string","description":"SIP address endpoints: the full address your phone system dials, over\nUDP or TCP (port 5060) or TLS (port 5061). Over UDP or TCP it crosses\nthe network in clear text, so use TLS where your phone system supports\nit. No username and no password: anyone who has it can call the agent,\nso treat it like an API key. `null` on username-and-password trunks, and\non list and get for a key without `sip_endpoints:manage`.\n","example":"sip:after-hours-bz3r3mtypuwuw8tpdw3x392s@yappr-byoc.sip.telnyx.com","isRequired":true,"uniqueKey":"data.sip_uri.oneOf.0","typeLabel":"string"},{"type":"null","description":"SIP address endpoints: the full address your phone system dials, over\nUDP or TCP (port 5060) or TLS (port 5061). Over UDP or TCP it crosses\nthe network in clear text, so use TLS where your phone system supports\nit. No username and no password: anyone who has it can call the agent,\nso treat it like an API key. `null` on username-and-password trunks, and\non list and get for a key without `sip_endpoints:manage`.\n","example":"sip:after-hours-bz3r3mtypuwuw8tpdw3x392s@yappr-byoc.sip.telnyx.com","isRequired":true,"uniqueKey":"data.sip_uri.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.sip_uri","typeLabel":"string | null"},"inbound_agent_id":{"type":"string","format":"uuid","description":"The agent that answers every call on this endpoint. Any agent of\nthe workspace can answer, including one that runs a workflow, on\neither kind of endpoint. Publish the workflow first: calls to an agent\nthat is switched off, or whose workflow has never been published, are\nrefused (on a trunk with SIP `603 Decline`).\n","isRequired":true,"uniqueKey":"data.inbound_agent_id","typeLabel":"string\u003cuuid>"},"is_active":{"type":"boolean","description":"`false` switches the endpoint off: new calls are refused before they\nare answered until you switch it back on (a trunk or SIP address\nendpoint answers SIP `603 Decline`; on an extension endpoint `register.status`\nreads `disabled` and Yappr refuses new calls, but your phone system is not\ntold). Calls in progress are not affected.\n","isRequired":true,"uniqueKey":"data.is_active","typeLabel":"boolean"},"last_call_at":{"oneOf":[{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"data.last_call_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","isRequired":true,"uniqueKey":"data.last_call_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.last_call_at","typeLabel":"string\u003cdate-time> | null"},"created_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"data.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","description":"When the endpoint last changed, a new password included.","isRequired":true,"uniqueKey":"data.updated_at","typeLabel":"string\u003cdate-time>"},"sip_username":{"oneOf":[{"type":"string","description":"Username-and-password trunks only. The SIP username your phone system\nauthenticates with: `yp` followed by 14 lowercase letters and digits.\nIt never changes; only the password can be replaced. `null` on list\nand get for a key without `sip_endpoints:manage`, and on a trunk whose\nsetup never finished (switched off; delete it and create a new one).\n","example":"yp4k7d2m9x1q8w3z","uniqueKey":"data.sip_username.oneOf.0","typeLabel":"string"},{"type":"null","description":"Username-and-password trunks only. The SIP username your phone system\nauthenticates with: `yp` followed by 14 lowercase letters and digits.\nIt never changes; only the password can be replaced. `null` on list\nand get for a key without `sip_endpoints:manage`, and on a trunk whose\nsetup never finished (switched off; delete it and create a new one).\n","example":"yp4k7d2m9x1q8w3z","uniqueKey":"data.sip_username.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sip_username","typeLabel":"string | null"},"max_concurrent_calls":{"type":"integer","minimum":1,"maximum":8,"description":"Username-and-password trunks and extension endpoints only. The most\ncalls the endpoint takes at once, counting calls ringing and in\nprogress: 1 to 8, 2 unless you changed it. The next call is refused (a trunk\nanswers SIP `486 Busy Here`; an extension endpoint's call is refused\nwithout a specified code).\n","example":5,"uniqueKey":"data.max_concurrent_calls","typeLabel":"integer"},"sip_connection":{"type":"object","description":"Username-and-password trunks only: where and how your phone system sends\nthe trunk's calls. It is the same on every trunk. The\n[setup guide](/concepts/sip-trunks) explains each value.\n","required":["server","alternate_servers","transports","registration"],"properties":{"server":{"type":"string","description":"The SIP server (proxy, registrar) your phone system sends the trunk's\ncalls to, for example in the US. From Israel or Europe,\n`sip.telnyx.eu` (in `alternate_servers`) is closer. If your system\nasks for a realm, the realm is the server name you send to.\n","example":"sip.telnyx.com","isRequired":true,"uniqueKey":"data.sip_connection.server","typeLabel":"string"},"alternate_servers":{"type":"array","items":{"type":"string","uniqueKey":"data.sip_connection.alternate_servers.items.[INDEX]","typeLabel":"string"},"description":"Other servers that take the same username and password: use\n`sip.telnyx.eu` from Israel or Europe, and any other one for a backup\nroute. The realm follows the server you use.\n","example":["sip.telnyx.eu","sip.telnyx.me"],"isRequired":true,"uniqueKey":"data.sip_connection.alternate_servers","typeLabel":"string[]"},"transports":{"type":"array","description":"The transports and ports to send the trunk's calls on. TLS (1.2 or\n1.3) is recommended. Telnyx publishes the same transports and ports\nfor the alternate servers.\n","items":{"type":"object","required":["protocol","port"],"properties":{"protocol":{"type":"string","enum":["tls","tcp","udp"],"isRequired":true,"uniqueKey":"data.sip_connection.transports.items.[INDEX].protocol","typeLabel":"enum\u003cstring>"},"port":{"type":"integer","isRequired":true,"uniqueKey":"data.sip_connection.transports.items.[INDEX].port","typeLabel":"integer"},"recommended":{"type":"boolean","description":"`true` on the transport to prefer. Absent on the others.","uniqueKey":"data.sip_connection.transports.items.[INDEX].recommended","typeLabel":"boolean"}},"uniqueKey":"data.sip_connection.transports.items.[INDEX]","typeLabel":"object"},"example":[{"protocol":"tls","port":5061,"recommended":true},{"protocol":"tcp","port":5060},{"protocol":"udp","port":5060}],"isRequired":true,"uniqueKey":"data.sip_connection.transports","typeLabel":"object[]"},"registration":{"type":"string","enum":["optional"],"description":"`optional`: each call is checked against the username and password, so\nregistering is not what lets a call in. Keep the connection open\nanyway: over TLS or TCP, register the trunk or send keep-alives (SIP\n`OPTIONS`) every 30 seconds or less; over UDP behind NAT or a\nfirewall, send keep-alives every 30 seconds or less even if your\nsystem registers, because a registration is refreshed only every few\nminutes. Otherwise the agent's hang-up may not reach your phone system\n([setup guide](/concepts/sip-trunks#register-or-send-keep-alives)).\n","isRequired":true,"uniqueKey":"data.sip_connection.registration","typeLabel":"enum\u003cstring>"}},"uniqueKey":"data.sip_connection","typeLabel":"object"},"register":{"type":"object","description":"Extension endpoints (`auth_mode: \"register\"`) only: the extension Yappr\nregisters as, and how that registration is going. It is absent on the\nother kinds. The extension's password is never returned.\n[Register as an extension](/concepts/sip-trunks#register-as-an-extension)\nexplains what to set up on your phone system.\n","required":["server","username","auth_username","transport","region","pbx_feature_code","pbx_feature_code_hangup_after_secs","status","status_detail","status_checked_at","last_activity_at","last_activity_kind","allow_list"],"properties":{"server":{"type":"string","description":"The registrar of your phone system, as `host` or `host:port`.","example":"sip1.example.net:5060","isRequired":true,"uniqueKey":"data.register.server","typeLabel":"string"},"username":{"type":"string","description":"The extension, as your phone system calls it. It must be unique across\nYappr: two endpoints can't register the same one.\n","example":"101","isRequired":true,"uniqueKey":"data.register.username","typeLabel":"string"},"auth_username":{"oneOf":[{"type":"string","description":"The login user when your phone system uses a different one from the extension. `null` when it is the extension.","isRequired":true,"uniqueKey":"data.register.auth_username.oneOf.0","typeLabel":"string"},{"type":"null","description":"The login user when your phone system uses a different one from the extension. `null` when it is the extension.","isRequired":true,"uniqueKey":"data.register.auth_username.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.register.auth_username","typeLabel":"string | null"},"transport":{"type":"string","enum":["udp","tcp","tls"],"description":"How Yappr registers. UDP is the transport that was tested end to end;\nTCP and TLS are accepted.\n","isRequired":true,"uniqueKey":"data.register.transport","typeLabel":"enum\u003cstring>"},"region":{"type":"string","enum":["middle_east","europe"],"description":"Which Telnyx region registers and carries the media. It decides the\naddress `allow_list` names: `192.76.120.75` for `middle_east` (observed\nlive) and `192.76.120.72` for `europe` (this address comes from the\ncarrier's documentation and was not observed live; read it from\n`allow_list`).\n","isRequired":true,"uniqueKey":"data.register.region","typeLabel":"enum\u003cstring>"},"pbx_feature_code":{"oneOf":[{"type":"string","description":"Your phone system's in-call transfer code, which every transfer to an extension on this\nendpoint's calls uses, on every agent\n([how it works](/concepts/sip-trunks#hand-the-call-to-your-phone-system-with-its-transfer-code)).\n`null` when none is set: transfers then place a new call through the extension.\n","example":"##","isRequired":true,"uniqueKey":"data.register.pbx_feature_code.oneOf.0","typeLabel":"string"},{"type":"null","description":"Your phone system's in-call transfer code, which every transfer to an extension on this\nendpoint's calls uses, on every agent\n([how it works](/concepts/sip-trunks#hand-the-call-to-your-phone-system-with-its-transfer-code)).\n`null` when none is set: transfers then place a new call through the extension.\n","example":"##","isRequired":true,"uniqueKey":"data.register.pbx_feature_code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.register.pbx_feature_code","typeLabel":"string | null"},"pbx_feature_code_hangup_after_secs":{"oneOf":[{"type":"integer","description":"Set when the code starts an attended transfer that your phone system completes when\nYappr hangs up: Yappr hangs up this many seconds after the code. `null` when Yappr\nwaits for your phone system to take the call.\n","example":4,"isRequired":true,"uniqueKey":"data.register.pbx_feature_code_hangup_after_secs.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Set when the code starts an attended transfer that your phone system completes when\nYappr hangs up: Yappr hangs up this many seconds after the code. `null` when Yappr\nwaits for your phone system to take the call.\n","example":4,"isRequired":true,"uniqueKey":"data.register.pbx_feature_code_hangup_after_secs.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.register.pbx_feature_code_hangup_after_secs","typeLabel":"integer | null"},"status":{"type":"string","enum":["pending","registering","registered","failed","disabled","unknown"],"description":"`pending`: just created or changed, and the carrier is still applying\nit (a few minutes). An endpoint that is switched off and still reads\n`pending` after a failed create never finished its setup: delete it and\ncreate it again. `registering`: the carrier is trying. `registered`:\nyour phone system accepted the registration. `failed`: it did not;\n`status_detail` says why. `disabled`: the endpoint is switched off and Yappr refuses new calls; your phone system is not told.\n`unknown`: Yappr cannot read the state. When `status_detail` is set, the\ncarrier's status could not be read for a while and the state was still\n`pending` or `registering` after the ten minutes a change takes: this does\nnot mean the extension is not working or that calls are stopped. Do not\ntreat it as `failed`; read the endpoint again later, and the first read\nthat succeeds replaces it. While it is unknown for that reason, a call that\nwent through the extension in the last 24 hours, after its settings last\nchanged, is in `last_activity_at`: evidence that a call went through, not a\nregistration. **`registered` does not\nprove the endpoint works end to end**: send a test call, and a test\ntransfer if the agent transfers.\n","example":"registered","isRequired":true,"uniqueKey":"data.register.status","typeLabel":"enum\u003cstring>"},"status_detail":{"oneOf":[{"type":"string","description":"A short plain reason while `status` is `registering`, `failed` or `unknown`, for\nexample \"authentication failed (check the extension and password)\",\n\"your phone system is not reachable\", \"no answer from your phone\nsystem\" or \"extension username already in use\" (the name is\nregistered through Yappr, possibly by an endpoint deleted earlier: a deleted\nextension endpoint can keep its name for hours). On `unknown` it reads\n\"we cannot read the carrier status right now (this does not mean the\nextension is not working)\". `null` otherwise.\n","isRequired":true,"uniqueKey":"data.register.status_detail.oneOf.0","typeLabel":"string"},{"type":"null","description":"A short plain reason while `status` is `registering`, `failed` or `unknown`, for\nexample \"authentication failed (check the extension and password)\",\n\"your phone system is not reachable\", \"no answer from your phone\nsystem\" or \"extension username already in use\" (the name is\nregistered through Yappr, possibly by an endpoint deleted earlier: a deleted\nextension endpoint can keep its name for hours). On `unknown` it reads\n\"we cannot read the carrier status right now (this does not mean the\nextension is not working)\". `null` otherwise.\n","isRequired":true,"uniqueKey":"data.register.status_detail.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.register.status_detail","typeLabel":"string | null"},"status_checked_at":{"oneOf":[{"type":"string","format":"date-time","description":"When Yappr last asked the carrier for the status. It moves on every\nattempt, including one the carrier did not answer, so on its own it does not\nshow that the status is current: while the carrier cannot be read it is the\ntime of the last attempt, not of the last answer, and a stored `registered`\nkeeps showing a fresh time though no read has succeeded. A read is refreshed\nwhen it is older than 15 seconds; a list of more than 20 extension\nendpoints serves stored values, so check this time.\n","isRequired":true,"uniqueKey":"data.register.status_checked_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When Yappr last asked the carrier for the status. It moves on every\nattempt, including one the carrier did not answer, so on its own it does not\nshow that the status is current: while the carrier cannot be read it is the\ntime of the last attempt, not of the last answer, and a stored `registered`\nkeeps showing a fresh time though no read has succeeded. A read is refreshed\nwhen it is older than 15 seconds; a list of more than 20 extension\nendpoints serves stored values, so check this time.\n","isRequired":true,"uniqueKey":"data.register.status_checked_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.register.status_checked_at","typeLabel":"string\u003cdate-time> | null"},"last_activity_at":{"oneOf":[{"type":"string","format":"date-time","description":"Evidence that a call went through the extension while Yappr cannot read the\ncarrier's status: when the newest such call began, if that was in the last 24\nhours and after the extension's settings last changed (a call before a change\nwent through the old settings). Set only while `status` is `unknown` and\n`status_detail` says the carrier's status cannot be read; `null` in every other\nstate, and when no call qualifies. A call from your phone system counts once it\nreaches Yappr through the extension, answered or not. An outbound call counts\nonly when it was answered: one nobody picked up, or one your phone system\nrefused, is not evidence. It is never a registration: do not read it as\n`registered`, and `status` and `status_detail` are exactly what they would be\nwithout it. Only `GET /sip-endpoints/{id}` and the list fill it: the answers to\ncreate and update carry `null`, so read the endpoint again.\n","example":"2026-11-10T15:25:00Z","isRequired":true,"uniqueKey":"data.register.last_activity_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Evidence that a call went through the extension while Yappr cannot read the\ncarrier's status: when the newest such call began, if that was in the last 24\nhours and after the extension's settings last changed (a call before a change\nwent through the old settings). Set only while `status` is `unknown` and\n`status_detail` says the carrier's status cannot be read; `null` in every other\nstate, and when no call qualifies. A call from your phone system counts once it\nreaches Yappr through the extension, answered or not. An outbound call counts\nonly when it was answered: one nobody picked up, or one your phone system\nrefused, is not evidence. It is never a registration: do not read it as\n`registered`, and `status` and `status_detail` are exactly what they would be\nwithout it. Only `GET /sip-endpoints/{id}` and the list fill it: the answers to\ncreate and update carry `null`, so read the endpoint again.\n","example":"2026-11-10T15:25:00Z","isRequired":true,"uniqueKey":"data.register.last_activity_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.register.last_activity_at","typeLabel":"string\u003cdate-time> | null"},"last_activity_kind":{"oneOf":[{"type":"string","enum":["inbound_call","outbound_call",null],"description":"What `last_activity_at` is: `inbound_call`, a call from your phone system that\nreached Yappr through the extension, or `outbound_call`, an answered call the\nagent placed out through it. An `outbound_call` shows that outbound calls work;\nit does not confirm that incoming calls arrive. `null` exactly when\n`last_activity_at` is.\n","example":"inbound_call","isRequired":true,"uniqueKey":"data.register.last_activity_kind.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["inbound_call","outbound_call",null],"description":"What `last_activity_at` is: `inbound_call`, a call from your phone system that\nreached Yappr through the extension, or `outbound_call`, an answered call the\nagent placed out through it. An `outbound_call` shows that outbound calls work;\nit does not confirm that incoming calls arrive. `null` exactly when\n`last_activity_at` is.\n","example":"inbound_call","isRequired":true,"uniqueKey":"data.register.last_activity_kind.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.register.last_activity_kind","typeLabel":"enum\u003cstring> | null"},"allow_list":{"type":"object","description":"What to allow on your phone system's firewall for this endpoint.","required":["sip_ip","sip_ports","rtp_ports","note"],"properties":{"sip_ip":{"type":"string","description":"The carrier address of the region that registers and sends the calls: 192.76.120.75 for the Middle East (observed live), 192.76.120.72 for Europe (from the carrier's documentation, not observed live).","example":"192.76.120.75","isRequired":true,"uniqueKey":"data.register.allow_list.sip_ip","typeLabel":"string"},"sip_ports":{"type":"array","items":{"type":"integer","uniqueKey":"data.register.allow_list.sip_ports.items.[INDEX]","typeLabel":"integer"},"example":[5060,5061],"isRequired":true,"uniqueKey":"data.register.allow_list.sip_ports","typeLabel":"integer[]"},"rtp_ports":{"type":"string","description":"The media port range, on the carrier's side.","example":"16384-32768","isRequired":true,"uniqueKey":"data.register.allow_list.rtp_ports","typeLabel":"string"},"note":{"type":"string","example":"allow these on your phone system","isRequired":true,"uniqueKey":"data.register.allow_list.note","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.register.allow_list","typeLabel":"object"},"outbound":{"oneOf":[{"type":"object","description":"Calls OUT through this extension: the agent's outbound calls go to your phone system\nthrough the extension, and your phone system dials the number on your own plan, showing\nthe caller ID it is set to show for the extension\n([how it works](/concepts/sip-trunks#outbound-calls-through-the-extension)). `null` when\noutbound calls were never set up. `caller_number` is listed under `GET /phone-numbers`\nwith `provider: phone_system` and is used like any number.\n","required":["enabled","caller_number","phone_number_id","dial_format","dial_prefix","paused"],"properties":{"enabled":{"type":"boolean","description":"Your switch. Calls go out when it is `true`, `paused` is `null` and the endpoint is\nswitched on.\n","isRequired":true,"uniqueKey":"data.register.outbound.oneOf.0.enabled","typeLabel":"boolean"},"caller_number":{"type":"string","example":"+97235550100","description":"The number your phone system shows, in E.164 form.","isRequired":true,"uniqueKey":"data.register.outbound.oneOf.0.caller_number","typeLabel":"string"},"phone_number_id":{"type":"string","format":"uuid","description":"The number's id under `GET /phone-numbers`: `from_phone_number_id` for a campaign.","isRequired":true,"uniqueKey":"data.register.outbound.oneOf.0.phone_number_id","typeLabel":"string\u003cuuid>"},"dial_format":{"type":"string","enum":["national","e164"],"description":"`national`: the lead is dialled as 05X... (Israeli numbers only). `e164`: with the country code and no plus sign (972...), any country your phone system allows.","isRequired":true,"uniqueKey":"data.register.outbound.oneOf.0.dial_format","typeLabel":"enum\u003cstring>"},"dial_prefix":{"oneOf":[{"type":"string","example":"9","description":"The outside-line prefix dialled before the number, or `null`.","isRequired":true,"uniqueKey":"data.register.outbound.oneOf.0.dial_prefix.oneOf.0","typeLabel":"string"},{"type":"null","example":"9","description":"The outside-line prefix dialled before the number, or `null`.","isRequired":true,"uniqueKey":"data.register.outbound.oneOf.0.dial_prefix.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.register.outbound.oneOf.0.dial_prefix","typeLabel":"string | null"},"paused":{"oneOf":[{"type":"object","description":"Set when outbound calls paused on their own after three refusals in a row by your\nphone system; campaigns calling from the number pause with them. Send `enabled: true`\nto turn them back on.\n","properties":{"reason":{"type":"string","enum":["phone_system_refused"],"uniqueKey":"data.register.outbound.oneOf.0.paused.oneOf.0.reason","typeLabel":"enum\u003cstring>"},"since":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"data.register.outbound.oneOf.0.paused.oneOf.0.since.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"data.register.outbound.oneOf.0.paused.oneOf.0.since.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.register.outbound.oneOf.0.paused.oneOf.0.since","typeLabel":"string\u003cdate-time> | null"},"last_sip_code":{"oneOf":[{"type":"string","example":"403","uniqueKey":"data.register.outbound.oneOf.0.paused.oneOf.0.last_sip_code.oneOf.0","typeLabel":"string"},{"type":"null","example":"403","uniqueKey":"data.register.outbound.oneOf.0.paused.oneOf.0.last_sip_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.register.outbound.oneOf.0.paused.oneOf.0.last_sip_code","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"data.register.outbound.oneOf.0.paused.oneOf.0","typeLabel":"object"},{"type":"null","description":"Set when outbound calls paused on their own after three refusals in a row by your\nphone system; campaigns calling from the number pause with them. Send `enabled: true`\nto turn them back on.\n","properties":{"reason":{"type":"string","enum":["phone_system_refused"]},"since":{"oneOf":[{"type":"string","format":"date-time"},{"type":"null","format":"date-time"}]},"last_sip_code":{"oneOf":[{"type":"string","example":"403"},{"type":"null","example":"403"}]}},"isRequired":true,"uniqueKey":"data.register.outbound.oneOf.0.paused.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.register.outbound.oneOf.0.paused","typeLabel":"object | null"}},"uniqueKey":"data.register.outbound.oneOf.0","typeLabel":"object"},{"type":"null","description":"Calls OUT through this extension: the agent's outbound calls go to your phone system\nthrough the extension, and your phone system dials the number on your own plan, showing\nthe caller ID it is set to show for the extension\n([how it works](/concepts/sip-trunks#outbound-calls-through-the-extension)). `null` when\noutbound calls were never set up. `caller_number` is listed under `GET /phone-numbers`\nwith `provider: phone_system` and is used like any number.\n","required":["enabled","caller_number","phone_number_id","dial_format","dial_prefix","paused"],"properties":{"enabled":{"type":"boolean","description":"Your switch. Calls go out when it is `true`, `paused` is `null` and the endpoint is\nswitched on.\n"},"caller_number":{"type":"string","example":"+97235550100","description":"The number your phone system shows, in E.164 form."},"phone_number_id":{"type":"string","format":"uuid","description":"The number's id under `GET /phone-numbers`: `from_phone_number_id` for a campaign."},"dial_format":{"type":"string","enum":["national","e164"],"description":"`national`: the lead is dialled as 05X... (Israeli numbers only). `e164`: with the country code and no plus sign (972...), any country your phone system allows."},"dial_prefix":{"oneOf":[{"type":"string","example":"9","description":"The outside-line prefix dialled before the number, or `null`."},{"type":"null","example":"9","description":"The outside-line prefix dialled before the number, or `null`."}]},"paused":{"oneOf":[{"type":"object","description":"Set when outbound calls paused on their own after three refusals in a row by your\nphone system; campaigns calling from the number pause with them. Send `enabled: true`\nto turn them back on.\n","properties":{"reason":{"type":"string","enum":["phone_system_refused"]},"since":{"oneOf":[{"type":"string","format":"date-time"},{"type":"null","format":"date-time"}]},"last_sip_code":{"oneOf":[{"type":"string","example":"403"},{"type":"null","example":"403"}]}}},{"type":"null","description":"Set when outbound calls paused on their own after three refusals in a row by your\nphone system; campaigns calling from the number pause with them. Send `enabled: true`\nto turn them back on.\n","properties":{"reason":{"type":"string","enum":["phone_system_refused"]},"since":{"oneOf":[{"type":"string","format":"date-time"},{"type":"null","format":"date-time"}]},"last_sip_code":{"oneOf":[{"type":"string","example":"403"},{"type":"null","example":"403"}]}}}]}},"uniqueKey":"data.register.outbound.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.register.outbound","typeLabel":"object | null"}},"uniqueKey":"data.register","typeLabel":"object"},"allowed_source_ips":{"oneOf":[{"type":"array","deprecated":true,"description":"SIP address endpoints only. Source addresses recorded with the\nendpoint, for your records. **Calls are not checked against this\nlist**: a call to the address is answered wherever it comes from.\n`null` when none is recorded.\n","items":{"type":"string","example":"203.0.113.0/24","uniqueKey":"data.allowed_source_ips.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"data.allowed_source_ips.oneOf.0","typeLabel":"string[]"},{"type":"null","deprecated":true,"description":"SIP address endpoints only. Source addresses recorded with the\nendpoint, for your records. **Calls are not checked against this\nlist**: a call to the address is answered wherever it comes from.\n`null` when none is recorded.\n","items":{"type":"string","example":"203.0.113.0/24"},"uniqueKey":"data.allowed_source_ips.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.allowed_source_ips","typeLabel":"string[] | null"},"password_rotated_at":{"oneOf":[{"type":"string","format":"date-time","description":"Username-and-password trunks only (absent on a SIP address endpoint):\nwhen [rotate-password](/api-reference/sip-endpoints/rotate-password)\nlast issued a new password. `null` until the first one.\n","example":null,"uniqueKey":"data.password_rotated_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Username-and-password trunks only (absent on a SIP address endpoint):\nwhen [rotate-password](/api-reference/sip-endpoints/rotate-password)\nlast issued a new password. `null` until the first one.\n","example":null,"uniqueKey":"data.password_rotated_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.password_rotated_at","typeLabel":"string\u003cdate-time> | null"}},"isRequired":true,"uniqueKey":"data","typeLabel":"object"},"replayed":{"type":"boolean","enum":[true],"isRequired":true,"uniqueKey":"replayed","typeLabel":"enum\u003cboolean>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","name":"Main office PBX","auth_mode":"credentials","slug":"after-hours-bz3r3mtypuwuw8tpdw3x392s","sip_uri":"sip:after-hours-bz3r3mtypuwuw8tpdw3x392s@yappr-byoc.sip.telnyx.com","inbound_agent_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","is_active":true,"last_call_at":"2023-11-07T05:31:56Z","created_at":"2023-11-07T05:31:56Z","updated_at":"2023-11-07T05:31:56Z","sip_username":"yp4k7d2m9x1q8w3z","max_concurrent_calls":5,"sip_connection":{"server":"sip.telnyx.com","alternate_servers":["sip.telnyx.eu","sip.telnyx.me"],"transports":[{"protocol":"tls","port":5061,"recommended":true},{"protocol":"tcp","port":5060},{"protocol":"udp","port":5060}],"registration":"optional"},"register":{"server":"sip1.example.net:5060","username":"101","auth_username":"\u003cstring>","transport":"udp","region":"middle_east","pbx_feature_code":"##","pbx_feature_code_hangup_after_secs":4,"status":"registered","status_detail":"\u003cstring>","status_checked_at":"2023-11-07T05:31:56Z","last_activity_at":"2026-11-10T15:25:00Z","last_activity_kind":"inbound_call","allow_list":{"sip_ip":"192.76.120.75","sip_ports":[5060,5061],"rtp_ports":"16384-32768","note":"allow these on your phone system"},"outbound":{"enabled":true,"caller_number":"+97235550100","phone_number_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","dial_format":"national","dial_prefix":"9","paused":{"reason":"phone_system_refused","since":"2023-11-07T05:31:56Z","last_sip_code":"403"}}},"allowed_source_ips":["203.0.113.0/24"],"password_rotated_at":null},"replayed":true}}},"exampleType":"generated"}},"exampleType":"generated"},"ecbc0d0b-6d20-4db3-b164-a40d3891810d":{"description":"Created. A username-and-password trunk carries `sip_password`: store it\nnow, it is never shown again. A SIP address endpoint carries its\n`sip_uri`: hand it to whoever runs the phone system. An extension\nendpoint carries its `register` object, with `status` `pending` until\nthe carrier has applied it (a few minutes); it has no password in the\nresponse.\n","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","description":"The endpoint, as [create](/api-reference/sip-endpoints/create) returns it.\nOn a username-and-password trunk it carries `sip_password`, the only time\nthe password is returned besides\n[rotate-password](/api-reference/sip-endpoints/rotate-password).\n","required":["id","name","auth_mode","slug","sip_uri","inbound_agent_id","is_active","last_call_at","created_at","updated_at"],"properties":{"id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"data.id","typeLabel":"string\u003cuuid>"},"name":{"type":"string","example":"Main office PBX","isRequired":true,"uniqueKey":"data.name","typeLabel":"string"},"auth_mode":{"type":"string","enum":["credentials","uri","register"],"description":"`credentials`: a username-and-password trunk. `uri`: a SIP address\nendpoint. `register`: an extension on your phone system that Yappr\nregisters to. Endpoints created before username-and-password trunks\nexisted are `uri`. It cannot be changed after the endpoint is created.\n","example":"credentials","isRequired":true,"uniqueKey":"data.auth_mode","typeLabel":"enum\u003cstring>"},"slug":{"oneOf":[{"type":"string","description":"SIP address endpoints: the user part of `sip_uri`, made of a readable\nprefix (the `slug` you sent, or one derived from `name`), a hyphen and\n24 random characters, about 120 bits that cannot be guessed. `null` on\nusername-and-password trunks, and on list and get for a key without\n`sip_endpoints:manage`.\n","example":"after-hours-bz3r3mtypuwuw8tpdw3x392s","isRequired":true,"uniqueKey":"data.slug.oneOf.0","typeLabel":"string"},{"type":"null","description":"SIP address endpoints: the user part of `sip_uri`, made of a readable\nprefix (the `slug` you sent, or one derived from `name`), a hyphen and\n24 random characters, about 120 bits that cannot be guessed. `null` on\nusername-and-password trunks, and on list and get for a key without\n`sip_endpoints:manage`.\n","example":"after-hours-bz3r3mtypuwuw8tpdw3x392s","isRequired":true,"uniqueKey":"data.slug.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.slug","typeLabel":"string | null"},"sip_uri":{"oneOf":[{"type":"string","description":"SIP address endpoints: the full address your phone system dials, over\nUDP or TCP (port 5060) or TLS (port 5061). Over UDP or TCP it crosses\nthe network in clear text, so use TLS where your phone system supports\nit. No username and no password: anyone who has it can call the agent,\nso treat it like an API key. `null` on username-and-password trunks, and\non list and get for a key without `sip_endpoints:manage`.\n","example":"sip:after-hours-bz3r3mtypuwuw8tpdw3x392s@yappr-byoc.sip.telnyx.com","isRequired":true,"uniqueKey":"data.sip_uri.oneOf.0","typeLabel":"string"},{"type":"null","description":"SIP address endpoints: the full address your phone system dials, over\nUDP or TCP (port 5060) or TLS (port 5061). Over UDP or TCP it crosses\nthe network in clear text, so use TLS where your phone system supports\nit. No username and no password: anyone who has it can call the agent,\nso treat it like an API key. `null` on username-and-password trunks, and\non list and get for a key without `sip_endpoints:manage`.\n","example":"sip:after-hours-bz3r3mtypuwuw8tpdw3x392s@yappr-byoc.sip.telnyx.com","isRequired":true,"uniqueKey":"data.sip_uri.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.sip_uri","typeLabel":"string | null"},"inbound_agent_id":{"type":"string","format":"uuid","description":"The agent that answers every call on this endpoint. Any agent of\nthe workspace can answer, including one that runs a workflow, on\neither kind of endpoint. Publish the workflow first: calls to an agent\nthat is switched off, or whose workflow has never been published, are\nrefused (on a trunk with SIP `603 Decline`).\n","isRequired":true,"uniqueKey":"data.inbound_agent_id","typeLabel":"string\u003cuuid>"},"is_active":{"type":"boolean","description":"`false` switches the endpoint off: new calls are refused before they\nare answered until you switch it back on (a trunk or SIP address\nendpoint answers SIP `603 Decline`; on an extension endpoint `register.status`\nreads `disabled` and Yappr refuses new calls, but your phone system is not\ntold). Calls in progress are not affected.\n","isRequired":true,"uniqueKey":"data.is_active","typeLabel":"boolean"},"last_call_at":{"oneOf":[{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"data.last_call_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","isRequired":true,"uniqueKey":"data.last_call_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.last_call_at","typeLabel":"string\u003cdate-time> | null"},"created_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"data.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","description":"When the endpoint last changed, a new password included.","isRequired":true,"uniqueKey":"data.updated_at","typeLabel":"string\u003cdate-time>"},"sip_username":{"oneOf":[{"type":"string","description":"Username-and-password trunks only. The SIP username your phone system\nauthenticates with: `yp` followed by 14 lowercase letters and digits.\nIt never changes; only the password can be replaced. `null` on list\nand get for a key without `sip_endpoints:manage`, and on a trunk whose\nsetup never finished (switched off; delete it and create a new one).\n","example":"yp4k7d2m9x1q8w3z","uniqueKey":"data.sip_username.oneOf.0","typeLabel":"string"},{"type":"null","description":"Username-and-password trunks only. The SIP username your phone system\nauthenticates with: `yp` followed by 14 lowercase letters and digits.\nIt never changes; only the password can be replaced. `null` on list\nand get for a key without `sip_endpoints:manage`, and on a trunk whose\nsetup never finished (switched off; delete it and create a new one).\n","example":"yp4k7d2m9x1q8w3z","uniqueKey":"data.sip_username.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sip_username","typeLabel":"string | null"},"max_concurrent_calls":{"type":"integer","minimum":1,"maximum":8,"description":"Username-and-password trunks and extension endpoints only. The most\ncalls the endpoint takes at once, counting calls ringing and in\nprogress: 1 to 8, 2 unless you changed it. The next call is refused (a trunk\nanswers SIP `486 Busy Here`; an extension endpoint's call is refused\nwithout a specified code).\n","example":5,"uniqueKey":"data.max_concurrent_calls","typeLabel":"integer"},"sip_connection":{"type":"object","description":"Username-and-password trunks only: where and how your phone system sends\nthe trunk's calls. It is the same on every trunk. The\n[setup guide](/concepts/sip-trunks) explains each value.\n","required":["server","alternate_servers","transports","registration"],"properties":{"server":{"type":"string","description":"The SIP server (proxy, registrar) your phone system sends the trunk's\ncalls to, for example in the US. From Israel or Europe,\n`sip.telnyx.eu` (in `alternate_servers`) is closer. If your system\nasks for a realm, the realm is the server name you send to.\n","example":"sip.telnyx.com","isRequired":true,"uniqueKey":"data.sip_connection.server","typeLabel":"string"},"alternate_servers":{"type":"array","items":{"type":"string","uniqueKey":"data.sip_connection.alternate_servers.items.[INDEX]","typeLabel":"string"},"description":"Other servers that take the same username and password: use\n`sip.telnyx.eu` from Israel or Europe, and any other one for a backup\nroute. The realm follows the server you use.\n","example":["sip.telnyx.eu","sip.telnyx.me"],"isRequired":true,"uniqueKey":"data.sip_connection.alternate_servers","typeLabel":"string[]"},"transports":{"type":"array","description":"The transports and ports to send the trunk's calls on. TLS (1.2 or\n1.3) is recommended. Telnyx publishes the same transports and ports\nfor the alternate servers.\n","items":{"type":"object","required":["protocol","port"],"properties":{"protocol":{"type":"string","enum":["tls","tcp","udp"],"isRequired":true,"uniqueKey":"data.sip_connection.transports.items.[INDEX].protocol","typeLabel":"enum\u003cstring>"},"port":{"type":"integer","isRequired":true,"uniqueKey":"data.sip_connection.transports.items.[INDEX].port","typeLabel":"integer"},"recommended":{"type":"boolean","description":"`true` on the transport to prefer. Absent on the others.","uniqueKey":"data.sip_connection.transports.items.[INDEX].recommended","typeLabel":"boolean"}},"uniqueKey":"data.sip_connection.transports.items.[INDEX]","typeLabel":"object"},"example":[{"protocol":"tls","port":5061,"recommended":true},{"protocol":"tcp","port":5060},{"protocol":"udp","port":5060}],"isRequired":true,"uniqueKey":"data.sip_connection.transports","typeLabel":"object[]"},"registration":{"type":"string","enum":["optional"],"description":"`optional`: each call is checked against the username and password, so\nregistering is not what lets a call in. Keep the connection open\nanyway: over TLS or TCP, register the trunk or send keep-alives (SIP\n`OPTIONS`) every 30 seconds or less; over UDP behind NAT or a\nfirewall, send keep-alives every 30 seconds or less even if your\nsystem registers, because a registration is refreshed only every few\nminutes. Otherwise the agent's hang-up may not reach your phone system\n([setup guide](/concepts/sip-trunks#register-or-send-keep-alives)).\n","isRequired":true,"uniqueKey":"data.sip_connection.registration","typeLabel":"enum\u003cstring>"}},"uniqueKey":"data.sip_connection","typeLabel":"object"},"register":{"type":"object","description":"Extension endpoints (`auth_mode: \"register\"`) only: the extension Yappr\nregisters as, and how that registration is going. It is absent on the\nother kinds. The extension's password is never returned.\n[Register as an extension](/concepts/sip-trunks#register-as-an-extension)\nexplains what to set up on your phone system.\n","required":["server","username","auth_username","transport","region","pbx_feature_code","pbx_feature_code_hangup_after_secs","status","status_detail","status_checked_at","last_activity_at","last_activity_kind","allow_list"],"properties":{"server":{"type":"string","description":"The registrar of your phone system, as `host` or `host:port`.","example":"sip1.example.net:5060","isRequired":true,"uniqueKey":"data.register.server","typeLabel":"string"},"username":{"type":"string","description":"The extension, as your phone system calls it. It must be unique across\nYappr: two endpoints can't register the same one.\n","example":"101","isRequired":true,"uniqueKey":"data.register.username","typeLabel":"string"},"auth_username":{"oneOf":[{"type":"string","description":"The login user when your phone system uses a different one from the extension. `null` when it is the extension.","isRequired":true,"uniqueKey":"data.register.auth_username.oneOf.0","typeLabel":"string"},{"type":"null","description":"The login user when your phone system uses a different one from the extension. `null` when it is the extension.","isRequired":true,"uniqueKey":"data.register.auth_username.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.register.auth_username","typeLabel":"string | null"},"transport":{"type":"string","enum":["udp","tcp","tls"],"description":"How Yappr registers. UDP is the transport that was tested end to end;\nTCP and TLS are accepted.\n","isRequired":true,"uniqueKey":"data.register.transport","typeLabel":"enum\u003cstring>"},"region":{"type":"string","enum":["middle_east","europe"],"description":"Which Telnyx region registers and carries the media. It decides the\naddress `allow_list` names: `192.76.120.75` for `middle_east` (observed\nlive) and `192.76.120.72` for `europe` (this address comes from the\ncarrier's documentation and was not observed live; read it from\n`allow_list`).\n","isRequired":true,"uniqueKey":"data.register.region","typeLabel":"enum\u003cstring>"},"pbx_feature_code":{"oneOf":[{"type":"string","description":"Your phone system's in-call transfer code, which every transfer to an extension on this\nendpoint's calls uses, on every agent\n([how it works](/concepts/sip-trunks#hand-the-call-to-your-phone-system-with-its-transfer-code)).\n`null` when none is set: transfers then place a new call through the extension.\n","example":"##","isRequired":true,"uniqueKey":"data.register.pbx_feature_code.oneOf.0","typeLabel":"string"},{"type":"null","description":"Your phone system's in-call transfer code, which every transfer to an extension on this\nendpoint's calls uses, on every agent\n([how it works](/concepts/sip-trunks#hand-the-call-to-your-phone-system-with-its-transfer-code)).\n`null` when none is set: transfers then place a new call through the extension.\n","example":"##","isRequired":true,"uniqueKey":"data.register.pbx_feature_code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.register.pbx_feature_code","typeLabel":"string | null"},"pbx_feature_code_hangup_after_secs":{"oneOf":[{"type":"integer","description":"Set when the code starts an attended transfer that your phone system completes when\nYappr hangs up: Yappr hangs up this many seconds after the code. `null` when Yappr\nwaits for your phone system to take the call.\n","example":4,"isRequired":true,"uniqueKey":"data.register.pbx_feature_code_hangup_after_secs.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Set when the code starts an attended transfer that your phone system completes when\nYappr hangs up: Yappr hangs up this many seconds after the code. `null` when Yappr\nwaits for your phone system to take the call.\n","example":4,"isRequired":true,"uniqueKey":"data.register.pbx_feature_code_hangup_after_secs.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.register.pbx_feature_code_hangup_after_secs","typeLabel":"integer | null"},"status":{"type":"string","enum":["pending","registering","registered","failed","disabled","unknown"],"description":"`pending`: just created or changed, and the carrier is still applying\nit (a few minutes). An endpoint that is switched off and still reads\n`pending` after a failed create never finished its setup: delete it and\ncreate it again. `registering`: the carrier is trying. `registered`:\nyour phone system accepted the registration. `failed`: it did not;\n`status_detail` says why. `disabled`: the endpoint is switched off and Yappr refuses new calls; your phone system is not told.\n`unknown`: Yappr cannot read the state. When `status_detail` is set, the\ncarrier's status could not be read for a while and the state was still\n`pending` or `registering` after the ten minutes a change takes: this does\nnot mean the extension is not working or that calls are stopped. Do not\ntreat it as `failed`; read the endpoint again later, and the first read\nthat succeeds replaces it. While it is unknown for that reason, a call that\nwent through the extension in the last 24 hours, after its settings last\nchanged, is in `last_activity_at`: evidence that a call went through, not a\nregistration. **`registered` does not\nprove the endpoint works end to end**: send a test call, and a test\ntransfer if the agent transfers.\n","example":"registered","isRequired":true,"uniqueKey":"data.register.status","typeLabel":"enum\u003cstring>"},"status_detail":{"oneOf":[{"type":"string","description":"A short plain reason while `status` is `registering`, `failed` or `unknown`, for\nexample \"authentication failed (check the extension and password)\",\n\"your phone system is not reachable\", \"no answer from your phone\nsystem\" or \"extension username already in use\" (the name is\nregistered through Yappr, possibly by an endpoint deleted earlier: a deleted\nextension endpoint can keep its name for hours). On `unknown` it reads\n\"we cannot read the carrier status right now (this does not mean the\nextension is not working)\". `null` otherwise.\n","isRequired":true,"uniqueKey":"data.register.status_detail.oneOf.0","typeLabel":"string"},{"type":"null","description":"A short plain reason while `status` is `registering`, `failed` or `unknown`, for\nexample \"authentication failed (check the extension and password)\",\n\"your phone system is not reachable\", \"no answer from your phone\nsystem\" or \"extension username already in use\" (the name is\nregistered through Yappr, possibly by an endpoint deleted earlier: a deleted\nextension endpoint can keep its name for hours). On `unknown` it reads\n\"we cannot read the carrier status right now (this does not mean the\nextension is not working)\". `null` otherwise.\n","isRequired":true,"uniqueKey":"data.register.status_detail.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.register.status_detail","typeLabel":"string | null"},"status_checked_at":{"oneOf":[{"type":"string","format":"date-time","description":"When Yappr last asked the carrier for the status. It moves on every\nattempt, including one the carrier did not answer, so on its own it does not\nshow that the status is current: while the carrier cannot be read it is the\ntime of the last attempt, not of the last answer, and a stored `registered`\nkeeps showing a fresh time though no read has succeeded. A read is refreshed\nwhen it is older than 15 seconds; a list of more than 20 extension\nendpoints serves stored values, so check this time.\n","isRequired":true,"uniqueKey":"data.register.status_checked_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When Yappr last asked the carrier for the status. It moves on every\nattempt, including one the carrier did not answer, so on its own it does not\nshow that the status is current: while the carrier cannot be read it is the\ntime of the last attempt, not of the last answer, and a stored `registered`\nkeeps showing a fresh time though no read has succeeded. A read is refreshed\nwhen it is older than 15 seconds; a list of more than 20 extension\nendpoints serves stored values, so check this time.\n","isRequired":true,"uniqueKey":"data.register.status_checked_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.register.status_checked_at","typeLabel":"string\u003cdate-time> | null"},"last_activity_at":{"oneOf":[{"type":"string","format":"date-time","description":"Evidence that a call went through the extension while Yappr cannot read the\ncarrier's status: when the newest such call began, if that was in the last 24\nhours and after the extension's settings last changed (a call before a change\nwent through the old settings). Set only while `status` is `unknown` and\n`status_detail` says the carrier's status cannot be read; `null` in every other\nstate, and when no call qualifies. A call from your phone system counts once it\nreaches Yappr through the extension, answered or not. An outbound call counts\nonly when it was answered: one nobody picked up, or one your phone system\nrefused, is not evidence. It is never a registration: do not read it as\n`registered`, and `status` and `status_detail` are exactly what they would be\nwithout it. Only `GET /sip-endpoints/{id}` and the list fill it: the answers to\ncreate and update carry `null`, so read the endpoint again.\n","example":"2026-11-10T15:25:00Z","isRequired":true,"uniqueKey":"data.register.last_activity_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Evidence that a call went through the extension while Yappr cannot read the\ncarrier's status: when the newest such call began, if that was in the last 24\nhours and after the extension's settings last changed (a call before a change\nwent through the old settings). Set only while `status` is `unknown` and\n`status_detail` says the carrier's status cannot be read; `null` in every other\nstate, and when no call qualifies. A call from your phone system counts once it\nreaches Yappr through the extension, answered or not. An outbound call counts\nonly when it was answered: one nobody picked up, or one your phone system\nrefused, is not evidence. It is never a registration: do not read it as\n`registered`, and `status` and `status_detail` are exactly what they would be\nwithout it. Only `GET /sip-endpoints/{id}` and the list fill it: the answers to\ncreate and update carry `null`, so read the endpoint again.\n","example":"2026-11-10T15:25:00Z","isRequired":true,"uniqueKey":"data.register.last_activity_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.register.last_activity_at","typeLabel":"string\u003cdate-time> | null"},"last_activity_kind":{"oneOf":[{"type":"string","enum":["inbound_call","outbound_call",null],"description":"What `last_activity_at` is: `inbound_call`, a call from your phone system that\nreached Yappr through the extension, or `outbound_call`, an answered call the\nagent placed out through it. An `outbound_call` shows that outbound calls work;\nit does not confirm that incoming calls arrive. `null` exactly when\n`last_activity_at` is.\n","example":"inbound_call","isRequired":true,"uniqueKey":"data.register.last_activity_kind.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["inbound_call","outbound_call",null],"description":"What `last_activity_at` is: `inbound_call`, a call from your phone system that\nreached Yappr through the extension, or `outbound_call`, an answered call the\nagent placed out through it. An `outbound_call` shows that outbound calls work;\nit does not confirm that incoming calls arrive. `null` exactly when\n`last_activity_at` is.\n","example":"inbound_call","isRequired":true,"uniqueKey":"data.register.last_activity_kind.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.register.last_activity_kind","typeLabel":"enum\u003cstring> | null"},"allow_list":{"type":"object","description":"What to allow on your phone system's firewall for this endpoint.","required":["sip_ip","sip_ports","rtp_ports","note"],"properties":{"sip_ip":{"type":"string","description":"The carrier address of the region that registers and sends the calls: 192.76.120.75 for the Middle East (observed live), 192.76.120.72 for Europe (from the carrier's documentation, not observed live).","example":"192.76.120.75","isRequired":true,"uniqueKey":"data.register.allow_list.sip_ip","typeLabel":"string"},"sip_ports":{"type":"array","items":{"type":"integer","uniqueKey":"data.register.allow_list.sip_ports.items.[INDEX]","typeLabel":"integer"},"example":[5060,5061],"isRequired":true,"uniqueKey":"data.register.allow_list.sip_ports","typeLabel":"integer[]"},"rtp_ports":{"type":"string","description":"The media port range, on the carrier's side.","example":"16384-32768","isRequired":true,"uniqueKey":"data.register.allow_list.rtp_ports","typeLabel":"string"},"note":{"type":"string","example":"allow these on your phone system","isRequired":true,"uniqueKey":"data.register.allow_list.note","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.register.allow_list","typeLabel":"object"},"outbound":{"oneOf":[{"type":"object","description":"Calls OUT through this extension: the agent's outbound calls go to your phone system\nthrough the extension, and your phone system dials the number on your own plan, showing\nthe caller ID it is set to show for the extension\n([how it works](/concepts/sip-trunks#outbound-calls-through-the-extension)). `null` when\noutbound calls were never set up. `caller_number` is listed under `GET /phone-numbers`\nwith `provider: phone_system` and is used like any number.\n","required":["enabled","caller_number","phone_number_id","dial_format","dial_prefix","paused"],"properties":{"enabled":{"type":"boolean","description":"Your switch. Calls go out when it is `true`, `paused` is `null` and the endpoint is\nswitched on.\n","isRequired":true,"uniqueKey":"data.register.outbound.oneOf.0.enabled","typeLabel":"boolean"},"caller_number":{"type":"string","example":"+97235550100","description":"The number your phone system shows, in E.164 form.","isRequired":true,"uniqueKey":"data.register.outbound.oneOf.0.caller_number","typeLabel":"string"},"phone_number_id":{"type":"string","format":"uuid","description":"The number's id under `GET /phone-numbers`: `from_phone_number_id` for a campaign.","isRequired":true,"uniqueKey":"data.register.outbound.oneOf.0.phone_number_id","typeLabel":"string\u003cuuid>"},"dial_format":{"type":"string","enum":["national","e164"],"description":"`national`: the lead is dialled as 05X... (Israeli numbers only). `e164`: with the country code and no plus sign (972...), any country your phone system allows.","isRequired":true,"uniqueKey":"data.register.outbound.oneOf.0.dial_format","typeLabel":"enum\u003cstring>"},"dial_prefix":{"oneOf":[{"type":"string","example":"9","description":"The outside-line prefix dialled before the number, or `null`.","isRequired":true,"uniqueKey":"data.register.outbound.oneOf.0.dial_prefix.oneOf.0","typeLabel":"string"},{"type":"null","example":"9","description":"The outside-line prefix dialled before the number, or `null`.","isRequired":true,"uniqueKey":"data.register.outbound.oneOf.0.dial_prefix.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.register.outbound.oneOf.0.dial_prefix","typeLabel":"string | null"},"paused":{"oneOf":[{"type":"object","description":"Set when outbound calls paused on their own after three refusals in a row by your\nphone system; campaigns calling from the number pause with them. Send `enabled: true`\nto turn them back on.\n","properties":{"reason":{"type":"string","enum":["phone_system_refused"],"uniqueKey":"data.register.outbound.oneOf.0.paused.oneOf.0.reason","typeLabel":"enum\u003cstring>"},"since":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"data.register.outbound.oneOf.0.paused.oneOf.0.since.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"data.register.outbound.oneOf.0.paused.oneOf.0.since.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.register.outbound.oneOf.0.paused.oneOf.0.since","typeLabel":"string\u003cdate-time> | null"},"last_sip_code":{"oneOf":[{"type":"string","example":"403","uniqueKey":"data.register.outbound.oneOf.0.paused.oneOf.0.last_sip_code.oneOf.0","typeLabel":"string"},{"type":"null","example":"403","uniqueKey":"data.register.outbound.oneOf.0.paused.oneOf.0.last_sip_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.register.outbound.oneOf.0.paused.oneOf.0.last_sip_code","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"data.register.outbound.oneOf.0.paused.oneOf.0","typeLabel":"object"},{"type":"null","description":"Set when outbound calls paused on their own after three refusals in a row by your\nphone system; campaigns calling from the number pause with them. Send `enabled: true`\nto turn them back on.\n","properties":{"reason":{"type":"string","enum":["phone_system_refused"]},"since":{"oneOf":[{"type":"string","format":"date-time"},{"type":"null","format":"date-time"}]},"last_sip_code":{"oneOf":[{"type":"string","example":"403"},{"type":"null","example":"403"}]}},"isRequired":true,"uniqueKey":"data.register.outbound.oneOf.0.paused.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.register.outbound.oneOf.0.paused","typeLabel":"object | null"}},"uniqueKey":"data.register.outbound.oneOf.0","typeLabel":"object"},{"type":"null","description":"Calls OUT through this extension: the agent's outbound calls go to your phone system\nthrough the extension, and your phone system dials the number on your own plan, showing\nthe caller ID it is set to show for the extension\n([how it works](/concepts/sip-trunks#outbound-calls-through-the-extension)). `null` when\noutbound calls were never set up. `caller_number` is listed under `GET /phone-numbers`\nwith `provider: phone_system` and is used like any number.\n","required":["enabled","caller_number","phone_number_id","dial_format","dial_prefix","paused"],"properties":{"enabled":{"type":"boolean","description":"Your switch. Calls go out when it is `true`, `paused` is `null` and the endpoint is\nswitched on.\n"},"caller_number":{"type":"string","example":"+97235550100","description":"The number your phone system shows, in E.164 form."},"phone_number_id":{"type":"string","format":"uuid","description":"The number's id under `GET /phone-numbers`: `from_phone_number_id` for a campaign."},"dial_format":{"type":"string","enum":["national","e164"],"description":"`national`: the lead is dialled as 05X... (Israeli numbers only). `e164`: with the country code and no plus sign (972...), any country your phone system allows."},"dial_prefix":{"oneOf":[{"type":"string","example":"9","description":"The outside-line prefix dialled before the number, or `null`."},{"type":"null","example":"9","description":"The outside-line prefix dialled before the number, or `null`."}]},"paused":{"oneOf":[{"type":"object","description":"Set when outbound calls paused on their own after three refusals in a row by your\nphone system; campaigns calling from the number pause with them. Send `enabled: true`\nto turn them back on.\n","properties":{"reason":{"type":"string","enum":["phone_system_refused"]},"since":{"oneOf":[{"type":"string","format":"date-time"},{"type":"null","format":"date-time"}]},"last_sip_code":{"oneOf":[{"type":"string","example":"403"},{"type":"null","example":"403"}]}}},{"type":"null","description":"Set when outbound calls paused on their own after three refusals in a row by your\nphone system; campaigns calling from the number pause with them. Send `enabled: true`\nto turn them back on.\n","properties":{"reason":{"type":"string","enum":["phone_system_refused"]},"since":{"oneOf":[{"type":"string","format":"date-time"},{"type":"null","format":"date-time"}]},"last_sip_code":{"oneOf":[{"type":"string","example":"403"},{"type":"null","example":"403"}]}}}]}},"uniqueKey":"data.register.outbound.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.register.outbound","typeLabel":"object | null"}},"uniqueKey":"data.register","typeLabel":"object"},"allowed_source_ips":{"oneOf":[{"type":"array","deprecated":true,"description":"SIP address endpoints only. Source addresses recorded with the\nendpoint, for your records. **Calls are not checked against this\nlist**: a call to the address is answered wherever it comes from.\n`null` when none is recorded.\n","items":{"type":"string","example":"203.0.113.0/24","uniqueKey":"data.allowed_source_ips.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"data.allowed_source_ips.oneOf.0","typeLabel":"string[]"},{"type":"null","deprecated":true,"description":"SIP address endpoints only. Source addresses recorded with the\nendpoint, for your records. **Calls are not checked against this\nlist**: a call to the address is answered wherever it comes from.\n`null` when none is recorded.\n","items":{"type":"string","example":"203.0.113.0/24"},"uniqueKey":"data.allowed_source_ips.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.allowed_source_ips","typeLabel":"string[] | null"},"password_rotated_at":{"oneOf":[{"type":"string","format":"date-time","description":"Username-and-password trunks only (absent on a SIP address endpoint):\nwhen [rotate-password](/api-reference/sip-endpoints/rotate-password)\nlast issued a new password. `null` until the first one.\n","example":null,"uniqueKey":"data.password_rotated_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Username-and-password trunks only (absent on a SIP address endpoint):\nwhen [rotate-password](/api-reference/sip-endpoints/rotate-password)\nlast issued a new password. `null` until the first one.\n","example":null,"uniqueKey":"data.password_rotated_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.password_rotated_at","typeLabel":"string\u003cdate-time> | null"},"sip_password":{"type":"string","description":"Username-and-password trunks only: the trunk's SIP password, 32\nletters and digits. Store it now: neither the API nor the dashboard\ncan show it again. If it is lost,\n[issue a new one](/api-reference/sip-endpoints/rotate-password).\n","example":"Ex4mpleOnlyNotARealPassword12345","uniqueKey":"data.sip_password","typeLabel":"string"}},"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"credentials":{"title":"credentials","summary":"Username-and-password trunk","value":{"data":{"id":"8d0c5f4e-2b1a-4c3d-9e8f-7a6b5c4d3e2f","name":"Main office PBX","auth_mode":"credentials","slug":null,"sip_uri":null,"sip_username":"yp4k7d2m9x1q8w3z","max_concurrent_calls":5,"sip_connection":{"server":"sip.telnyx.com","alternate_servers":["sip.telnyx.eu","sip.telnyx.me"],"transports":[{"protocol":"tls","port":5061,"recommended":true},{"protocol":"tcp","port":5060},{"protocol":"udp","port":5060}],"registration":"optional"},"inbound_agent_id":"3f1c2b9e-7a4d-4e21-9c55-1b2d3e4f5a6b","is_active":true,"last_call_at":null,"created_at":"2026-10-01T12:00:00Z","updated_at":"2026-10-01T12:00:00Z","sip_password":"Ex4mpleOnlyNotARealPassword12345"}}},"uri":{"title":"uri","summary":"SIP address endpoint","value":{"data":{"id":"1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d","name":"After-hours","auth_mode":"uri","slug":"after-hours-bz3r3mtypuwuw8tpdw3x392s","inbound_agent_id":"3f1c2b9e-7a4d-4e21-9c55-1b2d3e4f5a6b","is_active":true,"last_call_at":null,"allowed_source_ips":null,"created_at":"2026-10-01T12:00:00Z","updated_at":"2026-10-01T12:00:00Z","sip_uri":"sip:after-hours-bz3r3mtypuwuw8tpdw3x392s@yappr-byoc.sip.telnyx.com"}}},"register":{"title":"register","summary":"Extension endpoint","value":{"data":{"id":"5e9a7c21-3b4d-4f60-8a1c-2d3e4f5a6b7c","name":"Hosted PBX extension","auth_mode":"register","slug":null,"sip_uri":null,"max_concurrent_calls":2,"inbound_agent_id":"3f1c2b9e-7a4d-4e21-9c55-1b2d3e4f5a6b","is_active":true,"last_call_at":null,"created_at":"2026-10-04T12:00:00Z","updated_at":"2026-10-04T12:00:00Z","register":{"server":"sip1.example.net","username":"101","auth_username":null,"transport":"udp","region":"middle_east","status":"pending","status_detail":null,"status_checked_at":null,"allow_list":{"sip_ip":"192.76.120.75","sip_ports":[5060,5061],"rtp_ports":"16384-32768","note":"allow these on your phone system"}}}}}},"exampleType":"examples"}},"exampleType":"examples"},"1b57a700-6af9-472d-80c1-ee3ce76bd498":{"description":"Nothing was created.\n- `SIP_ENDPOINT_REQUEST_INVALID` — `error` says why: `name` or\n `inbound_agent_id` missing, an agent that is not in this workspace, an\n `auth_mode` other than `credentials`, `uri` or `register`,\n `max_concurrent_calls` outside 1–8 or `null`, a `slug` outside its\n rules, an `allowed_source_ips` entry that is not an address, `register`\n missing or incomplete on an extension endpoint, a value for a field of\n the other kind of endpoint (`max_concurrent_calls` on a SIP address\n endpoint; `slug` or `allowed_source_ips` on a username-and-password\n trunk or an extension endpoint; `register` on any other kind), a field\n this call does not take, such as `sip_username`, `sip_password` or\n `transport`, or a body that is not a JSON object. `issues[]` names every\n fault at once, each at its pointer (`/name`, `/allowed_source_ips/1`)\n with `field_unknown`, `field_required` or `field_invalid`; an\n `Idempotency-Key` that can't be one is `header_invalid` at\n `Idempotency-Key`.\n- `SIP_REGISTER_HOST_INVALID` — extension endpoints: `register.server` is\n not a public host name or address (a scheme, a path, a private or\n loopback address, or a Yappr or Telnyx host).\n- `SIP_ENDPOINT_QUERY_INVALID` — the request has a query parameter; this\n call takes none.\n\nFor `auth_mode: \"register\"`, `SIP_ENDPOINT_REQUEST_INVALID` also covers\na missing `register`, `register.server`, `register.username` or\n`register.password`, a value that does not fit, and `sip_username`,\n`sip_password`, `slug` or `sip_uri` (an extension endpoint has none).\n","content":{"application/json":{"schema":{"type":"object","required":["error","code"],"description":"Every error response - the secret-key API and the browser data plane alike - carries a\nhuman-readable `error` and a stable machine `code`, and a refusal that names what is\nwrong with the request carries `issues[]` too. Branch on `code`, never on the `error`\ntext. A refusal that names nothing more specific carries the code its status means:\n`BAD_REQUEST` (400), `UNAUTHORIZED` (401, the browser data plane; the secret-key API\nanswers `MISSING_KEY`, `INVALID_KEY` or `EXPIRED_KEY`), `BILLING_ERROR` (402),\n`FORBIDDEN` (403), `NOT_FOUND` (404), `METHOD_NOT_ALLOWED` (405), `CONFLICT` (409),\n`GONE` (410), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415),\n`UNPROCESSABLE_REQUEST` (422), `RATE_LIMIT` (429), `INTERNAL_ERROR` (500),\n`UPSTREAM_ERROR` (502), `SERVICE_UNAVAILABLE` (503), `UPSTREAM_TIMEOUT` (504). Some\nrefusals add members of their own beside these (a call request's `status`, a workflow's\n`current_version`); the operation says which.\n","properties":{"error":{"type":"string","description":"The refusal, in one sentence for a person. Its wording may change.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"The stable code to branch on.","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"issues":{"type":"array","description":"Each thing at fault, on a 400 or 422 that names them: every query parameter or body field, not just the first. `path` is the parameter's name or the field's location.\n","items":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"query_param_unknown, query_param_repeated, query_param_blank, query_param_invalid, field_unknown, field_required, field_invalid, or the route's own word.","isRequired":true,"uniqueKey":"issues.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"issues.items.[INDEX].message","typeLabel":"string"},"path":{"type":"string","uniqueKey":"issues.items.[INDEX].path","typeLabel":"string"}},"uniqueKey":"issues.items.[INDEX]","typeLabel":"object"},"uniqueKey":"issues","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"\u003cstring>","issues":[{"code":"\u003cstring>","message":"\u003cstring>","path":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"6d1ecafe-ec62-41cb-b1d2-5d3f09ca9dbb":{"description":"MISSING_KEY, INVALID_KEY or EXPIRED_KEY - the key was not accepted. A valid key without the scope this operation needs is 403 INSUFFICIENT_SCOPE, naming the scope.","content":{"application/json":{"schema":{"type":"object","required":["error","code"],"description":"Every error response - the secret-key API and the browser data plane alike - carries a\nhuman-readable `error` and a stable machine `code`, and a refusal that names what is\nwrong with the request carries `issues[]` too. Branch on `code`, never on the `error`\ntext. A refusal that names nothing more specific carries the code its status means:\n`BAD_REQUEST` (400), `UNAUTHORIZED` (401, the browser data plane; the secret-key API\nanswers `MISSING_KEY`, `INVALID_KEY` or `EXPIRED_KEY`), `BILLING_ERROR` (402),\n`FORBIDDEN` (403), `NOT_FOUND` (404), `METHOD_NOT_ALLOWED` (405), `CONFLICT` (409),\n`GONE` (410), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415),\n`UNPROCESSABLE_REQUEST` (422), `RATE_LIMIT` (429), `INTERNAL_ERROR` (500),\n`UPSTREAM_ERROR` (502), `SERVICE_UNAVAILABLE` (503), `UPSTREAM_TIMEOUT` (504). Some\nrefusals add members of their own beside these (a call request's `status`, a workflow's\n`current_version`); the operation says which.\n","properties":{"error":{"type":"string","description":"The refusal, in one sentence for a person. Its wording may change.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"The stable code to branch on.","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"issues":{"type":"array","description":"Each thing at fault, on a 400 or 422 that names them: every query parameter or body field, not just the first. `path` is the parameter's name or the field's location.\n","items":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"query_param_unknown, query_param_repeated, query_param_blank, query_param_invalid, field_unknown, field_required, field_invalid, or the route's own word.","isRequired":true,"uniqueKey":"issues.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"issues.items.[INDEX].message","typeLabel":"string"},"path":{"type":"string","uniqueKey":"issues.items.[INDEX].path","typeLabel":"string"}},"uniqueKey":"issues.items.[INDEX]","typeLabel":"object"},"uniqueKey":"issues","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"\u003cstring>","issues":[{"code":"\u003cstring>","message":"\u003cstring>","path":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"dc85ffde-1b40-42a7-a1dc-9873a9e948f9":{"description":"Nothing was created.\n- `SIP_REGISTER_NOT_ENABLED` — extension endpoints aren't switched on\n for this workspace. Ask Yappr support to switch them on; the other\n kinds are not affected.\n- `SIP_REGISTER_OUTBOUND_NOT_ENABLED` — `register.outbound.enabled: true`, and\n calling out through an extension isn't switched on for this workspace. Ask\n Yappr support; create it without `register.outbound` meanwhile.\n- `INSUFFICIENT_SCOPE` — the API key does not hold\n `sip_endpoints:manage`, and the message names it.\n- `FORBIDDEN_ROLE` — dashboard sessions only: just workspace owners and\n admins can create a username-and-password trunk. API keys with\n `sip_endpoints:manage` can.\n- `SIP_TRUNKS_NOT_ENABLED` — username-and-password trunks aren't\n switched on for this workspace. Ask Yappr support to switch them on.\n SIP address endpoints are not affected.\n","content":{"application/json":{"schema":{"type":"object","required":["error","code"],"description":"Every error response - the secret-key API and the browser data plane alike - carries a\nhuman-readable `error` and a stable machine `code`, and a refusal that names what is\nwrong with the request carries `issues[]` too. Branch on `code`, never on the `error`\ntext. A refusal that names nothing more specific carries the code its status means:\n`BAD_REQUEST` (400), `UNAUTHORIZED` (401, the browser data plane; the secret-key API\nanswers `MISSING_KEY`, `INVALID_KEY` or `EXPIRED_KEY`), `BILLING_ERROR` (402),\n`FORBIDDEN` (403), `NOT_FOUND` (404), `METHOD_NOT_ALLOWED` (405), `CONFLICT` (409),\n`GONE` (410), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415),\n`UNPROCESSABLE_REQUEST` (422), `RATE_LIMIT` (429), `INTERNAL_ERROR` (500),\n`UPSTREAM_ERROR` (502), `SERVICE_UNAVAILABLE` (503), `UPSTREAM_TIMEOUT` (504). Some\nrefusals add members of their own beside these (a call request's `status`, a workflow's\n`current_version`); the operation says which.\n","properties":{"error":{"type":"string","description":"The refusal, in one sentence for a person. Its wording may change.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"The stable code to branch on.","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"issues":{"type":"array","description":"Each thing at fault, on a 400 or 422 that names them: every query parameter or body field, not just the first. `path` is the parameter's name or the field's location.\n","items":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"query_param_unknown, query_param_repeated, query_param_blank, query_param_invalid, field_unknown, field_required, field_invalid, or the route's own word.","isRequired":true,"uniqueKey":"issues.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"issues.items.[INDEX].message","typeLabel":"string"},"path":{"type":"string","uniqueKey":"issues.items.[INDEX].path","typeLabel":"string"}},"uniqueKey":"issues.items.[INDEX]","typeLabel":"object"},"uniqueKey":"issues","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"\u003cstring>","issues":[{"code":"\u003cstring>","message":"\u003cstring>","path":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"e9ec9d1d-a393-4fe5-8256-d3d7d6fd21ea":{"description":"Nothing was created, except for `SIP_REGISTER_SETUP_IN_PROGRESS`.\n- `VOICE_NOT_READY` — Yappr can't answer calls on username-and-password\n trunks or extension endpoints right now, for example during an update.\n Try again in a few minutes ([GET /sip-endpoints/status](/api-reference/sip-endpoints/status)\n says when). SIP address endpoints are not affected.\n- `SIP_REGISTER_LIMIT_REACHED` — extension endpoints: the workspace\n already holds its limit (5 unless Yappr support raised it), or Yappr has\n no room for another registration right now. Delete one you don't use,\n or ask Yappr support.\n- `PHONE_NUMBER_IN_USE` — `register.outbound.caller_number` is already a\n phone number in Yappr. Use another number, or remove it where it is.\n- `VOICE_NOT_READY` also answers `register.outbound.enabled: true` while the\n voice server can't place calls through an extension yet (`register_outbound_available`\n on [GET /sip-endpoints/status](/api-reference/sip-endpoints/status) says when).\n- `SIP_REGISTER_SETUP_IN_PROGRESS` — extension endpoints: a create with\n the same `Idempotency-Key` started an endpoint whose setup has not\n finished. Wait a minute and list your endpoints; if it is still\n switched off, delete it and create it again (if the new one then reads failed with 'extension username already in use', use a different extension name).\n- `SIP_REGISTER_EXTENSION_IN_USE` — extension endpoints: this extension\n username is already used by another live endpoint. Nothing was created.\n Use another extension name, or edit that endpoint. A name held by a\n deleted endpoint is not refused here: the create is accepted and the\n endpoint later shows the status `failed` with the reason \"extension\n username already in use\". To change an endpoint of yours, edit it\n instead of deleting and re-creating it.\n Usernames are unique across Yappr, first come first served, so with a\n short extension such as `101` a clash is likely: create a dedicated\n extension on your phone system with a distinctive name (letters,\n digits, `-` or `_`).\n- `CONFLICT` — a SIP address endpoint's generated address was already\n taken (rare). Send the request again for a new random address.\n- `IDEMPOTENCY_KEY_REUSED` — this `Idempotency-Key` already created an\n endpoint in the last 24 hours, from a different body. Send the\n original body to get that endpoint, or use a new key.\n","content":{"application/json":{"schema":{"type":"object","required":["error","code"],"description":"Every error response - the secret-key API and the browser data plane alike - carries a\nhuman-readable `error` and a stable machine `code`, and a refusal that names what is\nwrong with the request carries `issues[]` too. Branch on `code`, never on the `error`\ntext. A refusal that names nothing more specific carries the code its status means:\n`BAD_REQUEST` (400), `UNAUTHORIZED` (401, the browser data plane; the secret-key API\nanswers `MISSING_KEY`, `INVALID_KEY` or `EXPIRED_KEY`), `BILLING_ERROR` (402),\n`FORBIDDEN` (403), `NOT_FOUND` (404), `METHOD_NOT_ALLOWED` (405), `CONFLICT` (409),\n`GONE` (410), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415),\n`UNPROCESSABLE_REQUEST` (422), `RATE_LIMIT` (429), `INTERNAL_ERROR` (500),\n`UPSTREAM_ERROR` (502), `SERVICE_UNAVAILABLE` (503), `UPSTREAM_TIMEOUT` (504). Some\nrefusals add members of their own beside these (a call request's `status`, a workflow's\n`current_version`); the operation says which.\n","properties":{"error":{"type":"string","description":"The refusal, in one sentence for a person. Its wording may change.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"The stable code to branch on.","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"issues":{"type":"array","description":"Each thing at fault, on a 400 or 422 that names them: every query parameter or body field, not just the first. `path` is the parameter's name or the field's location.\n","items":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"query_param_unknown, query_param_repeated, query_param_blank, query_param_invalid, field_unknown, field_required, field_invalid, or the route's own word.","isRequired":true,"uniqueKey":"issues.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"issues.items.[INDEX].message","typeLabel":"string"},"path":{"type":"string","uniqueKey":"issues.items.[INDEX].path","typeLabel":"string"}},"uniqueKey":"issues.items.[INDEX]","typeLabel":"object"},"uniqueKey":"issues","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"\u003cstring>","issues":[{"code":"\u003cstring>","message":"\u003cstring>","path":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"a9b13e37-16bc-4ee2-ae8a-d1eccdec2ec7":{"description":"`RATE_LIMITED` (`RATE_LIMIT` on a SIP address endpoint) — this workspace\nalready made 20 create attempts in the current 24 hours, which run from\nits first attempt. The limit counts attempts, not endpoints created, so\nan attempt that failed can count too. Nothing was created; try again\nonce the 24 hours are up.\n","content":{"application/json":{"schema":{"type":"object","required":["error","code"],"description":"Every error response - the secret-key API and the browser data plane alike - carries a\nhuman-readable `error` and a stable machine `code`, and a refusal that names what is\nwrong with the request carries `issues[]` too. Branch on `code`, never on the `error`\ntext. A refusal that names nothing more specific carries the code its status means:\n`BAD_REQUEST` (400), `UNAUTHORIZED` (401, the browser data plane; the secret-key API\nanswers `MISSING_KEY`, `INVALID_KEY` or `EXPIRED_KEY`), `BILLING_ERROR` (402),\n`FORBIDDEN` (403), `NOT_FOUND` (404), `METHOD_NOT_ALLOWED` (405), `CONFLICT` (409),\n`GONE` (410), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415),\n`UNPROCESSABLE_REQUEST` (422), `RATE_LIMIT` (429), `INTERNAL_ERROR` (500),\n`UPSTREAM_ERROR` (502), `SERVICE_UNAVAILABLE` (503), `UPSTREAM_TIMEOUT` (504). Some\nrefusals add members of their own beside these (a call request's `status`, a workflow's\n`current_version`); the operation says which.\n","properties":{"error":{"type":"string","description":"The refusal, in one sentence for a person. Its wording may change.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"The stable code to branch on.","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"issues":{"type":"array","description":"Each thing at fault, on a 400 or 422 that names them: every query parameter or body field, not just the first. `path` is the parameter's name or the field's location.\n","items":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"query_param_unknown, query_param_repeated, query_param_blank, query_param_invalid, field_unknown, field_required, field_invalid, or the route's own word.","isRequired":true,"uniqueKey":"issues.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"issues.items.[INDEX].message","typeLabel":"string"},"path":{"type":"string","uniqueKey":"issues.items.[INDEX].path","typeLabel":"string"}},"uniqueKey":"issues.items.[INDEX]","typeLabel":"object"},"uniqueKey":"issues","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"\u003cstring>","issues":[{"code":"\u003cstring>","message":"\u003cstring>","path":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"37545ffe-ccb0-42e6-a087-17e0ec6b372e":{"description":"`INTERNAL_ERROR` — Yappr could not save the endpoint. Nothing was created; try again.","content":{"application/json":{"schema":{"type":"object","required":["error","code"],"description":"Every error response - the secret-key API and the browser data plane alike - carries a\nhuman-readable `error` and a stable machine `code`, and a refusal that names what is\nwrong with the request carries `issues[]` too. Branch on `code`, never on the `error`\ntext. A refusal that names nothing more specific carries the code its status means:\n`BAD_REQUEST` (400), `UNAUTHORIZED` (401, the browser data plane; the secret-key API\nanswers `MISSING_KEY`, `INVALID_KEY` or `EXPIRED_KEY`), `BILLING_ERROR` (402),\n`FORBIDDEN` (403), `NOT_FOUND` (404), `METHOD_NOT_ALLOWED` (405), `CONFLICT` (409),\n`GONE` (410), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415),\n`UNPROCESSABLE_REQUEST` (422), `RATE_LIMIT` (429), `INTERNAL_ERROR` (500),\n`UPSTREAM_ERROR` (502), `SERVICE_UNAVAILABLE` (503), `UPSTREAM_TIMEOUT` (504). Some\nrefusals add members of their own beside these (a call request's `status`, a workflow's\n`current_version`); the operation says which.\n","properties":{"error":{"type":"string","description":"The refusal, in one sentence for a person. Its wording may change.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"The stable code to branch on.","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"issues":{"type":"array","description":"Each thing at fault, on a 400 or 422 that names them: every query parameter or body field, not just the first. `path` is the parameter's name or the field's location.\n","items":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"query_param_unknown, query_param_repeated, query_param_blank, query_param_invalid, field_unknown, field_required, field_invalid, or the route's own word.","isRequired":true,"uniqueKey":"issues.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"issues.items.[INDEX].message","typeLabel":"string"},"path":{"type":"string","uniqueKey":"issues.items.[INDEX].path","typeLabel":"string"}},"uniqueKey":"issues.items.[INDEX]","typeLabel":"object"},"uniqueKey":"issues","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"\u003cstring>","issues":[{"code":"\u003cstring>","message":"\u003cstring>","path":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"bd238f77-0428-40ea-9b43-29a51acf1810":{"description":"`SIP_TRUNK_PROVISIONING_FAILED` — username-and-password trunks: the\nusername and password could not be set up with Yappr's carrier.\nNothing was created; try again in a minute.\n`SIP_REGISTER_PROVIDER_ERROR` — extension endpoints: the registration\ncould not be set up with Yappr's carrier. Yappr undoes the attempt\nand nothing is created; try again in a minute. If it could not\nconfirm the undo, the endpoint stays in the list, switched off:\ndelete it, then create it again.\n","content":{"application/json":{"schema":{"type":"object","required":["error","code"],"description":"Every error response - the secret-key API and the browser data plane alike - carries a\nhuman-readable `error` and a stable machine `code`, and a refusal that names what is\nwrong with the request carries `issues[]` too. Branch on `code`, never on the `error`\ntext. A refusal that names nothing more specific carries the code its status means:\n`BAD_REQUEST` (400), `UNAUTHORIZED` (401, the browser data plane; the secret-key API\nanswers `MISSING_KEY`, `INVALID_KEY` or `EXPIRED_KEY`), `BILLING_ERROR` (402),\n`FORBIDDEN` (403), `NOT_FOUND` (404), `METHOD_NOT_ALLOWED` (405), `CONFLICT` (409),\n`GONE` (410), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415),\n`UNPROCESSABLE_REQUEST` (422), `RATE_LIMIT` (429), `INTERNAL_ERROR` (500),\n`UPSTREAM_ERROR` (502), `SERVICE_UNAVAILABLE` (503), `UPSTREAM_TIMEOUT` (504). Some\nrefusals add members of their own beside these (a call request's `status`, a workflow's\n`current_version`); the operation says which.\n","properties":{"error":{"type":"string","description":"The refusal, in one sentence for a person. Its wording may change.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"The stable code to branch on.","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"issues":{"type":"array","description":"Each thing at fault, on a 400 or 422 that names them: every query parameter or body field, not just the first. `path` is the parameter's name or the field's location.\n","items":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"query_param_unknown, query_param_repeated, query_param_blank, query_param_invalid, field_unknown, field_required, field_invalid, or the route's own word.","isRequired":true,"uniqueKey":"issues.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"issues.items.[INDEX].message","typeLabel":"string"},"path":{"type":"string","uniqueKey":"issues.items.[INDEX].path","typeLabel":"string"}},"uniqueKey":"issues.items.[INDEX]","typeLabel":"object"},"uniqueKey":"issues","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"\u003cstring>","issues":[{"code":"\u003cstring>","message":"\u003cstring>","path":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"2767439e-f0c6-4cd4-a450-ba11a6ab8311":{"apiKey":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"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`).","scopes":[],"schemeName":"apiKey"}}},"servers":{"dc0c5f7d-c0c3-40b9-9c53-ce2239f5b67d":{"url":"https://api.goyappr.com","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"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`).","scopes":[],"schemeName":"apiKey"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"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`).","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"apiKey","name":"Authorization"}],"title":"apiKey"}]},"originalFileLocation":"openapi.yaml"},"subdomain":"yappr","siteName":"Yappr","title":"Create SIP Endpoint - Yappr","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-12T15:44:20.724Z","originalFileLocation":"api-reference/sip-endpoints/create.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create a SIP endpoint, so that calls from your own phone system reach an agent. Requires sip_endpoints:manage. Limit: 20 create attempts per workspace in 24 hours that run from the first attempt, all three kinds together. The limit counts attempts, not endpoints created. - auth_mode: \u0026quot;credentials\u0026quot; creates a username-and-password trunk. The response carries the username, the server settings and the password, the password only this once. In the dashboard, only workspace owners and admins can create one. While GET /sip-endpoints/status answers credentials_available: false, nothing is created: this answers 403 SIP_TRUNKS_NOT_ENABLED (trunks aren\u0026#x27;t switched on for your workspace) or 409 VOICE_NOT_READY (Yappr can\u0026#x27;t take trunk calls right now). A trunk only brings calls in: it can\u0026#x27;t place calls. An agent on a trunk call can hand the caller back to your phone system with a SIP-address transfer destination. Any agent of the workspace can answer, including one that runs a workflow: publish its workflow first, because calls to an agent that is switched off, or whose workflow has never been published, are refused with SIP 603 Decline, and the create doesn\u0026#x27;t check this. - auth_mode: \u0026quot;uri\u0026quot; (the default) creates a SIP address endpoint. The response carries the sip_uri your phone system dials, with no username or password. It works with any agent, including one that runs a workflow. The address is the endpoint\u0026#x27;s only credential: anyone who has it can call the agent. - auth_mode: \u0026quot;register\u0026quot; creates an extension endpoint, for a hosted phone system that only gives you an extension account. Send the extension\u0026#x27;s register.server, register.username and register.password; Yappr registers to your phone system like a softphone, and the agent answers the calls it routes to that extension. Yappr does not store the password or return it; its carrier holds it to keep the extension registered and to place transfers, so send the new one with an update whenever it changes on your phone system. Registration takes a few minutes: poll register.status. A workspace can hold 5. While GET /sip-endpoints/status answers register_available: false, nothing is created: this answers 403 SIP_REGISTER_NOT_ENABLED or 409 VOICE_NOT_READY. A field the endpoint does not read is refused by name with 400 SIP_ENDPOINT_REQUEST_INVALID, and so is a value for a field of the other kind of endpoint. That includes sip_username and sip_password (Yappr issues both on a username-and-password trunk; a SIP address endpoint and an extension endpoint have neither: an extension\u0026#x27;s login goes inside register) and a top-level transport, which is not a setting. The setup guide says what to enter in your phone system, and which platforms can send calls to a username-and-password trunk.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Yappr\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/yappr/-dhyiEDTEuUg9xPr/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/yappr/-dhyiEDTEuUg9xPr/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/yappr/-dhyiEDTEuUg9xPr/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/yappr/-dhyiEDTEuUg9xPr/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/yappr/-dhyiEDTEuUg9xPr/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/yappr/-dhyiEDTEuUg9xPr/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/yappr/-dhyiEDTEuUg9xPr/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/yappr/-dhyiEDTEuUg9xPr/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/yappr/-dhyiEDTEuUg9xPr/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create SIP Endpoint - Yappr\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a SIP endpoint, so that calls from your own phone system reach an agent. Requires sip_endpoints:manage. Limit: 20 create attempts per workspace in 24 hours that run from the first attempt, all three kinds together. The limit counts attempts, not endpoints created. - auth_mode: \u0026quot;credentials\u0026quot; creates a username-and-password trunk. The response carries the username, the server settings and the password, the password only this once. In the dashboard, only workspace owners and admins can create one. While GET /sip-endpoints/status answers credentials_available: false, nothing is created: this answers 403 SIP_TRUNKS_NOT_ENABLED (trunks aren\u0026#x27;t switched on for your workspace) or 409 VOICE_NOT_READY (Yappr can\u0026#x27;t take trunk calls right now). A trunk only brings calls in: it can\u0026#x27;t place calls. An agent on a trunk call can hand the caller back to your phone system with a SIP-address transfer destination. Any agent of the workspace can answer, including one that runs a workflow: publish its workflow first, because calls to an agent that is switched off, or whose workflow has never been published, are refused with SIP 603 Decline, and the create doesn\u0026#x27;t check this. - auth_mode: \u0026quot;uri\u0026quot; (the default) creates a SIP address endpoint. The response carries the sip_uri your phone system dials, with no username or password. It works with any agent, including one that runs a workflow. The address is the endpoint\u0026#x27;s only credential: anyone who has it can call the agent. - auth_mode: \u0026quot;register\u0026quot; creates an extension endpoint, for a hosted phone system that only gives you an extension account. Send the extension\u0026#x27;s register.server, register.username and register.password; Yappr registers to your phone system like a softphone, and the agent answers the calls it routes to that extension. Yappr does not store the password or return it; its carrier holds it to keep the extension registered and to place transfers, so send the new one with an update whenever it changes on your phone system. Registration takes a few minutes: poll register.status. A workspace can hold 5. While GET /sip-endpoints/status answers register_available: false, nothing is created: this answers 403 SIP_REGISTER_NOT_ENABLED or 409 VOICE_NOT_READY. A field the endpoint does not read is refused by name with 400 SIP_ENDPOINT_REQUEST_INVALID, and so is a value for a field of the other kind of endpoint. That includes sip_username and sip_password (Yappr issues both on a username-and-password trunk; a SIP address endpoint and an extension endpoint have neither: an extension\u0026#x27;s login goes inside register) and a top-level transport, which is not a setting. The setup guide says what to enter in your phone system, and which platforms can send calls to a username-and-password trunk.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Yappr\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.goyappr.com/api-reference/sip-endpoints/create\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://yappr.mintlify.site/_mintlify/api/og/v2?division=SIP+Endpoints\u0026amp;title=Create+SIP+Endpoint\u0026amp;description=Create+a+SIP+endpoint%2C+so+that+calls+from+your+own+phone+system+reach+an%0Aagent.+Requires+%60sip_endpoints%3Amanage%60.+Limit%3A+20+create+attempts+per%0Aworkspace+in+24+h\u0026amp;theme=1423bf5e3b005ceb227321bc\u0026amp;signature=7a18cf2228bf3a52d7fd7029b4fa0c20347cb33ebf847faeea8b7b94f830dc4d\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create SIP Endpoint - Yappr\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a SIP endpoint, so that calls from your own phone system reach an agent. Requires sip_endpoints:manage. Limit: 20 create attempts per workspace in 24 hours that run from the first attempt, all three kinds together. The limit counts attempts, not endpoints created. - auth_mode: \u0026quot;credentials\u0026quot; creates a username-and-password trunk. The response carries the username, the server settings and the password, the password only this once. In the dashboard, only workspace owners and admins can create one. While GET /sip-endpoints/status answers credentials_available: false, nothing is created: this answers 403 SIP_TRUNKS_NOT_ENABLED (trunks aren\u0026#x27;t switched on for your workspace) or 409 VOICE_NOT_READY (Yappr can\u0026#x27;t take trunk calls right now). A trunk only brings calls in: it can\u0026#x27;t place calls. An agent on a trunk call can hand the caller back to your phone system with a SIP-address transfer destination. Any agent of the workspace can answer, including one that runs a workflow: publish its workflow first, because calls to an agent that is switched off, or whose workflow has never been published, are refused with SIP 603 Decline, and the create doesn\u0026#x27;t check this. - auth_mode: \u0026quot;uri\u0026quot; (the default) creates a SIP address endpoint. The response carries the sip_uri your phone system dials, with no username or password. It works with any agent, including one that runs a workflow. The address is the endpoint\u0026#x27;s only credential: anyone who has it can call the agent. - auth_mode: \u0026quot;register\u0026quot; creates an extension endpoint, for a hosted phone system that only gives you an extension account. Send the extension\u0026#x27;s register.server, register.username and register.password; Yappr registers to your phone system like a softphone, and the agent answers the calls it routes to that extension. Yappr does not store the password or return it; its carrier holds it to keep the extension registered and to place transfers, so send the new one with an update whenever it changes on your phone system. Registration takes a few minutes: poll register.status. A workspace can hold 5. While GET /sip-endpoints/status answers register_available: false, nothing is created: this answers 403 SIP_REGISTER_NOT_ENABLED or 409 VOICE_NOT_READY. A field the endpoint does not read is refused by name with 400 SIP_ENDPOINT_REQUEST_INVALID, and so is a value for a field of the other kind of endpoint. That includes sip_username and sip_password (Yappr issues both on a username-and-password trunk; a SIP address endpoint and an extension endpoint have neither: an extension\u0026#x27;s login goes inside register) and a top-level transport, which is not a setting. The setup guide says what to enter in your phone system, and which platforms can send calls to a username-and-password trunk.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://yappr.mintlify.site/_mintlify/api/og/v2?division=SIP+Endpoints\u0026amp;title=Create+SIP+Endpoint\u0026amp;description=Create+a+SIP+endpoint%2C+so+that+calls+from+your+own+phone+system+reach+an%0Aagent.+Requires+%60sip_endpoints%3Amanage%60.+Limit%3A+20+create+attempts+per%0Aworkspace+in+24+h\u0026amp;theme=1423bf5e3b005ceb227321bc\u0026amp;signature=7a18cf2228bf3a52d7fd7029b4fa0c20347cb33ebf847faeea8b7b94f830dc4d\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/yappr/-dhyiEDTEuUg9xPr/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Yappr\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6366f1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.goyappr.com/api-reference/sip-endpoints/create\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/sip-endpoints/create.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.goyappr.com/#organization\",\"name\":\"Yappr\",\"url\":\"https://docs.goyappr.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/yappr/E1AQ46GZ-5iPcyPp/logo/light.svg?fit=max\u0026auto=format\u0026n=E1AQ46GZ-5iPcyPp\u0026q=85\u0026s=a117ff3aa08c2017e8d58b0da5be882f\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.goyappr.com#website\",\"name\":\"Yappr\",\"url\":\"https://docs.goyappr.com\",\"publisher\":{\"@id\":\"https://docs.goyappr.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.goyappr.com/api-reference/sip-endpoints/create#webpage\",\"url\":\"https://docs.goyappr.com/api-reference/sip-endpoints/create\",\"name\":\"Create SIP Endpoint\",\"description\":\"Create a SIP endpoint, so that calls from your own phone system reach an agent. Requires sip_endpoints:manage. Limit: 20 create attempts per workspace in 24 hours that run from the first attempt, all three kinds together. The limit counts attempts, not endpoints created. - auth_mode: \\\"credentials\\\" creates a username-and-password trunk. The response carries the username, the server settings and the password, the password only this once. In the dashboard, only workspace owners and admins can create one. While GET /sip-endpoints/status answers credentials_available: false, nothing is created: this answers 403 SIP_TRUNKS_NOT_ENABLED (trunks aren't switched on for your workspace) or 409 VOICE_NOT_READY (Yappr can't take trunk calls right now). A trunk only brings calls in: it can't place calls. An agent on a trunk call can hand the caller back to your phone system with a SIP-address transfer destination. Any agent of the workspace can answer, including one that runs a workflow: publish its workflow first, because calls to an agent that is switched off, or whose workflow has never been published, are refused with SIP 603 Decline, and the create doesn't check this. - auth_mode: \\\"uri\\\" (the default) creates a SIP address endpoint. The response carries the sip_uri your phone system dials, with no username or password. It works with any agent, including one that runs a workflow. The address is the endpoint's only credential: anyone who has it can call the agent. - auth_mode: \\\"register\\\" creates an extension endpoint, for a hosted phone system that only gives you an extension account. Send the extension's register.server, register.username and register.password; Yappr registers to your phone system like a softphone, and the agent answers the calls it routes to that extension. Yappr does not store the password or return it; its carrier holds it to keep the extension registered and to place transfers, so send the new one with an update whenever it changes on your phone system. Registration takes a few minutes: poll register.status. A workspace can hold 5. While GET /sip-endpoints/status answers register_available: false, nothing is created: this answers 403 SIP_REGISTER_NOT_ENABLED or 409 VOICE_NOT_READY. A field the endpoint does not read is refused by name with 400 SIP_ENDPOINT_REQUEST_INVALID, and so is a value for a field of the other kind of endpoint. That includes sip_username and sip_password (Yappr issues both on a username-and-password trunk; a SIP address endpoint and an extension endpoint have neither: an extension's login goes inside register) and a top-level transport, which is not a setting. The setup guide says what to enter in your phone system, and which platforms can send calls to a username-and-password trunk.\",\"dateModified\":\"2026-11-12T15:44:20.724Z\",\"isPartOf\":{\"@id\":\"https://docs.goyappr.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.goyappr.com/api-reference/sip-endpoints/create#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.goyappr.com/api-reference/sip-endpoints/create#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"SIP Endpoints\",\"item\":\"https://docs.goyappr.com/api-reference/sip-endpoints/status\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create SIP Endpoint\",\"item\":\"https://docs.goyappr.com/api-reference/sip-endpoints/create\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.goyappr.com/api-reference/sip-endpoints/create#apireference\",\"headline\":\"Create SIP Endpoint\",\"name\":\"Create SIP Endpoint\",\"description\":\"Create a SIP endpoint, so that calls from your own phone system reach an agent. Requires sip_endpoints:manage. Limit: 20 create attempts per workspace in 24 hours that run from the first attempt, all three kinds together. The limit counts attempts, not endpoints created. - auth_mode: \\\"credentials\\\" creates a username-and-password trunk. The response carries the username, the server settings and the password, the password only this once. In the dashboard, only workspace owners and admins can create one. While GET /sip-endpoints/status answers credentials_available: false, nothing is created: this answers 403 SIP_TRUNKS_NOT_ENABLED (trunks aren't switched on for your workspace) or 409 VOICE_NOT_READY (Yappr can't take trunk calls right now). A trunk only brings calls in: it can't place calls. An agent on a trunk call can hand the caller back to your phone system with a SIP-address transfer destination. Any agent of the workspace can answer, including one that runs a workflow: publish its workflow first, because calls to an agent that is switched off, or whose workflow has never been published, are refused with SIP 603 Decline, and the create doesn't check this. - auth_mode: \\\"uri\\\" (the default) creates a SIP address endpoint. The response carries the sip_uri your phone system dials, with no username or password. It works with any agent, including one that runs a workflow. The address is the endpoint's only credential: anyone who has it can call the agent. - auth_mode: \\\"register\\\" creates an extension endpoint, for a hosted phone system that only gives you an extension account. Send the extension's register.server, register.username and register.password; Yappr registers to your phone system like a softphone, and the agent answers the calls it routes to that extension. Yappr does not store the password or return it; its carrier holds it to keep the extension registered and to place transfers, so send the new one with an update whenever it changes on your phone system. Registration takes a few minutes: poll register.status. A workspace can hold 5. While GET /sip-endpoints/status answers register_available: false, nothing is created: this answers 403 SIP_REGISTER_NOT_ENABLED or 409 VOICE_NOT_READY. A field the endpoint does not read is refused by name with 400 SIP_ENDPOINT_REQUEST_INVALID, and so is a value for a field of the other kind of endpoint. That includes sip_username and sip_password (Yappr issues both on a username-and-password trunk; a SIP address endpoint and an extension endpoint have neither: an extension's login goes inside register) and a top-level transport, which is not a setting. The setup guide says what to enter in your phone system, and which platforms can send calls to a username-and-password trunk.\",\"url\":\"https://docs.goyappr.com/api-reference/sip-endpoints/create\",\"mainEntityOfPage\":{\"@id\":\"https://docs.goyappr.com/api-reference/sip-endpoints/create#webpage\"},\"dateModified\":\"2026-11-12T15:44:20.724Z\",\"publisher\":{\"@id\":\"https://docs.goyappr.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.goyappr.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Yappr\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Yappr\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/sip-endpoints/create.md","siteName":"Yappr","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/introduction"},{"title":"Connect through MCP","href":"/api-reference/mcp/connect"},{"title":"Error Codes","href":"/api-reference/errors"},{"title":"Report an issue","openapi":"POST /report-issue","href":"/api-reference/report-issue"}]},{"group":"Billing","pages":[{"title":"Get Billing Status","openapi":"GET /billing","href":"/api-reference/billing/get-status"},{"title":"Get Billing Rates","openapi":"GET /billing/rates","href":"/api-reference/billing/rates"},{"title":"Set Spending Limit","openapi":"PATCH /billing","href":"/api-reference/billing/spending-limit"},{"title":"Setup Payment Method","openapi":"POST /billing/setup","href":"/api-reference/billing/setup-payment"},{"title":"Top Up Credits","openapi":"POST /billing/topup","href":"/api-reference/billing/topup"},{"title":"Billing Consumption","openapi":"GET /billing/consumption","href":"/api-reference/billing/consumption"},{"title":"Billing Transactions","openapi":"GET /billing/transactions","href":"/api-reference/billing/transactions"},{"title":"Get Billing Transaction","openapi":"GET /billing/transactions/{id}","href":"/api-reference/billing/transaction"},{"title":"Get Billing Details","openapi":"GET /billing/details","href":"/api-reference/billing/details"},{"title":"Update Billing Details","openapi":"PATCH /billing/details","href":"/api-reference/billing/update-details"},{"title":"List Invoices","openapi":"GET /billing/invoices","href":"/api-reference/billing/invoices"}]},{"group":"Agents","pages":[{"title":"List Agents","openapi":"GET /agents","href":"/api-reference/agents/list"},{"title":"Create Agent","openapi":"POST /agents","href":"/api-reference/agents/create"},{"title":"Duplicate Agent","openapi":"POST /agents/{id}/duplicate","href":"/api-reference/agents/duplicate"},{"title":"Test an Agent by Phone","openapi":"POST /agents/{id}/test-call","href":"/api-reference/agents/test-call"},{"title":"Which Line Rings a Test Call","openapi":"GET /agents/{id}/test-call","href":"/api-reference/agents/test-call-caller"},{"title":"Get Agent","openapi":"GET /agents/{id}","href":"/api-reference/agents/get"},{"title":"Update Agent","openapi":"PATCH /agents/{id}","href":"/api-reference/agents/update"},{"title":"Read workflow agent settings","openapi":"GET /agents/{id}/settings","href":"/api-reference/agents/settings"},{"title":"Idle reminders","href":"/api-reference/agents/idle-reminders"},{"title":"List an agent's tools \u0026 integrations","openapi":"GET /agents/{id}/tools-and-integrations","href":"/api-reference/agents/tools-and-integrations"},{"title":"List an agent's integrations","openapi":"GET /agents/{id}/integrations","href":"/api-reference/agents/integrations-list"},{"title":"Give an agent a connected app","openapi":"POST /agents/{id}/integrations","href":"/api-reference/agents/integrations-add"},{"title":"Change an integration's actions","openapi":"PATCH /agents/{id}/integrations/{integration_id}","href":"/api-reference/agents/integrations-update"},{"title":"Stop an agent using an app","openapi":"DELETE /agents/{id}/integrations/{integration_id}","href":"/api-reference/agents/integrations-remove"},{"title":"Dry-run Extraction","openapi":"POST /agents/{id}/extraction/dry-run","href":"/api-reference/agents/extraction-dry-run"},{"title":"Remove Agent","openapi":"DELETE /agents/{id}","href":"/api-reference/agents/delete"},{"title":"Models","href":"/api-reference/agents/models"},{"title":"Languages","href":"/api-reference/agents/languages"},{"title":"Voices","href":"/api-reference/agents/voices"},{"title":"Flow Config Schema","href":"/api-reference/agents/flow-config-schema"}]},{"group":"Flow Agents","pages":[{"title":"List Flow Versions","openapi":"GET /agents/{id}/flow/versions","href":"/api-reference/flows/list-versions"},{"title":"Restore Flow Version","openapi":"POST /agents/{id}/flow/restore","href":"/api-reference/flows/restore-version"},{"title":"Test a Flow","openapi":"POST /agents/{id}/flow/test","href":"/api-reference/flows/test"}]},{"group":"Workflows","pages":[{"title":"Read workflow","openapi":"GET /agents/{id}/workflow","href":"/api-reference/workflows/get"},{"title":"Save workflow draft","openapi":"PUT /agents/{id}/workflow","href":"/api-reference/workflows/save"},{"title":"Point bindings at other tools","openapi":"POST /agents/{id}/workflow/rebind","href":"/api-reference/workflows/rebind"},{"title":"Check workflow","openapi":"POST /agents/{id}/workflow/validate","href":"/api-reference/workflows/validate"},{"title":"Publish workflow","openapi":"POST /agents/{id}/workflow/publish","href":"/api-reference/workflows/publish"},{"title":"List workflow versions","openapi":"GET /agents/{id}/workflow/versions","href":"/api-reference/workflows/versions"},{"title":"Get workflow version","openapi":"GET /agents/{id}/workflow/versions/{version_id}","href":"/api-reference/workflows/version"},{"title":"Restore workflow version","openapi":"POST /agents/{id}/workflow/restore","href":"/api-reference/workflows/restore"},{"title":"Teach an agent from a test call","openapi":"POST /agents/{id}/workflow/train","href":"/api-reference/workflows/train"},{"title":"Read workflow tool catalog","openapi":"GET /tools/workflow-catalog","href":"/api-reference/workflows/catalog"},{"title":"Trigger events","href":"/api-reference/workflows/events"},{"title":"Opening line from a Before step","href":"/api-reference/workflows/greeting-from-before"}]},{"group":"Webhooks","pages":[{"title":"Webhooks","href":"/api-reference/webhooks"},{"title":"List Deliveries","openapi":"GET /deliveries","href":"/api-reference/deliveries/list"},{"title":"Get Delivery","openapi":"GET /deliveries/{id}","href":"/api-reference/deliveries/get"},{"title":"Retry Delivery","openapi":"POST /deliveries/{id}/retry","href":"/api-reference/deliveries/retry"}]},{"group":"Tools \u0026 integrations","pages":[{"group":"Connected accounts","pages":[{"title":"List account connection options","openapi":"GET /tool-apps/connection-options","href":"/api-reference/tool-connections/apps"},{"title":"List connected accounts","openapi":"GET /tool-connections","href":"/api-reference/tool-connections/list"},{"title":"Get connection readiness","openapi":"GET /tool-connections/{id}","href":"/api-reference/tool-connections/get"},{"title":"Connect a workspace account","openapi":"POST /tool-connections","href":"/api-reference/tool-connections/connect"},{"title":"Read authorization status","openapi":"GET /tool-connection-auth-attempts/{id}","href":"/api-reference/tool-connections/auth-attempt"},{"title":"Cancel an authorization attempt","openapi":"POST /tool-connections/attempts/{id}/cancel","href":"/api-reference/tool-connections/cancel-attempt"},{"title":"Connect a replacement account","openapi":"POST /tool-connections/{id}/reconnect","href":"/api-reference/tool-connections/reconnect"},{"title":"Disconnect an account","openapi":"DELETE /tool-connections/{id}","href":"/api-reference/tool-connections/disconnect"},{"title":"Rename an account","openapi":"PATCH /tool-connections/{id}","href":"/api-reference/tool-connections/rename"},{"title":"What a connected app can do","openapi":"GET /tool-connections/{id}/actions","href":"/api-reference/tool-connections/actions"},{"title":"Make an app's actions ready","openapi":"POST /tool-connections/{id}/actions/prepare","href":"/api-reference/tool-connections/prepare-actions"},{"title":"List an account's choices for an input","openapi":"GET /tool-connections/{id}/options/{resource}","href":"/api-reference/tool-connections/options"},{"title":"Check that an account works","openapi":"POST /tool-connections/{id}/check","href":"/api-reference/tool-connections/check"},{"title":"The agents using an app","openapi":"GET /tool-connections/{id}/agents","href":"/api-reference/tool-connections/agents"},{"title":"Take an account off the list","openapi":"POST /tool-connections/{id}/remove","href":"/api-reference/tool-connections/remove"},{"title":"Clear the attempts nobody finished","openapi":"POST /tool-connections/cleanup","href":"/api-reference/tool-connections/cleanup"}]},{"group":"Tools","pages":[{"title":"List Tools","openapi":"GET /tools","href":"/api-reference/tools/list"},{"title":"Create Tool","openapi":"POST /tools","href":"/api-reference/tools/create"},{"title":"Discover Apps","openapi":"GET /tool-apps","href":"/api-reference/tools/apps"},{"title":"Get App Versions","openapi":"GET /tool-apps/{slug}","href":"/api-reference/tools/app"},{"title":"Discover Versioned Actions","openapi":"GET /tool-apps/{slug}/actions","href":"/api-reference/tools/actions"},{"title":"Get Full Action Schemas","openapi":"GET /tool-apps/{slug}/actions/{action}","href":"/api-reference/tools/action"},{"title":"Get Tool","openapi":"GET /tools/{id}","href":"/api-reference/tools/get"},{"title":"Get Current Tool Schemas","openapi":"GET /tools/{id}/schema","href":"/api-reference/tools/schema"},{"title":"List Tool Bindings","openapi":"GET /tools/{id}/bindings","href":"/api-reference/tools/bindings"},{"title":"List Tool Contract Revisions","openapi":"GET /tools/{id}/workflow-revisions","href":"/api-reference/tools/revisions"},{"title":"Add a Tool Contract Revision","openapi":"POST /tools/{id}/workflow-revisions","href":"/api-reference/tools/create-revision"},{"title":"Update Tool","openapi":"PATCH /tools/{id}","href":"/api-reference/tools/update"},{"title":"Archive Tool","openapi":"DELETE /tools/{id}","href":"/api-reference/tools/delete"},{"title":"Restore Tool","openapi":"POST /tools/{id}/restore","href":"/api-reference/tools/restore"},{"title":"Attach Tool to Agent","openapi":"POST /tools/attach","href":"/api-reference/tools/attach"},{"title":"Detach Tool from Agent","openapi":"POST /tools/detach","href":"/api-reference/tools/detach"},{"title":"Test Saved Tool","openapi":"POST /tools/{id}/test","href":"/api-reference/tools/test"},{"title":"Get Saved Tool Test","openapi":"GET /tools/{id}/tests/{test_id}","href":"/api-reference/tools/test-get"},{"title":"Cancel Tool Test","openapi":"POST /tools/{id}/tests/{test_id}/cancel","href":"/api-reference/tools/test-cancel"}]}]},{"group":"Phone Numbers","pages":[{"title":"List Owned Numbers","openapi":"GET /phone-numbers","href":"/api-reference/phone-numbers/list"},{"title":"Search Available Numbers","openapi":"POST /phone-numbers/search","href":"/api-reference/phone-numbers/search"},{"title":"Purchase Number","openapi":"POST /phone-numbers/purchase","href":"/api-reference/phone-numbers/purchase"},{"title":"Update Number","openapi":"PATCH /phone-numbers/{id}","href":"/api-reference/phone-numbers/update"},{"title":"Configure Number","openapi":"POST /phone-numbers/configure","href":"/api-reference/phone-numbers/configure"},{"title":"Release Number","openapi":"POST /phone-numbers/{id}/release","href":"/api-reference/phone-numbers/release"},{"title":"Keep Number","openapi":"POST /phone-numbers/{id}/keep","href":"/api-reference/phone-numbers/keep"}]},{"group":"SIP Endpoints","pages":[{"title":"SIP Endpoints Status","openapi":"GET /sip-endpoints/status","href":"/api-reference/sip-endpoints/status"},{"title":"List SIP Endpoints","openapi":"GET /sip-endpoints","description":"The workspace's SIP endpoints, newest first: username-and-password trunks,\nSIP address endpoints and extension endpoints. They let your own phone\nsystem send calls to a Yappr agent, with no Yappr phone number. A trunk's\npassword is never listed; it is returned only by create and by\n[rotate-password](/api-reference/sip-endpoints/rotate-password), and an\nextension's password is never returned at all. An extension endpoint\ncarries a `register` object with its settings and `register.status`;\nYappr re-reads the status from its carrier when it is more than 15 seconds\nold, but not for a list of more than 20 extension endpoints, so check\n`register.status_checked_at`. Requires `sip_endpoints:read`.\n\nA SIP address endpoint's `sip_uri` (and the `slug` inside it) is its only\ncredential, and a trunk's `sip_username` is half of its, so they go only\nto a key that also holds `sip_endpoints:manage`. A key with\n`sip_endpoints:read` alone (the Read-only preset) gets every endpoint with\n`slug`, `sip_uri` and `sip_username` set to `null`.\n\nPaging by `offset` is not a snapshot: an endpoint created while you page\nrepeats a row on the next page, and one deleted skips one. There is no\ncursor yet; page until you have `total`, drop repeats by `id`, and read\nonce more if `total` changed.\n","href":"/api-reference/sip-endpoints/list"},{"title":"Create SIP Endpoint","openapi":"POST /sip-endpoints","href":"/api-reference/sip-endpoints/create"},{"title":"Get SIP Endpoint","openapi":"GET /sip-endpoints/{id}","description":"One SIP endpoint. A trunk's password is never returned here; it is\nreturned only by create and by\n[rotate-password](/api-reference/sip-endpoints/rotate-password). Requires\n`sip_endpoints:read`. A SIP address endpoint's `slug` and `sip_uri`, and a\ntrunk's `sip_username`, are returned only to a key that also holds\n`sip_endpoints:manage`; with `sip_endpoints:read` alone (the Read-only\npreset) they are `null`. It takes no query parameters.\n","href":"/api-reference/sip-endpoints/get"},{"title":"Update SIP Endpoint","openapi":"PATCH /sip-endpoints/{id}","href":"/api-reference/sip-endpoints/update"},{"title":"Delete SIP Endpoint","openapi":"DELETE /sip-endpoints/{id}","href":"/api-reference/sip-endpoints/delete"},{"title":"Rotate SIP Endpoint Password","openapi":"POST /sip-endpoints/{id}/rotate-password","href":"/api-reference/sip-endpoints/rotate-password"}]},{"group":"Carrier accounts","pages":[{"title":"Carrier Accounts Status","openapi":"GET /carrier-accounts/status","href":"/api-reference/carrier-accounts/status"},{"title":"List Carrier Accounts","openapi":"GET /carrier-accounts","href":"/api-reference/carrier-accounts/list"},{"title":"Connect a Telnyx Account","openapi":"POST /carrier-accounts","href":"/api-reference/carrier-accounts/create"},{"title":"Get Carrier Account","openapi":"GET /carrier-accounts/{id}","href":"/api-reference/carrier-accounts/get"},{"title":"Update Carrier Account","openapi":"PATCH /carrier-accounts/{id}","href":"/api-reference/carrier-accounts/update"},{"title":"Disconnect Carrier Account","openapi":"DELETE /carrier-accounts/{id}","href":"/api-reference/carrier-accounts/delete"},{"title":"Choose the Call Control App","openapi":"POST /carrier-accounts/{id}/connection","href":"/api-reference/carrier-accounts/connection"},{"title":"Test Carrier Account","openapi":"POST /carrier-accounts/{id}/test","href":"/api-reference/carrier-accounts/test"},{"title":"Turn a Paused Account Back On","openapi":"POST /carrier-accounts/{id}/reactivate","href":"/api-reference/carrier-accounts/reactivate"},{"title":"Sync Numbers","openapi":"POST /carrier-accounts/{id}/sync","href":"/api-reference/carrier-accounts/sync"},{"title":"Add Number to Carrier Account","openapi":"POST /carrier-accounts/{id}/numbers","href":"/api-reference/carrier-accounts/add-number"},{"title":"Answer a Number's Calls in Yappr","openapi":"POST /carrier-accounts/{id}/numbers/{phone_number_id}/configure","href":"/api-reference/carrier-accounts/configure-number"},{"title":"Stop Answering a Number's Calls in Yappr","openapi":"DELETE /carrier-accounts/{id}/numbers/{phone_number_id}/configure","href":"/api-reference/carrier-accounts/restore-number"},{"title":"Remove Number from This Workspace","openapi":"DELETE /carrier-accounts/{id}/numbers/{phone_number_id}","href":"/api-reference/carrier-accounts/remove-number"}]},{"group":"Calls","pages":[{"title":"Create Outbound Call","openapi":"POST /calls","href":"/api-reference/calls/create"},{"title":"List Calls","openapi":"GET /calls","href":"/api-reference/calls/list"},{"title":"Export Calls","openapi":"GET /calls/export","href":"/api-reference/calls/export"},{"title":"Get Call","openapi":"GET /calls/{id}","href":"/api-reference/calls/get"},{"title":"End an Unopened Browser Session","openapi":"POST /calls/{id}/end","href":"/api-reference/calls/end"},{"title":"Get Call Recording","openapi":"GET /calls/{id}/recording","href":"/api-reference/calls/recording"},{"title":"Revoke Recording Links","openapi":"POST /calls/{id}/recording/revoke","href":"/api-reference/calls/recording-revoke"},{"title":"Create Web Call Request","openapi":"POST /call-requests","href":"/api-reference/calls/request-create"},{"title":"Get Call Request","openapi":"GET /call-requests/{id}","href":"/api-reference/calls/request-get"},{"title":"Start Web Call Request","openapi":"POST /call-requests/{id}/start","href":"/api-reference/calls/request-start"},{"title":"Cancel Call Request","openapi":"POST /call-requests/{id}/cancel","href":"/api-reference/calls/request-cancel"}]},{"group":"Browser calls","pages":[{"title":"TURN Credentials","openapi":"POST /turn-credentials","href":"/api-reference/web-call/turn-credentials"},{"title":"Connect a Browser Call","openapi":"POST /web-call","href":"/api-reference/web-call/offer"},{"title":"Cancel a Browser Session","openapi":"POST /web-call/cancel","href":"/api-reference/web-call/cancel"},{"title":"Create Browser Call Request","openapi":"POST /web-call/call-requests","href":"/api-reference/web-call/request-create"},{"title":"Poll Browser Call Request","openapi":"GET /web-call/call-requests/{id}","href":"/api-reference/web-call/request-get"},{"title":"Start Browser Call Request","openapi":"POST /web-call/call-requests/{id}/start","href":"/api-reference/web-call/request-start"},{"title":"Cancel Browser Call Request","openapi":"POST /web-call/call-requests/{id}/cancel","href":"/api-reference/web-call/request-cancel"}]},{"group":"Do Not Call","pages":[{"title":"List DNC entries","openapi":"GET /do-not-call","href":"/api-reference/do-not-call/list"},{"title":"Add to DNC list","openapi":"POST /do-not-call","href":"/api-reference/do-not-call/add"},{"title":"Get DNC entry","openapi":"GET /do-not-call/{id}","href":"/api-reference/do-not-call/get"},{"title":"Update DNC entry","openapi":"PATCH /do-not-call/{id}","href":"/api-reference/do-not-call/update"},{"title":"Remove from DNC list","openapi":"DELETE /do-not-call/{id}","href":"/api-reference/do-not-call/delete"}]},{"group":"API Keys","pages":[{"title":"List API keys","openapi":"GET /api-keys","href":"/api-reference/api-keys/list"},{"title":"Issue an API key","openapi":"POST /api-keys","href":"/api-reference/api-keys/create"},{"title":"Get an API key","openapi":"GET /api-keys/{id}","href":"/api-reference/api-keys/get"},{"title":"Revoke an API key","openapi":"DELETE /api-keys/{id}","href":"/api-reference/api-keys/delete"}]},{"group":"Call Windows","pages":[{"title":"Get call time windows","openapi":"GET /call-windows","href":"/api-reference/call-windows/get"},{"title":"Update call time windows","openapi":"PUT /call-windows","href":"/api-reference/call-windows/update"}]},{"group":"Dispositions","pages":[{"title":"List Dispositions","openapi":"GET /dispositions","href":"/api-reference/dispositions/list"},{"title":"Create Disposition","openapi":"POST /dispositions","href":"/api-reference/dispositions/create"},{"title":"Get Disposition","openapi":"GET /dispositions/{id}","href":"/api-reference/dispositions/get"},{"title":"Update Disposition","openapi":"PATCH /dispositions/{id}","href":"/api-reference/dispositions/update"},{"title":"Delete Disposition","openapi":"DELETE /dispositions/{id}","href":"/api-reference/dispositions/delete"}]},{"group":"Leads","pages":[{"title":"List Leads","openapi":"GET /leads","href":"/api-reference/leads/list"},{"title":"Create Lead","openapi":"POST /leads","href":"/api-reference/leads/create"},{"title":"Get Lead","openapi":"GET /leads/{id}","href":"/api-reference/leads/get"},{"title":"Update Lead","openapi":"PATCH /leads/{id}","href":"/api-reference/leads/update"},{"title":"Delete Lead","openapi":"DELETE /leads/{id}","href":"/api-reference/leads/delete"}]},{"group":"Lead Tags","pages":[{"title":"List Lead Tags","openapi":"GET /lead-tags","href":"/api-reference/lead-tags/list"},{"title":"Create Lead Tag","openapi":"POST /lead-tags","href":"/api-reference/lead-tags/create"},{"title":"Get Lead Tag","openapi":"GET /lead-tags/{id}","href":"/api-reference/lead-tags/get"},{"title":"Update Lead Tag","openapi":"PATCH /lead-tags/{id}","href":"/api-reference/lead-tags/update"},{"title":"Delete Lead Tag","openapi":"DELETE /lead-tags/{id}","href":"/api-reference/lead-tags/delete"}]},{"group":"Campaigns","pages":[{"title":"List campaigns","openapi":"GET /campaigns","href":"/api-reference/campaigns/list"},{"title":"Suggested campaign settings","openapi":"GET /campaigns/defaults","href":"/api-reference/campaigns/defaults"},{"title":"Create a campaign","openapi":"POST /campaigns","href":"/api-reference/campaigns/create"},{"title":"Get a campaign","openapi":"GET /campaigns/{id}","href":"/api-reference/campaigns/get"},{"title":"Update a campaign","openapi":"PATCH /campaigns/{id}","href":"/api-reference/campaigns/update"},{"title":"Archive a campaign","openapi":"DELETE /campaigns/{id}","href":"/api-reference/campaigns/archive"},{"title":"Restore a campaign","openapi":"POST /campaigns/{id}/restore","href":"/api-reference/campaigns/restore"},{"title":"Launch a campaign","openapi":"POST /campaigns/{id}/launch","href":"/api-reference/campaigns/launch"},{"title":"Pause a campaign","openapi":"POST /campaigns/{id}/pause","href":"/api-reference/campaigns/pause"},{"title":"Resume a campaign","openapi":"POST /campaigns/{id}/resume","href":"/api-reference/campaigns/resume"},{"title":"Stop a campaign","openapi":"POST /campaigns/{id}/stop","href":"/api-reference/campaigns/stop"},{"title":"Campaign stats","openapi":"GET /campaigns/{id}/stats","href":"/api-reference/campaigns/stats"},{"group":"Contacts","pages":[{"title":"Enroll contacts","openapi":"POST /campaigns/{id}/leads","href":"/api-reference/campaigns/enroll"},{"title":"List enrolled contacts","openapi":"GET /campaigns/{id}/leads","href":"/api-reference/campaigns/list-leads"},{"title":"Exclude a contact","openapi":"DELETE /campaigns/{id}/leads/{lead_id}","href":"/api-reference/campaigns/exclude"}]}]},{"group":"Shared Links","pages":[{"title":"List Shared Links","openapi":"GET /shared-links","href":"/api-reference/shared-links/list"},{"title":"Create Shared Link","openapi":"POST /shared-links","href":"/api-reference/shared-links/create"},{"title":"Get Shared Link","openapi":"GET /shared-links/{id}","href":"/api-reference/shared-links/get"},{"title":"Revoke Shared Link","openapi":"PATCH /shared-links/{id}","href":"/api-reference/shared-links/update"}]},{"group":"Affiliates","pages":[{"title":"Affiliate stats","openapi":"GET /affiliates/stats","href":"/api-reference/affiliates/stats"},{"title":"List sub-affiliates","openapi":"GET /affiliates/downline","href":"/api-reference/affiliates/downline"}]},{"group":"Agent Eval","pages":[{"group":"Personas","pages":[{"title":"List Personas","openapi":"GET /agent-eval/personas","href":"/api-reference/agent-eval/personas/list"},{"title":"Create Persona","openapi":"POST /agent-eval/personas","href":"/api-reference/agent-eval/personas/create"},{"title":"Get Persona","openapi":"GET /agent-eval/personas/{id}","href":"/api-reference/agent-eval/personas/get"},{"title":"Update Persona","openapi":"PATCH /agent-eval/personas/{id}","href":"/api-reference/agent-eval/personas/update"},{"title":"Delete Persona","openapi":"DELETE /agent-eval/personas/{id}","href":"/api-reference/agent-eval/personas/delete"}]},{"group":"Cases","pages":[{"title":"List Cases","openapi":"GET /agent-eval/cases","href":"/api-reference/agent-eval/cases/list"},{"title":"Create Case","openapi":"POST /agent-eval/cases","href":"/api-reference/agent-eval/cases/create"},{"title":"Get Case","openapi":"GET /agent-eval/cases/{id}","href":"/api-reference/agent-eval/cases/get"},{"title":"Update Case","openapi":"PATCH /agent-eval/cases/{id}","href":"/api-reference/agent-eval/cases/update"},{"title":"Delete Case","openapi":"DELETE /agent-eval/cases/{id}","href":"/api-reference/agent-eval/cases/delete"},{"title":"Run a Case","openapi":"POST /agent-eval/cases/{case_id}/run","href":"/api-reference/agent-eval/cases/run"}]},{"group":"Suites","pages":[{"title":"List Suites","openapi":"GET /agent-eval/suites","href":"/api-reference/agent-eval/suites/list"},{"title":"Create Suite","openapi":"POST /agent-eval/suites","href":"/api-reference/agent-eval/suites/create"},{"title":"Get Suite","openapi":"GET /agent-eval/suites/{id}","href":"/api-reference/agent-eval/suites/get"},{"title":"Update Suite","openapi":"PATCH /agent-eval/suites/{id}","href":"/api-reference/agent-eval/suites/update"},{"title":"Delete Suite","openapi":"DELETE /agent-eval/suites/{id}","href":"/api-reference/agent-eval/suites/delete"},{"title":"Run a Suite","openapi":"POST /agent-eval/suites/{id}/run","href":"/api-reference/agent-eval/suites/run"},{"title":"List Suite Executions","openapi":"GET /agent-eval/suites/{id}/runs","href":"/api-reference/agent-eval/suites/runs/list"},{"title":"Get Suite Execution","openapi":"GET /agent-eval/suites/{id}/runs/{suite_run_id}","href":"/api-reference/agent-eval/suites/runs/get"}]},{"group":"Runs","pages":[{"title":"List Runs","openapi":"GET /agent-eval/runs","href":"/api-reference/agent-eval/runs/list"},{"title":"Get Run","openapi":"GET /agent-eval/runs/{id}","href":"/api-reference/agent-eval/runs/get"},{"title":"Get Run Turns","openapi":"GET /agent-eval/runs/{id}/turns","href":"/api-reference/agent-eval/runs/turns"},{"title":"Get Run Evaluation","openapi":"GET /agent-eval/runs/{id}/evaluation","href":"/api-reference/agent-eval/runs/evaluation"},{"title":"Cancel a Run","openapi":"POST /agent-eval/runs/{id}/cancel","href":"/api-reference/agent-eval/runs/cancel"}]}]}]}]},"basePath":"","title":"Create SIP Endpoint - Yappr","deploymentId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","buildId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CWRF67qg.js","snippetPresets-BR8BoZAC.js","utils-D5WEoDBM.js","style-to-object-BY3JEAdk.js","utils-B79vXYXV.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-C59iNs-S.js","conditional-requirements-CFM0id0Q.js","cloneDeep-455jK_K_.js","_Uint8Array-BEecbuUl.js","isObject-FP1Yky1u.js","ApiExamples-CFRHL52q.js","usePlaygroundInputsStore-Caip2xMX.js","shallow-BS-qcxmX.js","isEqual-CEpbaqh9.js","CodeSnippets-B-R0FAqw.js","CodeSnippet-Bkkti1IB.js","use-playground-group-access-BLvLSz8w.js","Page-UFatEFaf.js","api-description-markdown-Cny85OC3.js","DynamicMarkdown-Czhs88Hc.js","SectionHeading-B08KBUKT.js","MethodPill-D8OvWg5y.js","getPastedJson-tB5m0_yh.js","Check2Icon-CeP__a4S.js","axios-CsQoIw0U.js","Markdown-LI7DSqeK.js","AssistantPageLink-bYxdsqKl.js","dist-DXTH2WLA.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}