Skip to content

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" }'

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).

Media typeapplication/json
object
code
required
string

Example generated

{
"code": "example"
}

OK

Media typeapplication/json

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

object
recovery_codes
required
Array<string>

Example generated

{
"recovery_codes": [
"example"
]
}