Home / Developers / API reference / audit-streams
audit-streams
List audit streams
GET /v1/audit-streams
- Operation ID
listAuditStreams- Authentication
- bearerAuth
- Authorization operation
audit_stream.read
Parameters
No parameters.
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[].destination_id | string (uuid) | optional | |
data[].organization_id | string | null (uuid) | optional | |
data[].destination_type | string | optional | |
data[].endpoint | string | optional | |
data[].config | object | optional | |
data[].credential_secret_ref | string | optional | |
data[].status | string | optional | |
data[].batch_size | integer | optional | |
data[].backfill_from_seq | integer | null (int64) | optional | |
data[].delivered_events | integer (int64) | optional | |
data[].delivered_batches | integer (int64) | optional | |
data[].failed_attempts | integer (int64) | optional | |
data[].consecutive_failures | integer | optional | |
data[].last_delivered_at | string | null (date-time) | optional | |
data[].last_error_at | string | null (date-time) | optional | |
data[].last_error_code | string | null | optional | |
data[].created_at | string (date-time) | optional | |
data[].updated_at | string (date-time) | optional | |
data[].cursors | array | null | 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 audit stream
POST /v1/audit-streams
- Operation ID
createAuditStream- Authentication
- bearerAuth
- Authorization operation
audit_stream.write
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
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 |
|---|---|---|---|
organization_id | string | optional | |
destination_type | string | optional | |
endpoint | string | optional | |
config | object | optional | |
credential_secret_ref | string | optional | |
batch_size | integer | optional | |
from | 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 |
|---|---|---|---|
destination_id | string (uuid) | optional | |
organization_id | string | null (uuid) | optional | |
destination_type | string | optional | |
endpoint | string | optional | |
config | object | optional | |
credential_secret_ref | string | optional | |
status | string | optional | |
batch_size | integer | optional | |
backfill_from_seq | integer | null (int64) | optional | |
delivered_events | integer (int64) | optional | |
delivered_batches | integer (int64) | optional | |
failed_attempts | integer (int64) | optional | |
consecutive_failures | integer | optional | |
last_delivered_at | string | null (date-time) | optional | |
last_error_at | string | null (date-time) | optional | |
last_error_code | string | null | optional | |
created_at | string (date-time) | optional | |
updated_at | string (date-time) | optional | |
cursors | array of object | null | optional | |
cursors[].organization_id | any | optional | |
cursors[].last_seq | 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 |
| 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 |
Get audit stream
GET /v1/audit-streams/{streamId}
- Operation ID
getAuditStream- Authentication
- bearerAuth
- Authorization operation
audit_stream.read
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
streamId | 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 |
|---|---|---|---|
destination_id | string (uuid) | optional | |
organization_id | string | null (uuid) | optional | |
destination_type | string | optional | |
endpoint | string | optional | |
config | object | optional | |
credential_secret_ref | string | optional | |
status | string | optional | |
batch_size | integer | optional | |
backfill_from_seq | integer | null (int64) | optional | |
delivered_events | integer (int64) | optional | |
delivered_batches | integer (int64) | optional | |
failed_attempts | integer (int64) | optional | |
consecutive_failures | integer | optional | |
last_delivered_at | string | null (date-time) | optional | |
last_error_at | string | null (date-time) | optional | |
last_error_code | string | null | optional | |
created_at | string (date-time) | optional | |
updated_at | string (date-time) | optional | |
cursors | array of object | null | optional | |
cursors[].organization_id | any | optional | |
cursors[].last_seq | 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 |
Update audit stream
PATCH /v1/audit-streams/{streamId}
- Operation ID
updateAuditStream- Authentication
- bearerAuth
- Authorization operation
audit_stream.write
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
streamId | 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 |
|---|---|---|---|
endpoint | string | null | optional | |
config | object | optional | |
credential_secret_ref | string | null | optional | |
status | string | null | optional | |
batch_size | integer | null | 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 |
|---|---|---|---|
destination_id | string (uuid) | optional | |
organization_id | string | null (uuid) | optional | |
destination_type | string | optional | |
endpoint | string | optional | |
config | object | optional | |
credential_secret_ref | string | optional | |
status | string | optional | |
batch_size | integer | optional | |
backfill_from_seq | integer | null (int64) | optional | |
delivered_events | integer (int64) | optional | |
delivered_batches | integer (int64) | optional | |
failed_attempts | integer (int64) | optional | |
consecutive_failures | integer | optional | |
last_delivered_at | string | null (date-time) | optional | |
last_error_at | string | null (date-time) | optional | |
last_error_code | string | null | optional | |
created_at | string (date-time) | optional | |
updated_at | string (date-time) | optional | |
cursors | array of object | null | optional | |
cursors[].organization_id | any | optional | |
cursors[].last_seq | 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 |
| 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 |
Delete audit stream
DELETE /v1/audit-streams/{streamId}
- Operation ID
deleteAuditStream- Authentication
- bearerAuth
- Authorization operation
audit_stream.write
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
streamId | 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 |
|---|---|---|---|
deleted | boolean | optional | |
destination_id | 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 |
| 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 |
Backfill audit stream
POST /v1/audit-streams/{streamId}:backfill
Asks the worker to re-deliver every chain of the destination from from_seq.
- Operation ID
backfillAuditStream- Authentication
- bearerAuth
- Authorization operation
audit_stream.write
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
streamId | 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 |
|---|---|---|---|
from_seq | integer (int64) | optional |
Responses
202 Accepted
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 |
|---|---|---|---|
destination_id | string (uuid) | optional | |
organization_id | string | null (uuid) | optional | |
destination_type | string | optional | |
endpoint | string | optional | |
config | object | optional | |
credential_secret_ref | string | optional | |
status | string | optional | |
batch_size | integer | optional | |
backfill_from_seq | integer | null (int64) | optional | |
delivered_events | integer (int64) | optional | |
delivered_batches | integer (int64) | optional | |
failed_attempts | integer (int64) | optional | |
consecutive_failures | integer | optional | |
last_delivered_at | string | null (date-time) | optional | |
last_error_at | string | null (date-time) | optional | |
last_error_code | string | null | optional | |
created_at | string (date-time) | optional | |
updated_at | string (date-time) | optional | |
cursors | array of object | null | optional | |
cursors[].organization_id | any | optional | |
cursors[].last_seq | 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 |
| 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 |