POST
/
dialer
/
create
cURL
curl --request POST \
  --url https://api.precallai.com/api/v1/dialer/create \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "dialer_type": "Twilio",
  "name": "<string>",
  "phone_number": "<string>",
  "sid": "<string>",
  "auth_token": "<string>",
  "sip_termination_uri": "<string>",
  "sip_trunk_user_name": "<string>",
  "sip_trunk_password": "<string>"
}'
{
  "dialer_type": "Twilio",
  "name": "<string>",
  "phone_number": "<string>",
  "sid": "<string>",
  "auth_token": "<string>",
  "sip_termination_uri": "<string>",
  "sip_trunk_user_name": "<string>",
  "sip_trunk_password": "<string>"
}

Authorizations

x-api-key
string
header
required

Body

application/json

Dialer to add

dialer_type
enum<string>
required

Dialer type

Available options:
Twilio,
Telnyx,
sip
name
string
required

The name of the dialer

phone_number
string
required

Phone number

sid
string
required

The sid

auth_token
string
required

Auth token and also for Telnyx id not require.

sip_termination_uri
string
required

SIP termination uri for only sip

sip_trunk_user_name
string

SIP trunk user name for only sip

sip_trunk_password
string

SIP trunk password for only sip

Response

Dialer response

dialer_type
enum<string>
required

Dialer type

Available options:
Twilio,
Telnyx,
sip
name
string
required

The name of the dialer

phone_number
string
required

Phone number

sid
string
required

The sid

auth_token
string
required

Auth token and also for Telnyx id not require.

sip_termination_uri
string
required

SIP termination uri for only sip

sip_trunk_user_name
string

SIP trunk user name for only sip

sip_trunk_password
string

SIP trunk password for only sip