Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
api-email-reports [2015/03/04 11:48]
dan
api-email-reports [2017/07/26 08:24] (current)
Line 7: Line 7:
 This Endpoint is used to get the Emails KPI, you can also restrict it to a specific Iteration of the Email. This Endpoint is used to get the Emails KPI, you can also restrict it to a specific Iteration of the Email.
  
-|URI| <​nowiki>​https://​api.sentoriapp.com/​v2.0/​email/​kpi/​EmailExternalID/</​nowiki>​| +==== Endpoint ==== 
-|URI| <​nowiki>​https://​api.sentoriapp.com/​v2.0/​email/​kpi/​EmailExternalID/​Iteration/</​nowiki>​|+|URI| <​nowiki>​https://​api.sentoriapp.com/​v2.0/​email/​kpi/​{EmailExternalID}/</​nowiki>​| 
 +|URI| <​nowiki>​https://​api.sentoriapp.com/​v2.0/​email/​kpi/​{EmailExternalID}/{Iteration}/</​nowiki>​|
 |Method| GET | |Method| GET |
  
Line 45: Line 46:
 This Endpoint is used to get the Contacts who complained that the Email was spam. This Endpoint is used to get the Contacts who complained that the Email was spam.
  
-|URI| <​nowiki>​https://​api.sentoriapp.com/​v2.0/​email/​abuse/​EmailExternalID/</​nowiki>​|+==== Endpoint ==== 
 +|URI| <​nowiki>​https://​api.sentoriapp.com/​v2.0/​email/​abuse/​{EmailExternalID}/</​nowiki>​|
 |Method| GET | |Method| GET |
  
