Create a SIP connection
Creates a connection to your own carrier or phone system. Numbers that you add to it take inbound calls. With outbound (your carrier's termination URI, a SIP user name and password, and the transport), its numbers also place calls through your carrier. Resia stores the password encrypted and never returns it. A duplicate name returns 409. See Connect your own number.
Headers
- Type: stringnullableX
- Resia - Organization - Id For Resia staff only. Omit it: your key acts on your own organization.
Body·
required
application/json
Create a SIP connection: a link to your own carrier or phone system. Numbers that you add to it take inbound calls; with outbound details they also place calls.
- Type: stringnamemin length:1max length:80required
Your name for the connection, unique in your organization.
- Type: nullableoutboundProperties: 4
The carrier trunk for outbound calls. Omit it for inbound-only numbers.
Responses
- application/json
- application/json
Request Example for post/v1/sip-connections
curl https://api.resia.ai/v1/sip-connections \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"name": "Twilio main",
"outbound": {
"termination_uri": "acme.pstn.twilio.com",
"username": "resia-agent",
"password": "",
"transport": "tls"
}
}'
{
"sip_connection_id": "01K1SA3F7M8QW2V5C9H4YTB0KD",
"name": "Twilio main",
"outbound": {
"termination_uri": "acme.pstn.twilio.com",
"username": "resia-agent",
"transport": "udp"
},
"created_at": "2026-11-20T21:45:16.462Z"
}
