---
title: "Rotate Passcode"
method: POST
path: "/api/sso/rotate_passcode"
tags: ["sso"]
---

# Rotate Passcode

`POST /api/sso/rotate_passcode`

Generate a new passcode for the current user.

This endpoint gets a new passcode from the central server and re-wraps
the user's private key with the new passcode. The user must be authenticated
with a valid token to use this endpoint.

## Response `200`

Successful Response

- RotatePasscodeResponse
  - `detail` string, required
  - `new_passcode` string, required

---

[API](https://skmtc.dev/arbicity/apis/arbi.md) · [All operations](https://skmtc.dev/arbicity/apis/arbi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/arbicity/arbi/revisions/8d3e894e6c0b/schema)
