API Guide







Get Analytics Campaigns

This API provides an aggregate view of recent campaigns within a specific date range.

Required headers: X-API-KEY
Optional headers: ACCEPT (json, xml, csv, serialized)
Method: GET

Endpoint URL:

https://api.250ok.com/api/1.0/analytics/campaigns

Sample Output:

[
    {  
        "campaign_id":00001,
        "subject":"Sale: 10% off all items!",
        "opens":4367,
        "created":"2017-07-21 15:51:32",
        "first_tracked":"2017-07-21 19:50:37"
    },
    {  
        "campaign_id":00002,
        "subject":"Spring into savings",
        "opens":4156,
        "created":"2017-08-04 17:40:17",
        "first_tracked":"2017-08-04 21:40:16"
    },
]

Parameters

Parameter Description Acceptable Values Required
startdate Includes activity after the specified date. If unspecified, will default to 30 days prior. yyyy-mm-dd N
enddate Includes activity detected before the specified. If unspecified, will default to the current date. yyyy-mm-dd N

Error Responses

Description Code Cause
No results found. 404 We couldn't find any results matching your criteria.
Invalid start date format. 404 The start date provided was submitted in an invalid format.
Invalid end date format. 404 The end date provided was submitted in an invalid format.