auth

Logout

Logout. Delete current device session or all sessions.

Best-effort cleanup of legacy migration-source rows in user_sessions. New logins no longer write session rows, so for new users this is a no-op. JWT revocation is handled by token_version, not by session deletion.

post/api/v1/auth/logout

Request

  • Base URL: https://api.chaldea.center (the document declares no server; this is the origin it was published from)
  • URL: https://api.chaldea.center/api/v1/auth/logout
  • Auth: OAuth 2 (password, token URL /api/v1/auth/token)

Query parameters

all_devicesboolean

Headers

x-chaldea-uuidstring nullable
x-chaldea-verstring nullable
x-chaldea-buildstring nullable
x-chaldea-langstring nullable
x-chaldea-platformstring nullable
x-chaldea-clientstring nullable

Response

Successful Response

messagestring required
message_zhstring required

Changes

No recorded changes to this operation across all 1 revision of this API.