---
title: "Auth Token Rotate"
method: POST
path: "/api/v1.auth-token.rotate"
tags: ["Auth Tokens"]
---

# Auth Token Rotate

`POST /api/v1.auth-token.rotate`

Rotate Auth Token

## Request body

- AuthTokenRotateIn
  - `namespace` string, nullable
  - `id` string, required
  - `prefix` string
  - `suffix` string, nullable
  - `expiry_ms` integer, nullable — Milliseconds from now until the old token expires. `None` means expire immediately.

## Response `200`

- AuthTokenRotateOut
  - `id` string, required
  - `created` integer, required
  - `updated` integer, required
  - `token` string, required

## Other responses

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

---

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