---
title: "Regenerate an API token"
method: PUT
path: "/tokens/{token_id}"
tags: ["API Tokens"]
---

# Regenerate an API token

`PUT /tokens/{token_id}`

Regenerate a token

## Path parameters

- `token_id` string, required

## Response `201`

Successful Response

- APITokenPrivate
  - `token_id` string, required — The unique ID of this API token
  - `name` string, required — The user friendly name of the API token
  - `claims` object — Key value pairs of auth claims the API token is entitled to
  - `token` string, required — The decoded API token

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/pollination/apis/pollination-server.md) · [All operations](https://skmtc.net/pollination/apis/pollination-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pollination/pollination-server/revisions/c1f3c6d96b31/schema)
