Revoke native push-notification token
DELETE
/api/v1/account/push-token
const url = 'http://localhost:3001/api/v1/account/push-token';const options = { method: 'DELETE', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"device_id":"example","token":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url http://localhost:3001/api/v1/account/push-token \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "device_id": "example", "token": "example" }'Revoke a previously registered FCM/APNs device token. SA-2026-ARCH P3-M1.
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”Token to revoke
Media typeapplication/json
object
device_id
string
token
string
Examplegenerated
{ "device_id": "example", "token": "example"}Responses
Section titled “Responses”Revoked
Media typeapplication/json
object
key
additional properties
any
Examplegenerated
{}Unauthorized
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}Not Found
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}Internal Server Error
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}