Skip to content

Start adding an authenticator app

POST
/api/platform/auth/enroll
curl --request POST \
--url https://forge.example.com/api/platform/auth/enroll \
--header 'Content-Type: application/json' \
--data '{ "challenge": "example" }'

Answers its secret and the address for its QR code.

Media typeapplication/json
object
challenge
required
string

Example generated

{
"challenge": "example"
}

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