Confirm it is you with a passkey for sensitive work
POST
/api/auth/step-up/passkey
const url = 'https://forge.example.com/api/auth/step-up/passkey';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"ceremony":"example","credential":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://forge.example.com/api/auth/step-up/passkey \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "ceremony": "example", "credential": "example" }'Answers a new access token that records it, as a code does.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
ceremony
required
string
credential
required
Example generated
{ "ceremony": "example", "credential": "example"}Responses
Section titled “Responses”OK
Media typeapplication/json
object
accessToken
required
string
expiresIn
required
integer | string format: int32
user
required
object
id
required
string format: uuid
email
required
string
displayName
required
string
roles
required
Array<string>
organization
required
secondStepNeeded
boolean
serviceAccount
boolean
Example
{ "user": { "secondStepNeeded": false }}default
Section titled “default”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"}