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": ""
}'
const axios = require('axios');
const response = await axios.post(
'https://api.upmarket.ai/events/create',
{
'event_id': '',
'journey_id': ''
},
{
headers: {
'Content-Type': 'application/json',
'x-upmarket-key': 'xxxxxxxxxxxxxxxxxxx'
}
}
);
import requests
headers = {
'Content-Type': 'application/json',
'x-upmarket-key': 'xxxxxxxxxxxxxxxxxxx',
}
json_data = {
'event_id': '',
'journey_id': '',
}
response = requests.post('https://api.upmarket.ai/events/create', headers=headers, json=json_data)
{
"success"
}
Events
Create
This endpoint streams events to Upmarket
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": ""
}'
const axios = require('axios');
const response = await axios.post(
'https://api.upmarket.ai/events/create',
{
'event_id': '',
'journey_id': ''
},
{
headers: {
'Content-Type': 'application/json',
'x-upmarket-key': 'xxxxxxxxxxxxxxxxxxx'
}
}
);
import requests
headers = {
'Content-Type': 'application/json',
'x-upmarket-key': 'xxxxxxxxxxxxxxxxxxx',
}
json_data = {
'event_id': '',
'journey_id': '',
}
response = requests.post('https://api.upmarket.ai/events/create', headers=headers, json=json_data)
{
"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 UpmarketHeader
Body
This is the Event Id that you’re streaming to Upmarket. An example of an
event_id is sign_up.Response
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": ""
}'
const axios = require('axios');
const response = await axios.post(
'https://api.upmarket.ai/events/create',
{
'event_id': '',
'journey_id': ''
},
{
headers: {
'Content-Type': 'application/json',
'x-upmarket-key': 'xxxxxxxxxxxxxxxxxxx'
}
}
);
import requests
headers = {
'Content-Type': 'application/json',
'x-upmarket-key': 'xxxxxxxxxxxxxxxxxxx',
}
json_data = {
'event_id': '',
'journey_id': '',
}
response = requests.post('https://api.upmarket.ai/events/create', headers=headers, json=json_data)
{
"success"
}

