Skip to content

Latest commit



76 lines (58 loc) · 2.26 KB

File metadata and controls

76 lines (58 loc) · 2.26 KB

REST API: GET abuses (Publisher)

Each emailing is tracked, which allows Copernica to provide you with emailing statistics. Abuses are one of these statistics. You can retrieve all abuses by sending an HTTP GET call to the following URL:

This method also support the use of the fields parameter for the timestamp field.

Returned fields

The method returns a JSON object with several abuses under the 'data' field. For each abuse the following information is available:

  • ID: ID of the abuse.
  • timestamp: Timestamp of the abuse.
  • recognized_as: What the abuse was recognized as ('arf', 'JMR', 'none').
  • feedback_type: The type of feedback for the abuse ('abuse', 'dkim', 'fraud', 'miscategorized', 'not-spam', 'opt-out' or 'other')
  • arf_version: Version of the ARF protocol used for this abuse.
  • details: The abuse report (if available).
  • emailing: ID of the emailing.
  • destination: ID of the destination.
  • profile: ID of the profile.
  • subprofile: ID of the subprofile (if applicable)

JSON example

A single abuse might look something like this:

   "timestamp":"2009-12-01 10:00:00",

PHP example

This script demonstrates how to use this API method:

// dependencies

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

// set the period
$parameters = array(
    'fields'    =>  array('timestamp>2019-01-01', 'timestamp<2019-02-01')

// execute the call
print_r($api->get("publisher/abuses/", $parameters));

This example requires the REST API class.

More information