Home / Developers / API reference / principals
principals
Get principal deprovisioning evidence
GET /v1/principals/{principalId}/evidence
Returns every revocation of the principal's memberships in the caller's scope, whatever its trigger (admin suspension, SCIM deactivation, security events, ...). The report contains no tokens, assertions or secrets.
- Operation ID
principalEvidence- Authentication
- bearerAuth
- Authorization operation
revocation_evidence.read
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
principalId | path | string (uuid) | required | |
organization_id | query | string (uuid) | 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 |
|---|---|---|---|
principal_id | string (uuid) | optional | |
generated_at | string (date-time) | optional | |
memberships | array of object | optional | |
memberships[].membership_id | any | optional | |
memberships[].organization_id | any | optional | |
memberships[].principal_id | any | optional | |
memberships[].state | any | optional | |
memberships[].lifecycle_epoch | any | optional | |
memberships[].roles | any | optional | |
memberships[].created_at | any | optional | |
memberships[].updated_at | any | optional | |
revocations | array of object | optional | |
revocations[].revocation_id | string (uuid) | optional | |
revocations[].application_id | string (uuid) | optional | |
revocations[].environment | string | optional | |
revocations[].organization_id | string (uuid) | optional | |
revocations[].principal_id | string (uuid) | optional | |
revocations[].membership_id | string (uuid) | optional | |
revocations[].trigger | string | optional | |
revocations[].lifecycle_epoch | integer (int64) | optional | |
revocations[].t0 | string (date-time) | optional | |
revocations[].gate_effective_at | string (date-time) | optional | |
revocations[].broker_invalidated_at | string | null (date-time) | optional | |
revocations[].status | string | optional | |
revocations[].exposure_open | boolean | optional | |
revocations[].deliveries | array | 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 |
Get principal access inventory
GET /v1/principals/{principalId}/inventory
- Operation ID
principalInventory- Authentication
- bearerAuth
- Authorization operation
principal_inventory.read
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
principalId | 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 |
|---|---|---|---|
principal_id | string (uuid) | optional | |
kind | string | optional | |
generated_at | string (date-time) | optional | |
memberships | array of object | optional | |
memberships[].membership_id | any | optional | |
memberships[].organization_id | any | optional | |
memberships[].principal_id | any | optional | |
memberships[].state | any | optional | |
memberships[].lifecycle_epoch | any | optional | |
memberships[].roles | any | optional | |
memberships[].created_at | any | optional | |
memberships[].updated_at | any | optional | |
connections | array of object | optional | |
connections[].organization_id | any | optional | |
connections[].connection_id | any | optional | |
connections[].connection_type | any | optional | |
connections[].connection_state | any | optional | |
connections[].last_authenticated_at | any | optional | |
connections[].assurance_verified | any | optional | |
connections[].authentications | any | optional | |
broker_sessions_available | boolean | optional | |
broker_sessions | array of object | null | optional | |
broker_sessions[].session_ref | any | optional | |
broker_sessions[].started_at | any | optional | |
broker_sessions[].last_access_at | any | optional | |
broker_sessions[].clients | any | optional | |
delegations_granted | array of object | optional | |
delegations_granted[].delegation_id | any | optional | |
delegations_granted[].organization_id | any | optional | |
delegations_granted[].delegator_membership_id | any | optional | |
delegations_granted[].agent_principal_id | any | optional | |
delegations_granted[].parent_delegation_id | any | optional | |
delegations_granted[].depth | any | optional | |
delegations_granted[].scopes | any | optional | |
delegations_granted[].audiences | any | optional | |
delegations_granted[].policy_version | any | optional | |
delegations_granted[].created_at | any | optional | |
delegations_granted[].expires_at | any | optional | |
delegations_received | array of object | optional | |
delegations_received[].delegation_id | any | optional | |
delegations_received[].organization_id | any | optional | |
delegations_received[].delegator_membership_id | any | optional | |
delegations_received[].agent_principal_id | any | optional | |
delegations_received[].parent_delegation_id | any | optional | |
delegations_received[].depth | any | optional | |
delegations_received[].scopes | any | optional | |
delegations_received[].audiences | any | optional | |
delegations_received[].policy_version | any | optional | |
delegations_received[].created_at | any | optional | |
delegations_received[].expires_at | any | optional | |
recent_revocations | array of object | optional | |
recent_revocations[].revocation_id | any | optional | |
recent_revocations[].organization_id | any | optional | |
recent_revocations[].membership_id | any | optional | |
recent_revocations[].target_kind | any | optional | |
recent_revocations[].trigger | any | optional | |
recent_revocations[].lifecycle_epoch | any | optional | |
recent_revocations[].t0 | any | optional | |
recent_revocations[].broker_invalidated_at | any | optional | |
recent_revocations[].status | any | 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 |
Revoke principal sessions
POST /v1/principals/{principalId}/sessions/revoke
Application owner, application security admin or organization identity admin (organization roles reach only principals holding a membership in their organization; anything else is 404). Revokes every active membership of the principal (epoch bump, revocation_ids evidence, audit session.revoke_principal), then, after commit, asks the federation engine to end all of the principal's broker sessions (engine sends back-channel logout). broker_sessions is ended when the engine confirmed and scheduled when the logout is left to the asynchronous projection. To end a single session without an epoch bump use /v1/principals/{principalId}/sessions/{sessionId}/revoke. Answers 501 not_implemented while the federation-engine session integration is not configured. No step-up.
- Operation ID
revokePrincipalSessions- Authentication
- bearerAuth
- Authorization operation
session.revoke
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
principalId | 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.
No body is read (send none or {}).
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 |
|---|---|---|---|
back_channel_logout | string | optional | |
broker_sessions | string | optional |
|
principal_id | string (uuid) | optional | |
revocation_ids | array of string (uuid) | 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 |
| 501 | Not implemented in this deployment | not_implemented | Error |
| 503 | Dependency unavailable (fail closed) | engine_unavailable, egress_unavailable, temporarily_unavailable | Error |
Revoke one broker session of a principal (FR-044, FR-090)
POST /v1/principals/{principalId}/sessions/{sessionId}/revoke
Application owner, application security admin or organization identity admin (organization roles reach only principals holding a membership in their organization; anything else is 404). Ends exactly the engine broker SSO session sessionId (the sid claim of the ID token / back-channel logout token) with its refresh tokens; the engine sends OIDC Back-Channel Logout tokens to the clients that used it. The principal's other sessions, memberships, epochs and delegations are unchanged (no epoch bump; access tokens already issued expire within their lifetime). Audited (session.revoke_one) only after the engine confirmed the session ended; an Idempotency-Key replay returns the recorded outcome without a second engine call. A session that does not exist or belongs to another principal is 404; 503 engine_unavailable when the engine did not confirm (nothing recorded); 501 not_implemented without the federation-engine integration. No step-up.
- Operation ID
revokePrincipalSession- Authentication
- bearerAuth
- Authorization operation
session.revoke
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
principalId | path | string (uuid) | required | |
sessionId | path | string | required | Engine broker session id (the sid claim).
|
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.
No body is read (send none or {}).
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 |
|---|---|---|---|
principal_id | string (uuid) | optional | |
session_id | string | optional | |
broker_sessions | string | optional |
|
back_channel_logout | string | optional |
|
other_sessions | 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 |
| 501 | Not implemented in this deployment | not_implemented | Error |
| 503 | Dependency unavailable (fail closed) | engine_unavailable, egress_unavailable, temporarily_unavailable | Error |