---
title: "Auth Token Whoami"
method: POST
path: "/api/v1.admin.auth-token.whoami"
tags: ["Admin"]
---

# Auth Token Whoami

`POST /api/v1.admin.auth-token.whoami`

Return the role of the currently authenticated token

## Request body

- AdminAuthTokenWhoamiIn

## Response `200`

- AdminAuthTokenWhoamiOut
  - `role` string, required

## Other responses

- `400`
- `401`
- `403`
- `422`

## Changes

- **2026-03-31** `f62be26d2a53` — 6 breaking, 4 warning
  - the `detail` response's property type changed from `string` to `array` for status `422`
  - removed the required property `code` from the response with the `422` status
  - removed the required property `type` from the response with the `400` status
  - removed the required property `type` from the response with the `401` status
  - …6 more

[Change history](https://skmtc.dev/svix/apis/diom-api/changes/api/v1.admin.auth-token.whoami/post.md)

---

[API](https://skmtc.dev/svix/apis/diom-api.md) · [All operations](https://skmtc.dev/svix/apis/diom-api/llms.txt) · [OpenAPI document](https://skmtc.dev/svix/apis/diom-api/revisions/02d9d270bbf9?raw)
