Skip to content

Campaigns performance

Get an export of your campaigns performance

Endpoint URI

1
GET https://services.ownpage.fr/v1/newsletters/stats/export?startDate=START_DATE&endDate=END_DATE

Headers

  • X-Ownpage-Client-Token : a valid token

Query string parameters

  • START_DATE: start date of the export
  • END_DATE: end date of the export

Specify dates using format YYYY-MM-DD (where YYYY is the year, MM is the month, DD is the day).

Response (JSON)

The response is an object with the following fields :

  • token: Token used to retrieve the export
  • filename: Name of the export file

The export will be available from the URL https://services.ownpage.fr/v1/export/TOKEN/FILENAME for 24 hours.

Example

Request to get all the lists from our account

1
curl -H "X-Ownpage-Client-Token:TOKEN" https://services.ownpage.fr/v1/newsletters/stats/export?startDate=2023-01-01&endDate=2023-01-31

Response example:

1
2
3
4
{
    "token": "abcd",
    "filename": "my-export.csv"
}

The URL of the export: https://services.ownpage.fr/v1/export/abcd/my-export.csv

Comments