Create custom UTM event
curl --request POST \
--url https://api.vambe.me/api/public/utm-event/create \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"ai_contact_id": "<string>"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({ai_contact_id: '<string>'})
};
fetch('https://api.vambe.me/api/public/utm-event/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.vambe.me/api/public/utm-event/create"
payload = { "ai_contact_id": "<string>" }
headers = {
"x-api-key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"message": "<string>"
}Event Tracking
Create custom UTM event
Queues a custom UTM event with user-defined fields. Only ai_contact_id is required; all other fields are optional. Accepts arbitrary JSON in additional_params.
POST
/
api
/
public
/
utm-event
/
create
Create custom UTM event
curl --request POST \
--url https://api.vambe.me/api/public/utm-event/create \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"ai_contact_id": "<string>"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({ai_contact_id: '<string>'})
};
fetch('https://api.vambe.me/api/public/utm-event/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.vambe.me/api/public/utm-event/create"
payload = { "ai_contact_id": "<string>" }
headers = {
"x-api-key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"message": "<string>"
}Headers
API key needed to authorize the request
Body
application/json
Ignored. The event always carries the customer of the contact it names.
Available options:
facebook, google, tiktok, snapchat, linkedin, twitter, pinterest, bing, facebook_whatsapp, facebook_instagram, facebook_messenger, unknown Was this page helpful?
