PostUserEvent

Post an individual user event. Server host may vary by platform. Moloco's account manager will provide accurate host information.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Platform for the user event.

Body Params
string
length ≤ 128

Recommended. Unique ID generated by the client that could be used as an identifier. The length should not exceed 128 characters.

string
enum
required
Defaults to UNKNOWN_EVENT_TYPE

Supported EventTypes.

string
required

Unix timestamp in milliseconds that the event happened at. (e.g., 1617870506121)

string
enum
required
Defaults to UNKNOWN_CHANNEL_TYPE
Allowed:
string
length ≤ 128

User Identifier for the platform. Recommended to hash it before sending for anonymization. The length should not exceed 128 characters. This field cannot be one of the following values: "null", "undefined", "invalid", "nil".

device
object
items
array of objects

Items information related to the event. Required for ADD_TO_CART, ADD_TO_WISHLIST, ITEM_PAGE_VIEW and PURCHASE event types.

items
revenue
object

A monetary amount in a specific currency. For example, {currency: "USD", amount: 12.34} means $12.34. Price of the single item.

string

Query string for the search. Required for SEARCH event.

string
length ≤ 128

Deprecated. Please use custom_id as alternative. Identifier for tracking users regardless of sign-in status. The length should not exceed 128 characters.

string
length ≤ 128

Custom ID generated by the client to suppress duplicate events. The length should not exceed 128 characters.

string

Page ID should be a uniquely assigned value for each page in the app or web site. It is a mandatory field if the Event type is PAGE_VIEW. Otherwise, it's not required to have a value for the page_id parameter. If the Event type is PAGE_VIEW, provide a string that can identify a context of the event, such as "electronics", "categories/12312", "azd911d" or "/classes/foo/lectures/bar." Any value will be acceptable if it helps identify unique pages.

string

Similar to referer in HTTP, this value indicates from which page the user came to the current page.

shipping_charge
object

A monetary amount in a specific currency. For example, {currency: "USD", amount: 12.34} means $12.34. Price of the single item.

string

Track ID for the event. Track ID is generated by a call to the Decision API. Fill in this field accordingly if the user event is to be associated with a Decision API response.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json