unPLUGDevelopers

Member tokens API

Revoke member tokens

POST/v1/members/{id}/revoke_tokens

Ends every member token issued for this member, at once. Use it for "sign out everywhere", after a password reset, or when you suspect a device was lost. For a normal sign-out on one device the app forgets its token; you don't need this call.

Permissions: Secret key with members:write.

Request headers#

  • Idempotency-Keystring
    Any string up to 255 characters; use a UUID v4. Kept 24 hours per key (or member) and endpoint. Same key and body replays the first response with Idempotent-Replayed: true.
    Max Length 255

Path parameters#

  • idstring (uuid)Required
    The member id.

Returns 204 with no body. Calls with a revoked token return 401 token_expired, the same as an expired one, so the app needs no extra handling. Your server must also stop issuing new tokens to sessions you signed out, or the app will get a fresh one on its next request.

Response fields#

Returns 204 with no body.

Error descriptions#

404Not found
member_not_found

No member with this id.

Any endpoint can also return the common errors.