Events API
Track Event
POST /api/v1/eventsRequest Body
Field
Type
Required
Description
Example Request
curl -X POST https://app.cueflow.so/api/v1/events \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"email": "[email protected]", "event": "purchase_made", "properties": {"amount": 99.99}}'Response
{
"success": true,
"event": {
"id": "clx456def...",
"eventKey": "purchase_made",
"contactId": "clx123abc...",
"createdAt": "2024-12-13T15:30:00.000Z"
},
"completedChecklistItems": []
}Status Codes
Code
Description
Event Keys
Naming Convention
Common Event Patterns
Category
Example Events
Event Properties
Supported Types
Type
Example
Example Properties
Using Events for Targeting
Event-Based Rules
Condition
Example Use Case
Example: Feature Adoption Campaign
Code Examples
Node.js
Python
PHP
API vs Embed Script
Use API
Use Embed Script
API Example (Server-Side)
Embed Script Example (Client-Side)
Best Practices
Event Naming
Properties
Timing
Privacy
Last updated