REST API v1: GET logfiles

Warning: You are viewing the documentation for the old REST API. We recommend using our latest version of the REST API.

Copernica keeps logfiles about several things such as clicks, opens, errors, accepted messages, etc. These logfiles can be downloaded with the API. By sending an HTTP GET request to the following URL you will get a list of all dates we have kept logfiles of.

https://api.copernica.com/v1/logfiles?access_token=xxxx

Returned fields

This method returns a JSON array of date strings. To download a logfile please see the links under "More information".

PHP Example

The following PHP script demonstrates how to use the API method:

// dependencies
require_once('copernica_rest_api.php');

// change this into your access token
$api = new CopernicaRestApi("your-access-token");

// do the call, and print result
print_r($api->get("logfiles"));

The example above requires the CopernicaRestApi class.

More information