Docs
Remove push token from sip number
https://api.apifonica.com/v2/numbers/{numberSID}/token
Overview
To remove a push token from SIP number you need to make a DELETE request to /numbers/{numberSID}/token.
The table below lists parameters specified while making this request.
Parameter | Required | Description | Default Value |
---|---|---|---|
number | yes | SIP number to which you want to attach push token. | N/A |
push_token | yes | Unique token which is needed to send push notifications to your application. | N/A |
device_type | yes | Type of device. Can be 'android' or 'ios'. | N/A |
Request example
The following cURL request demonstrates removing a push token.
curl –X DELETE https://api.apifonica.com/v2/numbers/{numberSID}/token \
-H 'Content-Type: application/json' \
-d '{
"number": "883149223355"
"push_token": "{pushToken}"
"device_type": "ios"
}' \
-u {number_sid}:{authToken}
Response example
{
"status_code": 204,
"status_message": "NO CONTENT"
}