Aimtell

Aimtell Documentation

Welcome to the Aimtell documentation hub. You'll find comprehensive guides and documentation to help you start working with Aimtell as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    
Suggest Edits

Generic Functions

List of all javascript functions

 

Client Side Javascript Functions

_aimtellCheckPermissions()

Description: Checks visitor's push notification permissions
Params: N/A
Response: (str) - granted, default or denied

_aimtellSupportsPush()

Description: Checks to see if visitor's browser supports push notifications
Params: N/A
Response: (boolean)

_aimtellGetSubscriberID()

Description: Grabs the active visitor's subscriber id. If none exists, one is generated.
Params: N/A
Response: promise, (str) subscriber id

_aimtellGetSubscriberID().then(function(id) { console.log(id) })

_aimtellGetPushToken()

Description: Pulls the device push token from the current visitor. This is delivered as a javascript promise.
Params: N/A
Response: promise, (str) device token

_aimtellGetPushToken().then(function(token) { console.log(token) })

_aimtellTrackEvent(category, action, opt_label, opt_value)

Description: Tracks a custom event to current subscriber
Params:

  • category - required. category of event
  • action - required. action of event
  • opt_label - optional. custom label
  • opt_value - option. numeric value
    Response: promise, (obj)
_aimtellTrackEvent("video", "watched", "how-to").then(function(result) {
  console.log(result)
}
{
	"result": "success",
	"message": "Event has been recorded.",
	"eventId": 1090,
	"eventCategory": "video",
	"eventAction": "watched",
	"eventLabel": "how-to",
	"eventValue" : NULL
}

_aimtellPrompt()

Description: If custom push prompt exists, show it, else load native push prompt
Params: N/A
Response: N/A

_aimtellGetSubscriberIDFromToken(token)

Description: Grabs visitors subscriber id based on push token
Params:

  • token - required. browser push token
    Response: promise, (obj) result, uid
_aimtellGetSubscriberIDFromToken(token).then(function(user){ console.log(user) })
{
     result: "success", 
     uid: "123sampleuid123"
}    

_aimtellTrackAttributes(attributes)

Description: Grabs visitors subscriber id based on push token
Params:

  • attributes - required. object. can be any number of attributes.
    Response: promise, (obj) result, message
    Notes: Duplicate attribute records are not inserted.
_aimtellTrackAttributes({"username":"djswan", "gender":"male"})
{
	"result": "success",
	"message": "Inserted 0 records."
}

_aimtellRunNative()

Description: Launches native push notification prompt
Params: N/A
Response: N/A

Suggest Edits

Callback Functions

List of callback functions

 

_aimtellReady()

Description: Called when aimtell script has finished loading.

_aimtellPermissionGranted()

Description: Called after website visitor has granted push notification permissions.

_aimtellPermissionDenied()

Description: Called after website visitor has granted denied notification permissions.

posthttps://api.aimtell.com/prod/login
curl -XPOST -H "Content-type: application/json" -d '{
    "username": "EMAIL",
    "password": "PASS"
}' 'https://api.aimtell.com/prod/login'
A binary file was returned
{
 "result":"success",
 "auth_token":"DAGA123JDBHP0DdadaASdCFQSDQ=",
 "uid":"819d13098123"
}

Body Params

username
string
required

Username

password
string
required

Password

 
 

Header Auth

 Authentication is required for this endpoint.
gethttps://api.aimtell.com/prod/user/
curl -XGET -H 'X-Authorization: AUTH_TOKEN' 'https://api.aimtell.com/prod/user/'
A binary file was returned
{
  "uid": "76cedd11b19e",
  "timezone": "America/Los_Angeles",
  "registration_date": "2015-12-28 17:54:27",
  "last_login": "2017-03-06 19:34:49",
  "username": "demo@aimtell.com",
  "auth_token": "AUTH_TOKEN_HERE",
  "first_name": "Demo",
  "last_name": "Aimtell",
  "trial": 0,
  "trial_end": "2016-12-07 17:54:50",
  "teamId": null,
  "wp": 0,
  "shopify": 0,
  "type": "intro"
}
{
    "result": "error",
    "message": "Please specify a valid auth_token."
}
 
Suggest Edits

Update User

 

Header Auth

 Authentication is required for this endpoint.
puthttps://api.aimtell.com/prod/user/
curl -XPUT -H 'X-Authorization: YOUR_AUTH_TOKEN' -H "Content-type: application/json" -d '{
    "first_name": "DJ"
}' 'https://api.aimtell.com/prod/user/ia123d'
A binary file was returned
{
    "result": "success",
    "message": "User updated.",
    "user": {
        "uid": "ia123d",
        "timezone": "America/Los_Angeles",
        "registration_date": "2014-10-05 00:00:00",
        "last_login": "2015-10-01 04:03:20",
        "username": "dj@aimtell.com",
        "auth_token": "AUTH_TOKEN",
        "first_name": "DJ",
        "last_name": "Swanepoel",
        "trial": "0",
        "trial_end": "0000-00-00 00:00:00"
    }
}
{
    "result": "error",
    "message": "Please specify a valid auth_token."
}
{
    "result": "error",
    "message": "Error #136."
}

Body Params

first_name
string

First Name

last_name
string

Last Name

password
string

Password

timezone
string

Timezone

 

Only allowed to update definition and name updates.

Definition must follow the format below

Suggest Edits

Get All Websites

Grabs all active websites for account.

 

Header Auth

 Authentication is required for this endpoint.
gethttps://api.aimtell.com/prod/sites/
curl -XGET -H 'X-Authorization: YOUR_AUTH_TOKEN' 'https://api.aimtell.com/prod/sites/'
A binary file was returned
[
  {
    "id": 179,
    "uid": "76cedd11b19e",
    "url": "https://demo.aimtell.com",
    "name": "Demo Website",
    "icon": "https://s3.amazonaws.com/siteicons.aimtell.com/icon_40_1443032714..jpg",
    "promptId": 0,
    "webPushID": null,
    "auto_prompt": 1,
    "createdAt": "2015-12-28 17:54:42",
    "active": 1
  },
  {
    "id": 999,
    "uid": "76cedd11b19e",
    "url": "https://example.aimtell.com",
    "name": "Example Aimtell ",
    "icon": "https://s3.amazonaws.com/siteicons.aimtell.com/icon_999_1485981616.png",
    "promptId": 200,
    "webPushID": "web.20.aimtell.com",
    "auto_prompt": 1,
    "createdAt": "2016-06-01 21:40:05",
    "active": 1
  },
  {
    "id": 1902,
    "uid": "76cedd11b19e",
    "url": "aimtell.info",
    "name": "demo",
    "icon": "https://s3.amazonaws.com/siteicons.aimtell.com/icon_1902_1479927098.jpg",
    "promptId": null,
    "webPushID": "web.7.aimtell.com",
    "auto_prompt": 1,
    "createdAt": "2016-11-21 22:35:41",
    "active": 1
  },
  {
    "id": 2459,
    "uid": "76cedd11b19e",
    "url": "https://example2459.aimtell.io",
    "name": "Example Site",
    "icon": "https://s3.amazonaws.com/siteicons.aimtell.com/icon_2459_1485887540.png",
    "promptId": null,
    "webPushID": "web.3.aimtell.com",
    "auto_prompt": 1,
    "createdAt": "2017-01-31 18:32:52",
    "active": 1
  },
  {
    "id": 2634,
    "uid": "76cedd11b19e",
    "url": "https://wordpress.aimtell.com",
    "name": "wordpress site",
    "icon": "https://s3.amazonaws.com/siteicons.aimtell.com/icon_2634_1487894753.png",
    "promptId": null,
    "webPushID": "web.16.aimtell.com",
    "auto_prompt": 1,
    "createdAt": "2017-02-24 00:07:25",
    "active": 1
  }
]
{
    "result": "error",
    "message": "Please specify a valid auth_token."
}

Query Params

limit
string

Number of results

skip
string

Skip

 
Suggest Edits

Get Website Code

Returns aimtell push & website tracking code.

 

Header Auth

 Authentication is required for this endpoint.
gethttps://api.aimtell.com/prod/site/code/id
curl -XGET -H 'X-Authorization: YOUR_AUTH_TOKEN' 'https://api.aimtell.com/prod/site/code/33'
A binary file was returned
{
  "url": "demo.aimtell.com",
  "value": "<!-- start aimtell tracking code --> <script type='text/javascript'>var _at = {};_at.domain = 'demo.aimtell.com';_at.owner = '76cedd11b19e';_at.idSite = '179';_at.attributes = {};  (function() {var u='//api.aimtell.com/prod/';var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'trackpush.min.js'; s.parentNode.insertBefore(g,s);})();</script><!-- end aimtell tracking code -->",
  "idSite": 179,
  "uid": "76cedd11b19e"
}
{
    "result": "error",
    "message": "Please specify a valid auth_token."
}

Path Params

id
string
required

Site ID

 
Suggest Edits

Add Website

 

Header Auth

 Authentication is required for this endpoint.
posthttps://api.aimtell.com/prod/sites/
curl -XPOST -H 'X-Authorization: YOUR_AUTH_TOKEN' -H "Content-type: application/json" -d '{
    "url": "https://fake.aimtell.com",
    "name": "Just another test website"
}' 'https://api.aimtell.com/prod/sites/'
A binary file was returned
{
    "result": "success",
    "message": "Added website https://fake.aimtell.com succesfully.",
    "id": 79
}
{
    "result": "error",
    "message": "Error #139."
}

Body Params

url
string
required

Website URL

name
string
required

Name of Website

 
Suggest Edits

Update Website Name

 

Header Auth

 Authentication is required for this endpoint.
puthttps://api.aimtell.com/prod/site/id
curl -XPUT -H 'X-Authorization: YOUR_AUTH_TOKEN' -H "Content-type: application/json" -d '{
    "name": "New Website Name"
}' 'https://api.aimtell.com/prod/site/1'
A binary file was returned
{
    "result": "success",
    "message": "Updated website succesfully.",
    "id": "1"
}
{
    "result": "error",
    "message": "Please specify a valid auth_token."
}
{
    "result": "error",
    "message": "Error #136."
}

Path Params

id
string
required

Site ID

Body Params

name
string

Website Name

 

Only allowed to update definition and name updates.

Definition must follow the format below

Suggest Edits

Update Website Icon

 

Header Auth

 Authentication is required for this endpoint.
puthttps://api.aimtell.com/site/icon/id
curl --request PUT \
  --url https://api.aimtell.com/site/icon/id
var request = require("request");

