Auth

Return current authenticated user and merchant context.

get/auth/me

Request

  • Base URL
    http://localhost:8080
  • URL
    http://localhost:8080/auth/me
  • Auth
    • HTTP bearer
    • or API key in header x-api-key

Response

Current user

user_idstring
emailstring
merchant_idstring
rolestring
email_verifiedboolean
is_super_adminboolean

This user's email is on the platform super-admin roster (may enter any merchant by ID).

is_super_admin_viewboolean

The current session is a super-admin viewing another merchant's dashboard.

Example response

{
  "user_id": "user_123",
  "email": "operator@example.com",
  "merchant_id": "merchant_demo",
  "role": "admin",
  "email_verified": true
}

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • warning

      removed the optional property from the response with the status

    • info

      added the optional property to the response with the status