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

number

yes

SIP number from which you want to remove 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

Required

yes

Description

SIP number from which you want to remove push token.

Default value

N/A

Required

yes

Description

Unique token which is needed to send push notifications to your application.

Default value

N/A

Required

yes

Description

Type of device. Can be “android” or “ios”.

Default value

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}:{token}

Response example

{
    "status_code": 204,
    "status_message": "NO CONTENT"
}