Skip to main content

Create a SIPREC connector

POST 
/siprec_connectors

Creates a new SIPREC connector configuration.

Request

Body

required

The parameters required to create or update a SIPREC connector.

    host stringrequired

    Hostname/IPv4 address of the SIPREC SRS.

    port integerrequired

    Port for the SIPREC SRS.

    name stringrequired

    Name for the SIPREC connector resource.

    app_subdomain string

    Subdomain to route the call when using Telnyx SRS (optional for non-Telnyx SRS).

Responses

201: Return details of the SIPREC connector.

default: Unexpected error.

Request samples


curl -L 'https://api.telnyx.com/v2/siprec_connectors' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"host": "siprec.telnyx.com",
"port": 5060,
"name": "my-siprec-connector",
"app_subdomain": "my-app"
}'

Response samples


{
"data": {
"record_type": "siprec_connector",
"name": "siprec-connector",
"host": "siprec.telnyx.com",
"port": 5060,
"app_subdomain": "my-app-domain",
"created_at": "2024-01-23T18:10:02.574Z",
"updated_at": "2024-01-23T18:10:02.574Z"
}
}