curl --request GET \
--url https://api.hubapi.com/marketing/v3/campaigns/{campaignGuid}/reports/contacts/{contactType} \
--header 'Authorization: Bearer <token>'{
"results": [
{
"id": "<string>"
}
],
"paging": {
"next": {
"after": "<string>",
"link": "<string>"
}
}
}Fetch the list of contact IDs for the specified campaign and contact type
curl --request GET \
--url https://api.hubapi.com/marketing/v3/campaigns/{campaignGuid}/reports/contacts/{contactType} \
--header 'Authorization: Bearer <token>'{
"results": [
{
"id": "<string>"
}
],
"paging": {
"next": {
"after": "<string>",
"link": "<string>"
}
}
}Supported products
Required Scopes
The access token received from the authorization server in the OAuth 2.0 flow.
The unique identifier of the campaign
The type of contact to filter the list
The paging cursor token of the last successfully read resource will be returned as the paging.next.after JSON property of a paged response containing more results.
The maximum number of results to display per page.
Was this page helpful?