Read a test sign-in
/portal/v1/accounts/{accountSlug}/sso/connections/{id}/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
AuthorizationJWT access token. Never send alongside X-API-Key: a request carrying both is refused.
sso.viewSecurityView SSO connections, domains, and directory sync. Granted through an administrator role in the Admin Workspace; a valid token without it is refused with 403.
Path Parameters
accountSlugstring Required The Account's slug. An unknown one answers 404.
idstring Required testIdstring Required Responses
application/json
data *SsoTestSignInResponseDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
Errors
When the request can't be completed, the response body includes a stable error code you can branch on, and a correlation_id (also sent as the X-Correlation-Id header). Quote the correlation id when you contact support: it identifies the exact request in Canopy's logs.
account.capability_requiredForbiddenThe signed-in user's administrator roles do not grant the capability this endpoint requires.
Ask an account administrator to grant a role carrying the capability named in the Authentication section, then retry.
Returned object
curl -X GET "https://auth.canopy-io.com/portal/v1/accounts/value/sso/connections/value/test/value" \ -H "Authorization: Bearer $CANOPY_TOKEN"
{ "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", "missing_fields": [ "string" ], "received_attributes": [ "string" ], "name_id_format": "string", "hint": "set_name_id_email", "completed_at": "2026-04-20T12:00:00.000Z" } }
Tell us how we can improve this guide.