read
finance

Where one entity's audit trail is streamed (webhooks and S3 buckets), with each stream's delivery state.

Changed on

Every audit stream of the entity: kind (webhook or s3), the endpoint (and for S3 the bucket, region, prefix and a masked access key id — never the secret), the categories it carries (null is all), its state (active, paused or stopped, with stop_reason), and what the dispatcher last saw: last_delivered_at, last_status, last_error, consecutive_failures and pending events. switch says whether audit_stream is on. Needs the audit capability on the entity (an owner, an admin or a time-boxed auditor) and the switch audit_trail_api. Streams are added and stopped by the entity's owner in Books, never over the API.

post/api/v1/finance/audit-streams

Request

  • Base URL
    https://app.magistry.io
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization codehttps://app.magistry.io/api/oauth/authorize
      Token URLhttps://app.magistry.io/api/oauth/token
      Scopesfinance:read

Request body

object required
entity_id, string uuid required

The entity, one of those this app was granted (GET /api/v1/finance/entities lists them). In a GET query string entity is accepted too.

Response

Result

object required
ok, boolean required
result, unknown required

Changes

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    11 more changes in this revision