POST
/
conversions
/
events
Create Conversion Event
curl --request POST \
  --url https://connextify.com/api/v1/conversions/events \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "event_name": "<string>",
  "description": "<string>",
  "expected_metadata_keys": [
    {}
  ],
  "event_type": "<string>"
}
'
{
  "success": true,
  "data": {
    "id": "<string>",
    "event_name": "<string>",
    "description": "<string>",
    "expected_metadata_keys": [
      {}
    ],
    "event_type": "<string>"
  }
}
Register a new conversion event definition or update an existing event schema. If an event with the same event_name and event_type already exists for your account, this endpoint performs an upsert by updating the description and expected metadata keys.

Body Parameters

Required Parameters

event_name
string
required
Event identifier name (e.g. purchase, signup, lead, demo_booked). Normalized to lowercase automatically.

Optional Parameters

description
string
Human-readable description of the conversion event and where it is triggered.
expected_metadata_keys
array
List of metadata property keys your frontend or backend passes when firing this conversion event (e.g. ["order_id", "value", "currency"]).
event_type
string
default:"ab_test"
Scope classification for the event:
  • ab_test: Used for A/B split testing decision metrics.
  • short_url: Global goals tracked on short links.
  • qr_code: Offline-to-online goals tracked on dynamic QR codes.

Response

success
boolean
Indicates whether the request succeeded.
data
object
The created or updated conversion event definition.

Request Examples

curl -X POST "https://connextify.com/api/v1/conversions/events" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "event_name": "purchase",
    "description": "Customer completed order payment on thank-you page",
    "expected_metadata_keys": ["order_id", "value", "currency"],
    "event_type": "ab_test"
  }'