Revoke every active session for an end-user.
Revoke every active session for an end-user.
POST
https://app.softsolz.uk/api/v1/services/customer-auth/users/{id}/logoutRecent Requests
Kept only in this browserTimeStatusTook
Send a request with Try it to see it here.
Path Params
idstringrequiredHeaders
AuthorizationstringrequiredBearer token: `Bearer sk_live_...` (or `sk_test_...` for sandbox). A login token will not work here.
Response
Response Body
sessions_revokedintegerNumber of sessions revoked.Request
curl --request POST \ --url https://app.softsolz.uk/api/v1/services/customer-auth/users/{id}/logout \ --header 'Authorization: Bearer sk_live_your_key'Credentials
Sent as a Bearer token and used in the samples above and in Try it. Kept only in this browser tab until you close it. Use an sk_test_ key to stay in your sandbox.
Response · 200
{ "data": { "sessions_revoked": 2 }}