Hanzo Insights
API

API Reference

REST API for capturing events and querying data.

API Reference

All API endpoints are available at https://insights.hanzo.ai.

Authentication

curl https://insights.hanzo.ai/api/event \
  -H "Authorization: Bearer YOUR_PROJECT_API_KEY" \
  -d '{"event": "pageview", "properties": {"$current_url": "https://example.com"}}'

Endpoints

Capture Events

POST /capture/

Capture a single event.

{
  "api_key": "YOUR_PROJECT_API_KEY",
  "event": "button_clicked",
  "properties": {
    "distinct_id": "user_123",
    "button": "signup"
  }
}

Batch Events

POST /batch/

Capture multiple events in a single request (max 1000).

Feature Flags

POST /decide/

Get enabled feature flags for a user.

On this page