コンテンツにスキップ

Reset an end user's TOTP credentials.

POST
/api/admin/users/{id}/totp/reset
Code sample: Shell / cURL
curl --request POST \
--url https://auth.example.com/api/admin/users/example/totp/reset \
--header 'Authorization: Bearer <token>'

Deletes all TOTP credentials and backup codes for the target end user and records an admin audit event.

id
required
string
X-Tenant-Id
string

Tenant selector for multi-tenant admin requests.

Admin end-user TOTP reset response.

Media type application/json
object
ok
required
boolean
deleted
required
integer
key
additional properties
Example generated
{
"ok": true,
"deleted": 1
}

Error response.

Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{
"error": "example",
"message": "example",
"error_description": "example"
}