Audit Logs, Usage & Keys
Enterprise governance endpoints for SIEM log ingestion, credit quota monitoring, and automated API key lifecycle management.
GET/v1/audit-logs
Export 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.
Request
curl -G https://api.bloghunch.com/v1/audit-logs \
-H "Authorization: Bearer {org_token}" \
-d limit=50
GET/v1/usage
Usage & AI credits
Returns current plan limits, period usage counters, and remaining AI credit balance. Requires analytics:read.
Request
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)

