Initiate tenant break-glass (step 1 of 3)
POST /api/v1/break-glass/initiate
Tenant-facing step 1 of the SSO break-glass flow. Requires Sanctum authentication and the break-glass.trigger RBAC permission; the route is limited to five requests per minute. scope must be user or all, reason_code must be an accepted code, and target_user is optional. A successful response returns a confirmation_token that expires after five minutes.
Authenticate with a portal session token.
Request body
application/json object
reason_codestring requiredOne of:"idp_outage","security_incident","emergency_access_required","regulatory_order"scopestring requiredOne of:"user","all"target_userinteger or nullRange: at least 1
Generated sample
{
"reason_code": "idp_outage",
"scope": "user",
"target_user": 1
}Responses
200 Challenge issued
application/json object
confirmation_tokenstring requiredLength: 32 to 32 charactersexpires_in_secondsinteger requiredValue:300messagestring requirednext_stepstring requiredValue:"POST /api/v1/break-glass/confirm"
Generated sample
{
"confirmation_token": "string",
"expires_in_seconds": 300,
"message": "string",
"next_step": "POST /api/v1/break-glass/confirm"
}401 Sanctum authentication is required.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
403 The caller lacks the break-glass.trigger permission.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
422 scope, reason_code or target_user failed validation.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
429 Request rate limit exceeded.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
text/html string