1. Docs
  2. API Reference
  3. Read the organization's test sign-in

Read the organization's test sign-in

GET/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 TokenAuthorization Option A

JWT access token. Never send alongside X-API-Key: a request carrying both is refused.

API KeyX-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

  • dataSsoTestSignInResponseDto*

application/json

  • errorApiErrorBodyDto*

application/json

  • errorApiErrorBodyDto*

application/json

  • errorApiErrorBodyDto*

Returned object

Request
curl -X GET "https://auth.canopy-io.com/api/v1/organizations/value/sso-connection/test/value" \
  -H "X-API-Key: $CANOPY_API_KEY"
Response
{
  "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"
  }
}
Related endpoints
GETList organizations
POSTCreate an organization
DELETEDelete every organization
GETGet an organization
PATCHUpdate an organization
DELETEDelete an organization
GETGet an organization's authentication policy
PATCHUpdate an organization's authentication policy
POSTRegenerate the organization's SSO recovery codes
POSTStart a test sign-in on the organization's connection
GETList the organization's domain claims
POSTClaim a domain for the organization
POSTVerify one of the organization's domains
DELETERemove one of the organization's domain claims
GETList an organization's SSO connections
POSTBind an SSO connection to an organization
DELETEUnbind an SSO connection from an organization
GETList an organization's members
POSTAdd a member to an organization
PATCHChange a member's role
DELETERemove a member from an organization
GETList an organization's invitations
POSTInvite a member into an organization
GETList the roles an organization may assign
DELETERevoke an organization invitation
GETGet an organization's SSO connection
POSTSet up an organization's SSO connection
PATCHChange an organization's SSO connection
DELETERemove an organization's SSO connection
POSTActivate an organization's SSO connection
POSTDisable an organization's SSO connection
POSTImport the identity provider's SAML metadata
GETGet the service-provider values for an organization's SSO connection
Was this page helpful?

Tell us how we can improve this guide.