Create an organization's directory connection
/api/v1/organizations/{id}/directoryOpens directory sync for the organization. Refused while the application owner has named no role for arriving people to hold.
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
application/json
error *ApiErrorBodyDto
Returned object
curl -X POST "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.