Create Customer Event

Creates a new project event, if one does not exist, and a new event for the customer’s timeline.

Create Customer Event

POST https://beacon.crowdpower.io/events

Request Body

NameTypeDescription

user_id*

string

The unique ID for the user.

action*

string

The action the user performed.

properties

object

Information about the event, sent as key/value pairs. Use snake_case for key names.

created_at

integer

When the event happened. Automatically set if not provided. UNIX timestamp in seconds.

email

string

The user’s email address. Required if user_id is not present.

update_session

boolean

Whether or not to update the user’s session. Defaults to true.

{
  "success": true,
  "code": 200,
  "data": null
}

Create Multiple Customer Events

POST https://beacon.crowdpower.io/events/bulk

Request Body

NameTypeDescription

user_id*

string

The unique ID for the user.

events*

array

An array of event objects.

email

string

The user’s email address. Required if user_id is not present.

{
  "success": true,
  "code": 200,
  "data": null
}

Last updated