Verify the current user's TOTP
POST
/api/auth/v1/totp/confirm
const url = 'https://example.com/api/auth/v1/totp/confirm';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"totp":"example","totp_url":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/auth/v1/totp/confirm \ --header 'Content-Type: application/json' \ --data '{ "totp": "example", "totp_url": "example" }'Request Body required
Section titled “Request Body required ” Media type application/json
object
totp
required
string
totp_url
required
string
Example generated
{ "totp": "example", "totp_url": "example"}Responses
Section titled “ Responses ”TOTP verified