var options = { method: 'PUT',
  url: 'https://api.aimtell.com/site/icon/id' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://api.aimtell.com/site/icon/id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("PUT", "https://api.aimtell.com/site/icon/id");

xhr.send(data);
import requests

url = "https://api.aimtell.com/site/icon/id"

response = requests.request("PUT", url)

print(response.text)
A binary file was returned
{
  "result": "success",
  "message": "Updated website icon.",
  "icon": "https://s3.amazonaws.com/siteicons.aimtell.com/icon_79_1443670476..jpg",
  "id": "79"
}
{
    "result": "error",
    "message": "Please specify a valid auth_token."
}
{
    "result": "error",
    "message": "Error #136."
}

Path Params

id
string
required

Site ID

Body Params

icon
file

Icon

 
Suggest Edits

Update Website Push Package (Safari)

Updates the safari push package.

 

Header Auth

 Authentication is required for this endpoint.
posthttps://api.aimtell.com/prod/push/package/id
curl -XPOST -H 'X-Authorization: YOUR_AUTH_TOKEN' -H "Content-type: application/json" 'https://api.aimtell.com/prod/push/package/79'
A binary file was returned
{
  "result": "success",
  "message": "Push package generated for fake.aimtell.com."
}
{
    "result": "error",
    "message": "Please specify a valid auth_token."
}
{
    "result": "error",
    "message": "Error #136."
}

Path Params

id
string
required

Site ID

 

Only allowed to update definition and name updates.

Definition must follow the format below

Suggest Edits

Delete Website

 

Header Auth

 Authentication is required for this endpoint.
deletehttps://api.aimtell.com/prod/site/id
curl -XDELETE -H 'X-Authorization: YOUR_AUTH_TOKEN' 'https://api.aimtell.com/prod/site/79'
A binary file was returned
{
    "result": "success",
    "message": "Successfully de-activated website.",
  	"id": "79
}
{
    "result": "error",
    "message": "Please specify a valid auth_token."
}

Path Params

id
string
required

Site ID

 

Only allowed to update definition and name updates.

Definition must follow the format below

Suggest Edits

Get Custom Attributes

 

Header Auth

 Authentication is required for this endpoint.
gethttps://api.aimtell.com/prod/attributes/id
curl -XGET -H 'X-Authorization: YOUR_AUTH_TOKEN' 'https://api.aimtell.com/prod/attributes/1'
A binary file was returned
[
  "age",
  "gender",
  "push_token"
]
{
    "result": "error",
    "message": "Please specify a valid auth_token."
}

Path Params

id
string
required

Site ID

 
Suggest Edits

Get Subscribers

 

Header Auth

 Authentication is required for this endpoint.
gethttps://api.aimtell.com/prod/subscribers/id
curl -XGET -H 'X-Authorization: AUTH_TOKEN' 'https://api.aimtell.com/prod/subscribers/1?limit=5'
A binary file was returned
{
  "count": "5",
  "subscribers": [
    {
      "subscriber_uid": "530de45d4f60",
      "subscriberId": "530de45d4f60",
      "idSite": "179",
      "lastVisit": "2015-09-29 03:14:26",
      "deviceType": "desktop",
      "resolution": "1440 x 900",
      "browserName": "Chrome",
      "browserVersion": "46.0.2490.33",
      "operatingSystemCode": "Mac OS X",
      "operatingSystemVersion": "10_10_5",
      "referrerUrl": "",
      "referrerName": "",
      "browserLang": "en-US",
      "ip": "208.80.152.201",
      "region": "California",
      "regionCode": "CA",
      "city": "San Francisco",
      "country": "United States",
      "postal": "94105",
      "createdAt": "2015-12-28 17:54:42"
    },
    {
      "subscriber_uid": "7584af350185",
      "subscriberId": "7584af350185",
      "idSite": "179",
      "lastVisit": "2015-09-29 03:14:26",
      "deviceType": "desktop",
      "resolution": "1440 x 900",
      "browserName": "Safari",
      "browserVersion": "46.0.2490.33",
      "operatingSystemCode": "Mac OS X",
      "operatingSystemVersion": "10_10_5",
      "referrerUrl": "",
      "referrerName": "",
      "browserLang": "en-US",
      "ip": "173.247.253.175",
      "region": "California",
      "regionCode": "CA",
      "city": "Santa Monica",
      "country": "United States",
      "postal": "90405",
      "createdAt": "2015-12-28 17:54:42"
    },
    {
      "subscriber_uid": "75d29d3ba7cb",
      "subscriberId": "75d29d3ba7cb",
      "idSite": "179",
      "lastVisit": "2015-09-29 03:14:26",
      "deviceType": "desktop",
      "resolution": "1440 x 900",
      "browserName": "Chrome",
      "browserVersion": "46.0.2490.33",
      "operatingSystemCode": "Mac OS X",
      "operatingSystemVersion": "10_10_5",
      "referrerUrl": "",
      "referrerName": "",
      "browserLang": "en-US",
      "ip": "74.125.65.91",
      "region": "California",
      "regionCode": "CA",
      "city": "Mountain View",
      "country": "United States",
      "postal": "94043",
      "createdAt": "2015-12-28 17:54:42"
    },
    {
      "subscriber_uid": "ddaaa3f43dc3",
      "subscriberId": "ddaaa3f43dc3",
      "idSite": "179",
      "lastVisit": "2015-09-29 03:14:26",
      "deviceType": "desktop",
      "resolution": "1440 x 900",
      "browserName": "Chrome",
      "browserVersion": "46.0.2490.33",
      "operatingSystemCode": "Mac OS X",
      "operatingSystemVersion": "10_10_5",
      "referrerUrl": "",
      "referrerName": "",
      "browserLang": "en-US",
      "ip": "173.247.253.175",
      "region": "California",
      "regionCode": "CA",
      "city": "Santa Monica",
      "country": "United States",
      "postal": "90405",
      "createdAt": "2015-12-28 17:54:42"
    },
    {
      "subscriber_uid": "ef0aefee2751",
      "subscriberId": "ef0aefee2751",
      "idSite": "179",
      "lastVisit": "2015-09-29 03:14:26",
      "deviceType": "desktop",
      "resolution": "1440 x 900",
      "browserName": "Chrome",
      "browserVersion": "46.0.2490.33",
      "operatingSystemCode": "Mac OS X",
      "operatingSystemVersion": "10_10_5",
      "referrerUrl": "",
      "referrerName": "",
      "browserLang": "en-US",
      "ip": "74.125.65.91",
      "region": "California",
      "regionCode": "CA",
      "city": "Mountain View",
      "country": "United States",
      "postal": "94043",
      "createdAt": "2015-12-28 17:54:42"
    }
  ]
}
{
    "result": "error",
    "message": "Please specify a valid auth_token."
}

Path Params

id
string
required

Site ID

Query Params

filter
string

Filter

limit
string

Limit

skip
string

Skip

 
Suggest Edits

Get Subscriber

 

Header Auth

 Authentication is required for this endpoint.
gethttps://api.aimtell.com/prod/subscriber/id
curl -XGET -H 'X-Authorization: AUTH_TOKEN' 'https://api.aimtell.com/prod/subscriber/93f84542-67c3-a4bf-50a2-265feaeb753d'
A binary file was returned
{
  "idvisit": 7176,
  "idSite": 179,
  "subscriberId": "530de45d4f60",
  "deviceType": "desktop",
  "resolution": "1440 x 900",
  "browserName": "Chrome",
  "browserVersion": "46.0.2490.33",
  "operatingSystemCode": "Mac OS X",
  "operatingSystemVersion": "10_10_5",
  "referrerUrl": "",
  "referrerName": "",
  "browserLang": "en-US",
  "ip": "208.80.152.201",
  "longitude": "-122",
  "latitude": "38",
  "region": "California",
  "regionCode": "CA",
  "city": "San Francisco",
  "postal": "94105",
  "country": "United States",
  "countryCode": "US",
  "custom_attributes": {
    "age": "40",
    "gender": "male"
  }
}
{
    "result": "error",
    "message": "Please specify a valid auth_token."
}

Path Params

id
string
required

Subscriber ID

 
Suggest Edits

Add Subscriber Attribute

 

Header Auth

 Authentication is required for this endpoint.
posthttps://api.aimtell.com/prod/subscriber/id
curl -XPOST -H 'X-Authorization: AUTH_TOKEN' -H "Content-type: application/json" -d '{
    "idSite": "1",
    "owner_uid": "ia123d",
    "username": "djswan",
    "gender" : "male
}' 'https://api.aimtell.com/prod/subscriber/27c2f4e2-8d30-168d-cdcb-69886cb80b79'
A binary file was returned
{
  "result":"success",
  "message":"Inserted 2 rows."
}
{
    "result": "error",
    "message": "Please specify a valid auth_token."
}
{
    "result": "error",
    "message": "Error #136."
}

Path Params

id
string
required

Subscriber ID

Body Params

idSite
string

Site ID

owner_uid
string

Account ID

 

Only allowed to update definition and name updates.

Definition must follow the format below

Suggest Edits

Add Subscriber Event

 

Header Auth

 Authentication is required for this endpoint.
posthttps://api.aimtell.com/prod/subscriber/id/event
curl -XPOST -H 'X-Authorization: AUTH_TOKEN' -H "Content-type: application/json" -d '{
    "idSite": "1",
    "owner_uid": "ia123d",
    "eventCategory": "video",
    "eventAction" : "finished
}' 'https://api.aimtell.com/prod/subscriber/27c2f4e2-8d30-168d-cdcb-69886cb80b79/event'
A binary file was returned
{
    "result": "success",
    "message": "Event has been recorded.",
    "eventId": 1050,
    "eventCategory": "video",
    "eventAction": "finished",
    "eventLabel": null,
    "eventValue": null
}
{
    "result": "error",
    "message": "Please specify a valid auth_token."
}
{
    "result": "error",
    "message": "Error #136."
}

Path Params

id
string
required

Subscriber ID

Body Params

idSite
string
required

Site ID

owner_uid
string
required

Account ID

eventCategory
string
required

Event Category

eventAction
string
required

Event Action

eventLabel
string

Event Label

eventValue
int32

Event Value

 

Only allowed to update definition and name updates.

Definition must follow the format below

Suggest Edits

Get All Segments

 

Header Auth

 Authentication is required for this endpoint.
gethttps://api.aimtell.com/prod/segments/idSite
curl -XGET -H 'X-Authorization: AUTH_TOKEN' 'https://api.aimtell.com/prod/segments/1'
A binary file was returned
[
  {
    "idsegment": 245,
    "owner": "76cedd11b19e",
    "name": "Sample Segment #1 - Lives In California",
    "definition": "region==California",
    "idSite": 179,
    "createdAt": "2015-12-28 17:54:42",
    "updatedAt": "2015-12-28 17:54:42",
    "deleted": 0
  },
  {
    "idsegment": 246,
    "owner": "76cedd11b19e",
    "name": "Sample Segment #2 - Viewed Tutorial Video",
    "definition": "eventCategory==video,eventAction==tutorial",
    "idSite": 179,
    "createdAt": "2015-12-28 17:54:42",
    "updatedAt": "2015-12-28 17:54:42",
    "deleted": 0
  },
  {
    "idsegment": 5909,
    "owner": "76cedd11b19e",
    "name": "Campaign for people who click certain links",
    "definition": "pageUrl==https://josephmurphybrasil.com/",
    "idSite": 179,
    "createdAt": "2017-01-02 18:50:54",
    "updatedAt": "2017-01-02 18:52:39",
    "deleted": 0
  }
]
{
    "result": "error",
    "message": "Please specify a valid auth_token."
}

