Skip to main content
POST
/
v1
/
events
curl --request POST \
  --url https://api.flywheel.cx/v1/events \
  --header 'Auth-Type: <api-key>' \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "event": {
    "event": "user_signup",
    "user_id": "user123",
    "properties": {
      "source": "website",
      "plan": "premium",
      "utm_source": "google_ads",
      "utm_campaign": "summer2024"
    }
  }
}
'
{
  "success": true,
  "message": "Event tracked successfully"
}

Authorizations

Authorization
string
header
required

Enter your API key obtained from the Flywheel dashboard (without 'Bearer ' prefix)

Auth-Type
string
header
default:api
required

Authentication type header. Must be set to 'api' for all API requests.

Body

application/json
event
object
required

Response

Event tracked successfully

success
boolean

Whether the event was tracked successfully

Example:

true

message
string

Success message

Example:

"Event tracked successfully"