---
title: "The token this request presented: its account, name, role and expiry (the CLI's auth status)."
method: GET
path: "/tokens/current"
tags: ["API tokens"]
---

# The token this request presented: its account, name, role and expiry (the CLI's auth status).

`GET /tokens/current`

## Request

- Base URL: `https://www.livediagram.app/api`
- URL: `https://www.livediagram.app/api/tokens/current`
- Auth: HTTP bearer

## Response `200`

Success.

- CurrentTokenResponse
  - `accountId` string, required
  - `accountName` string, nullable, required
  - `expiresAt` number, nullable, required
  - `role` 'full' | 'read-only', required
  - `tokenId` string, required
  - `tokenName` string, nullable, required

## Other responses

- `401`: Error.
- `403`: Error.
- `404`: Error.
- `429`: Rate limited. Back off and retry.

---

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