Get an organization's directory connection
/api/v1/organizations/{id}/directoryThe organization's directory if one exists, its SCIM base URL, and the roles the application owner has made available to it. An empty role list means directory sync has not been enabled for this organization.
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 *OrganizationDirectoryResponseDto
application/json
error *ApiErrorBodyDto
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/directory" \ -H "X-API-Key: $CANOPY_API_KEY"
{ "data": { "id": "string", "base_url": "string", "created_at": "2026-04-20T12:00:00.000Z", "grantable_roles": [ { "id": "string", "name": "string", "description": "string", "is_default": false } ], "grantable_roles_source": "organization" } }
Tell us how we can improve this guide.