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} \
  --header 'Authorization: Bearer <token>'
{
  "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>"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

campaign_id
integer
required

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

Response

200
application/json

Campaign data retrieved successfully

The response is of type object.