Version 1
Connector Overview: This page documents all 73 actions for the Hubspotmarketingconnector v1.
Asset (3)
PUT Add asset association
/marketing/v3/campaigns/{campaignGuid}/assets/{assetType}/{assetId}
Associate a specified asset with a campaign.
Important: Currently, only the following asset types can be associated and disassociated via the API: Forms, Static lists, External website pages
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
(Required) Unique identifier for the campaign, formatted as a UUID |
|
|
(Required) The type of asset
|
|
|
(Required) Id of the asset |
|
|
N/A |
|
|
N/A |
GET List assets
/marketing/v3/campaigns/{campaignGuid}/assets/{assetType}
This endpoint lists all assets of the campaign by asset type. The assetType parameter is required, and each request can only fetch assets of a single type.
Asset metrics can also be fetched along with the assets; they are available only if start and end dates are provided.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
A cursor for pagination. If provided, the results will start after the given cursor.
|
|
|
The maximum number of results to return.
|
|
|
Start date to fetch asset metrics, formatted as YYYY-MM-DD. This date is used to fetch the metrics associated with the assets for a specified period.
|
|
|
End date to fetch asset metrics, formatted as YYYY-MM-DD. This date is used to fetch the metrics associated with the assets for a specified period.
|
|
|
(Required) Unique identifier for the campaign, formatted as a UUID. |
|
|
(Required) The type of asset to fetch. |
|
|
N/A |
|
|
N/A |
DELETE Remove asset association
/marketing/v3/campaigns/{campaignGuid}/assets/{assetType}/{assetId}
Disassociate a specified asset from a campaign.
Important: Currently, only the following asset types can be associated and disassociated via the API: Forms, Static lists, External website pages
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
(Required) Unique identifier for the campaign, formatted as a UUID. |
|
|
(Required) The type of asset
|
|
|
(Required) Id of the asset |
|
|
N/A |
|
|
N/A |
Attendance Subscriber State Changes (2)
POST Record a subscriber state by contact email
/marketing/v3/marketing-events/attendance/{externalEventId}/{subscriberState}/email-create
Record a subscription state between multiple HubSpot contacts and a marketing event, using contact email addresses. If contact is not present it will be automatically created.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
The account id associated with the marketing event |
|
|
(Required) The id of the marketing event |
|
|
(Required) The new subscriber state for the HubSpot contacts and the specified marketing event. For example: 'register', 'attend' or 'cancel'. |
|
|
N/A |
|
|
N/A |
|
|
N/A |
POST Record a subscriber state by contact ids
/marketing/v3/marketing-events/attendance/{externalEventId}/{subscriberState}/create
Record a subscription state between multiple HubSpot contacts and a marketing event, using HubSpot contact ids.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
The account id associated with the marketing event |
|
|
(Required) The id of the marketing event |
|
|
(Required) The new subscriber state for the HubSpot contacts and the specified marketing event. For example: 'register', 'attend' or 'cancel'. |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Basic (10)
POST Create a campaign
/marketing/v3/campaigns
Create a campaign with the given properties and return the campaign object, including the campaignGuid and created properties.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
POST Create a marketing event
/marketing/v3/marketing-events/events
Creates a new marketing event in HubSpot
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Options (10)
|
Option Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
PUT Create or update a marketing event
/marketing/v3/marketing-events/events/{externalEventId}
Upsets a Marketing Event. If there is an existing Marketing event with the specified id, it will be updated; otherwise a new event will be created.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
(Required) The id of the marketing event to upsert |
|
|
N/A |
|
|
N/A |
Options (10)
|
Option Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
DELETE Delete a marketing event
/marketing/v3/marketing-events/events/{externalEventId}
Deletes an existing Marketing Event with the specified id, if one exists.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
(Required) The account id associated with the marketing event |
|
|
(Required) The id of the marketing event to delete |
|
|
N/A |
|
|
N/A |
DELETE Delete campaign
/marketing/v3/campaigns/{campaignGuid}
Delete a specified campaign from the system.
This call will return a 204 No Content response regardless of whether the campaignGuid provided corresponds to an existing campaign or not.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
(Required) Unique identifier for the campaign, formatted as a UUID. |
|
|
N/A |
|
|
N/A |
GET Get a marketing event
/marketing/v3/marketing-events/events/{externalEventId}
Returns the details of the Marketing Event with the specified id, if one exists.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
(Required) The account id associated with the marketing event |
|
|
(Required) The id of the marketing event to return |
|
|
N/A |
|
|
N/A |
POST Mark a marketing event as cancelled
/marketing/v3/marketing-events/events/{externalEventId}/cancel
Mark a marketing event as cancelled.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
(Required) The account id associated with the marketing event |
|
|
(Required) The id of the marketing event to mark as cancelled |
|
|
N/A |
|
|
N/A |
GET Read a campaign
/marketing/v3/campaigns/{campaignGuid}
Get a campaign identified by a specific campaignGuid with the given properties. Along with the campaign information, it also returns information about assets. Depending on the query parameters used, this can also be used to return information about the corresponding assets' metrics. Metrics are available only if startDate and endDate are provided.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
Start date to fetch asset metrics, formatted as YYYY-MM-DD. This date is used to fetch the metrics associated with the assets for a specified period.
|
|
|
End date to fetch asset metrics, formatted as YYYY-MM-DD. This date is used to fetch the metrics associated with the assets for a specified period.
|
|
|
A comma-separated list of the properties to be returned in the response. If any of the specified properties has empty value on the requested object, they will be ignored and not returned in response. If this parameter is empty, the response will include an empty properties map. |
|
|
(Required) Unique identifier for the campaign, formatted as a UUID. |
|
|
N/A |
|
|
N/A |
PATCH Update a marketing event
/marketing/v3/marketing-events/events/{externalEventId}
Updates an existing Marketing Event with the specified id, if one exists.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
(Required) The account id associated with the marketing event |
|
|
(Required) The id of the marketing event to update |
|
|
N/A |
|
|
N/A |
Options (8)
|
Option Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
PATCH Update campaign
/marketing/v3/campaigns/{campaignGuid}
Perform a partial update of a campaign identified by the specified campaignGuid. Provided property values will be overwritten. Read-only and non-existent properties will cause 400 error.
If an empty string is passed for any property in the Batch Update, it will reset that property's value.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
(Required) Unique identifier for the campaign, formatted as a UUID. |
|
|
N/A |
|
|
N/A |
Batch (6)
POST Create a batch of campaigns
/marketing/v3/campaigns/batch/create
This endpoint creates a batch of campaigns. The maximum number of items in a batch request is 50.
The campaigns in the response are not guaranteed to be in the same order as they were provided in the request.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
POST Create or update multiple marketing events
/marketing/v3/marketing-events/events/upsert
Upset multiple Marketing Event. If there is an existing Marketing event with the specified id, it will be updated; otherwise a new event will be created.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
POST Delete a batch of campaigns
/marketing/v3/campaigns/batch/archive
This endpoint deletes a batch of campaigns.
The maximum number of items in a batch request is 50.
The response will always be 204 No Content, regardless of whether the campaigns exist or not, whether they were successfully deleted or not, or if only some of the campaigns in the batch were deleted.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
POST Delete multiple marketing events
/marketing/v3/marketing-events/events/delete
Bulk delete a number of marketing events in HubSpot
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
POST Read a batch of campaigns
/marketing/v3/campaigns/batch/read
This endpoint reads a batch of campaigns based on the provided input data and returns the campaigns along with their associated assets.
The maximum number of items in a batch request is 50.
The campaigns in the response are not guaranteed to be in the same order as they were provided in the request.
If duplicate campaign IDs are provided in the request, duplicates will be ignored. The response will include only unique IDs and will be returned without duplicates.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
Start date to fetch asset metrics, formatted as YYYY-MM-DD. This date is used to fetch the metrics associated with the assets for a specified period. If not provided, no asset metrics will be fetched. |
|
|
End date to fetch asset metrics, formatted as YYYY-MM-DD. This date is used to fetch the metrics associated with the assets for a specified period. If not provided, no asset metrics will be fetched. |
|
|
A comma-separated list of the properties to be returned in the response. If any of the specified properties has empty value on the requested object(s), they will be ignored and not returned in response. If this parameter is empty, the response will include an empty properties map. |
|
|
N/A |
|
|
N/A |
POST Update a batch of campaigns
/marketing/v3/campaigns/batch/update
This endpoint updates a batch of campaigns based on the provided input data.
The maximum number of items in a batch request is 50.
If an empty string ("") is passed for any property in the Batch Update, it will reset that property's value.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Budget
GET Read budget
/marketing/v3/campaigns/{campaignGuid}/budget/totals
Retrieve detailed information about the budget and spend items for a specified campaign, including the total budget, total spend, and remaining budget.
Budget and Spend items may be returned in any order, but the order field specifies their sequence based on the creation date. The item with order 0 is the oldest, and items with higher order values are newer
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
(Required) Unique identifier for the campaign, formatted as a UUID. |
|
|
N/A |
|
|
N/A |
Definition
GET Get subscription definitions
/communication-preferences/v3/definitions
Get a list of all subscription definitions for the portal
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Marketing Emails API (4)
POST Clone a marketing email.
/marketing/v3/emails/clone
This will create a duplicate email with the same properties as the original, with the exception of a unique ID.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Options (2)
|
Option Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
POST Create an A/B test variation of a marketing email.
/marketing/v3/emails/ab-test/create-variation
Create a variation of a marketing email for an A/B test. The new variation will be created as a draft. If an active variation already exists, a new one won't be created.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Options (2)
|
Option Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
POST Publish or send a marketing email.
/marketing/v3/emails/{emailId}/publish
If you have a Marketing Hub Enterprise account or the transactional email add-on, you can use this endpoint to publish an automated email or send/schedule a regular email.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
(Required) |
|
|
N/A |
|
|
N/A |
POST Unpublish or cancel a marketing email.
/marketing/v3/emails/{emailId}/unpublish
If you have a Marketing Hub Enterprise account or the transactional email add-on, you can use this endpoint to unpublish an automated email or cancel a regular email. If the email is already in the process of being sent, canceling might not be possible.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
(Required) |
|
|
N/A |
|
|
N/A |
Marketing Emails (13)
POST Create a new marketing email.
/marketing/v3/emails
Use this endpoint to create a new marketing email.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Options (23)
|
Option Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
PATCH Create or update draft version
/marketing/v3/emails/{emailId}/draft
Create or update the draft version of a marketing email. If no draft exists, the system creates a draft from the current “live” email then applies the request body to that draft. The draft version only lives on the buffer—the email is not cloned.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Options (23)
|
Option Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
DELETE Delete a marketing email.
/marketing/v3/emails/{emailId}
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
Whether to return only results that have been archived. |
|
|
N/A |
|
|
N/A |
|
|
N/A |
GET Get a revision of a marketing email.
/marketing/v3/emails/{emailId}/revisions/{revisionId}
Get a specific revision of a marketing email.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
GET Get all marketing emails for a HubSpot account.
/marketing/v3/emails
The results can be filtered, allowing you to find a specific set of emails. See the table below for a full list of filtering options.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
Only return emails created at exactly the specified time. |
|
|
Only return emails created after the specified time. |
|
|
Only return emails created before the specified time. |
|
|
Only return emails last updated at exactly the specified time. |
|
|
Only return emails last updated after the specified time. |
|
|
Only return emails last updated before the specified time. |
|
|
Specifies which fields to use for sorting results. Valid fields are name, createdAt, updatedAt, createdBy, updatedBy. createdAt will be used by default. |
|
|
The cursor token value to get the next set of results. You can get this from the paging.next.after JSON property of a paged response containing more results. |
|
|
The maximum number of results to return. Default is 100. |
|
|
Include statistics with emails. |
|
|
Email types to be filtered by. Multiple types can be included. All emails will be returned if not present. |
|
|
Filter by published/draft emails. All emails will be returned if not present. |
|
|
N/A |
|
|
Specifies whether to return archived emails. Defaults to false. |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
GET Get draft version of a marketing email
/marketing/v3/emails/{emailId}/draft
Get the draft version of an email (if it exists). If no draft version exists, the published email is returned.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
GET Get revisions of a marketing email
/marketing/v3/emails/{emailId}/revisions
Get a list of all versions of a marketing email, with each entry including the full state of that particular version. The current revision has the ID -1.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
The cursor token value to get the next set of results. You can get this from the paging.next.after JSON property of a paged response containing more results. |
|
|
The cursor token value to get the previous set of results. You can get this from the paging.prev.before JSON property of a paged response containing more results. |
|
|
The maximum number of results to return. Default is 100. |
|
|
N/A |
|
|
N/A |
|
|
N/A |
GET Get the details of a specified marketing email.
/marketing/v3/emails/{emailId}
Get the details for a marketing email.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
Include statistics with email |
|
|
N/A |
|
|
Whether to return only results that have been archived. |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
GET Get the variation of a an A/B marketing email
/marketing/v3/emails/{emailId}/ab-test/get-variation
This endpoint lets you obtain the variation of an A/B marketing email. If the email is variation A (master) it will return variation B (variant) and vice versa.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
POST Reset Draft
/marketing/v3/emails/{emailId}/draft/reset
Resets the draft back to a copy of the live object.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
POST Restore a revision of a marketing email
/marketing/v3/emails/{emailId}/revisions/{revisionId}/restore
Restores a previous revision of a marketing email. The current revision becomes old, and the restored revision is given a new version number.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
POST Restore a revision of a marketing email to DRAFT state
/marketing/v3/emails/{emailId}/revisions/{revisionId}/restore-to-draft
Restores a previous revision of a marketing email to DRAFT state. If there is currently something in the draft for that object, it is overwritten.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
PATCH Update a marketing email.
/marketing/v3/emails/{emailId}
Change properties of a marketing email.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
Whether to return only results that have been archived. |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Options (23)
|
Option Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Marketing Events API (11)
PUT Associate a list with a marketing event
/marketing/v3/marketing-events/associations/{marketingEventId}/lists/{listId}
Associates a list with a marketing event by marketing event id and ILS list id
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
(Required) The internal id of the marketing event in HubSpot. |
|
|
(Required) The ILS ID of the list. |
|
|
N/A |
|
|
N/A |
PUT Associate a list with a marketing event
/marketing/v3/marketing-events/associations/{externalAccountId}/{externalEventId}/lists/{listId}
Associates a list with a marketing event by external account id, external event id, and ILS list id
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
(Required) The accountId that is associated with this marketing event in the external event application. |
|
|
(Required) The id of the marketing event in the external event application. |
|
|
(Required) The ILS ID of the list. |
|
|
N/A |
|
|
N/A |
DELETE Disassociate a list from a marketing event
/marketing/v3/marketing-events/associations/{marketingEventId}/lists/{listId}
Disassociates a list from a marketing event by marketing event id and ILS list id
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
(Required) The internal id of the marketing event in HubSpot. |
|
|
(Required) The ILS ID of the list. |
|
|
N/A |
|
|
N/A |
DELETE Disassociate a list from a marketing event
/marketing/v3/marketing-events/associations/{externalAccountId}/{externalEventId}/lists/{listId}
Disassociates a list from a marketing event by external account id, external event id, and ILS list id
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
(Required) The accountId that is associated with this marketing event in the external event application. |
|
|
(Required) The id of the marketing event in the external event application. |
|
|
(Required) The ILS ID of the list. |
|
|
N/A |
|
|
N/A |
GET Get lists associated with a marketing event
/marketing/v3/marketing-events/associations/{externalAccountId}/{externalEventId}/lists
Gets lists associated with a marketing event by external account id and external event id
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
(Required) The accountId that is associated with this marketing event in the external event application. |
|
|
(Required) The id of the marketing event in the external event application. |
|
|
N/A |
|
|
N/A |
GET Get lists associated with a marketing event
/marketing/v3/marketing-events/associations/{marketingEventId}/lists
Gets lists associated with a marketing event by marketing event id
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
(Required) The internal id of the marketing event in HubSpot. |
|
|
N/A |
|
|
N/A |
GET Read participations breakdown by Contact identifier
/marketing/v3/marketing-events/participations/contacts/{contactIdentifier}/breakdown
Read Contact's participations by identifier - email or internal id.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
The participation state value. It may be REGISTERED, CANCELLED, ATTENDED, NO_SHOW |
|
|
The limit for response size. The default value is 10, the max number is 100 |
|
|
The cursor indicating the position of the last retrieved item. |
|
|
(Required) The identifier of the Contact. It may be email or internal id. |
|
|
N/A |
|
|
N/A |
GET Read participations breakdown by Marketing Event external identifier
/marketing/v3/marketing-events/participations/{externalAccountId}/{externalEventId}/breakdown
Read Marketing event's participations breakdown with optional filters by externalAccountId and externalEventId pair.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
The identifier of the Contact. It may be email or internal id. |
|
|
The participation state value. It may be REGISTERED, CANCELLED, ATTENDED, NO_SHOW |
|
|
The limit for response size. The default value is 10, the max number is 100 |
|
|
The cursor indicating the position of the last retrieved item. |
|
|
(Required) The accountId that is associated with this marketing event in the external event application. |
|
|
(Required) The id of the marketing event in the external event application. |
|
|
N/A |
|
|
N/A |
GET Read participations breakdown by Marketing Event internal identifier
/marketing/v3/marketing-events/participations/{marketingEventId}/breakdown
Read Marketing event's participations breakdown with optional filters by internal identifier marketingEventId.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
The identifier of the Contact. It may be email or internal id. |
|
|
The participation state value. It may be REGISTERED, CANCELLED, ATTENDED, NO_SHOW |
|
|
The limit for response size. The default value is 10, the max number is 100 |
|
|
The cursor indicating the position of the last retrieved item. |
|
|
(Required) The internal id of the marketing event in HubSpot. |
|
|
N/A |
|
|
N/A |
GET Read participations counters by Marketing Event external identifier
/marketing/v3/marketing-events/participations/{externalAccountId}/{externalEventId}
Read Marketing event's participations counters by externalAccountId and externalEventId pair.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
(Required) The accountId that is associated with this marketing event in the external event application. |
|
|
(Required) The id of the marketing event in the external event application. |
|
|
N/A |
|
|
N/A |
GET Read participations counters by Marketing Event internal identifier
/marketing/v3/marketing-events/participations/{marketingEventId}
Read Marketing event's participations counters by internal identifier marketingEventId.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
(Required) The internal id of the marketing event in HubSpot. |
|
|
N/A |
|
|
N/A |
Marketing_Events_External
POST Mark a marketing event as completed
/marketing/v3/marketing-events/events/{externalEventId}/complete
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
(Required) |
|
|
(Required) |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Public_Smtp_Tokens (5)
POST Create a SMTP API token.
/marketing/v3/transactional/smtp-tokens
Create a SMTP API token.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Options (2)
|
Option Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
DELETE Delete a single token by ID.
/marketing/v3/transactional/smtp-tokens/{tokenId}
Delete a single token by ID.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
GET Query SMTP API tokens by campaign name or an emailCampaignId.
/marketing/v3/transactional/smtp-tokens
Query multiple SMTP API tokens by campaign name or a single token by emailCampaignId.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
A name for the campaign tied to the SMTP API token. |
|
|
Identifier assigned to the campaign provided during the token creation. |
|
|
Starting point to get the next set of results. |
|
|
Maximum number of tokens to return. |
|
|
N/A |
|
|
N/A |
GET Query a single token by ID.
/marketing/v3/transactional/smtp-tokens/{tokenId}
Query a single token by ID.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
POST Reset the password of an existing token.
/marketing/v3/transactional/smtp-tokens/{tokenId}/password-reset
Allows the creation of a replacement password for a given token. Once the password is successfully reset, the old password for the token will be invalid.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Reports (3)
GET Fetch contact IDs
/marketing/v3/campaigns/{campaignGuid}/reports/contacts/{contactType}
Fetch the list of contact IDs for the specified campaign and contact type
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
The start date for the report data, formatted as YYYY-MM-DD.
|
|
|
End date for the report data, formatted as YYYY-MM-DD.
|
|
|
Limit for the number of contacts to fetch
|
|
|
A cursor for pagination. If provided, the results will start after the given cursor.
|
|
|
(Required) Unique identifier for the campaign, formatted as a UUID. |
|
|
(Required) The type of metric to filter the influenced contacts. Allowed values: contactFirstTouch, contactLastTouch, influencedContacts |
|
|
N/A |
|
|
N/A |
GET Fetch revenue
/marketing/v3/campaigns/{campaignGuid}/reports/revenue
Fetch revenue attribution report data for a specified campaign
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
Allowed values: LINEAR, FIRST_INTERACTION, LAST_INTERACTION, FULL_PATH, U_SHAPED, W_SHAPED, TIME_DECAY, J_SHAPED, INVERSE_J_SHAPED
|
|
|
The start date for the report data, formatted as YYYY-MM-DD.
|
|
|
End date for the report data, formatted as YYYY-MM-DD.
|
|
|
(Required) Unique identifier for the campaign, formatted as a UUID. |
|
|
N/A |
|
|
N/A |
GET Get Campaign Metrics
/marketing/v3/campaigns/{campaignGuid}/reports/metrics
This endpoint retrieves key attribution metrics for a specified campaign, such as sessions, new contacts, and influenced contacts.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
The start date for the report data, formatted as YYYY-MM-DD.
|
|
|
End date for the report data, formatted as YYYY-MM-DD.
|
|
|
(Required) Unique identifier for the campaign, formatted as a UUID. |
|
|
N/A |
|
|
N/A |
Search (2)
GET Campaign search
/marketing/v3/campaigns
This endpoint allows users to search for and return a page of campaigns based on various query parameters. Users can filter by name, sort, and paginate through the campaigns, as well as control which properties are returned in the response.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
The field by which to sort the results. Allowed values are hs_name, createdAt, updatedAt. An optional '-' before the property name can denote descending order
|
|
|
A cursor for pagination. If provided, the results will start after the given cursor.
|
|
|
The maximum number of results to return. Allowed values range from 1 to 100
|
|
|
A filter to return campaigns whose names contain the specified substring. This allows partial matching of campaign names, returning all campaigns that include the given substring in their name. If this parameter is not provided, the search will return all campaigns |
|
|
A comma-separated list of the properties to be returned in the response. If any of the specified properties has empty value on the requested object(s), they will be ignored and not returned in response. If this parameter is empty, the response will include an empty properties map |
|
|
N/A |
|
|
N/A |
GET Search for marketing events
/marketing/v3/marketing-events/events/search
Search for marketing events that have an event id that starts with the query string
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
(Required) The id of the marketing event in the external event application |
|
|
N/A |
|
|
N/A |
Settings (2)
GET Retrieve the application settings
/marketing/v3/marketing-events/{appId}/settings
Retrieve the current settings for the application.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
(Required) The id of the application to retrieve the settings for. |
|
|
N/A |
|
|
N/A |
POST Update the application settings
/marketing/v3/marketing-events/{appId}/settings
Create or update the current settings for the application.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
(Required) The id of the application to update the settings for. |
|
|
N/A |
|
|
N/A |
Options (1)
|
Option Name |
Description |
|---|---|
|
|
N/A |
Single_Send (2)
POST Send a single transactional email asynchronously.
/marketing/v3/transactional/single-email/send
Asynchronously send a transactional email. Returns the status of the email send with a statusId that can be used to continuously query for the status using the Email Send Status API.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Options (1)
|
Option Name |
Description |
|---|---|
|
|
N/A |
POST post-/marketing/v4/email/single-send
/marketing/v4/email/single-send
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Options (1)
|
Option Name |
Description |
|---|---|
|
|
N/A |
Statistics (2)
GET Get aggregated statistic intervals.
/marketing/v3/emails/statistics/histogram
Get aggregated statistics in intervals for a specified time span. Each interval contains aggregated statistics of the emails that were sent in that time.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
The interval to aggregate statistics for. |
|
|
The start timestamp of the time span, in ISO8601 representation. |
|
|
The end timestamp of the time span, in ISO8601 representation. |
|
|
Filter by email IDs. Only include statistics of emails with these IDs. |
|
|
N/A |
|
|
N/A |
GET Get aggregated statistics.
/marketing/v3/emails/statistics/list
Use this endpoint to get aggregated statistics of emails sent in a specified time span. It also returns the list of emails that were sent during the time span.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
The start timestamp of the time span, in ISO8601 representation. |
|
|
The end timestamp of the time span, in ISO8601 representation. |
|
|
Filter by email IDs. Only include statistics of emails with these IDs. |
|
|
Specifies which email properties should be returned. All properties will be returned by default. |
|
|
N/A |
|
|
N/A |
Status (3)
GET Get subscription statuses for a contact
/communication-preferences/v3/status/email/{emailAddress}
Returns a list of subscriptions and their status for a given contact.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
POST Subscribe a contact
/communication-preferences/v3/subscribe
Subscribes a contact to the given subscription type. This API is not valid to use for subscribing a contact at a brand or portal level and will return an error.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Options (4)
|
Option Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
POST Unsubscribe a contact
/communication-preferences/v3/unsubscribe
Unsubscribes a contact from the given subscription type. This API is not valid to use for unsubscribing a contact at a brand or portal level and will return an error.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Options (4)
|
Option Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Subscriber State Changes (2)
POST Record a subscriber state by contact ID
/marketing/v3/marketing-events/events/{externalEventId}/{subscriberState}/upsert
Record a subscription state between multiple HubSpot contacts and a marketing event, using HubSpot contact ids. Note that the contact must already exist in HubSpot; a contact will not be create.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
(Required) The account id associated with the marketing event |
|
|
(Required) The id of the marketing event |
|
|
(Required) The new subscriber state for the HubSpot contacts and the specified marketing event |
|
|
N/A |
|
|
N/A |
|
|
N/A |
POST Record a subscriber state by contact email
/marketing/v3/marketing-events/events/{externalEventId}/{subscriberState}/email-upsert
Record a subscription state between multiple HubSpot contacts and a marketing event, using contact email addresses. Note that the contact must already exist in HubSpot; a contact will not be created.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
(Required) The account id associated with the marketing event |
|
|
(Required) The id of the marketing event |
|
|
(Required) The new subscriber state for the HubSpot contacts and the specified marketing event |
|
|
N/A |
|
|
N/A |
|
|
N/A |