Agent self-audit feed
Agent self-audit feed
Agent self-audit feed
Returns the agent-stamped audit feed across calls, SMS, compliance events, and billing transactions for a single API key. Authenticates with a regular child API key (NOT a service key). api_key_id=self (default) resolves to the caller’s own key. A non-self UUID must belong to the caller’s user AND share the caller’s environment — cross-user and cross-environment lookups return 404 (existence-leak protection).
Line-scoped keys (line_id != null) may only read THEIR OWN activity; cross-key reads against a non-self target return 403 agent_scope_error. Wildcard (account-wide) keys may read any of their own keys’ activity.
Every successful read writes an audit_read compliance event (audit-of-audit). Rate-limited to 60 requests per hour per user. Inbound carrier-initiated traffic (no actor key) is EXCLUDED by design — the feed answers “what did this agent do”, not “what did this line receive”.
Send as Authorization: Bearer <your-key>. Obtain keys from the portal — prefix sk_live_ for production, sk_test_ for sandbox.
self (default) or the UUID of another API key owned by the authenticated user in the same environment.
Maximum number of events (1-500)
Comma-separated list filtering the discriminator. Allowed: call, sms, compliance_event, billing_transaction. Unknown values return 422 with the allowed set named.
The effective limit applied (clamped to 1-500).
Resolved API key UUID — self is replaced with the caller’s own key id in the response so callers can correlate.