AuthCurrent session user

Current session user

Requires a valid access JWT (not the MFA pending cookie alone). Includes mfa_enabled, has_password, and OIDC linkage fields when the user row is loaded.

curl -X GET "https://slugbase.app/api/auth/me" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (JWT or sb_ API token)"
{
  "id": "example_string",
  "email": "user@example.com",
  "name": "John Doe",
  "user_key": "example_string",
  "is_admin": true,
  "email_verified": true,
  "language": "example_string",
  "theme": "example_string",
  "ai_suggestions_enabled": true,
  "mfa_enabled": true,
  "has_password": true,
  "oidc_provider": "example_string",
  "oidc_sub": "example_string"
}
GET
/api/auth/me
GET
Bearer Token (JWT or sb_ API token)
Bearer Tokenstring
Required

Use Authorization: Bearer <token>. Personal API tokens from Profile use the sb_ prefix. You may also send the access JWT as Bearer (same value as the token cookie after login).

Use Authorization: Bearer <token>. Personal API tokens from Profile use the sb_ prefix. You may also send the access JWT as Bearer (same value as the token cookie after login).
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (JWT or sb_ API token). Use Authorization: Bearer \<token\>. Personal API tokens from Profile use the sb_ prefix. You may also send the access JWT as Bearer (same value as the token cookie after login).

Responses

idstring
emailstring
namestring
user_keystring
is_adminboolean
email_verifiedboolean
languagestring
themestring
ai_suggestions_enabledboolean
mfa_enabledboolean
has_passwordboolean

False when the account has no local password (e.g. OIDC-only).

oidc_providerstring
oidc_substring