OptionalrequestFactory: MarketingEmailsApiRequestFactoryOptionalresponseProcessor: MarketingEmailsApiResponseProcessorThe ID of the marketing email to delete.
Optionalarchived: booleanWhether to return only results that have been archived.
Optional_options: PromiseConfigurationOptionsDelete a marketing email.
The ID of the marketing email to delete.
Optionalarchived: 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.
OptionalincludeStats: booleanInclude statistics with email
OptionalmarketingCampaignNames: booleanOptionalworkflowNames: booleanOptionalincludedProperties: string[]Optionalarchived: 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.
OptionalincludeStats: booleanInclude statistics with email
OptionalmarketingCampaignNames: booleanOptionalworkflowNames: booleanOptionalincludedProperties: string[]Optionalarchived: 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.
OptionalcreatedAt: DateOnly return emails created at exactly the specified time.
OptionalcreatedAfter: DateOnly return emails created after the specified time.
OptionalcreatedBefore: DateOnly return emails created before the specified time.
OptionalupdatedAt: DateOnly return emails last updated at exactly the specified time.
OptionalupdatedAfter: DateOnly return emails last updated after the specified time.
OptionalupdatedBefore: DateOnly return emails last updated before the specified time.
Optionalsort: string[]Specifies which fields to use for sorting results. Valid fields are `name`, `createdAt`, `updatedAt`, `createdBy`, `updatedBy`. `createdAt` will be used by default.
Optionalafter: 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.
Optionallimit: numberThe maximum number of results to return. Default is 100.
OptionalincludeStats: booleanInclude statistics with emails.
OptionalmarketingCampaignNames: booleanOptionalworkflowNames: booleanOptionaltype: Email types to be filtered by. Multiple types can be included. All emails will be returned if not present.
OptionalisPublished: booleanFilter by published/draft emails. All emails will be returned if not present.
OptionalincludedProperties: string[]Optionalcampaign: stringFilter by campaign GUID. All emails will be returned if not present.
Optionalarchived: 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.
OptionalcreatedAt: DateOnly return emails created at exactly the specified time.
OptionalcreatedAfter: DateOnly return emails created after the specified time.
OptionalcreatedBefore: DateOnly return emails created before the specified time.
OptionalupdatedAt: DateOnly return emails last updated at exactly the specified time.
OptionalupdatedAfter: DateOnly return emails last updated after the specified time.
OptionalupdatedBefore: DateOnly return emails last updated before the specified time.
Optionalsort: string[]Specifies which fields to use for sorting results. Valid fields are `name`, `createdAt`, `updatedAt`, `createdBy`, `updatedBy`. `createdAt` will be used by default.
Optionalafter: 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.
Optionallimit: numberThe maximum number of results to return. Default is 100.
OptionalincludeStats: booleanInclude statistics with emails.
OptionalmarketingCampaignNames: booleanOptionalworkflowNames: booleanOptionaltype: Email types to be filtered by. Multiple types can be included. All emails will be returned if not present.
OptionalisPublished: booleanFilter by published/draft emails. All emails will be returned if not present.
OptionalincludedProperties: string[]Optionalcampaign: stringFilter by campaign GUID. All emails will be returned if not present.
Optionalarchived: 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.
Optionalafter: 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.
Optionalbefore: 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.
Optionallimit: 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.
Optionalafter: 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.
Optionalbefore: 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.
Optionallimit: 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.
Optionalarchived: 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.
Optionalarchived: 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.