Skip to content

Get the organization's ways in

GET
/api/settings/sign-in-methods
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.

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
0 /^-?(?:0|[1-9]\d*)$/
apiKeys
boolean
apiKeyMaximumDays
integer | string format: int32
default: 366 /^-?(?:0|[1-9]\d*)$/
version
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/

Example

{
"requireSecondStep": false,
"withoutSecondStep": 0,
"apiKeys": false,
"apiKeyMaximumDays": 366
}

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