Sending Past Events

If you have migrated from another service or just created a Reteno account, and you have a history of

  • user activity,
  • subscriptions,
  • or other events you want to use for advanced segmentation.

You can transfer the available event data from your CRM or other data store to the Reteno system via the API resource Generate past events.

To assign events to users, pre-import the contact list to your Reteno account.

For example, you have a certain number of course subscriptions over the past year, and you want to build a segment with users interested in a certain type of courses, get statistics on the number of subscriptions, or segment users by geodata (if applicable).

Convert these subscriptions info into a JSON format supported for API according to the specification, and send them to the Reteno system. You can send an array of up to 500 such events within one request. Specify the time of each event in the field occurred. Format of date: YYYY-MM-DD; format of date with the time: YYYY-MM-DDTHH:mm.

For example, you send the information on two course subscriptions:

{
  "events": [
    {
      "eventTypeKey": "CourseSubscription",
      "keyValue": "[email protected]",
      "params": [
        {
          "name": "product_name",
          "value": "Puzzle"
        },
        {
          "name": "image_url",
          "value": "https://example.com/puzzlelogo.png"
        },
        {
          "name": "product_url",
          "value": "https://example.com/puzzle"
        },
        {
          "name": "cost",
          "value": "99"
        }
      ],
      "occurred": "2020-06-04T13:43"
    },




    {
      "eventTypeKey": "CourseSubscription",
      "keyValue": "[email protected]",
      "params": [
        {
          "name": "product_name",
          "value": "Puzzle"
        },
        {
          "name": "image_url",
          "value": "https://example.com/puzzlelogo.png"
        },
        {
          "name": "product_url",
          "value": "https://example.com/puzzle"
        },
        {
          "name": "cost",
          "value": "99"
        }
      ],
      "occurred": "2019-05-04T14:17"
    }
  ]
}

Apart from basic fields with the name, cost and link to the course, you can send any related data that will be available to build segments. For example, you can send the country and city of the subscriber.

{
    "name": "city",
    "value": "Los Angeles"
 },{
    "name": "country",
    "value": "USA"
}

And then use this parameters for segmentation by geolocation.

For deleting old or irrelevant events, send a request to the resource Remove events, using the method type DELETE. Specify the time range to remove in the request body:

{
    "from" : "2019-06-04T10:47",
    "to" : "2020-01-04T13:33"
}

The method DELETE is inactive by default. To activate it, please contact our support at [email protected]