Metadata
| Field | Value |
|---|---|
| Name | audit.stream |
| Category | read |
| Required scope | audit:stream |
| Idempotency key required | no |
Annotations
| Annotation | Value |
|---|---|
| Title | Subscribe to Audit Stream |
| Read-only | yes |
| Destructive | no |
| Idempotent | no |
| Open-world | no |
| Requires human approval | no |
Input schema
Output schema
Request examples
Response examples
Successful response — returns an SSE cursor URL:audit:stream scope:
from_iso is not a valid ISO 8601 datetime:
Errors
| Code | Name | Cause | Remediation |
|---|---|---|---|
-32600 | Invalid request | Malformed JSON-RPC envelope | Check method, jsonrpc, and id fields |
-32602 | Invalid params | from_iso is not a valid UTC ISO 8601 datetime | Validate against schema before call |
-32000 | Unauthenticated | Missing Authorization header | Supply a valid Bearer token |
-32001 | Unauthorized | Grant token expired or revoked | Refresh token via agent.grant.refresh |
-32002 | Insufficient scope | Grant missing audit:stream scope | Issue new grant with audit:stream scope |
-32603 | Internal error | Server-side error | Retry with backoff; contact support |
Auth
Caller’s grant must include theaudit:stream scope. Grants whose scope set is a superset of the required scope are accepted.