MFACancel MFA enrollment

Cancel MFA enrollment

Clears a pending (not yet confirmed) TOTP secret. Idempotent 200 if there is nothing to clear. 409 if MFA is already fully enabled.

curl -X POST "https://slugbase.app/api/auth/mfa/enroll/cancel" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (JWT or sb_ API token)"
{
  "ok": true
}
POST
/api/auth/mfa/enroll/cancel
POST
Bearer Token (JWT or sb_ API token)
Bearer Tokenstring
Required

Use Authorization: Bearer <token>. Personal API tokens from Profile use the sb_ prefix. You may also send the access JWT as Bearer (same value as the token cookie after login).

Use Authorization: Bearer <token>. Personal API tokens from Profile use the sb_ prefix. You may also send the access JWT as Bearer (same value as the token cookie after login).
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (JWT or sb_ API token). Use Authorization: Bearer \<token\>. Personal API tokens from Profile use the sb_ prefix. You may also send the access JWT as Bearer (same value as the token cookie after login).

Responses

okboolean