Path Params

idSite
string
required

Site ID

 
Suggest Edits

Get Segment

 

Header Auth

 Authentication is required for this endpoint.
gethttps://api.aimtell.com/prod/segment/id
curl -XGET -H 'X-Authorization: AUTH_TOKEN' 'https://api.aimtell.com/prod/segment/8'
A binary file was returned
{
  "idsegment": 245,
  "owner": "76cedd11b19e",
  "name": "Sample Segment #1 - Lives In California",
  "definition": "region==California",
  "idSite": 179,
  "createdAt": "2015-12-28 17:54:42",
  "updatedAt": "2015-12-28 17:54:42",
  "deleted": 0
}
{
    "result": "error",
    "message": "Please specify a valid auth_token."
}

Path Params

id
string
required

Segment ID

 
Suggest Edits

Get Suggested Segment Value

 

Header Auth

 Authentication is required for this endpoint.
gethttps://api.aimtell.com/prod/segments/id/suggested/name
curl -XGET -H 'X-Authorization: AUTH_TOKEN' 'https://api.aimtell.com/prod/segments/1/suggested/countryCode'
A binary file was returned
[
  "California"
]
{
    "result": "error",
    "message": "Please specify a valid auth_token."
}

Path Params

id
string
required

Site ID

name
string
required

Segment Name

 
Suggest Edits

Update Segment

 

Header Auth

 Authentication is required for this endpoint.
puthttps://api.aimtell.com/prod/segment/id
curl -XPUT -H 'X-Authorization: AUTH_TOKEN' -H "Content-type: application/json" -d '{
    "name": "city is sommerville"
}' 'https://api.aimtell.com/prod/segment/5'
A binary file was returned
{
    "result": "success",
    "idSegment": "5",
    "message": "Successfully updated segment"
}
{
    "result": "error",
    "message": "Please specify a valid auth_token."
}
{
    "result": "error",
    "message": "Error #136."
}

Path Params

id
string
required

Segment ID

Body Params

name
string

Name of Segment

definition
string

Definition

 

Only allowed to update definition and name updates.

Definition must follow the format below

Suggest Edits

Delete Segment

 

Header Auth

 Authentication is required for this endpoint.
deletehttps://api.aimtell.com/prod/segment/id
curl -XDELETE -H 'X-Authorization: AUTH_TOKEN' 'https://api.aimtell.com/prod/segment/5'
A binary file was returned
{
    "result": "success",
    "idSegment": "5",
    "message": "Successfully removed segment"
}
{
    "result": "error",
    "message": "Please specify a valid auth_token."
}

Path Params

id
string
required

Segment ID

 

Only allowed to update definition and name updates.

Definition must follow the format below

Suggest Edits

Create Segment

 

Header Auth

 Authentication is required for this endpoint.
posthttps://api.aimtell.com/prod/segments/
curl -XPOST -H 'X-Authorization: AUTH_TOKEN' -H "Content-type: application/json" -d '{
    "name": "city is sommerville",
    "idSite": 1,
    "definition": "city==Irvine"
}' 'https://api.aimtell.com/prod/segments'
A binary file was returned
{
	"result":"success",
  "message":"Successfully created",
  "id":88
}
{
    "result": "error",
    "message": "Error #139."
}

Body Params

idSite
string
required

Site ID

name
string

Name of Segment

definition
string

Definition

 
Suggest Edits

Get All Manual Campaigns

 

Header Auth

 Authentication is required for this endpoint.
gethttps://api.aimtell.com/prod/campaigns/id
curl -XGET -H 'X-Authorization: AUTH_TOKEN' 'https://api.aimtell.com/prod/campaigns/1'
A binary file was returned
[
  {
    "name": "Sample",
    "title": "",
    "body": "",
    "link": "",
    "id": 4381,
    "updatedAt": "2016-10-31 12:57",
    "sent_date": null,
    "schedule_date": null,
    "status": 1,
    "customIcon": null,
    "sentcount": null,
    "clickcount": null,
    "conversions": null,
    "bounced": null,
    "updatedAt_tz": "PDT",
    "draft": true,
    "campaign_results": {
      "sent": 0,
      "delivered": 0,
      "bounced": 0,
      "clicked": 0,
      "conversions": 0
    }
  },
  {
    "name": "Sample Conversion Campaign",
    "title": "",
    "body": "",
    "link": "",
    "id": 4906,
    "updatedAt": "2016-11-15 16:05",
    "sent_date": null,
    "schedule_date": null,
    "status": 1,
    "customIcon": null,
    "sentcount": null,
    "clickcount": null,
    "conversions": null,
    "bounced": null,
    "updatedAt_tz": "PST",
    "draft": true,
    "campaign_results": {
      "sent": 0,
      "delivered": 0,
      "bounced": 0,
      "clicked": 0,
      "conversions": 0
    }
  },
  {
    "name": "sample campaign",
    "title": "",
    "body": "",
    "link": "",
    "id": 5768,
    "updatedAt": "2016-12-05 11:29",
    "sent_date": null,
    "schedule_date": null,
    "status": 1,
    "customIcon": null,
    "sentcount": null,
    "clickcount": null,
    "conversions": null,
    "bounced": null,
    "updatedAt_tz": "PST",
    "draft": true,
    "campaign_results": {
      "sent": 0,
      "delivered": 0,
      "bounced": 0,
      "clicked": 0,
      "conversions": 0
    }
  },
  {
    "name": "",
    "title": "",
    "body": "",
    "link": "",
    "id": 6518,
    "updatedAt": "2016-12-16 11:31",
    "sent_date": null,
    "schedule_date": null,
    "status": 1,
    "customIcon": null,
    "sentcount": null,
    "clickcount": null,
    "conversions": null,
    "bounced": null,
    "updatedAt_tz": "PST",
    "draft": true,
    "campaign_results": {
      "sent": 0,
      "delivered": 0,
      "bounced": 0,
      "clicked": 0,
      "conversions": 0
    }
  },
  {
    "name": "Sample Campaign # 3",
    "title": "",
    "body": "",
    "link": "",
    "id": 6604,
    "updatedAt": "2016-12-19 14:36",
    "sent_date": null,
    "schedule_date": null,
    "status": 1,
    "customIcon": null,
    "sentcount": null,
    "clickcount": null,
    "conversions": null,
    "bounced": null,
    "updatedAt_tz": "PST",
    "draft": true,
    "campaign_results": {
      "sent": 0,
      "delivered": 0,
      "bounced": 0,
      "clicked": 0,
      "conversions": 0
    }
  },
  {
    "name": "Campaign for people who click links for discount code",
    "title": "",
    "body": "",
    "link": "",
    "id": 7045,
    "updatedAt": "2017-01-02 10:53",
    "sent_date": null,
    "schedule_date": null,
    "status": 1,
    "customIcon": null,
    "sentcount": null,
    "clickcount": null,
    "conversions": null,
    "bounced": null,
    "updatedAt_tz": "PST",
    "draft": true,
    "campaign_results": {
      "sent": 0,
      "delivered": 0,
      "bounced": 0,
      "clicked": 0,
      "conversions": 0
    }
  },
  {
    "name": "Samp",
    "title": "",
    "body": "",
    "link": "",
    "id": 7954,
    "updatedAt": "2017-01-20 16:27",
    "sent_date": null,
    "schedule_date": null,
    "status": 1,
    "customIcon": null,
    "sentcount": null,
    "clickcount": null,
    "conversions": null,
    "bounced": null,
    "updatedAt_tz": "PST",
    "draft": true,
    "campaign_results": {
      "sent": 0,
      "delivered": 0,
      "bounced": 0,
      "clicked": 0,
      "conversions": 0
    }
  },
  {
    "name": "Example campaign",
    "title": "",
    "body": "",
    "link": "",
    "id": 8949,
    "updatedAt": "2017-02-20 13:31",
    "sent_date": null,
    "schedule_date": null,
    "status": 1,
    "customIcon": null,
    "sentcount": null,
    "clickcount": null,
    "conversions": null,
    "bounced": null,
    "updatedAt_tz": "PST",
    "draft": true,
    "campaign_results": {
      "sent": 0,
      "delivered": 0,
      "bounced": 0,
      "clicked": 0,
      "conversions": 0
    }
  },
  {
    "name": "Sample Campaign #1",
    "title": "Welcome to Aimtell!",
    "body": "Got questions? Check out our knowledge base.",
    "link": "https://kb.aimtell.com",
    "id": 259,
    "updatedAt": "2015-12-28 09:54",
    "sent_date": null,
    "schedule_date": "2015-12-28 06:55",
    "status": 4,
    "customIcon": null,
    "sentcount": "27",
    "clickcount": "2",
    "conversions": "0",
    "bounced": "0",
    "schedule_date_tz": "PST",
    "updatedAt_tz": "PST",
    "sent": true,
    "campaign_results": {
      "sent": 27,
      "delivered": 27,
      "bounced": 0,
      "clicked": 2,
      "conversions": 0
    }
  },
  {
    "name": "Sample Campaign #2",
    "title": "A New Marketing Channel",
    "body": "An entirely new way to re-engage your website visitors!",
    "link": "https://aimtell.com",
    "id": 260,
    "updatedAt": "2017-03-06 09:03",
    "sent_date": "2017-03-06 09:01",
    "schedule_date": "2017-03-07 09:00",
    "status": 5,
    "customIcon": "https://s3.amazonaws.com/siteicons.aimtell.com/icon_40_1443032714..jpg",
    "sentcount": "0",
    "clickcount": "0",
    "conversions": "0",
    "bounced": "0",
    "schedule_date_tz": "PST",
    "updatedAt_tz": "PST",
    "sent_date_tz": "PST",
    "automating": true,
    "campaign_results": {
      "sent": 0,
      "delivered": 0,
      "bounced": 0,
      "clicked": 0,
      "conversions": 0
    }
  },
  {
    "name": "Campaign for people who click certain links for discount. 2:45 p.m.",
    "title": "",
    "body": "",
    "link": "https://demo.aimtell.com",
    "id": 7047,
    "updatedAt": "2017-01-20 17:37",
    "sent_date": null,
    "schedule_date": "2017-01-02 14:45",
    "status": 6,
    "customIcon": "https://s3.amazonaws.com/siteicons.aimtell.com/icon_40_1443032714..jpg",
    "sentcount": null,
    "clickcount": null,
    "conversions": null,
    "bounced": null,
    "schedule_date_tz": "PST",
    "updatedAt_tz": "PST",
    "paused": true,
    "campaign_results": {
      "sent": 0,
      "delivered": 0,
      "bounced": 0,
      "clicked": 0,
      "conversions": 0
    }
  },
  {
    "name": "Campaign for people who click certain links for discount. 10:45 a.m.",
    "title": "",
    "body": "",
    "link": "https://dashboard.aimtell.com",
    "id": 7046,
    "updatedAt": "2017-01-20 17:37",
    "sent_date": null,
    "schedule_date": "2017-01-02 10:45",
    "status": 6,
    "customIcon": "https://s3.amazonaws.com/siteicons.aimtell.com/icon_40_1443032714..jpg",
    "sentcount": null,
    "clickcount": null,
    "conversions": null,
    "bounced": null,
    "schedule_date_tz": "PST",
    "updatedAt_tz": "PST",
    "paused": true,
    "campaign_results": {
      "sent": 0,
      "delivered": 0,
      "bounced": 0,
      "clicked": 0,
      "conversions": 0
    }
  }
]
{
    "result": "error",
    "message": "Please specify a valid auth_token."
}

