Users & Profile
Unregister a device's push token
DELETE
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.
bearerAuthheader
AuthorizationBearer <JWT>Access token returned by sign-in. Send it as Authorization: Bearer <token>.
application/json- body
token*stringThe Expo push token to remove.
Token removed, or was not registered
application/json- response
status*integersuccess*booleanmessage*stringdata*unknowncurl -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}
HomeLink Hub