SwiftGoma.SwiftGoma

Search endpoints

Jump to any API endpoint by name, method, or path

Admin

Force logout

POST/api/v1/users/:id/force-logout

Revokes one session, or every session, on a user's account. Staff-only.

Requires Authorization
ADMIN, SUPPORT only
Authenticated action

Path parameters

idstringrequired
User ID.

Body parameters

sessionIdstring
Revoke only this session. Omit to revoke all of the user's sessions.
reasonstring
Optional internal note.
Request
curl --request POST \
  --url https://api.swiftgoma.com/api/v1/users/:id/force-logout \
  --header 'Authorization: Bearer <access_token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "sessionId": "<sessionId>",
  "reason": "<reason>"
}'
200Example response
{
  "success": true,
  "data": {
    "revokedCount": 1
  }
}