Skip to Content
HomeLink Hub
Users & Profile

Unregister a device's push token

DELETE
/api/v1/user/push-tokens

Access: Bearer token required.

Removes the given Expo push token from the signed-in user so the device stops receiving their push notifications. Call it on sign-out, before discarding the access token, because POST /auth/signout does not remove push tokens. The token is sent in a JSON body on a DELETE request. Idempotent: it answers 200 even if the token was not registered.

Authorization

bearerAuth
headerAuthorizationBearer <JWT>

Access token returned by sign-in. Send it as Authorization: Bearer <token>.

Request Body

application/json
  1. body
token*string

The Expo push token to remove.

Response Body

Token removed, or was not registered

application/json
  1. response
status*integer
success*boolean
message*string
data*unknown
Example Request
curl -X DELETE 'http://localhost:4000/api/v1/user/push-tokens' \  -H 'Content-Type: application/json' \  -d '{  "token": "ExponentPushToken[xxxxxxxxxxxxxxxxxxxxxx]"}'
Example Response
{  "status": 200,  "success": true,  "message": "Push token removed.",  "data": null}