Authorization: Bearer <token> header. If your token has expired or is otherwise invalid, you will receive a 401 SessionInvalidError — log in again to get a new one.
GET /auth/me
Returns the authenticated user’s profile and all linked provider identities.Response — 200 OK
object
required
object[]
required
All authentication provider identities linked to this account.
Errors
Response
PUT /auth/me
Updates your profile. Currently supports updating your display name. Passnull to clear it.
Request body
string | null
required
Your new display name. Pass
null to remove it.Response — 200 OK
Same shape asGET /auth/me.
Errors
POST /auth/refresh
Issues a new session token with an extended expiration time. Call this before your current token expires to maintain an uninterrupted session.Response — 200 OK
string
required
The new session token. Replace your stored token with this value.
string
required
ISO 8601 timestamp when the new token expires.
Errors
Response
POST /auth/logout
Invalidates the current session token immediately. After a successful logout, the token can no longer be used for any authenticated request.Response — 200 OK
boolean
required
true when the session was invalidated successfully.Errors
Response
POST /auth/change-password
Changes the password for a local account. You must provide your current password for verification. This endpoint is only available to users who have a local identity linked — OAuth-only accounts cannot use it. On success, the response is204 No Content.
Request body
string
required
Your existing password, used to verify your identity before the change is applied.
string
required
The new password. Must be at least 8 characters.