There's a new version of the HubSpot API

Starting November 30, 2022, API keys will be sunset as an authentication method. 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 June 17, 2020

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

Method Details

HTTP Methods:

GET

Response Format:

json

Requires Authentication?

Yes

Rate Limited?

Yes

Headers

User-Agent

Products:

Marketing

Required Scope:

content

For a given campaign, return data associated with the campaign.

Note: If you're viewing the details for an email in HubSpot, the Internal HubSpot ID(s) would be the campaign_id(s) for the email. Since each campaign represents a specific send of an email, it's possible for a single email to have multiple Internal IDs/campaign_ids.

Required Parameters How to use Description
OAuth Access Token or API Key Authorization: Bearer {token} header
or hapikey={key} query parameter.
Used to authenticate the request. Please see this page for more details about authentication.

Example URL: https://api.hubapi.com/email/public/v1/campaigns/13054799?hapikey=demo