Audit events
Botyard REST API endpoints for audit events.
2 endpoints in this group. Every request authenticates with an API key; see the API reference for the other groups.
- List Audit Events:
GET /v1/orgs/{org_id}/audit-events - Search Audit Events:
POST /v1/orgs/{org_id}/audit-events/search
Decide Approvals
Approve or deny one or more approval requests, with the approver's choices (Task #6191). Each decision runs exactly the checks and writes of ``POST /approvals/{request_id}/decision`` (see :func:`decide_approval`) and may also carry ``input``: what the approver chose on the card. This is the only route that takes input, and a server that predates input does not serve it, so a new client never has its choice silently dropped by an old server: the request is refused there before anything is decided. **Per-item results, one transaction each, in request order.** A decision that is refused (``refused``, with the problem the single route would have answered) or needs a payment method first (``activation_required``) has nothing of its own written, and the others are applied regardless. Each decision commits on its own, so one decision's locks are never held while another's are taken. Side effects run after the commits: one wake per asking conversation, carrying every outcome in it, and one provisioner nudge per fulfilled bot. **What a decision that has committed is owed, it gets.** Its realtime events are handed to the request's publisher at its commit, and its wake and nudge are started even when a later decision fails the request. Anything other than a refusal fails the whole request, as it would the single route: an unexpected error, a failed savepoint release or rollback, or a failed commit. Decisions committed before it stay decided (the card reads live state). A commit that fails may still have landed, so it is checked on a fresh connection, and a decision that did land gets its side effects too.
List Audit Events
List customer-visible audit events for an organization. Equivalent to ``POST /audit-events/search`` with an empty body. Prefer the search endpoint for new callers — it accepts the shared JSON filter DSL and is the canonical list shape going forward.