v13

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-04237161688.6 KB
Users

Verify a TOTP or backup code for a user

Verify that the provided TOTP or backup code is valid for the user. Verifying a backup code will result it in being consumed (i.e. it will become invalid). Useful for custom auth flows and re-verification.

post/users/{user_id}/verify_totp

Path parameters

user_idstring required

The ID of the user for whom to verify the TOTP

Request body

codestring required

The TOTP or backup code to verify

Response

The provided TOTP or backup code was correct.

verifiedboolean
code_type'totp' | 'backup_code'