---
title: "Issue a short-lived token for live metrics (Enterprise)"
method: GET
path: "/api/token/metrics"
tags: ["Live Telemetry"]
---

# Issue a short-lived token for live metrics (Enterprise)

`GET /api/token/metrics`

Returns a plain-text bearer token, valid for 60 seconds, that authorises
connecting to `/api/live/metrics` as a query parameter. Requires the
`LiveMetrics` permission. Available only in the Enterprise edition.

## Response `200`

Short-lived metrics token

## Other responses

- `401` — Missing or invalid credentials
- `403` — Authenticated principal lacks the required permission
- `404` — Enterprise feature not available in this edition

---

[API](https://skmtc.net/stalwartlabs/apis/stalwart-management-api.md) · [All operations](https://skmtc.net/stalwartlabs/apis/stalwart-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/stalwartlabs/stalwart-management-api/versions/a38a1bbfe8b2/schema)
