v1

latestOpenAPI 3.1.02026-07-26141236.8 KB
Activities

Create an activity

Creates a record of a customer having performed a given action.

post/activities

Request body

Example request

{
  "activity": {
    "token": "activity_f57a9b5a8d0ac5",
    "distinct_id": "212993",
    "created_on_origin_at": "2024-04-04T15:10:42.030Z",
    "customer_id": 304169228
  }
}

Response

The activity was successfully created.

Example response

{
  "activity": {
    "id": 503256787,
    "customer_id": 304169228,
    "token": "activity_f57a9b5a8d0ac5",
    "distinct_id": "212993",
    "created_on_origin_at": "2024-04-04T15:10:42.030Z",
    "created_at": "2024-05-15T08:35:08.920Z",
    "updated_at": "2024-05-15T08:35:08.920Z"
  }
}