---
title: "Get the authenticated principal"
method: GET
path: "/me"
tags: ["Identity"]
---

# Get the authenticated principal

`GET /me`

Returns the token id, display prefix, accounts, and scopes of the caller.

## Response `200`

The authenticated principal.

- object
  - `data` Me, required
    - `principal` 'api_token', required
    - `token_id` string, required — The API token id.
    - `token_prefix` string, required — Display prefix of the token.
    - `account_ids` string[], required — Accounts this token may access.
    - `scopes` string[], required — Scopes granted to the token.

## Other responses

- `400` — The request was malformed or failed validation.
- `401` — Authentication is missing or invalid.
- `403` — The token lacks a required scope.
- `429` — The rate limit has been exceeded.
- `500` — An unexpected error occurred.

---

[API](https://skmtc.dev/ekho/apis/ekho-api.md) · [All operations](https://skmtc.dev/ekho/apis/ekho-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ekho/ekho-api/revisions/2056332cf6b9/schema)
