Skip to content
Select themeSelect language

POST /api/me/2fa/confirm — confirm enrolment with a live code, arm 2FA, and return the one-time recovery codes (shown to the user exactly once).

POST
/api/me/2fa/confirm
curl --request POST \
--url https://example.com/api/me/2fa/confirm \
--header 'Content-Type: application/json' \
--data '{ "code": "example" }'
Media typeapplication/json
object
code
required
string
Examplegenerated
{
"code": "example"
}
Media typeapplication/json

POST /me/2fa/confirm response — the one-time recovery codes (shown once).

object
recovery_codes
required
Array<string>
Examplegenerated
{
"recovery_codes": [
"example"
]
}