TOTP
Confirm TOTP enrollment
Completes enrollment by validating a code from the authenticator paired at /v1/totp/enroll. Once confirmed, the authenticator can satisfy step-up actions via /v1/challenges/verify with factor "totp". Returns a fresh set of single-use recovery codes, which REPLACES any previous set and is shown here exactly once — only hashes are stored, so the client must display them to the user immediately. Each code can satisfy login's second factor once, via /v1/auth with factor "recovery_code"; using one removes the authenticator. Too many wrong codes returns 429 with Retry-After; that throttle is scoped to enrollment and does not affect login.
post/v1/totp/enroll/confirm
Request
- Base URLhttps://identity-api.paymongo.com
- URLhttps://identity-api.paymongo.com/v1/totp/enroll/confirm
- AuthHTTP bearer
Request body
Example request
{
"data": {
"attributes": {
"code": "123456"
}
}
}Response
OK
Example response
{
"data": {
"attributes": {
"recovery_codes": [
"ABCD-EFGH-JKMN",
"PQRS-TUVW-XYZ2"
]
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.