RESTFUL Tracker

Identify

POST https://in-automate.pakat.net/api/v2/identify

The Identify endpoint lets you create or update your users on the Marketing Automation platform, along with optional extra attributes of the users. Attributes given in the identify call can be used as conditions (OR,IF…) on the Marketing Automation platform. If the attributes given in the identify call have the exact same name that the attributes of your users' database on SendinBlue, the values passed in the identify call will replace the ones in the database. To send the mobile number of a user use the reserved keyword mobile.

Headers

NameTypeDescription

ma-key*

String

Your marketing automation key

Request Body

NameTypeDescription

email

string

attributes

object

This object will content all your custom fields. Add as many as needed. Keep in mind that those user properties will populate your database on the Marketing Automation platform to create rich scenarios

{    "name": "Cake's name",    "recipe": "Cake's recipe name",    "cake": "Binary cake"}

Example

curl --request POST \
  --url https://in-automate.pakat.net/api/v2/identify \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --data '{"attributes":{"customer":"true"}}'

trackEvent

POST https://in-automate.pakat.net/api/v2/trackEvent

The Track Event endpoint lets you capture events on your website, along with optional extra information about the event. You can choose any value you want for the field event and pass any key-value in the field properties. Make sure not to use any reserved key (email or event) in the properties object.

Headers

NameTypeDescription

ma-key*

String

Your marketing automation key

Request Body

NameTypeDescription

eventdata

object

This object will content all additional data you want to send it has three filed id of type string contain a unique number and data which contain information which which one can be send in smtp template

email*

string

event*

string

properties

object

This object will content all your custom fields. Add as many as needed. Keep in mind that those user properties will populate your database on the Marketing Automation platform to create rich scenarios

Example

curl --request POST \
     --url https://in-automate.pakat.net/api/v2/trackEvent \
     --header 'Accept: application/json' \
     --header 'Content-Type: application/json' \
     --header 'ma-key: my-marketing-automation-key' \
     --data '
{
  "event": "cart_updated",
  "email": "uesr@example.com",
  "properties": {
    "FIRSTNAME": "Ali",
    "LASTNAME": "Ahmadi"
  },
  "eventdata": {
    "id": "cart:1234",
    "data": {
      "total": 2800000,
      "currency": "IRRIAL",
      "url": "www.example.com",
      "items": [
        {
          "name": "Black shoes",
          "price": 90,
          "quantity": 2,
          "url": "www.example.com/black-shoes",
          "image": "www.example.com/black-shoes.jpg"
        },
        {
          "name": "White shirt",
          "price": 100,
          "quantity": 1,
          "url": "www.example.com/shirt",
          "image": "www.example.com/shirt.jpg"
        }
      ]
    }
  }
}
'

POST https://in-automate.pakat.net/api/v2/trackLink

The Track Link endpoint lets you capture clicks on your website, along with optional extra information about the click. You can choose any value you want for the field link and pass any key-value in the field properties. Make sure not to use any reserved key (email or link) in the properties object.

Headers

NameTypeDescription

ma-key*

String

Your marketing automation key

Request Body

NameTypeDescription

email

string

link

string

properties

object

This object will content all your custom fields. Add as many as needed. Keep in mind that those user properties will populate your database on the Marketing Automation platform to create rich scenarios

Example

curl --request POST \
  --url https://in-automate.pakat.net/api/v2/trackLink \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --data '{"properties":{"utm_source":"email","utm_campaign":"paka"}}'

trackPage

POST https://in-automate.pakat.net/api/v2/trackPage

The Track Page endpoint lets you capture page views on your website, along with optional extra information about the viewed page. You can choose any value you want for the field link and pass any key-value in the field properties. Make sure not to use any reserved key (email or page) in the properties object.

Headers

NameTypeDescription

ma-key*

String

Your marketing automation key

Request Body

NameTypeDescription

email

string

page

string

properties

object

This object will content all your custom fields. Add as many as needed. Keep in mind that those user properties will populate your database on the Marketing Automation platform to create rich scenarios

Example

curl --request POST \
  --url https://in-automate.pakat.net/api/v2/trackPage \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --data '{"properties":{"device":"mobile","browser":"chrome","scroll":"50%"}}'

Last updated