Home / Developers / API reference / directories
directories
Get directory
GET /v1/directories/{directoryId}
- Operation ID
getDirectory- Authentication
- bearerAuth
- Authorization operation
directory.read
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
directoryId | path | string (uuid) | required |
Request body
No request body.
Responses
200 OK
Headers: X-Correlation-ID (Server-generated request correlation ID (req_<uuid>).)
application/json
| Field | Type | Required | Description |
|---|---|---|---|
directory_id | any | optional | |
organization_id | any | optional | |
directory_type | any | optional | |
state | any | optional | |
scim_base_path | any | optional | |
created_at | any | optional | |
credential_version | integer | optional | |
active_credentials | integer | optional | |
last_credential_at | string | null (date-time) | optional | |
users | integer | optional | |
groups | integer | optional | |
credentials | array of object | optional | |
credentials[].credential_id | string (uuid) | optional | |
credentials[].state | string | optional | |
credentials[].created_at | string (date-time) | optional | |
credentials[].expires_at | string | null (date-time) | optional | |
credentials[].revoked_at | string | null (date-time) | optional |
Error responses
| Status | Description | Error codes | Body |
|---|---|---|---|
| 400 | Malformed request | invalid_request, invalid_url, secret_ref_not_bound | Error |
| 401 | Unauthenticated, step-up required (RFC 9470 challenge in WWW-Authenticate) or invalid portal link | unauthenticated, insufficient_user_authentication, portal_link_invalid | Error |
| 403 | Operation not permitted for this caller | forbidden, step_up_required, passkey_enrollment_required, passkey_identity_mismatch, dpop_production_environment_only, client_identity_required, workforce_identity_required, break_glass_not_permitted, elevation_invalid, elevation_expired, elevation_self_approval, impersonation_forbidden, impersonation_not_consented, impersonation_self_consent, explicit_consent_required, ticket_consent_invalid, ticket_consent_expired, ticket_consent_ended, ticket_consent_forbidden, recovery_self_approval, recovery_method_not_allowed, recovery_channel_not_allowed, approver_not_permitted, approver_is_requester, self_approval_forbidden | Error |
| 404 | Not found (or outside the caller's scope) | not_found, correlation_policy_missing | Error |
| 429 | Rate limited | rate_limited | Error |
| 500 | Internal error (no detail leaked) | internal_error | Error |
| 503 | Dependency unavailable (fail closed) | engine_unavailable, egress_unavailable, temporarily_unavailable | Error |
Issue credential
POST /v1/directories/{directoryId}/credentials
- Operation ID
issueCredential- Authentication
- bearerAuth
- Authorization operation
directory_credential.write
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
directoryId | path | string (uuid) | required | |
Idempotency-Key | header | string | optional | Replays of the same key and request return the stored response (Idempotent-Replayed: true); the same key with a different request → 422 idempotency_key_reused.
|
Request body
Optional.
Empty body or {}; unknown fields are rejected.
application/json
| Field | Type | Required | Description |
|---|---|---|---|
(body) | object | optional |
Responses
201 Created
Headers: X-Correlation-ID (Server-generated request correlation ID (req_<uuid>).); Idempotent-Replayed (true when the response is a stored idempotent replay.)
application/json
| Field | Type | Required | Description |
|---|---|---|---|
credential_id | string (uuid) | optional | |
directory_id | string (uuid) | optional | |
token | string | null | optional | |
token_redacted | boolean | null | optional | |
rotated | boolean | null | optional |
Error responses
| Status | Description | Error codes | Body |
|---|---|---|---|
| 400 | Malformed request | invalid_request, invalid_url, secret_ref_not_bound | Error |
| 401 | Unauthenticated, step-up required (RFC 9470 challenge in WWW-Authenticate) or invalid portal link | unauthenticated, insufficient_user_authentication, portal_link_invalid | Error |
| 403 | Operation not permitted for this caller | forbidden, step_up_required, passkey_enrollment_required, passkey_identity_mismatch, dpop_production_environment_only, client_identity_required, workforce_identity_required, break_glass_not_permitted, elevation_invalid, elevation_expired, elevation_self_approval, impersonation_forbidden, impersonation_not_consented, impersonation_self_consent, explicit_consent_required, ticket_consent_invalid, ticket_consent_expired, ticket_consent_ended, ticket_consent_forbidden, recovery_self_approval, recovery_method_not_allowed, recovery_channel_not_allowed, approver_not_permitted, approver_is_requester, self_approval_forbidden | Error |
| 404 | Not found (or outside the caller's scope) | not_found, correlation_policy_missing | Error |
| 409 | Conflict with current state | conflict, invalid_state_transition, stale_config_version, connection_not_validated, correlation_policy_missing, ambiguous_acknowledgment_required, too_many_credentials, trusted_certificate_limit, domain_conflict, policy_version_conflict, invalid_configuration, agents_disabled, inactive_principal_or_grant, elevation_expired, recovery_expired, impersonation_consent_expired, impersonation_consent_revoked, ticket_consent_ended, change_already_decided, change_expired, owner_exists, no_verified_owner, promotion_stale | Error |
| 413 | Request body too large | payload_too_large | Error |
| 422 | Semantically invalid request | invalid_request, invalid_url, dpop_confidential_only, invalid_configuration, idempotency_key_reused, certificate_rejected, protocol_mismatch, jwks_unusable, agent_policy_invalid, assurance_policy_invalid, passwordless_policy_invalid, attenuation_violation, unverified_source, domain_not_verified, invitation_invalid, overlap_unsupported, registration_denied | Error |
| 429 | Rate limited | rate_limited | Error |
| 500 | Internal error (no detail leaked) | internal_error | Error |
| 503 | Dependency unavailable (fail closed) | engine_unavailable, egress_unavailable, temporarily_unavailable | Error |
Rotate credential
POST /v1/directories/{directoryId}/credentials/rotate
- Operation ID
rotateCredential- Authentication
- bearerAuth
- Authorization operation
directory_credential.write
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
directoryId | path | string (uuid) | required | |
Idempotency-Key | header | string | optional | Replays of the same key and request return the stored response (Idempotent-Replayed: true); the same key with a different request → 422 idempotency_key_reused.
|
Request body
Optional.
Empty body or {}; unknown fields are rejected.
application/json
| Field | Type | Required | Description |
|---|---|---|---|
(body) | object | optional |
Responses
201 Created
Headers: X-Correlation-ID (Server-generated request correlation ID (req_<uuid>).); Idempotent-Replayed (true when the response is a stored idempotent replay.)
application/json
| Field | Type | Required | Description |
|---|---|---|---|
credential_id | string (uuid) | optional | |
directory_id | string (uuid) | optional | |
token | string | null | optional | |
token_redacted | boolean | null | optional | |
rotated | boolean | null | optional |
Error responses
| Status | Description | Error codes | Body |
|---|---|---|---|
| 400 | Malformed request | invalid_request, invalid_url, secret_ref_not_bound | Error |
| 401 | Unauthenticated, step-up required (RFC 9470 challenge in WWW-Authenticate) or invalid portal link | unauthenticated, insufficient_user_authentication, portal_link_invalid | Error |
| 403 | Operation not permitted for this caller | forbidden, step_up_required, passkey_enrollment_required, passkey_identity_mismatch, dpop_production_environment_only, client_identity_required, workforce_identity_required, break_glass_not_permitted, elevation_invalid, elevation_expired, elevation_self_approval, impersonation_forbidden, impersonation_not_consented, impersonation_self_consent, explicit_consent_required, ticket_consent_invalid, ticket_consent_expired, ticket_consent_ended, ticket_consent_forbidden, recovery_self_approval, recovery_method_not_allowed, recovery_channel_not_allowed, approver_not_permitted, approver_is_requester, self_approval_forbidden | Error |
| 404 | Not found (or outside the caller's scope) | not_found, correlation_policy_missing | Error |
| 409 | Conflict with current state | conflict, invalid_state_transition, stale_config_version, connection_not_validated, correlation_policy_missing, ambiguous_acknowledgment_required, too_many_credentials, trusted_certificate_limit, domain_conflict, policy_version_conflict, invalid_configuration, agents_disabled, inactive_principal_or_grant, elevation_expired, recovery_expired, impersonation_consent_expired, impersonation_consent_revoked, ticket_consent_ended, change_already_decided, change_expired, owner_exists, no_verified_owner, promotion_stale | Error |
| 413 | Request body too large | payload_too_large | Error |
| 422 | Semantically invalid request | invalid_request, invalid_url, dpop_confidential_only, invalid_configuration, idempotency_key_reused, certificate_rejected, protocol_mismatch, jwks_unusable, agent_policy_invalid, assurance_policy_invalid, passwordless_policy_invalid, attenuation_violation, unverified_source, domain_not_verified, invitation_invalid, overlap_unsupported, registration_denied | Error |
| 429 | Rate limited | rate_limited | Error |
| 500 | Internal error (no detail leaked) | internal_error | Error |
| 503 | Dependency unavailable (fail closed) | engine_unavailable, egress_unavailable, temporarily_unavailable | Error |
Revoke credential
POST /v1/directories/{directoryId}/credentials/{credentialId}/revoke
Immediately and permanently disables one SCIM directory credential (spec §12.7 emergency revocation); normal rotation keeps its overlap window.
- Operation ID
revokeCredential- Authentication
- bearerAuth
- Authorization operation
directory_credential.write
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
directoryId | path | string (uuid) | required | |
credentialId | path | string (uuid) | required | |
Idempotency-Key | header | string | optional | Replays of the same key and request return the stored response (Idempotent-Replayed: true); the same key with a different request → 422 idempotency_key_reused.
|
Request body
Optional.
Empty body or {}; unknown fields are rejected.
application/json
| Field | Type | Required | Description |
|---|---|---|---|
(body) | object | optional |
Responses
200 OK
Headers: X-Correlation-ID (Server-generated request correlation ID (req_<uuid>).); Idempotent-Replayed (true when the response is a stored idempotent replay.)
application/json
| Field | Type | Required | Description |
|---|---|---|---|
credential_id | string (uuid) | optional | |
directory_id | any | optional | |
state | string | optional |
Error responses
| Status | Description | Error codes | Body |
|---|---|---|---|
| 400 | Malformed request | invalid_request, invalid_url, secret_ref_not_bound | Error |
| 401 | Unauthenticated, step-up required (RFC 9470 challenge in WWW-Authenticate) or invalid portal link | unauthenticated, insufficient_user_authentication, portal_link_invalid | Error |
| 403 | Operation not permitted for this caller | forbidden, step_up_required, passkey_enrollment_required, passkey_identity_mismatch, dpop_production_environment_only, client_identity_required, workforce_identity_required, break_glass_not_permitted, elevation_invalid, elevation_expired, elevation_self_approval, impersonation_forbidden, impersonation_not_consented, impersonation_self_consent, explicit_consent_required, ticket_consent_invalid, ticket_consent_expired, ticket_consent_ended, ticket_consent_forbidden, recovery_self_approval, recovery_method_not_allowed, recovery_channel_not_allowed, approver_not_permitted, approver_is_requester, self_approval_forbidden | Error |
| 404 | Not found (or outside the caller's scope) | not_found, correlation_policy_missing | Error |
| 409 | Conflict with current state | conflict, invalid_state_transition, stale_config_version, connection_not_validated, correlation_policy_missing, ambiguous_acknowledgment_required, too_many_credentials, trusted_certificate_limit, domain_conflict, policy_version_conflict, invalid_configuration, agents_disabled, inactive_principal_or_grant, elevation_expired, recovery_expired, impersonation_consent_expired, impersonation_consent_revoked, ticket_consent_ended, change_already_decided, change_expired, owner_exists, no_verified_owner, promotion_stale | Error |
| 413 | Request body too large | payload_too_large | Error |
| 422 | Semantically invalid request | invalid_request, invalid_url, dpop_confidential_only, invalid_configuration, idempotency_key_reused, certificate_rejected, protocol_mismatch, jwks_unusable, agent_policy_invalid, assurance_policy_invalid, passwordless_policy_invalid, attenuation_violation, unverified_source, domain_not_verified, invitation_invalid, overlap_unsupported, registration_denied | Error |
| 429 | Rate limited | rate_limited | Error |
| 500 | Internal error (no detail leaked) | internal_error | Error |
| 503 | Dependency unavailable (fail closed) | engine_unavailable, egress_unavailable, temporarily_unavailable | Error |
List directories
GET /v1/organizations/{organizationId}/directories
- Operation ID
listDirectories- Authentication
- bearerAuth
- Authorization operation
directory.read
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
organizationId | path | string (uuid) | required | |
cursor | query | string | optional | Opaque pagination cursor from next_cursor. |
limit | query | integer | optional |
|
Request body
No request body.
Responses
200 OK
Headers: X-Correlation-ID (Server-generated request correlation ID (req_<uuid>).)
application/json
| Field | Type | Required | Description |
|---|---|---|---|
data | array of object | required | |
data[].directory_id | any | optional | |
data[].organization_id | any | optional | |
data[].directory_type | any | optional | |
data[].state | any | optional | |
data[].scim_base_path | any | optional | |
data[].created_at | any | optional | |
data[].credential_version | integer | optional | |
data[].active_credentials | integer | optional | |
data[].last_credential_at | string | null (date-time) | optional | |
data[].users | integer | optional | |
data[].groups | integer | optional | |
next_cursor | string | optional | Opaque cursor; absent on the last page. |
Error responses
| Status | Description | Error codes | Body |
|---|---|---|---|
| 400 | Malformed request | invalid_request, invalid_url, secret_ref_not_bound | Error |
| 401 | Unauthenticated, step-up required (RFC 9470 challenge in WWW-Authenticate) or invalid portal link | unauthenticated, insufficient_user_authentication, portal_link_invalid | Error |
| 403 | Operation not permitted for this caller | forbidden, step_up_required, passkey_enrollment_required, passkey_identity_mismatch, dpop_production_environment_only, client_identity_required, workforce_identity_required, break_glass_not_permitted, elevation_invalid, elevation_expired, elevation_self_approval, impersonation_forbidden, impersonation_not_consented, impersonation_self_consent, explicit_consent_required, ticket_consent_invalid, ticket_consent_expired, ticket_consent_ended, ticket_consent_forbidden, recovery_self_approval, recovery_method_not_allowed, recovery_channel_not_allowed, approver_not_permitted, approver_is_requester, self_approval_forbidden | Error |
| 404 | Not found (or outside the caller's scope) | not_found, correlation_policy_missing | Error |
| 429 | Rate limited | rate_limited | Error |
| 500 | Internal error (no detail leaked) | internal_error | Error |
| 503 | Dependency unavailable (fail closed) | engine_unavailable, egress_unavailable, temporarily_unavailable | Error |
Create directory
POST /v1/organizations/{organizationId}/directories
- Operation ID
createDirectory- Authentication
- bearerAuth
- Authorization operation
directory.write
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
organizationId | path | string (uuid) | required | |
Idempotency-Key | header | string | optional | Replays of the same key and request return the stored response (Idempotent-Replayed: true); the same key with a different request → 422 idempotency_key_reused.
|
Request body
Required.
application/json
| Field | Type | Required | Description |
|---|---|---|---|
directory_type | string | optional |
Responses
201 Created
Headers: X-Correlation-ID (Server-generated request correlation ID (req_<uuid>).); Idempotent-Replayed (true when the response is a stored idempotent replay.)
application/json
| Field | Type | Required | Description |
|---|---|---|---|
directory_id | string (uuid) | optional | |
organization_id | string (uuid) | optional | |
directory_type | string | optional | |
state | string | optional | |
scim_base_path | string | optional | |
created_at | string (date-time) | optional |
Error responses
| Status | Description | Error codes | Body |
|---|---|---|---|
| 400 | Malformed request | invalid_request, invalid_url, secret_ref_not_bound | Error |
| 401 | Unauthenticated, step-up required (RFC 9470 challenge in WWW-Authenticate) or invalid portal link | unauthenticated, insufficient_user_authentication, portal_link_invalid | Error |
| 403 | Operation not permitted for this caller | forbidden, step_up_required, passkey_enrollment_required, passkey_identity_mismatch, dpop_production_environment_only, client_identity_required, workforce_identity_required, break_glass_not_permitted, elevation_invalid, elevation_expired, elevation_self_approval, impersonation_forbidden, impersonation_not_consented, impersonation_self_consent, explicit_consent_required, ticket_consent_invalid, ticket_consent_expired, ticket_consent_ended, ticket_consent_forbidden, recovery_self_approval, recovery_method_not_allowed, recovery_channel_not_allowed, approver_not_permitted, approver_is_requester, self_approval_forbidden | Error |
| 404 | Not found (or outside the caller's scope) | not_found, correlation_policy_missing | Error |
| 409 | Conflict with current state | conflict, invalid_state_transition, stale_config_version, connection_not_validated, correlation_policy_missing, ambiguous_acknowledgment_required, too_many_credentials, trusted_certificate_limit, domain_conflict, policy_version_conflict, invalid_configuration, agents_disabled, inactive_principal_or_grant, elevation_expired, recovery_expired, impersonation_consent_expired, impersonation_consent_revoked, ticket_consent_ended, change_already_decided, change_expired, owner_exists, no_verified_owner, promotion_stale | Error |
| 413 | Request body too large | payload_too_large | Error |
| 422 | Semantically invalid request | invalid_request, invalid_url, dpop_confidential_only, invalid_configuration, idempotency_key_reused, certificate_rejected, protocol_mismatch, jwks_unusable, agent_policy_invalid, assurance_policy_invalid, passwordless_policy_invalid, attenuation_violation, unverified_source, domain_not_verified, invitation_invalid, overlap_unsupported, registration_denied | Error |
| 429 | Rate limited | rate_limited | Error |
| 500 | Internal error (no detail leaked) | internal_error | Error |
| 503 | Dependency unavailable (fail closed) | engine_unavailable, egress_unavailable, temporarily_unavailable | Error |