Skip to content

Confirm the authenticator app with a code

POST
/api/me/factors/totp/confirm
curl --request POST \
--url https://forge.example.com/api/me/factors/totp/confirm \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "code": "example" }'
Media typeapplication/json
object
code
required
string

Example generated

{
"code": "example"
}

OK

Media typeapplication/json
object
totp
required
boolean
totpSince
required
null | string format: date-time
passkeys
integer | string format: int32
0 /^-?(?:0|[1-9]\d*)$/
passkeysAllowed
boolean
default: true
secretProtection
One of:
null

Example

{
"passkeys": 0,
"passkeysAllowed": true,
"secretProtection": {
"revealable": false
}
}

A refusal or an error, as a problem document. A model or draft you may not see answers 404, as one that does not exist.

Media typeapplication/problem+json
object
type
string
title
string
status
integer
detail
string
instance
string

Example generated

{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}