Skip to main content
POST
Exchange the SSO code for a token

Body

application/json
code
string
required

The one-time sign-in code the control plane put in the fragment of the Console address.

Required string length: 20 - 128
verifier
string
required

The value whose SHA-256 went as binding.

Required string length: 20 - 128
recovery_code
string | null
Required string length: 10 - 32
space_id
string<uuid> | null
totp
string | null

When the tenant asks for the Niadra second factor.

Pattern: ^\d{6}$

Response

The token, as at the password login.

access_token
string
required
expires_in
integer
required

Seconds until the token expires.

space_id
string<uuid>
required
recovery_codes
string[] | null

Shown once: the ten recovery codes, when this login confirmed the authenticator. Null otherwise.

recovery_codes_left
integer | null

How many recovery codes remain, when this login used one. Null otherwise.

token_type
string
default:Bearer