Get the organization's ways in
GET
/api/settings/sign-in-methods
const url = 'https://forge.example.com/api/settings/sign-in-methods';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://forge.example.com/api/settings/sign-in-methods \ --header 'Authorization: Bearer <token>'Which of the password, Microsoft, Google, Apple and passkeys the organization allows, and which the instance offers; whether its service accounts’ API keys work (apiKeys, off until turned on), and the longest life a key may have (apiKeyMaximumDays, 1 to 366). For administrators.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
Media typeapplication/json
object
password
required
boolean
microsoft
required
boolean
google
required
boolean
apple
required
boolean
passkey
required
boolean
offered
required
Array<string>
requireSecondStep
boolean
withoutSecondStep
integer | string format: int32
apiKeys
boolean
apiKeyMaximumDays
integer | string format: int32
version
integer | string format: int32
Example
{ "requireSecondStep": false, "withoutSecondStep": 0, "apiKeys": false, "apiKeyMaximumDays": 366}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"}