---
title: "Refresh one of your API tokens by id (from the cabinet token list)"
method: POST
path: "/auth/tokens/{id}/refresh"
---

# Refresh one of your API tokens by id (from the cabinet token list)

`POST /auth/tokens/{id}/refresh`

## Request

- Base URL: `https://api.eqvps.com/api/v1/eqvps`
- URL: `https://api.eqvps.com/api/v1/eqvps/auth/tokens/{id}/refresh`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Request body

- object
  - `expires_in_days` integer

## Response `200`

New token (the previous one is revoked immediately)

- object
  - `token` string
  - `token_type` string
  - `token_expires_at` string, date-time
  - `token_length` integer: Length of the token in characters — use it to check that the token was saved in full.
  - `id` string
  - `message` string

## Other responses

- `404`: Token not found (not yours, revoked or expired)

---

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