Skip to content

Start setting up an authenticator app

POST
/api/me/factors/totp
curl --request POST \
--url https://forge.example.com/api/me/factors/totp \
--header 'Authorization: Bearer <token>'

Answers the secret, shown once, and the otpauth: address for its QR code. Nothing changes until a code is confirmed.

OK

Media typeapplication/json
object
secret
required
string
uri
required
string

Example generated

{
"secret": "example",
"uri": "example"
}

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