Read the organization's test sign-in
/api/v1/organizations/{id}/sso-connection/test/{testId}Reads a test sign-in by id. status is pending until the identity-provider round-trip returns, then completed with outcome (success or failed), the refusal reason when failed, the mapped email, first_name, last_name and federated_subject_id, the asserted amr, and domain_outcome: accepted, no_boundary (bound to no organization), not_listed, or not_verified. Responds 404 once the test has expired.
Authentication
Bearer Token
Authorization Option A JWT access token. Never send alongside X-API-Key: a request carrying both is refused.
API Key
X-API-Key Option B API key for management-tier access. Never send alongside an Authorization header: a request carrying both is refused.
Path Parameters
idstring Required testIdstring Required Responses
application/json
data *SsoTestSignInResponseDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
Returned object
curl -X GET "https://auth.canopy-io.com/api/v1/organizations/value/sso-connection/test/value" \ -H "X-API-Key: $CANOPY_API_KEY"
{ "data": { "id": "string", "connection_id": "string", "environment_id": "string", "type": "saml", "status": "pending", "start_url": "string", "started_at": "2026-04-20T12:00:00.000Z", "expires_at": "2026-04-20T12:00:00.000Z", "outcome": "success", "reason": "string", "email": "string", "first_name": "string", "last_name": "string", "federated_subject_id": "string", "amr": [ "string" ], "domain_outcome": "accepted", "completed_at": "2026-04-20T12:00:00.000Z" } }
Tell us how we can improve this guide.