Rawi

مرجع API · Auth & profile

Sign out of all other devices

post/auth/logout-others
احراز هویتتوکن مشتری (Bearer)
سطح دسترسیکاربر رایگان · کاربر حرفه‌ای

Customer token (Bearer) — free and paid users

محدودیت نرخ10/1min

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

پاسخ‌ها

200

فیلدنوع
signed_out*integer
json
{
  "signed_out": 2
}

401 — Missing/invalid token

فیلدنوع
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-*.

فیلدنوعتوضیح
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

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

امتحان در کنسول