Login

Audit Logs, Usage & Keys

Enterprise governance endpoints for SIEM log ingestion, credit quota monitoring, and automated API key lifecycle management.

Export audit logs

GET/v1/audit-logs

Streams paginated mutation audit logs (POST, PUT, PATCH, DELETE) scoped to your organization or site. Supports method, user_id, from, and to ISO filters. Requires audit_logs:read on Agency or Enterprise plans.

GETRequest
curl -G https://api.bloghunch.com/v1/audit-logs \
  -H "Authorization: Bearer {org_token}" \
  -d limit=50

Usage & AI credits

GET/v1/usage

Returns current plan limits, period usage counters, and remaining AI credit balance. Requires analytics:read.

GETRequest
curl https://api.bloghunch.com/v1/usage \
  -H "Authorization: Bearer {token}"

Programmatic API key management

  • List keys: GET /v1/api-keys (organizations:read)
  • Create key: POST /v1/api-keys (organizations:write)
  • Rotate key: POST /v1/api-keys/{id}/rotate (organizations:write)
  • Revoke key: DELETE /v1/api-keys/{id} (organizations:write)

Was this page helpful?