Path Params

id
string
required

Site ID

Query Params

limit
string

Number of results

skip
string

Skip

 
Suggest Edits

Get Manual Campaign

 

Header Auth

 Authentication is required for this endpoint.
gethttps://api.aimtell.com/prod/campaign/id
curl -XGET -H 'X-Authorization: YOUR_AUTH_TOKEN' 'https://api.aimtell.com/prod/campaign/1375
A binary file was returned
{
  "id": 259,
  "uid": "76cedd11b19e",
  "idSite": 179,
  "name": "Sample Campaign #1",
  "title": "Welcome to Aimtell!",
  "body": "Got questions? Check out our knowledge base.",
  "link": "https://kb.aimtell.com",
  "customIcon": null,
  "segments": "245",
  "conversion_trigger": null,
  "sent_date": null,
  "createdAt": "2015-12-28 17:54:42",
  "updatedAt": "2015-12-28 17:54:42",
  "automation": null,
  "status": 4,
  "schedule_pretty_time": "06:55 AM",
  "schedule_pretty_date": "12/28/2015",
  "campaign_results": {
    "sent": 27,
    "delivered": 27,
    "bounced": 0,
    "clicked": 2,
    "conversions": 0
  }
}
{
    "result": "error",
    "message": "Please specify a valid auth_token."
}

Path Params

id
string
required

Campaign ID

Query Params

load
string

Load Additional Information (i.e. Segments)

 
Suggest Edits

Get Manual Campaign Clicks

Enables you to fetch all clicks from a MANUAL campaign, broken down on a subscriber level.

 

Header Auth

 Authentication is required for this endpoint.
gethttps://api.aimtell.com/prod/campaign/id/clicks
curl -XGET -H 'X-Authorization: YOUR_AUTH_TOKEN' 'https://api.aimtell.com/prod/campaign/19/clicks'
A binary file was returned
[{
	"subscriber_uid": "63779e18-6c2c-4dd0-da76-ace61926fc53",
	"created_at": "2017-02-16 18:13:54"
}, {
	"subscriber_uid": "514870c5-665e-effb-34d9-b8bbd9dd3467",
	"created_at": "2017-02-16 13:11:21"
}, {
	"subscriber_uid": "59bc3f07-915c-e1c3-8a81-6ad82ad783a0",
	"created_at": "2017-02-15 21:01:58"
}, {
	"subscriber_uid": "da554ad4-1f77-dde0-b598-d0a386883ab4",
	"created_at": "2017-02-14 23:33:16"
}, {
	"subscriber_uid": "958645fc-9e85-b3a8-2a15-35d278417be8",
	"created_at": "2017-02-14 22:12:21"
}]
{
    "result": "error",
    "message": "Please specify a valid auth_token."
}

Path Params

id
string
required

Campaign ID

 
Suggest Edits

Get Manual Campaign Results (By Day)

 

Header Auth

 Authentication is required for this endpoint.
gethttps://api.aimtell.com/prod/campaign/id/results
curl -XGET -H 'X-Authorization: YOUR_AUTH_TOKEN' 'https://api.aimtell.com/prod/campaign/5675/results?startDate=03/05/2017&endDate=03/09/2017
A binary file was returned
{
	"sent": {
		"03\/05\/2017": 0,
		"03\/06\/2017": 0,
		"03\/07\/2017": 0,
		"03\/08\/2017": 0,
		"03\/09\/2017": 0
	},
	"delivered": {
		"03\/05\/2017": 0,
		"03\/06\/2017": 0,
		"03\/07\/2017": 0,
		"03\/08\/2017": 0,
		"03\/09\/2017": 0
	},
	"bounced": {
		"03\/05\/2017": 0,
		"03\/06\/2017": 0,
		"03\/07\/2017": 0,
		"03\/08\/2017": 0,
		"03\/09\/2017": 0
	},
	"clicked": {
		"03\/05\/2017": 0,
		"03\/06\/2017": 0,
		"03\/07\/2017": 0,
		"03\/08\/2017": 0,
		"03\/09\/2017": 0
	},
	"conversions": {
		"03\/05\/2017": 0,
		"03\/06\/2017": 0,
		"03\/07\/2017": 0,
		"03\/08\/2017": 0,
		"03\/09\/2017": 0
	}
}
{
    "result": "error",
    "message": "Please specify a valid auth_token."
}

Path Params

id
string
required

Campaign ID

Query Params

startDate
string

Date

endDate
string

Date

 
Suggest Edits

Create Campaign

 

Header Auth

 Authentication is required for this endpoint.
posthttps://api.aimtell.com/prod/campaigns/
curl -XPOST -H 'X-Authorization: AUTH_TOKEN' -H "Content-type: application/json" -d '{
    "name": "awesome camapign",
    "idSite: 1
}' 'https://api.aimtell.com/prod/campaigns/'
A binary file was returned
{
    "result": "success",
    "campaignId": 79
}
{
    "result": "error",
    "message": "Error #139."
}

Body Params

name
string
required

Campaign Name

idSite
string
required

Site ID

title
string

Name of Segment

body
string

Definition

link
string

Link

schedule_date
date

Schedule Date

segments
string

Segments

automation
string

Automation (d = daily, w = weekly, m = monthly)

 
Suggest Edits

Update Campaign

 

Header Auth

 Authentication is required for this endpoint.
puthttps://api.aimtell.com/prod/campaign/id
curl -XPUT -H 'X-Authorization: AUTH_TOKEN' -H "Content-type: application/json" -d '{
    "name": "campaign me at 80"
}' 'https://api.aimtell.com/prod/campaign/80'
A binary file was returned
{
    "result": "success",
    "campaignId": "80"
}
{
    "result": "error",
    "message": "Please specify a valid auth_token."
}
{
    "result": "error",
    "message": "Error #136."
}

Path Params

id
string
required

Campaign ID

Body Params

name
string

Name of Campaign

title
string

Push Title

body
string

Push Body Message

link
string

Push Notification Link

schedule_date
string

Push Notification Schedule Date

segments
string

Segments

customIcon
string

url of custom icon to use (recommended size: 250x250)

customImage
string

url of custom image to use (recommended size: 300x500)

 

Only allowed to update definition and name updates.

Definition must follow the format below

Suggest Edits

Delete Campaign

 

Header Auth

 Authentication is required for this endpoint.
deletehttps://api.aimtell.com/prod/campaign/id
curl -XDELETE -H 'X-Authorization: AUTH_TOKEN' 'https://api.aimtell.com/prod/campaign/80'
A binary file was returned
{
  "result":"success",
  "message": "campaign deleted",
  "campaignId":"80"
}
{
    "result": "error",
    "message": "Please specify a valid auth_token."
}

Path Params

id
string
required

Campaign ID

 

Only allowed to update definition and name updates.

Definition must follow the format below

Suggest Edits

Get All Event Triggered Campaigns

 

Header Auth

 Authentication is required for this endpoint.
gethttps://api.aimtell.com/prod/event-campaigns/id
curl -XGET -H 'X-Authorization: AUTH_TOKEN' 'https://api.aimtell.com/prod/event-campaigns/999'
A binary file was returned
[
  {
    "id": 819,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "name": "Sample Triggered Notification # 1:  Abandoned Cart",
    "title": "",
    "body": "",
    "link": "",
    "customIcon": "https://s3.amazonaws.com/siteicons.aimtell.com/icon_40_1443032714..jpg",
    "delay": 0,
    "eventCategory": "cart",
    "eventAction": "abandoned",
    "eventLabel": "",
    "conversion_trigger": null,
    "createdAt": "2016-10-24 23:26:06",
    "updatedAt": "2017-02-18 01:11:34",
    "status": 1,
    "sentcount": null,
    "clickcount": null,
    "conversions": null,
    "bounced": null,
    "draft": true,
    "campaign_results": {
      "sent": 0,
      "delivered": 0,
      "bounced": 0,
      "clicked": 0,
      "conversions": 0
    }
  },
  {
    "id": 1659,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "name": "Sample Triggered Notification # 2: Item Shipped",
    "title": "Your order has been shipped!",
    "body": "All items from order have now been shipped.  Click to view tracking information.",
    "link": "https://demo.aimtell.com",
    "customIcon": "https://s3.amazonaws.com/siteicons.aimtell.com/icon_40_1443032714..jpg",
    "delay": 30,
    "eventCategory": "Item",
    "eventAction": "Shipped",
    "eventLabel": "",
    "conversion_trigger": null,
    "createdAt": "2016-12-23 17:33:19",
    "updatedAt": "2017-02-18 01:12:03",
    "status": 5,
    "sentcount": null,
    "clickcount": null,
    "conversions": null,
    "bounced": null,
    "campaign_results": {
      "sent": 0,
      "delivered": 0,
      "bounced": 0,
      "clicked": 0,
      "conversions": 0
    }
  }
]
{
    "result": "error",
    "message": "Please specify a valid auth_token."
}

Path Params

id
string
required

Site ID

Query Params

limit
string

Number of results

skip
string

Skip

 
Suggest Edits

Get Event Triggered Campaign

 

Header Auth

 Authentication is required for this endpoint.
