Submit the second-factor code
One step with Clerk. We can help you get access.
Get something done
Submit the second-factor code
with Clerk · Identity & Access Management
Works with AI assistants
Use Clerk: its Clerk Frontend Sign Ins API lets you submit the second-factor code in a single step (POST /v1/client/sign_ins/{sign_in_id}/attempt_second_factor). Clerk also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.
- How do I finish two-factor sign-in with the user's TOTP or SMS code?
- Which strategy do I pass along with the code to clear the second factor?
Say it to your AI assistant
- Complete MFA on sign-in {sign_in_id} with code {code}.
- Attempt second factor {strategy} for sign-in {sign_in_id} using {code}.
For your developer
POST /v1/client/sign_ins/{sign_in_id}/attempt_second_factor in Clerk Frontend Sign Ins API. Full spec on APIs.io.