Skip to main content
GET
/
email
/
public
/
v1
/
campaigns
/
{campaign_id}
Get campaign data for a given campaign
curl --request GET \
  --url https://api.hubapi.com/email/public/v1/campaigns/{campaign_id}
{
  "appId": 123,
  "appName": "<string>",
  "contentId": 123,
  "counters": {
    "delivered": 123,
    "open": 123,
    "processed": 123,
    "sent": 123
  },
  "id": 123,
  "name": "<string>",
  "numIncluded": 123,
  "numQueued": 123,
  "subType": "<string>",
  "subject": "<string>",
  "type": "<string>"
}

Required Scopes

This API requires one of the following scopes:
  • content

Path Parameters

campaign_id
integer
required

The Internal HubSpot ID of the email that you want to get the details for.

Response

Campaign data retrieved successfully

appId
integer
required

The application ID

appName
string
required

The application name

contentId
integer
required

The content ID

counters
object
required
id
integer
required

The campaign ID

name
string
required

The campaign name

numIncluded
integer
required

Number of recipients included

numQueued
integer
required

Number of recipients queued

subType
string
required

The campaign sub-type

subject
string
required

The email subject

type
string
required

The campaign type