gethttps://api.aimtell.com/prod/event-campaign/id
curl -XGET -H 'X-Authorization: YOUR_AUTH_TOKEN' 'https://api.aimtell.com/prod/event-campaign/302
A binary file was returned
{
  "id": 819,
  "uid": "76cedd11b19e",
  "idSite": 179,
  "name": "Sample Triggered Notification # 1:  Abandoned Cart",
  "title": "",
  "body": "",
  "link": "",
  "customIcon": "https://s3.amazonaws.com/siteicons.aimtell.com/icon_40_1443032714..jpg",
  "delay": 0,
  "eventCategory": "cart",
  "eventAction": "abandoned",
  "eventLabel": "",
  "conversion_trigger": null,
  "createdAt": "2016-10-24 23:26:06",
  "updatedAt": "2017-02-18 01:11:34",
  "status": 1,
  "bounced": null,
  "campaign_results": {
    "sent": 0,
    "delivered": 0,
    "bounced": 0,
    "clicked": 0,
    "conversions": 0
  }
}
{
    "result": "error",
    "message": "Please specify a valid auth_token."
}

Path Params

id
string
required

Campaign ID

 
Suggest Edits

Get Event Campaign Results (By Day)

 

Header Auth

 Authentication is required for this endpoint.
gethttps://api.aimtell.com/prod/event-campaign/id/results
curl -XGET -H 'X-Authorization: YOUR_AUTH_TOKEN' 'https://api.aimtell.com/prod/event-campaign/819/results?startDate=03/05/2017&endDate=03/09/2017
A binary file was returned
{
	"sent": {
		"03\/05\/2017": 0,
		"03\/06\/2017": 0,
		"03\/07\/2017": 0,
		"03\/08\/2017": 0,
		"03\/09\/2017": 0
	},
	"delivered": {
		"03\/05\/2017": 0,
		"03\/06\/2017": 0,
		"03\/07\/2017": 0,
		"03\/08\/2017": 0,
		"03\/09\/2017": 0
	},
	"bounced": {
		"03\/05\/2017": 0,
		"03\/06\/2017": 0,
		"03\/07\/2017": 0,
		"03\/08\/2017": 0,
		"03\/09\/2017": 0
	},
	"clicked": {
		"03\/05\/2017": 0,
		"03\/06\/2017": 0,
		"03\/07\/2017": 0,
		"03\/08\/2017": 0,
		"03\/09\/2017": 0
	},
	"conversions": {
		"03\/05\/2017": 0,
		"03\/06\/2017": 0,
		"03\/07\/2017": 0,
		"03\/08\/2017": 0,
		"03\/09\/2017": 0
	}
}
{
    "result": "error",
    "message": "Please specify a valid auth_token."
}

Path Params

id
string
required

Campaign ID

Query Params

startDate
string

Date

endDate
string

Date

 
Suggest Edits

Create Event Triggered Campaign

 

Header Auth

 Authentication is required for this endpoint.
posthttps://api.aimtell.com/prod/event-campaigns/
curl -XPOST -H 'X-Authorization: AUTH_TOKEN' -H "Content-type: application/json" -d '{
    "name": "New Triggered Campaign",
    "idSite: 999
}' 'https://api.aimtell.com/prod/campaigns/'
A binary file was returned
{
    "result": "success",
    "campaignId": 1991
}
{
    "result": "error",
    "message": "Error #139."
}

Body Params

name
string
required

Campaign Name

idSite
string
required

Site ID

 
Suggest Edits

Update Event Triggered Campaign

 

Header Auth

 Authentication is required for this endpoint.
puthttps://api.aimtell.com/prod/event-campaign/id
  curl -XPUT -H 'X-Authorization: AUTH_TOKEN' -H "Content-type: application/json" -d '{
    "name":"Abandoned Cart",
    "title":"Finish Your Order Save 20%",
    "link":"https://store.com",
    "customIcon":"https://s3.amazonaws.com/siteicons.aimtell.com/icon_999_1485981616.png"
}' 'https://api.aimtell.com/prod/event-campaign/329'
A binary file was returned
{
	"result": "success",
	"campaignId": "329"
}
{
    "result": "error",
    "message": "Please specify a valid auth_token."
}
{
    "result": "error",
    "message": "Error #136."
}

Path Params

id
string
required

Campaign ID

Body Params

name
string

Name of Campaign

title
string

Push Title

body
string

Push Body Message

link
string

Push Notification Link

status
int32
eventAction
string
eventCategory
string
eventLabel
string
delay
int32
customIcon
string

url of custom icon to use (recommended size: 250x250)

customImage
string

url of custom image to use (recommended size: 300x500))

 

Only allowed to update definition and name updates.

Definition must follow the format below

Suggest Edits

Delete Event Triggered Campaign

 

Header Auth

 Authentication is required for this endpoint.
deletehttps://api.aimtell.com/prod/event-campaign/id
curl -XDELETE -H 'X-Authorization: AUTH_TOKEN' 'https://api.aimtell.com/prod/event-campaign/80'
A binary file was returned
{
  "result":"success",
  "message": "campaign deleted",
  "campaignId":"80"
}
{
    "result": "error",
    "message": "Please specify a valid auth_token."
}

Path Params

id
string
required

Campaign ID

 

Only allowed to update definition and name updates.

Definition must follow the format below

Suggest Edits

Get All API Push Campaigns

 

Header Auth

 Authentication is required for this endpoint.
gethttps://api.aimtell.com/prod/api-campaigns/id
curl -XGET -H 'X-Authorization: AUTH_TOKEN' 'https://api.aimtell.com/prod/api-campaigns/999'
A binary file was returned
[{
	"id": 256504,
	"objectId": "58c1d6d498d94",
	"owner_uid": "76cedd11b19e",
	"campaignId": null,
	"title": "Great Job Timmy",
	"body": "Be sure to come back and finish your profile",
	"link": "https:\/\/google.com",
	"idSite": 999,
	"customIcon": "https:\/\/s3.amazonaws.com\/siteicons.aimtell.com\/icon_999_1485981616.png",
	"segmentId": null,
	"alias": null,
	"uids": "25399108-047a-5d08-ead6-1188ae3ea7e8",
	"processed": 1,
	"createdAt": "2017-03-09 22:27:32",
	"updatedAt": "2017-03-09 22:27:33",
	"campaign_results": {
		"sent": 1,
		"delivered": 1,
		"bounced": 0,
		"clicked": 1,
		"conversions": 0
	}
}, {
	"id": 256497,
	"objectId": "58c1d664edf27",
	"owner_uid": "76cedd11b19e",
	"campaignId": null,
	"title": ".",
	"body": ".",
	"link": "https:\/\/google.com",
	"idSite": 999,
	"customIcon": "https:\/\/s3.amazonaws.com\/siteicons.aimtell.com\/icon_999_1485981616.png",
	"segmentId": null,
	"alias": null,
	"uids": "25399108-047a-5d08-ead6-1188ae3ea7e8",
	"processed": 1,
	"createdAt": "2017-03-09 22:25:40",
	"updatedAt": "2017-03-09 22:25:45",
	"campaign_results": {
		"sent": 0,
		"delivered": 0,
		"bounced": 0,
		"clicked": 0,
		"conversions": 0
	}
}
]
{
    "result": "error",
    "message": "Please specify a valid auth_token."
}

Path Params

id
string
required

Site ID

Query Params

limit
string

Number of results

skip
string

Skip

 
Suggest Edits

Get API Campaign

 

Header Auth

 Authentication is required for this endpoint.
gethttps://api.aimtell.com/prod/api-campaign/id
curl -XGET -H 'X-Authorization: YOUR_AUTH_TOKEN' 'https://api.aimtell.com/prod/api-campaign/256504
A binary file was returned
{
	"id": 256504,
	"objectId": "58c1d6d498d94",
	"owner_uid": "76cedd11b19e",
	"title": "Great job Timmy",
	"body": "Be sure to come back and finish your profile",
	"link": "https:\/\/google.com",
	"idSite": 999,
	"customIcon": "https:\/\/s3.amazonaws.com\/siteicons.aimtell.com\/icon_999_1485981616.png",
	"segmentId": null,
	"alias": null,
	"uids": "25399108-047a-5d08-ead6-1188ae3ea7e8",
	"processed": 1,
	"createdAt": "2017-03-09 22:27:32",
	"updatedAt": "2017-03-09 22:27:33",
	"campaign_results": {
		"sent": 1,
		"delivered": 1,
		"bounced": 0,
		"clicked": 1,
		"conversions": 0
	}
}
{
    "result": "error",
    "message": "Please specify a valid auth_token."
}

Path Params

id
string
required

Campaign ID

 
Suggest Edits

Get API Campaign Results (By Day)

 

Header Auth

 Authentication is required for this endpoint.
gethttps://api.aimtell.com/prod/api-campaign/id/results
curl -XGET -H 'X-Authorization: YOUR_AUTH_TOKEN' 'https://api.aimtell.com/prod/api-campaign/256504/results?startDate=03/05/2017&endDate=03/09/2017
A binary file was returned
{
	"sent": {
		"03\/05\/2017": 0,
		"03\/06\/2017": 0,
		"03\/07\/2017": 0,
		"03\/08\/2017": 0,
		"03\/09\/2017": 1
	},
	"delivered": {
		"03\/05\/2017": 0,
		"03\/06\/2017": 0,
		"03\/07\/2017": 0,
		"03\/08\/2017": 0,
		"03\/09\/2017": 1
	},
	"bounced": {
		"03\/05\/2017": 0,
		"03\/06\/2017": 0,
		"03\/07\/2017": 0,
		"03\/08\/2017": 0,
		"03\/09\/2017": 0
	},
	"clicked": {
		"03\/05\/2017": 0,
		"03\/06\/2017": 0,
		"03\/07\/2017": 0,
		"03\/08\/2017": 0,
		"03\/09\/2017": 1
	},
	"conversions": {
		"03\/05\/2017": 0,
		"03\/06\/2017": 0,
		"03\/07\/2017": 0,
		"03\/08\/2017": 0,
		"03\/09\/2017": 0
	}
}
{
    "result": "error",
    "message": "Please specify a valid auth_token."
}

Path Params

id
string
required

Campaign ID

Query Params

startDate
string

Date

endDate
string

Date

 
Suggest Edits

Send Push Notification

 

Header Auth

 Authentication is required for this endpoint.
posthttps://api.aimtell.com/prod/push/
curl -XPOST -H 'X-Authorization: AUTH_TOKEN' -H "Content-type: application/json" -d '{
    "idSite": "33",
    "title": "An Awesome Push",
    "body": "Looks pretty great.",
    "link" : "https://aimtell.com",
    "alias": "gender==male"
}' 'https://api.aimtell.com/prod/push'
A binary file was returned
{
  "result":"success",
  "count":11
}
{
    "result": "error",
    "message": "Please specify a valid auth_token."
}
{
    "result": "error",
    "message": "Error #136."
}

Body Params

idSite
int32
required

Site ID

title
string
required

Notification Title

