Rawi

API reference · Auth & profile

Sign out of all other devices

post/auth/logout-others
AuthenticationCustomer token (Bearer)
AccessFree user · Pro user

Customer token (Bearer) — free and paid users

Rate limit10/1min

Revokes every token of the account except the one making the request. Throttle 10/min.

Responses

200

FieldType
signed_out*integer
json
{
  "signed_out": 2
}

401 — Missing/invalid token

FieldType
message*string
codestring
json
{
  "message": "Please sign in to continue; your session has ended or is not valid.",
  "code": "unauthenticated"
}

429 — Rate limit or login-code resend cooldown. Headers: Retry-After, X-RateLimit-*.

FieldTypeDescription
message*string
resend_inintegerSeconds until a new login code may be requested (login-code cooldown only).
json
{
  "message": "Too Many Attempts.",
  "resend_in": 0
}

curl example

bash
curl -X POST 'http://127.0.0.1:8010/api/auth/logout-others' \
  -H 'Accept: application/json' \
  -H "Authorization: Bearer $RAWI_USER_TOKEN"

Try it in the console