Optional
requestFactory: MarketingEmailsApiRequestFactoryOptional
responseProcessor: MarketingEmailsApiResponseProcessorThe ID of the marketing email to delete.
Optional
archived: booleanWhether to return only results that have been archived.
Optional
_options: PromiseConfigurationOptionsDelete a marketing email.
The ID of the marketing email to delete.
Optional
archived: booleanWhether to return only results that have been archived.
Optional
_options: PromiseConfigurationOptionsThis will create a duplicate email with the same properties as the original, with the exception of a unique ID. Clone a marketing email.
Optional
_options: PromiseConfigurationOptionsThis will create a duplicate email with the same properties as the original, with the exception of a unique ID. Clone a marketing email.
Optional
_options: PromiseConfigurationOptionsUse this endpoint to create a new marketing email. Create a new marketing email.
Optional
_options: PromiseConfigurationOptionsCreate 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. Create an A/B test variation of a marketing email.
Optional
_options: PromiseConfigurationOptionsCreate 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. Create an A/B test variation of a marketing email.
Optional
_options: PromiseConfigurationOptionsUse this endpoint to create a new marketing email. Create a new marketing email.
Optional
_options: PromiseConfigurationOptionsThis 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. Get the variation of a an A/B marketing email
The ID of an A/B marketing email.
Optional
_options: PromiseConfigurationOptionsThis 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. Get the variation of a an A/B marketing email
The ID of an A/B marketing email.
Optional
_options: PromiseConfigurationOptionsGet the details for a marketing email. Get the details of a specified marketing email.
The marketing email ID.
Optional
includeStats: booleanInclude statistics with email
Optional
marketingCampaignNames: booleanOptional
workflowNames: booleanOptional
includedProperties: string[]Optional
archived: booleanWhether to return only results that have been archived.
Optional
_options: PromiseConfigurationOptionsGet the details for a marketing email. Get the details of a specified marketing email.
The marketing email ID.
Optional
includeStats: booleanInclude statistics with email
Optional
marketingCampaignNames: booleanOptional
workflowNames: booleanOptional
includedProperties: string[]Optional
archived: booleanWhether to return only results that have been archived.
Optional
_options: PromiseConfigurationOptionsGet the draft version of an email (if it exists). If no draft version exists, the published email is returned. Get draft version of a marketing email
The marketing email ID.
Optional
_options: PromiseConfigurationOptionsGet the draft version of an email (if it exists). If no draft version exists, the published email is returned. Get draft version of a marketing email
The marketing email ID.
Optional
_options: PromiseConfigurationOptionsThe results can be filtered, allowing you to find a specific set of emails. See the table below for a full list of filtering options. Get all marketing emails for a HubSpot account.
Optional
createdAt: DateOnly return emails created at exactly the specified time.
Optional
createdAfter: DateOnly return emails created after the specified time.
Optional
createdBefore: DateOnly return emails created before the specified time.
Optional
updatedAt: DateOnly return emails last updated at exactly the specified time.
Optional
updatedAfter: DateOnly return emails last updated after the specified time.
Optional
updatedBefore: DateOnly return emails last updated before the specified time.
Optional
sort: string[]Specifies which fields to use for sorting results. Valid fields are `name`, `createdAt`, `updatedAt`, `createdBy`, `updatedBy`. `createdAt` will be used by default.
Optional
after: stringThe 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.
Optional
limit: numberThe maximum number of results to return. Default is 100.
Optional
includeStats: booleanInclude statistics with emails.
Optional
marketingCampaignNames: booleanOptional
workflowNames: booleanOptional
type: Email types to be filtered by. Multiple types can be included. All emails will be returned if not present.
Optional
isPublished: booleanFilter by published/draft emails. All emails will be returned if not present.
Optional
includedProperties: string[]Optional
campaign: stringFilter by campaign GUID. All emails will be returned if not present.
Optional
archived: booleanSpecifies whether to return archived emails. Defaults to `false`.
Optional
_options: PromiseConfigurationOptionsThe results can be filtered, allowing you to find a specific set of emails. See the table below for a full list of filtering options. Get all marketing emails for a HubSpot account.
Optional
createdAt: DateOnly return emails created at exactly the specified time.
Optional
createdAfter: DateOnly return emails created after the specified time.
Optional
createdBefore: DateOnly return emails created before the specified time.
Optional
updatedAt: DateOnly return emails last updated at exactly the specified time.
Optional
updatedAfter: DateOnly return emails last updated after the specified time.
Optional
updatedBefore: DateOnly return emails last updated before the specified time.
Optional
sort: string[]Specifies which fields to use for sorting results. Valid fields are `name`, `createdAt`, `updatedAt`, `createdBy`, `updatedBy`. `createdAt` will be used by default.
Optional
after: stringThe 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.
Optional
limit: numberThe maximum number of results to return. Default is 100.
Optional
includeStats: booleanInclude statistics with emails.
Optional
marketingCampaignNames: booleanOptional
workflowNames: booleanOptional
type: Email types to be filtered by. Multiple types can be included. All emails will be returned if not present.
Optional
isPublished: booleanFilter by published/draft emails. All emails will be returned if not present.
Optional
includedProperties: string[]Optional
campaign: stringFilter by campaign GUID. All emails will be returned if not present.
Optional
archived: booleanSpecifies whether to return archived emails. Defaults to `false`.
Optional
_options: PromiseConfigurationOptionsGet a specific revision of a marketing email. Get a revision of a marketing email.
The marketing email ID.
The ID of a revision.
Optional
_options: PromiseConfigurationOptionsGet a specific revision of a marketing email. Get a revision of a marketing email.
The marketing email ID.
The ID of a revision.
Optional
_options: PromiseConfigurationOptionsGet 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. Get revisions of a marketing email
The marketing email ID.
Optional
after: stringThe 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.
Optional
before: stringThe 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.
Optional
limit: numberThe maximum number of results to return. Default is 100.
Optional
_options: PromiseConfigurationOptionsGet 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. Get revisions of a marketing email
The marketing email ID.
Optional
after: stringThe 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.
Optional
before: stringThe 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.
Optional
limit: numberThe maximum number of results to return. Default is 100.
Optional
_options: PromiseConfigurationOptionsIf 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. Publish or send a marketing email.
Optional
_options: PromiseConfigurationOptionsIf 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. Publish or send a marketing email.
Optional
_options: PromiseConfigurationOptionsResets the draft back to a copy of the live object. Reset Draft
The marketing email ID.
Optional
_options: PromiseConfigurationOptionsResets the draft back to a copy of the live object. Reset Draft
The marketing email ID.
Optional
_options: PromiseConfigurationOptionsRestores a previous revision of a marketing email to DRAFT state. If there is currently something in the draft for that object, it is overwritten. Restore a revision of a marketing email to DRAFT state
The marketing email ID.
The ID of a revision.
Optional
_options: PromiseConfigurationOptionsRestores a previous revision of a marketing email to DRAFT state. If there is currently something in the draft for that object, it is overwritten. Restore a revision of a marketing email to DRAFT state
The marketing email ID.
The ID of a revision.
Optional
_options: PromiseConfigurationOptionsRestores a previous revision of a marketing email. The current revision becomes old, and the restored revision is given a new version number. Restore a revision of a marketing email
The marketing email ID.
The ID of a revision.
Optional
_options: PromiseConfigurationOptionsRestores a previous revision of a marketing email. The current revision becomes old, and the restored revision is given a new version number. Restore a revision of a marketing email
The marketing email ID.
The ID of a revision.
Optional
_options: PromiseConfigurationOptionsIf 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. Unpublish or cancel a marketing email.
Optional
_options: PromiseConfigurationOptionsIf 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. Unpublish or cancel a marketing email.
Optional
_options: PromiseConfigurationOptionsChange properties of a marketing email. Update a marketing email.
The ID of the marketing email that should get updated
A marketing email object with properties that should overwrite the corresponding properties of the marketing email.
Optional
archived: booleanWhether to return only results that have been archived.
Optional
_options: PromiseConfigurationOptionsChange properties of a marketing email. Update a marketing email.
The ID of the marketing email that should get updated
A marketing email object with properties that should overwrite the corresponding properties of the marketing email.
Optional
archived: booleanWhether to return only results that have been archived.
Optional
_options: PromiseConfigurationOptionsCreate 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. Create or update draft version
The marketing email ID.
A marketing email object with properties that should overwrite the corresponding properties in the email's current draft.
Optional
_options: PromiseConfigurationOptionsCreate 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. Create or update draft version
The marketing email ID.
A marketing email object with properties that should overwrite the corresponding properties in the email's current draft.
Optional
_options: PromiseConfigurationOptions
Delete a marketing email.