Skip to content
Sign in Create account

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_code string required
    One of: "idp_outage", "security_incident", "emergency_access_required", "regulatory_order"
  • scope string required
    One of: "user", "all"
  • target_user integer or null
    Range: at least 1

Generated sample

{
  "reason_code": "idp_outage",
  "scope": "user",
  "target_user": 1
}

Responses

200 Challenge issued

application/json object

  • confirmation_token string required
    Length: 32 to 32 characters
  • expires_in_seconds integer required
    Value: 300
  • message string required
  • next_step string required
    Value: "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

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

403 The caller lacks the break-glass.trigger permission.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

422 scope, reason_code or target_user failed validation.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

429 Request rate limit exceeded.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

text/html string