Export Events API
Download event data as a CSV file for analysis in external tools like spreadsheets or BI platforms.
GET /events/export
Export events as a CSV file.
Request
| Parameter | Type | Required | Description |
|---|---|---|---|
event_type | string | No | Filter by event type |
lead_id | string | No | Filter by specific lead |
range | string | No | Date range: today, yesterday, last_7d, last_30d, last_90d |
Response
200 OK (Content-Type: text/csv)
Returns a CSV file with event data including event ID, lead ID, event type, metadata, and timestamp.
Example
curl -X GET "https://api.leadvibe.com/events/export?event_type=page_view&range=last_30d" \
-H "Authorization: Bearer <token>" \
-o events.csv
Common Errors
| Status | Meaning | Solution |
|---|---|---|
| 401 | Unauthorized | Check authentication token |
| 500 | Server Error | Contact support if persists |
Notes
- Exported data is OU-scoped to the active Organizational Unit
- Large exports may take longer to process
- Use filters to narrow the export for faster downloads
Related Endpoints
- Events - List events with pagination
- Event Analytics - Aggregated analytics