Sign in to the console with a username and password
POST
/api/platform/auth/sign-in
const url = 'https://forge.example.com/api/platform/auth/sign-in';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"username":"example","password":"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/platform/auth/sign-in \ --header 'Content-Type: application/json' \ --data '{ "username": "example", "password": "example" }'Answers the next step, with a challenge good for ten minutes and that step alone: choose your own password, add an authenticator app, or type its code.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
username
required
string
password
required
string
Example generated
{ "username": "example", "password": "example"}Responses
Section titled “Responses”OK
Media typeapplication/json
object
step
required
string
challenge
required
string
expiresIn
required
integer | string format: int32
Example generated
{ "step": "example", "challenge": "example", "expiresIn": 1}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"}