There's a new version of the HubSpot API

As of November 30, 2022, HubSpot API keys are no longer a supported authentication method for accessing HubSpot APIs. Instead, you should use a private app access token or OAuth to authenticate API calls. Learn more about this change and how to migrate an API key integration to use a private app instead.

Get campaign data for a given campaign

Last updated May 15, 2023

GET /email/public/v1/campaigns/:campaign_id

Method Details

HTTP Methods:


Response Format:


Requires Authentication?


Rate Limited?






Required Scope:


This endpoint provides a way to query data associated with a given email campaign.

To find the campaign_id that corresponds to a specific email:

  • In your HubSpot account, navigate to Marketing > Email.
  • Locate the sent email you want to retrieve campaign data for, then click the email name.
  • Under the Sent date, click See details.
  • In the right panel, the campaign_id will be listed under Internal HubSpot ID.


The campaign_id will also be provided within the allEmailCampaignIds field in the response of the Marketing Email Statistics API.

Required Parameters How to use Description
OAuth access token or private app access token Authorization: Bearer {token} header Used to authenticate the request. Please see this page for more details about authentication.
Campaign ID /:campaign_id
 Used in the request URL
The Internal HubSpot ID of the email that you want to get the details for. Consult the section above this table to learn how to locate this ID. 

Example URL: