Skip to content

Confirm a code again for sensitive work

POST
/api/auth/step-up
curl --request POST \
--url https://forge.example.com/api/auth/step-up \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "code": "example" }'

Takes a code from the authenticator app and answers a new access token that records it. The platform routes ask for one from the last 10 minutes.

Media typeapplication/json
object
code
required
string

Example generated

{
"code": "example"
}

OK

Media typeapplication/json
object
accessToken
required
string
expiresIn
required
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
user
required
object
id
required
string format: uuid
email
required
string
displayName
required
string
roles
required
Array<string>
organization
required
object
id
required
string format: uuid
name
required
string
slug
required
string
trial
One of:
null
secondStepNeeded
boolean
serviceAccount
boolean
demo
One of:
null

Example

{
"user": {
"secondStepNeeded": 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"
}