Pular para o conteúdo principal
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>"
}

Parâmetros de caminho

campaign_id
integer
obrigatório

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

Resposta

Campaign data retrieved successfully

appId
integer
obrigatório

The application ID

appName
string
obrigatório

The application name

contentId
integer
obrigatório

The content ID

counters
object
obrigatório
id
integer
obrigatório

The campaign ID

name
string
obrigatório

The campaign name

numIncluded
integer
obrigatório

Number of recipients included

numQueued
integer
obrigatório

Number of recipients queued

subType
string
obrigatório

The campaign sub-type

subject
string
obrigatório

The email subject

type
string
obrigatório

The campaign type

Last modified on April 14, 2026