Zum Hauptinhalt springen
GET
/
email
/
public
/
v1
/
campaigns
/
by-id
Get all campaign IDs for an account
curl --request GET \
  --url https://api.hubapi.com/email/public/v1/campaigns/by-id
{
  "hasMore": true,
  "offset": "<string>",
  "campaigns": [
    {
      "id": 123,
      "appId": 123,
      "appName": "<string>"
    }
  ]
}

Abfrageparameter

offset
string

A key representing which page of results you would like

limit
integer

Limit the maximum number of results you would like returned.

Antwort

Campaign IDs retrieved successfully

hasMore
boolean
erforderlich

Whether there are more results available

offset
string
erforderlich

Offset token for pagination

campaigns
object[]
erforderlich
Last modified on April 9, 2026