curl --request POST \
--url https://api.cleartalk.ai/sip/attach \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"phone_number": "+14444444477",
"direction": "both",
"sip_region": "US1 (Oregon)"
}
'Attach SIP configuration to a given phone number. You can attach inbound, outbound, or both directions. Outbound will automatically include SIP endpoint configuration.
curl --request POST \
--url https://api.cleartalk.ai/sip/attach \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"phone_number": "+14444444477",
"direction": "both",
"sip_region": "US1 (Oregon)"
}
'API Key for authentication
Phone number in E.164 format (must include country code)
"+14444444477"
SIP direction to attach
inbound, outbound, both "both"
Region for SIP endpoint
US1 (Oregon), EU1 (Ireland), ASIA1 (Sydney) "US1 (Oregon)"
SIP endpoint attached successfully.