Line 51: Line 53:
  
 The response is a JSON array containing Email Addresses of Contacts and the time of the Abuse Complaint. The response is a JSON array containing Email Addresses of Contacts and the time of the Abuse Complaint.
 +
 +|Field|Type|Description|
 +|EmailAddress|string|Email Address of the Contact who reported this Email as spam.|
 +|Timestamp|datetime|Time that the Contact complained about this Email.|
  
 |Example|<​code javascript>​[{ |Example|<​code javascript>​[{
Line 61: Line 67:
 This Endpoint is used to get the Contacts whose Email Addresses bounced when they where sent the Email. It can be restricted to a specific Iteration. This Endpoint is used to get the Contacts whose Email Addresses bounced when they where sent the Email. It can be restricted to a specific Iteration.
  
-|URI| <​nowiki>​https://​api.sentoriapp.com/​v2.0/​email/​bounced/​EmailExternalID/</​nowiki>​| +==== Endpoint ==== 
-|URI| <​nowiki>​https://​api.sentoriapp.com/​v2.0/​email/​bounced/​EmailExternalID/​Iteration/</​nowiki>​|+|URI| <​nowiki>​https://​api.sentoriapp.com/​v2.0/​email/​bounced/​{EmailExternalID}/</​nowiki>​| 
 +|URI| <​nowiki>​https://​api.sentoriapp.com/​v2.0/​email/​bounced/​{EmailExternalID}/{Iteration}/</​nowiki>​|
 |Method| GET | |Method| GET |
  
Line 68: Line 75:
  
 The response is a JSON array containing Email Addresses of Contacts and the time of the bounce. The response is a JSON array containing Email Addresses of Contacts and the time of the bounce.
 +
 +|Field|Type|Description|
 +|EmailAddress|string|Email Address of the Contact who bounced.|
 +|Timestamp|datetime|Time that the Email bounced.|
  
 |Example|<​code javascript>​[{ |Example|<​code javascript>​[{
Line 78: Line 89:
 This Endpoint is used to get the Contacts who clicked at least one Link in the Email. It can be restricted to a specific Iteration. This Endpoint is used to get the Contacts who clicked at least one Link in the Email. It can be restricted to a specific Iteration.
  
-|URI| <​nowiki>​https://​api.sentoriapp.com/​v2.0/​email/​clicks/​EmailExternalID/</​nowiki>​| +==== Endpoint ==== 
-|URI| <​nowiki>​https://​api.sentoriapp.com/​v2.0/​email/​clicks/​EmailExternalID/​Iteration/</​nowiki>​|+|URI| <​nowiki>​https://​api.sentoriapp.com/​v2.0/​email/​clicks/​{EmailExternalID}/</​nowiki>​| 
 +|URI| <​nowiki>​https://​api.sentoriapp.com/​v2.0/​email/​clicks/​{EmailExternalID}/{Iteration}/</​nowiki>​|
 |Method| GET | |Method| GET |
  
Line 85: Line 97:
  
 The response is a JSON array containing Email Addresses of Contacts and the time of the first click. The response is a JSON array containing Email Addresses of Contacts and the time of the first click.
 +
 +|Field|Type|Description|
 +|EmailAddress|string|Email Address of the Contact who clicked.|
 +|Timestamp|datetime|Time of the click.|
  
 |Example|<​code javascript>​[{ |Example|<​code javascript>​[{
Line 90: Line 106:
     "​Timestamp":"​2015-01-01T00:​00:​00.000"​     "​Timestamp":"​2015-01-01T00:​00:​00.000"​
 }]</​code>​| }]</​code>​|
 +
 +
 +===== Link Clickers =====
 +
 +This Endpoint is used to get details of Contacts who clicked through to a particular link in an Email and includes when each made their first click of that link.
 +
 +If the exact same link URL appears multiple times within the Email, for example a link to your homepage is set on your logo as well as in your footer, then they'​ll be considered the same link.
 +
 +
 +==== Endpoint ====
 +
 +|URI| <​nowiki>​https://​api.sentoriapp.com/​v2.0/​email/​linkclickers/​{EmailExternalID}/​{Base64EncodedUrl}/</​nowiki>​|
 +|URI| <​nowiki>​https://​api.sentoriapp.com/​v2.0/​email/​linkclickers/​{EmailExternalID}/​{Base64EncodedUrl}/​{Iteration}/</​nowiki>​|
 +|Method| GET |
 +
 +
 +Examples:
 +
 +<​nowiki>​GET https://​api.sentoriapp.com/​v2.0/​email/​linkclickers/​ABCD1234/​aHR0cDovL215d2Vic2l0ZS5jb20v/</​nowiki>​
 +
 +<​nowiki>​GET https://​api.sentoriapp.com/​v2.0/​email/​linkclickers/​ABCD1234/​aHR0cDovL215d2Vic2l0ZS5jb20v/​3</​nowiki>​
 +
 +
 +==== Request ====
 +
 +|EmailExternalID|The External ID of the Email, e.g. "​ABCD1234"​. ​ Found by going to Edit Properties from the cog menu of an Email.|
 +|Base64EncodedUrl|The URL of the link encoded using [[https://​en.wikipedia.org/​wiki/​Base64|base64]]. ​ "<​nowiki>​http://​mywebsite.com/</​nowiki>"​ would therefore be "​aHR0cDovL215d2Vic2l0ZS5jb20v"​.|
 +|Iteration|Optional. ​ If provided, restricts Clicks to those made in a particular send of the Email.|
 +
 +
 +==== Response ====
 +
 +The response is a JSON array containing Contacts'​ SystemIDs, Email Addresses and the date and time of their first click of the link.
 +
 +|Field|Type|Description|
 +|SystemID|integer|Sentori SystemID of the Contact.|
 +|EmailAddress|string|Email Address of the Contact.|
 +|FirstClick|datetime|Date and time (in UTC) when the Contact first clicked the link.|
 +
 +|Example|<​code javascript>​
 +[
 + {
 + "​SystemID"​ : 1,
 + "​EmailAddress"​ : "​contact1@sentori.co.uk",​
 + "​FirstClick"​ : "​2013-02-21T17:​11:​57.53"​
 + },
 + {
 + "​SystemID"​ : 2,
 + "​EmailAddress"​ : "​contact2@sentori.co.uk",​
 + "​FirstClick"​ : "​2013-02-21T17:​11:​57.53"​
 + }
 +]
 +</​code>​|
 +
  
 ===== Opens ===== ===== Opens =====
Line 95: Line 165:
 This Endpoint is used to get the Contacts who have opened the Email. It can be restricted to a specific Iteration. This Endpoint is used to get the Contacts who have opened the Email. It can be restricted to a specific Iteration.
  
-|URI| <​nowiki>​https://​api.sentoriapp.com/​v2.0/​email/​opens/​EmailExternalID/</​nowiki>​| +==== Endpoint ==== 
-|URI| <​nowiki>​https://​api.sentoriapp.com/​v2.0/​email/​opens/​EmailExternalID/​Iteration/</​nowiki>​|+|URI| <​nowiki>​https://​api.sentoriapp.com/​v2.0/​email/​opens/​{EmailExternalID}/</​nowiki>​| 
 +|URI| <​nowiki>​https://​api.sentoriapp.com/​v2.0/​email/​opens/​{EmailExternalID}/{Iteration}/</​nowiki>​|
 |Method| GET | |Method| GET |
  
Line 102: Line 173:
  
 The response is a JSON array containing Email Addresses of Contacts and the time of the first open. The response is a JSON array containing Email Addresses of Contacts and the time of the first open.
 +
 +|Field|Type|Description|
 +|EmailAddress|string|Email Address of the Contact who opened the Email.|
 +|Timestamp|datetime|Time of the open.|
  
 |Example|<​code javascript>​[{ |Example|<​code javascript>​[{
Line 113: Line 188:
 This Endpoint is used to get the Contacts who have shared the Email on at least one social network. It can be restricted to a specific Iteration. This Endpoint is used to get the Contacts who have shared the Email on at least one social network. It can be restricted to a specific Iteration.
  
-|URI| <​nowiki>​https://​api.sentoriapp.com/​v2.0/​email/​socialsharers/​EmailExternalID/</​nowiki>​| +==== Endpoint ==== 
-|URI| <​nowiki>​https://​api.sentoriapp.com/​v2.0/​email/​socialsharers/​EmailExternalID/​Iteration/</​nowiki>​|+|URI| <​nowiki>​https://​api.sentoriapp.com/​v2.0/​email/​socialsharers/​{EmailExternalID}/</​nowiki>​| 
 +|URI| <​nowiki>​https://​api.sentoriapp.com/​v2.0/​email/​socialsharers/​{EmailExternalID}/{Iteration}/</​nowiki>​|
 |Method| GET | |Method| GET |
  
Line 120: Line 196:
  
 The response is a JSON array containing Email Addresses of Contacts and the time of the first social share. The response is a JSON array containing Email Addresses of Contacts and the time of the first social share.
 +
 +|Field|Type|Description|
 +|EmailAddress|string|Email Address of the Contact who shared the Email on a Social Network.|
 +|Timestamp|datetime|Time of the share.|
  
 |Example|<​code javascript>​[{ |Example|<​code javascript>​[{
Line 130: Line 210:
 This Endpoint is used to get the Contacts who have unsubscribed from Emails using the unsubscribe Link in this Email. It can be restricted to a specific Iteration. This Endpoint is used to get the Contacts who have unsubscribed from Emails using the unsubscribe Link in this Email. It can be restricted to a specific Iteration.
  
-|URI| <​nowiki>​https://​api.sentoriapp.com/​v2.0/​email/​unsubscribes/​EmailExternalID/</​nowiki>​| +==== Endpoint ==== 
-|URI| <​nowiki>​https://​api.sentoriapp.com/​v2.0/​email/​unsubscribes/​EmailExternalID/​Iteration/</​nowiki>​|+|URI| <​nowiki>​https://​api.sentoriapp.com/​v2.0/​email/​unsubscribes/​{EmailExternalID}/</​nowiki>​| 
 +|URI| <​nowiki>​https://​api.sentoriapp.com/​v2.0/​email/​unsubscribes/​{EmailExternalID}/{Iteration}/</​nowiki>​|
 |Method| GET | |Method| GET |
  
Line 137: Line 218:
  
 The response is a JSON array containing Email Addresses of Contacts and the time of the unsubscribe. The response is a JSON array containing Email Addresses of Contacts and the time of the unsubscribe.
 +
 +|Field|Type|Description|
 +|EmailAddress|string|Email Address of the Contact who unsubscribed.|
 +|Timestamp|datetime|Time of the unsubscribe.|
  
 |Example|<​code javascript>​[{ |Example|<​code javascript>​[{