Getting Started

The ContactMonkey Analytics API is a RESTful API that allows you to pull your email analytics across the entire app for analysis in data visualization tools such as Power BI and Tableau.

🚧

This is a beta release of our Analytics API. You can expect improvements and changes in the near future.

Regions

The ContactMonkey Analytics API is divided based on region. The base urls are as follows:

  • US: https://www.contactmonkey.com
  • EU: https://www.contactmonkeyeu.com
  • CA: https://www.contactmonkey.ca
  • AU: https://www.contactmonkey.au

Authentication

The ContactMonkey Analytics API uses API Keys to authenticate requests.

Authentication to the API is done by Bearer Token. You will need to include the bearer_auth header in your request. The token can be generated in the ContactMonkey web app, under Settings > Integrations > Analytics API.

Deleting your API key in the ContactMonkey web app will require you to re-authenticate the integration.

πŸ“˜

Your API keys are unique to your company. Make sure to keep them secure and do not share them outside of your organization.

Pagination

Endpoints that return a list of items are paginated to make result sets easier to manage. You can navigate through pages of data using the page and per_page query parameters. If you don't supply these parameters, default values are applied.

  • page (integer, optional) – The page number to retrieve. Defaults to 1.
  • per_page (integer, optional) – The number of items per page. Defaults to 10. Maximum is 100.

Example Request

GET /resources?page=2&per_page=50

Example Response

{
  "data": [
    { "id": 101, "name": "Item 101" },
    { "id": 102, "name": "Item 102" }
    // ...
  ],
  "meta": {
    "page": 2,
    "per_page": 50,
    "total_pages": 10,
    "total_entries": 500
  }
}

If not specified, results start at page 1 with 10 items per page.

The Meta Object

The meta object is included in responses that return a list of items. It provides information about the pagination state, allowing you to navigate through the entire dataset.

KeyTypeDescription
pageIntegerThe current page number being returned.
per_pageIntegerThe number of items returned per page.
total_entriesIntegerThe total number of items available across all pages.
total_pagesIntegerThe total number of pages available.

What’s Next

Next let's read the documentation on getting Emails via an API call.