Events
Create
This endpoint streams events to Upmarket
POST
/events/create
x-upmarket-key*
Every Event streamed to Upmarket must include a customer_id, and journey_id.
To get the customer_id
, use the customers/initialize endpoint.
journey_id
Get the journey_id from UpmarketHeader
x-upmarket-keyrequired
Default: "xxxxxxxxxxxxxxxxxxx"This is the API Key you generated from Upmarket.
Body
journey_idrequired
string
Id of the Journey this event is associated with.
customer_idrequired
string
The customer this event is associated with.
event_idrequired
string
This is the Event Id that you’re streaming to Upmarket. An example of an event_id
is sign_up
.
your_variables
string
Add custom variables to stream to Upmarket.
Response
success
string
Indicates that the event was saved successfully
curl --location --request POST 'https://api.upmarket.ai/events/create' \
--header 'Content-Type: application/json' \
--header 'x-upmarket-key: xxxxxxxxxxxxxxxxxxx' \
--data-raw '{
"event_id": "",
"journey_id": ""
}'
{
"success"
}
curl --location --request POST 'https://api.upmarket.ai/events/create' \
--header 'Content-Type: application/json' \
--header 'x-upmarket-key: xxxxxxxxxxxxxxxxxxx' \
--data-raw '{
"event_id": "",
"journey_id": ""
}'
{
"success"
}