SIP Endpoints (Legacy)
Create SIP endpoint
Creates a new SIP endpoint.
<Warning>This endpoint is deprecated. Use SIP Credentials instead.</Warning>
Permissions
The API token used to authenticate must have the following scope(s) enabled to make a successful request: Voice.
Learn more about API scopes.
post/api/relay/rest/endpoints/sip
Request body
Example request
{
"username": "c3p0",
"password": "yavinOrBust",
"caller_id": "C-3P0",
"send_as": "random",
"encryption": "required",
"call_handler": "ai_agent",
"call_request_method": "POST",
"call_fallback_method": "POST",
"call_status_callback_method": "POST",
"call_relay_topic": "office",
"call_relay_topic_status_callback_url": "https://myapplication/handle_relay_callbacks",
"call_relay_context": "office",
"call_relay_context_status_callback_url": "https://myapplication/handle_relay_callbacks",
"call_relay_application": "my-relay-app",
"call_relay_script_url": "https://dev.signalwire.com/relay-bins/f9d13f68-f71e-4042-95bb-b07b9e2f2f92"
}Response
The request has succeeded.
Example response
{
"type": "sip_endpoint",
"username": "c3p0",
"caller_id": "C-3P0",
"send_as": "random",
"encryption": "required",
"call_request_method": "POST",
"call_fallback_method": "POST",
"call_status_callback_method": "POST",
"call_relay_topic": "office",
"call_relay_topic_status_callback_url": "https://myapplication/handle_relay_callbacks",
"call_relay_context_status_callback_url": "https://myapplication/handle_relay_callbacks",
"call_relay_script_url": "https://dev.signalwire.com/relay-bins/f9d13f68-f71e-4042-95bb-b07b9e2f2f92"
}