body
string
required

Notification Body

link
string
required

Notification Link

uids
array of strings

Subscriber UIDS

segmentId
int32

Segment ID

alias
string

Alias of subcribers to send to (ie username==djswan)

customIcon
string

url of custom icon to use (recommended size: 250x250)

customImage
string

url of custom image to use (recommended size: 300x500)

 

There are several ways to send push notifications over the API.

Option 1) Send to Segment

Required Fields: title, body, link, segmentId
By specifying the segmentId we will automatically fetch all subscribers that match that segment, and send them the corresponding notification based on the title, body and link provided.

Option 2) Send to Alias

Required Fields: title, body, link, alias
By specifying the alias we will fetch the subscribers that match that alias. For instance, you may set the alias to be "age" = "30" and we will send your message to all users who are 30. This is a quicker way to target users without the need of creating a new segment. You may use standard operators for your alias such as > , >=, <, <=, !@, etc. View our alias documentation page for more4help.

Option 3) Send Push To Specific Subscribers Based on UIDS

Required Fields: title, body, link, uids
By specifying the subscriber uids we will send the notification to those subscribers.

curl -XPOST -H 'X-Authorization: AUTH_TOKEN' -H "Content-type: application/json" -d '{
    "idSite": "33",
    "title": "An Awesome Push",
    "body": "Looks pretty great.",
    "link" : "https://aimtell.com",
    "uids": "fgc123-123anch-g81bc-19ufj,1298dna-fdsn97-csd781-chasdh1"
}' 'https://api.aimtell.com/prod/push'
Suggest Edits

Get Notification Logs

 

Header Auth

 Authentication is required for this endpoint.
