Saltar a contenido

DELETE /api/v2/notifications/token/:deviceId

Elimina el token push asociado a un deviceId del usuario autenticado (típicamente en logout).

  • Base v2: /api/v2
  • Auth: protectToken

Request

URL

DELETE /api/v2/notifications/token/:deviceId

Ejemplo:

DELETE /api/v2/notifications/token/ABC-DEVICE-ID

Headers

Authorization: Bearer <token>

Response

200 OK

{
  "success": true,
  "message": "Device token removed successfully"
}

404 Not found

{
  "success": false,
  "message": "Device not found"
}