---
search:
  tags:
    - Auth
    - GET
seo:
  description: >-
    Returns the caller's identity and authorized tenant scope as derived from
    the verified bearer… Reference for the GET /auth/me endpoint in the Sarvex
    V1 API.
sidebar:
  label: Resolve the current principal from the verified JWT
  badge: GET
title: Resolve the current principal from the verified JWT
type: openapi-operation
---
Returns the caller's identity and authorized tenant scope as derived from the verified
bearer token's claims. Purely a read of the validated token + the merchant/store mapping;
it does not establish or mutate a session. A request with a missing/invalid/expired token
gets 401.

`GET /auth/me`

**Responses**

- `200` — Current principal and authorized scope.
- `401` — Missing or invalid credentials.

Response example, 200:

```json
{
  "user_id": "string",
  "email": "user@example.com",
  "role": "owner",
  "merchant_id": "string",
  "store_ids": [
    "string"
  ]
}
```

Response example, 401:

```json
{
  "error": {
    "code": "unauthorized",
    "message": "Authentication required.",
    "details": null
  }
}
```
