{
  1. Intro
  2. Events
  3. Anonymous events

Send new event

Append new events to your account. Before you start sending events, you must have a matching EventTypeId that matches the message format you are about to send.

To find this EventTypeId, you can look at the event definitions within the Sources menu. The sources menu can be found within your CDP Environment.

Anonymousevents allow you to append events from anywhere, without first verifying a product token. In order to allow an event type to be sent anonymously, it first needs to be whitelisted. This can be found below.

POST /events/v1.0/tenants/{tenantId}/events/anonymousevents

POST Parameters

Name In Description Required Type Example
TenantId Path The tenant guid True Guid 4debbc4c-616f-4067-95e9-c76071dbffff
Body Body The events to append True Json object [ { "EventTypeId": "d80ee426-f5d4-4dff-9115-9c201fb2a945", "Event": { "Owner": "Jane Doe", "Product": "Coffee", "Amount": 1, "Last Name": "Doe", "First Name": "John", "Mobile Phone": "0031612345678", "Email Address": "Jane.doe@cm.com", "Membership": "Subscribed" } } ]

Whitelisting

In order to allow anonymous sends to insert events into your CDP environment, the event type must first be whitelisted.

POST /events/v1.0/tenants/{tenantId}/eventtypewhitelistings

POST Parameters

Name In Description Required Type Example
TenantId Path The tenant guid True Guid 7f92a839-5b88-4e41-86e1-1bcd3f9e2694
X-CM-PRODUCTTOKEN Header Your product token True Guid faf85610-f4e5-484d-a81a-6a68bdb09b0d
Body Body The events to append True Json object { "EventTypeId": "6e6410e7-2fe1-4ee3-867e-1026a3f7e178", "IsEnabled": true }

Try it out