POST
/
events
/
create
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"
}

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 Upmarket

x-upmarket-key
default: "xxxxxxxxxxxxxxxxxxx"required

This is the API Key you generated from Upmarket.

Body

journey_id
string
required

Id of the Journey this event is associated with.

customer_id
string
required

The customer this event is associated with.

event_id
string
required

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"
}