API Docs
Reference

Analytics

Analytics endpoints read ClickHouse-backed traffic metrics when analytics is configured. Inventory APIs continue to work even when analytics returns analytics_unavailable.

Raw Event Export

GET/v1/analytics/events
ParameterTypeRequiredDescription
limitinteger
Optional
Default 25. Maximum 100.
cursorstring
Optional
Use pagination.nextCursor from the previous page.
range24h | 7d | 30d | 90d
Optional
Defaults to 7d.
eventTypeall | click | launch_view_impression | launch_view_auto_open_attempt | launch_view_primary_click | launch_view_secondary_click | install | first_open | customer_event
Optional
Defaults to all.
Export customer events
curl "https://api.shortify.com/v1/analytics/events?range=30d&eventType=customer_event&limit=50" \
  -H "api-key: sk_live_your_server_key"

Analytics Unavailable

When ClickHouse is not configured, unavailable, or not initialized, analytics routes return 503 withanalytics_unavailable. Treat this as a temporary reporting failure, not as a link-management failure.