Rensei docs
API ReferenceNotifications

Revoke a push device token owned by the authenticated user.

Soft-revokes a device token by `id` or `token`. The revoke is bounded by the caller user id, so a foreign token is a silent no-op.

DELETE
/api/notifications/devices

Authorization

headerAuthorizationBearer <rsk_live_*>

Rensei API key presented as Authorization: Bearer rsk_live_. Required API-key scopes are recorded per operation in x-rensei-required-scopes.

Request Body

application/json
  1. body
id?string
Length1 <= length
token?string
Length1 <= length

Response Body

Revoke applied (revoked count; 0 when no owned row matched).

application/json
  1. response
revoked*number
Example Request
curl -X DELETE 'https://app.rensei.ai/api/notifications/devices' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "revoked": 0}