https://<subdomain>.sendsmaily.net/api/contact.php


Parameters

All parameters must be URL encoded.


Parameter

Value

email

Email address. Must be exact (wildcard does not work). Required.


Response data
Each response contains at least these fields, even if they are empty.


Parameter

Value

email

Requested email address.

is_unsubscribed

Subscribers subscription status. 0 - subscribed, emails will be delivered; 1 - unsubscribed, subscriber has been removed from all lists.

last_response_code

Response code of the last failed email. Values are described under Delivery response codes.

last_response_at

Date of the last failed email.

created_at

Date and time when subscriber was added to Smaily.

modified_at

Date and time when subscriber’s data was updated.

last_open_at

Latest date and time when subscriber opened an email.

total_opens

Total number of email opens.

last_click_at

Latest date and time when subscriber clicked a trackable link in an email.

total_clicks

Total number of clicks made.


Example query:


Load subscriber data

Query to get the data and status of tugi@smaily.com email address.

  

$username = 'YOUR_USERNAME';
$password = 'YOUR_PASSWORD';
$location = 'https://<subdomain>.sendsmaily.net/api/contact.php';
$query = 'email=tugi%40smaily.com';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $location . '?' . $query);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERPWD, "$username:$password");

$result = curl_exec($ch);
curl_close($ch);

 

Successful results of the query are for example:

  

{
  "email": "tugi@smaily.com",
  "is_unsubscribed": 0,
  "created_at": "2014-04-23 10:32:55",
  "modified_at": "2015-03-22 19:22:31",
  "last_open_at": "0000-00-00 00:00:00",
  "total_opens": "0",
  "last_click_at": "0000-00-00 00:00:00",
  "total_clicks": "0",
  "lisa_vaartus_1": "jah",
  "kuuluvus_1": "ei",
  ...
}

 

See also other possible results from Possible results.