---
title: "Rotate End User Jwt Secret"
method: POST
path: "/api/v1/serving-identity/rotate-jwt-secret"
tags: ["authed"]
---

# Rotate End User Jwt Secret

`POST /api/v1/serving-identity/rotate-jwt-secret`

## Request

- Base URL: `https://api.teaflask.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.teaflask.com/api/v1/serving-identity/rotate-jwt-secret`
- Auth: none declared

Replace the end-user JWT secret. Tokens signed with the old secret
stop verifying immediately — ship the new secret to your backend
first.

## Response `200`

Successful Response

- ServingIdentitySettingsResponse
  - `end_user_jwt_secret` string, required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `405`: Method not allowed
- `422`: Validation error
- `500`: Internal server error

---

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