Get the account's SAML SSO connection, enriched with the live Stytch object so the UI can display the ACS URL / audience URI the customer needs at their IdP and the currently configured IdP values.
const url = 'https://api.siteqwality.com/account/sso/saml/connection';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://api.siteqwality.com/account/sso/saml/connection \ --header 'Authorization: Bearer <token>'If Stytch is unreachable or no longer knows the connection, the local row is returned on its own rather than failing the page.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”The account’s SSO connection
SAML connection as returned to the dashboard. Combines our row (account linkage, claimed domain) with the live Stytch object (SP-side values the customer pastes into the IdP, plus the configured IdP values).
object
pending until the IdP side is configured, then active.
Service-provider values for the IdP side of the setup.
Configured IdP values (echoed back so the UI can show current state).
Whether at least one verification certificate is on file.
Whether the account has a current DNS verification for email_domain.
The sign-in screen routes only a verified domain.
Example generated
{ "connection_id": "example", "display_name": "example", "status": "example", "email_domain": "example", "acs_url": "example", "audience_uri": "example", "idp_entity_id": "example", "idp_sso_url": "example", "has_certificate": true, "email_domain_verified": true, "created_at": "2026-04-15T12:00:00Z"}Missing or invalid authentication
Caller is not a super admin, or the plan does not include SSO
No SSO connection configured
Internal server error