Authentication

Get current user information

Get the current authenticated user's email and role. If access token is expired but refresh token is valid, automatically refreshes tokens and sets new cookies.

get/auth/me

Request

  • The document declares no server URL.
  • Auth: none declared

Response

User information retrieved successfully. If tokens were refreshed, new cookies are set.

idstring required

User id

orgIdstring required

Organization id

emailstring required

User email address

role'admin' | 'manager' | 'user' required

User role

systemRole'customer' | 'super_admin' required

User system role

namestring required

User name

Example response

{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "orgId": "123e4567-e89b-12d3-a456-426614174000",
  "email": "user@example.com",
  "role": "user",
  "systemRole": "super_admin",
  "name": "John Doe"
}

Changes

No recorded changes to this operation across all 51 revisions of this API.