Start a test sign-in on the organization's connection
/api/v1/organizations/{id}/sso-connection/testCreates a test sign-in for the end-user connection bound to this organization, judged inside the organization's Environment. Same behaviour as the connection-level test: the round-trip runs for real and the outcome is recorded without provisioning. Refuses with 400 when no connection is bound.
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 Responses
application/json
data *SsoTestSignInResponseDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
Returned object
curl -X POST "https://auth.canopy-io.com/api/v1/organizations/value/sso-connection/test" \ -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.