gethttps://api.aimtell.com/prod/log/notifications/id
curl -XGET -H 'X-Authorization: AUTH_TOKEN' 'https://api.aimtell.com/prod/log/notifications/33'
A binary file was returned
[
  {
    "id": 34080598,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "No More Hacks: Why Tired, Old, Bori",
    "body": "Israeli researchers studied 200 of the best ads in 1999. These were the top finalists a...",
    "link": "https://blog.kissmetrics.com/no-more-hacks/",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-03-06 10:32"
  },
  {
    "id": 34080597,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "No More Hacks: Why Tired, Old, Bori",
    "body": "Israeli researchers studied 200 of the best ads in 1999. These were the top finalists a...",
    "link": "https://blog.kissmetrics.com/no-more-hacks/",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-03-06 10:32"
  },
  {
    "id": 33961362,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 1,
    "campaignId": 260,
    "title": "A New Marketing Channel",
    "body": "An entirely new way to re-engage your website visitors!",
    "link": "https://aimtell.com",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-03-06 09:03"
  },
  {
    "id": 33961361,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 1,
    "campaignId": 260,
    "title": "A New Marketing Channel",
    "body": "An entirely new way to re-engage your website visitors!",
    "link": "https://aimtell.com",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-03-06 09:03"
  },
  {
    "id": 33934260,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 1,
    "campaignId": 260,
    "title": "A New Marketing Channel",
    "body": "An entirely new way to re-engage your website visitors!",
    "link": "https://aimtell.com",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-03-05 09:02"
  },
  {
    "id": 33934259,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 1,
    "campaignId": 260,
    "title": "A New Marketing Channel",
    "body": "An entirely new way to re-engage your website visitors!",
    "link": "https://aimtell.com",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-03-05 09:02"
  },
  {
    "id": 33909794,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 1,
    "campaignId": 260,
    "title": "A New Marketing Channel",
    "body": "An entirely new way to re-engage your website visitors!",
    "link": "https://aimtell.com",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-03-04 09:01"
  },
  {
    "id": 33909793,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 1,
    "campaignId": 260,
    "title": "A New Marketing Channel",
    "body": "An entirely new way to re-engage your website visitors!",
    "link": "https://aimtell.com",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-03-04 09:01"
  },
  {
    "id": 33831333,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "Stumped for Growth Ideas? Use Custo",
    "body": "Awful feeling, isn’t it? You’re struggling to find new opportunities to increase growth...",
    "link": "https://blog.kissmetrics.com/customer-data-to-drive-revenue/",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-03-03 11:05"
  },
  {
    "id": 33831332,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "Stumped for Growth Ideas? Use Custo",
    "body": "Awful feeling, isn’t it? You’re struggling to find new opportunities to increase growth...",
    "link": "https://blog.kissmetrics.com/customer-data-to-drive-revenue/",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-03-03 11:05"
  },
  {
    "id": 33458824,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 1,
    "campaignId": 260,
    "title": "A New Marketing Channel",
    "body": "An entirely new way to re-engage your website visitors!",
    "link": "https://aimtell.com",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-03-02 09:01"
  },
  {
    "id": 33458823,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 1,
    "campaignId": 260,
    "title": "A New Marketing Channel",
    "body": "An entirely new way to re-engage your website visitors!",
    "link": "https://aimtell.com",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-03-02 09:01"
  },
  {
    "id": 33250498,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "The New Customer Service Trend that",
    "body": "When it comes to customer service trends, most marketers and customer support teams gro...",
    "link": "https://blog.kissmetrics.com/new-customer-service-trend/",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-03-01 10:49"
  },
  {
    "id": 33250497,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "The New Customer Service Trend that",
    "body": "When it comes to customer service trends, most marketers and customer support teams gro...",
    "link": "https://blog.kissmetrics.com/new-customer-service-trend/",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-03-01 10:49"
  },
  {
    "id": 33091559,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "3 Unusual Tactics For Making Your T",
    "body": "I bet you’ve seen this sort of advice before… When using a testimonial, you should alwa...",
    "link": "https://blog.kissmetrics.com/making-testimonials-more-persuasive/",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-02-28 10:33"
  },
  {
    "id": 33091558,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "3 Unusual Tactics For Making Your T",
    "body": "I bet you’ve seen this sort of advice before… When using a testimonial, you should alwa...",
    "link": "https://blog.kissmetrics.com/making-testimonials-more-persuasive/",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-02-28 10:33"
  },
  {
    "id": 32816036,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "Thinker, Mover, Shaker, Spy: How On",
    "body": "The name Alex Karp may not mean much to you now — but it’s about to. That’s because Ale...",
    "link": "https://blog.kissmetrics.com/thinker-mover-shaker-spy/",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-02-27 10:20"
  },
  {
    "id": 32816035,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "Thinker, Mover, Shaker, Spy: How On",
    "body": "The name Alex Karp may not mean much to you now — but it’s about to. That’s because Ale...",
    "link": "https://blog.kissmetrics.com/thinker-mover-shaker-spy/",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-02-27 10:20"
  },
  {
    "id": 32368988,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "5 Tips to Creating an Unbeatable Fa",
    "body": "Are you sick and tired of losing money on Facebook Ads? Many advertisers just like you ...",
    "link": "https://blog.kissmetrics.com/unbeatable-facebook-ad-campaign/",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-02-24 10:32"
  },
  {
    "id": 32368987,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "5 Tips to Creating an Unbeatable Fa",
    "body": "Are you sick and tired of losing money on Facebook Ads? Many advertisers just like you ...",
    "link": "https://blog.kissmetrics.com/unbeatable-facebook-ad-campaign/",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-02-24 10:32"
  },
  {
    "id": 32021205,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "How to Boost Conversions With the R",
    "body": "Today’s marketers are inundated with data. To stay ahead of the competition, your SaaS ...",
    "link": "https://blog.kissmetrics.com/right-customer-insights/",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-02-23 11:20"
  },
  {
    "id": 32021203,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "How to Boost Conversions With the R",
    "body": "Today’s marketers are inundated with data. To stay ahead of the competition, your SaaS ...",
    "link": "https://blog.kissmetrics.com/right-customer-insights/",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-02-23 11:20"
  },
  {
    "id": 31687196,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "3 ‘Spammy’ Website Tricks that Can ",
    "body": "The marketing industry leads the way. Sure, other industries (eventually) catch on to s...",
    "link": "https://blog.kissmetrics.com/spammy-website-tricks/",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-02-22 10:24"
  },
  {
    "id": 31687195,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "3 ‘Spammy’ Website Tricks that Can ",
    "body": "The marketing industry leads the way. Sure, other industries (eventually) catch on to s...",
    "link": "https://blog.kissmetrics.com/spammy-website-tricks/",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-02-22 10:24"
  },
  {
    "id": 31177745,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "How Site Search is Killing Your Con",
    "body": "For many websites, an internal site search engine is a must-have. However, oftentimes i...",
    "link": "https://blog.kissmetrics.com/site-search-killing-your-conversion/",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-02-21 11:24"
  },
  {
    "id": 31177743,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "How Site Search is Killing Your Con",
    "body": "For many websites, an internal site search engine is a must-have. However, oftentimes i...",
    "link": "https://blog.kissmetrics.com/site-search-killing-your-conversion/",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-02-21 11:24"
  },
  {
    "id": 30019514,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "6 Advanced B2B Lead Conversion Trac",
    "body": "One of the more loaded questions we hear from execs at our SaaS company is, “How is Mar...",
    "link": "https://blog.kissmetrics.com/b2b-lead-tracking-methods/",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-02-17 11:02"
  },
  {
    "id": 30019513,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "6 Advanced B2B Lead Conversion Trac",
    "body": "One of the more loaded questions we hear from execs at our SaaS company is, “How is Mar...",
    "link": "https://blog.kissmetrics.com/b2b-lead-tracking-methods/",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-02-17 11:02"
  },
  {
    "id": 29722015,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "Tracking Offline Marketing Campaign",
    "body": "Forrester estimates that companies allocate about 30% of their marketing budget to onli...",
    "link": "https://blog.kissmetrics.com/tracking-offline-campaigns-with-kissmetrics/",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-02-16 13:11"
  },
  {
    "id": 29722014,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "Tracking Offline Marketing Campaign",
    "body": "Forrester estimates that companies allocate about 30% of their marketing budget to onli...",
    "link": "https://blog.kissmetrics.com/tracking-offline-campaigns-with-kissmetrics/",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-02-16 13:11"
  },
  {
    "id": 29263486,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "Where Does Analytics Fit Into Your ",
    "body": "Analytics is integral to refining the customer experience. Research shows that “90% of ...",
    "link": "https://blog.kissmetrics.com/analytics-fit-into-customer-experience/",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-02-15 10:20"
  },
  {
    "id": 29263484,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "Where Does Analytics Fit Into Your ",
    "body": "Analytics is integral to refining the customer experience. Research shows that “90% of ...",
    "link": "https://blog.kissmetrics.com/analytics-fit-into-customer-experience/",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-02-15 10:20"
  },
  {
    "id": 28850647,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "Why You Need to Measure Brand Equit",
    "body": "Before we get started, let’s get one thing straight: If the product or service your com...",
    "link": "https://blog.kissmetrics.com/measure-brand-equity/",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-02-14 12:01"
  },
  {
    "id": 28850646,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "Why You Need to Measure Brand Equit",
    "body": "Before we get started, let’s get one thing straight: If the product or service your com...",
    "link": "https://blog.kissmetrics.com/measure-brand-equity/",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-02-14 12:01"
  },
  {
    "id": 28260562,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "Analysis Paralysis: Using Google An",
    "body": "The best thing about Google Analytics is also the worst thing: there’s a massive amount...",
    "link": "https://blog.kissmetrics.com/google-analytics-inspiration/",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-02-13 09:46"
  },
  {
    "id": 28260561,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "Analysis Paralysis: Using Google An",
    "body": "The best thing about Google Analytics is also the worst thing: there’s a massive amount...",
    "link": "https://blog.kissmetrics.com/google-analytics-inspiration/",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-02-13 09:46"
  },
  {
    "id": 28069476,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "5 Online Marketing Tactics I Learne",
    "body": "As a co-founder of an eCommerce startup in a highly competitive industry, I quickly rea...",
    "link": "https://blog.kissmetrics.com/marketing-tactics-i-learned-from-previous-startup/",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-02-10 12:34"
  },
  {
    "id": 28069475,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "5 Online Marketing Tactics I Learne",
    "body": "As a co-founder of an eCommerce startup in a highly competitive industry, I quickly rea...",
    "link": "https://blog.kissmetrics.com/marketing-tactics-i-learned-from-previous-startup/",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-02-10 12:34"
  },
  {
    "id": 27583478,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "How to Recover From a Failed Produc",
    "body": "Launching a new product requires time, money, and a whole lot of elbow grease. When the...",
    "link": "https://blog.kissmetrics.com/recover-from-failed-product-launch/",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-02-09 11:42"
  },
  {
    "id": 27583477,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "How to Recover From a Failed Produc",
    "body": "Launching a new product requires time, money, and a whole lot of elbow grease. When the...",
    "link": "https://blog.kissmetrics.com/recover-from-failed-product-launch/",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-02-09 11:42"
  },
  {
    "id": 27326242,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "The Single Advertising Factor That’",
    "body": "When it comes to online advertising, no one is disputing that demographics are importan...",
    "link": "https://blog.kissmetrics.com/single-advertising-factor/",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-02-08 10:51"
  },
  {
    "id": 27326241,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "The Single Advertising Factor That’",
    "body": "When it comes to online advertising, no one is disputing that demographics are importan...",
    "link": "https://blog.kissmetrics.com/single-advertising-factor/",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-02-08 10:51"
  },
  {
    "id": 26923059,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "Here’s How I Built And Launched A S",
    "body": "About 6 months ago I decided that I was going to build a SaaS company from scratch. I h...",
    "link": "https://blog.kissmetrics.com/built-and-launched-a-saas-company/",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-02-07 11:25"
  },
  {
    "id": 26923058,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "Here’s How I Built And Launched A S",
    "body": "About 6 months ago I decided that I was going to build a SaaS company from scratch. I h...",
    "link": "https://blog.kissmetrics.com/built-and-launched-a-saas-company/",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-02-07 11:25"
  },
  {
    "id": 26616713,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "Covert Conversion Hacking: A Behind",
    "body": "You’ve seen the stats before. 1-2% conversion rates for websites. Which means 98-99% ai...",
    "link": "https://blog.kissmetrics.com/covert-conversion-hacking/",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-02-06 09:39"
  },
  {
    "id": 26616712,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "Covert Conversion Hacking: A Behind",
    "body": "You’ve seen the stats before. 1-2% conversion rates for websites. Which means 98-99% ai...",
    "link": "https://blog.kissmetrics.com/covert-conversion-hacking/",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-02-06 09:39"
  },
  {
    "id": 26289260,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "What to Do When Your Sales Conversi",
    "body": "Sales decreasing? Most companies experience a temporary slump during their existence. B...",
    "link": "https://blog.kissmetrics.com/when-sales-conversions-start-shrinking/",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-02-03 10:33"
  },
  {
    "id": 26289259,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "What to Do When Your Sales Conversi",
    "body": "Sales decreasing? Most companies experience a temporary slump during their existence. B...",
    "link": "https://blog.kissmetrics.com/when-sales-conversions-start-shrinking/",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-02-03 10:33"
  },
  {
    "id": 25941606,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "10 Disciplined Approaches to Google",
    "body": "We live in a world of digital data. We create it. We consume it. It’s everywhere. And i...",
    "link": "https://blog.kissmetrics.com/approaches-to-google-analytics/",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-02-01 10:06"
  },
  {
    "id": 25941604,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "10 Disciplined Approaches to Google",
    "body": "We live in a world of digital data. We create it. We consume it. It’s everywhere. And i...",
    "link": "https://blog.kissmetrics.com/approaches-to-google-analytics/",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-02-01 10:06"
  },
  {
    "id": 25813724,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "Online Content: Is Longer Really Be",
    "body": "Writing online content is something of a balancing act. For years, SEO experts have poi...",
    "link": "https://blog.kissmetrics.com/content-is-longer-really-better/",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-01-31 09:38"
  },
  {
    "id": 25813722,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "Online Content: Is Longer Really Be",
    "body": "Writing online content is something of a balancing act. For years, SEO experts have poi...",
    "link": "https://blog.kissmetrics.com/content-is-longer-really-better/",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-01-31 09:38"
  },
  {
    "id": 25581464,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "Your Customers Don’t Care About You",
    "body": "It’s true. Your customers don’t care about your product. Don’t worry, they don’t care a...",
    "link": "https://blog.kissmetrics.com/customers-dont-care-about-your-product/",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-01-30 10:02"
  },
  {
    "id": 25581463,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "Your Customers Don’t Care About You",
    "body": "It’s true. Your customers don’t care about your product. Don’t worry, they don’t care a...",
    "link": "https://blog.kissmetrics.com/customers-dont-care-about-your-product/",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-01-30 10:02"
  },
  {
    "id": 25331233,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "Do Your Tweets Deliver Revenue? Her",
    "body": "The average social media manager gets paid roughly $47,190. They tweet, post, share, li...",
    "link": "https://blog.kissmetrics.com/tweets-to-revenue/",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-01-27 11:35"
  },
  {
    "id": 25331231,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "Do Your Tweets Deliver Revenue? Her",
    "body": "The average social media manager gets paid roughly $47,190. They tweet, post, share, li...",
    "link": "https://blog.kissmetrics.com/tweets-to-revenue/",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-01-27 11:35"
  },
  {
    "id": 25201819,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "How to Evaluate the ROI of Branded ",
    "body": "In 2011, Google’s Zero Moment of Truth report struck fear into the hearts of marketers ...",
    "link": "https://blog.kissmetrics.com/roi-of-branded-content/",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-01-26 12:42"
  },
  {
    "id": 25201818,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "How to Evaluate the ROI of Branded ",
    "body": "In 2011, Google’s Zero Moment of Truth report struck fear into the hearts of marketers ...",
    "link": "https://blog.kissmetrics.com/roi-of-branded-content/",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-01-26 12:42"
  },
  {
    "id": 24958053,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "Low Conversion Rates? Your Copy Cou",
    "body": "We’ve heard the advice a thousand times: Your headline is the most important part. It’s...",
    "link": "https://blog.kissmetrics.com/low-conversion-your-copy/",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-01-25 10:16"
  },
  {
    "id": 24958051,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "Low Conversion Rates? Your Copy Cou",
    "body": "We’ve heard the advice a thousand times: Your headline is the most important part. It’s...",
    "link": "https://blog.kissmetrics.com/low-conversion-your-copy/",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-01-25 10:16"
  },
  {
    "id": 24852354,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "“Hey $FNAME” is Dead. Here’s How to",
    "body": "One third of marketers believe personalization will be the most important trend in the ...",
    "link": "https://blog.kissmetrics.com/personalize-marketing-in-2017/",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-01-24 10:30"
  },
  {
    "id": 24852352,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "“Hey $FNAME” is Dead. Here’s How to",
    "body": "One third of marketers believe personalization will be the most important trend in the ...",
    "link": "https://blog.kissmetrics.com/personalize-marketing-in-2017/",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-01-24 10:30"
  },
  {
    "id": 24543882,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "Which Marketing Channels are Worth ",
    "body": "It’s no secret that in 2017, like every year, marketers want to get the biggest ROI fro...",
    "link": "https://blog.kissmetrics.com/marketing-channels-2017/",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-01-23 10:43"
  },
  {
    "id": 24543881,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "Which Marketing Channels are Worth ",
    "body": "It’s no secret that in 2017, like every year, marketers want to get the biggest ROI fro...",
    "link": "https://blog.kissmetrics.com/marketing-channels-2017/",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-01-23 10:43"
  },
  {
    "id": 24123892,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "The Power of Direct Mail in the Dig",
    "body": "For digital marketers, it ain’t all sunshine and rainbows. There are serious challenges...",
    "link": "https://blog.kissmetrics.com/direct-mail-in-the-digital-age/",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-01-19 12:26"
  },
  {
    "id": 24123891,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "The Power of Direct Mail in the Dig",
    "body": "For digital marketers, it ain’t all sunshine and rainbows. There are serious challenges...",
    "link": "https://blog.kissmetrics.com/direct-mail-in-the-digital-age/",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-01-19 12:26"
  },
  {
    "id": 23658115,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "Is Google’s Knowledge Graph Secretl",
    "body": "When Google launched its Knowledge Graph back in 2012, it was hailed by users and marke...",
    "link": "https://blog.kissmetrics.com/knowledge-graph-damaging/",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-01-18 11:15"
  },
  {
    "id": 23658114,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "Is Google’s Knowledge Graph Secretl",
    "body": "When Google launched its Knowledge Graph back in 2012, it was hailed by users and marke...",
    "link": "https://blog.kissmetrics.com/knowledge-graph-damaging/",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-01-18 11:15"
  },
  {
    "id": 23219292,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "How to Select Hero Images that Boos",
    "body": "It takes just 50 milliseconds for users to form an opinion about a website. To put this...",
    "link": "https://blog.kissmetrics.com/hero-images-that-boost-conversions/",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-01-17 09:51"
  },
  {
    "id": 23219291,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "How to Select Hero Images that Boos",
    "body": "It takes just 50 milliseconds for users to form an opinion about a website. To put this...",
    "link": "https://blog.kissmetrics.com/hero-images-that-boost-conversions/",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-01-17 09:51"
  },
  {
    "id": 21642727,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "5 Ways To Boost Conversions With Dy",
    "body": "Tailoring the online experiences of customers to best fit their needs and preferences i...",
    "link": "https://blog.kissmetrics.com/boost-conversions-with-dynamic-content/",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-01-12 10:08"
  },
  {
    "id": 21642726,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "5 Ways To Boost Conversions With Dy",
    "body": "Tailoring the online experiences of customers to best fit their needs and preferences i...",
    "link": "https://blog.kissmetrics.com/boost-conversions-with-dynamic-content/",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-01-12 10:08"
  },
  {
    "id": 21401326,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "A Cheat Sheet to High-Converting Fa",
    "body": "An AdWords text ad looks exactly the same on mobile as it does on desktop. You don’t ha...",
    "link": "https://blog.kissmetrics.com/high-converting-facebook-ad/",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-01-11 09:41"
  },
  {
    "id": 21401325,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "A Cheat Sheet to High-Converting Fa",
    "body": "An AdWords text ad looks exactly the same on mobile as it does on desktop. You don’t ha...",
    "link": "https://blog.kissmetrics.com/high-converting-facebook-ad/",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-01-11 09:41"
  },
  {
    "id": 21122349,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "Don’t Split Test Your Pages Before ",
    "body": "When it comes to split testing, you’ve been doing great so far. You’ve got a great desi...",
    "link": "https://blog.kissmetrics.com/dont-split-test/",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-01-10 10:19"
  },
  {
    "id": 21122348,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "Don’t Split Test Your Pages Before ",
    "body": "When it comes to split testing, you’ve been doing great so far. You’ve got a great desi...",
    "link": "https://blog.kissmetrics.com/dont-split-test/",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-01-10 10:19"
  },
  {
    "id": 20655327,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "Attribution Modeling for Ecommerce:",
    "body": "I’m not going to lie to you: this can get very tricky. It’s so complex that many ecomme...",
    "link": "https://blog.kissmetrics.com/attribution-modeling-for-ecommerce/",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-01-09 09:43"
  },
  {
    "id": 20655326,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "Attribution Modeling for Ecommerce:",
    "body": "I’m not going to lie to you: this can get very tricky. It’s so complex that many ecomme...",
    "link": "https://blog.kissmetrics.com/attribution-modeling-for-ecommerce/",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-01-09 09:43"
  },
  {
    "id": 19779867,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "A Step-by-Step Guide to Using Googl",
    "body": "You’re already an SEO sensei. You’re a content creator, PPC pro, marketing maven, and a...",
    "link": "https://blog.kissmetrics.com/google-analytics-enhanced-ecommerce-features/",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-01-04 10:16"
  },
  {
    "id": 19779866,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "A Step-by-Step Guide to Using Googl",
    "body": "You’re already an SEO sensei. You’re a content creator, PPC pro, marketing maven, and a...",
    "link": "https://blog.kissmetrics.com/google-analytics-enhanced-ecommerce-features/",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-01-04 10:16"
  },
  {
    "id": 19622774,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "5 Surprising Marketing Predictions ",
    "body": "2016 has been an exciting year full of unexpected booms and busts in the marketing and ...",
    "link": "https://blog.kissmetrics.com/marketing-predictions-for-2017/",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2017-01-03 10:40"
  },
  {
    "id": 19622773,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "5 Surprising Marketing Predictions ",
    "body": "2016 has been an exciting year full of unexpected booms and busts in the marketing and ...",
    "link": "https://blog.kissmetrics.com/marketing-predictions-for-2017/",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2017-01-03 10:40"
  },
  {
    "id": 18637624,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "4 Design Terms Every Marketer Needs",
    "body": "The transition from text-based to visual marketing is already well underway, as custome...",
    "link": "https://blog.kissmetrics.com/design-terms-marketer-needs-to-know/",
    "subscriber_uid": "ef0aefee2751",
    "clicked": 0,
    "createdAt": "2016-12-28 11:08"
  },
  {
    "id": 18637623,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 4,
    "campaignId": 130,
    "title": "4 Design Terms Every Marketer Needs",
    "body": "The transition from text-based to visual marketing is already well underway, as custome...",
    "link": "https://blog.kissmetrics.com/design-terms-marketer-needs-to-know/",
    "subscriber_uid": "ddaaa3f43dc3",
    "clicked": 0,
    "createdAt": "2016-12-28 11:08"
  },
  {
    "id": 3575,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 1,
    "campaignId": 259,
    "title": "Welcome to Aimtell!",
    "body": "Got questions? Check out our knowledge base.",
    "link": "https://kb.aimtell.com",
    "subscriber_uid": "530de45d4f60",
    "clicked": 0,
    "createdAt": "2015-12-28 09:54"
  },
  {
    "id": 3574,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 1,
    "campaignId": 259,
    "title": "Welcome to Aimtell!",
    "body": "Got questions? Check out our knowledge base.",
    "link": "https://kb.aimtell.com",
    "subscriber_uid": "7584af350185",
    "clicked": 0,
    "createdAt": "2015-12-28 09:54"
  },
  {
    "id": 3573,
    "uid": "76cedd11b19e",
    "idSite": 179,
    "type": 1,
    "campaignId": 259,
    "title": "Welcome to Aimtell!",
    "body": "Got questions? Check out our knowledge base.",
    "link": "https://kb.aimtell.com",
    "subscriber_uid": "75d29d3ba7cb",
    "clicked": 0,
    "createdAt": "2015-12-28 09:54"
  }
]
{
    "result": "error",
    "message": "Please specify a valid auth_token."
}

