curl --request POST \
--url https://api.cleartalk.ai/sip/detach2 \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"phone_number": "+14155552671",
"directions": [
{
"type": "inbound"
}
]
}
'Unlinks a SIP number from its current configuration in the database and notifies the external provider (cleartalk AI).
curl --request POST \
--url https://api.cleartalk.ai/sip/detach2 \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"phone_number": "+14155552671",
"directions": [
{
"type": "inbound"
}
]
}
'API Key for authentication
The number has been successfully detached.