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

  • 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.

  • Your name for the connection, unique in your organization.

  • The carrier trunk for outbound calls. Omit it for inbound-only numbers.

    Properties: 4

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"
}