Path Params

id
string
required

Site ID

Query Params

filter
string

Filter

limit
string

Limit number of results

skip
string

Skip offset

 
Suggest Edits

Get Attributes Logs

 

Header Auth

 Authentication is required for this endpoint.
gethttps://api.aimtell.com/prod/log/attributes/id
curl -XGET -H 'X-Authorization: AUTH_TOKEN' 'https://api.aimtell.com/prod/log/attributes/1'
A binary file was returned
[
  {
    "id": 12369,
    "owner_uid": "76cedd11b19e",
    "idSite": 179,
    "subscriber_uid": "ef0aefee2751",
    "attribute": "age",
    "value": "66",
    "createdAt": "2015-12-28 09:54",
    "updatedAt": null
  },
  {
    "id": 12370,
    "owner_uid": "76cedd11b19e",
    "idSite": 179,
    "subscriber_uid": "ef0aefee2751",
    "attribute": "gender",
    "value": "male",
    "createdAt": "2015-12-28 09:54",
    "updatedAt": null
  },
  {
    "id": 12372,
    "owner_uid": "76cedd11b19e",
    "idSite": 179,
    "subscriber_uid": "ddaaa3f43dc3",
    "attribute": "age",
    "value": "28",
    "createdAt": "2015-12-28 09:54",
    "updatedAt": null
  },
  {
    "id": 12373,
    "owner_uid": "76cedd11b19e",
    "idSite": 179,
    "subscriber_uid": "ddaaa3f43dc3",
    "attribute": "gender",
    "value": "male",
    "createdAt": "2015-12-28 09:54",
    "updatedAt": null
  },
  {
    "id": 12375,
    "owner_uid": "76cedd11b19e",
    "idSite": 179,
    "subscriber_uid": "75d29d3ba7cb",
    "attribute": "age",
    "value": "40",
    "createdAt": "2015-12-28 09:54",
    "updatedAt": null
  },
  {
    "id": 12376,
    "owner_uid": "76cedd11b19e",
    "idSite": 179,
    "subscriber_uid": "75d29d3ba7cb",
    "attribute": "gender",
    "value": "male",
    "createdAt": "2015-12-28 09:54",
    "updatedAt": null
  },
  {
    "id": 12378,
    "owner_uid": "76cedd11b19e",
    "idSite": 179,
    "subscriber_uid": "7584af350185",
    "attribute": "age",
    "value": "28",
    "createdAt": "2015-12-28 09:54",
    "updatedAt": null
  },
  {
    "id": 12379,
    "owner_uid": "76cedd11b19e",
    "idSite": 179,
    "subscriber_uid": "7584af350185",
    "attribute": "gender",
    "value": "male",
    "createdAt": "2015-12-28 09:54",
    "updatedAt": null
  },
  {
    "id": 12381,
    "owner_uid": "76cedd11b19e",
    "idSite": 179,
    "subscriber_uid": "530de45d4f60",
    "attribute": "age",
    "value": "40",
    "createdAt": "2015-12-28 09:54",
    "updatedAt": null
  },
  {
    "id": 12382,
    "owner_uid": "76cedd11b19e",
    "idSite": 179,
    "subscriber_uid": "530de45d4f60",
    "attribute": "gender",
    "value": "male",
    "createdAt": "2015-12-28 09:54",
    "updatedAt": null
  }
]
{
    "result": "error",
    "message": "Please specify a valid auth_token."
}

Path Params

id
string
required

Site ID

Query Params

filter
string

Filter

limit
string

Limit number of results to return

skip
string

Skip offset

 
Suggest Edits

Get Pageview Logs

 

Header Auth

 Authentication is required for this endpoint.
gethttps://api.aimtell.com/prod/log/pageviews/id
curl -XGET -H 'X-Authorization: AUTH_TOKEN' 'https://api.aimtell.com/prod/log/pageviews/1'
A binary file was returned
[
  {
    "id": 22931,
    "id_visit": 7176,
    "idSite": 179,
    "subscriber_uid": "530de45d4f60",
    "page_title": "Sample Page #2",
    "page_url": "https://demo.aimtell.com/page2",
    "createdAt": "2015-12-28 09:54"
  },
  {
    "id": 22930,
    "id_visit": 7175,
    "idSite": 179,
    "subscriber_uid": "7584af350185",
    "page_title": "Sample Page #2",
    "page_url": "https://demo.aimtell.com/page2",
    "createdAt": "2015-12-28 09:54"
  },
  {
    "id": 22929,
    "id_visit": 7174,
    "idSite": 179,
    "subscriber_uid": "75d29d3ba7cb",
    "page_title": "Sample Page #2",
    "page_url": "https://demo.aimtell.com/page2",
    "createdAt": "2015-12-28 09:54"
  },
  {
    "id": 22928,
    "id_visit": 7173,
    "idSite": 179,
    "subscriber_uid": "ddaaa3f43dc3",
    "page_title": "Sample Page #1",
    "page_url": "https://demo.aimtell.com/page1",
    "createdAt": "2015-12-28 09:54"
  },
  {
    "id": 22927,
    "id_visit": 7172,
    "idSite": 179,
    "subscriber_uid": "ef0aefee2751",
    "page_title": "Sample Page #1",
    "page_url": "https://demo.aimtell.com/page1",
    "createdAt": "2015-12-28 09:54"
  }
]
{
    "result": "error",
    "message": "Please specify a valid auth_token."
}

Path Params

id
string
required

Site ID

Query Params

filter
string

Filter

limit
string

Limit number of results to return

skip
string

Skip offset