Unpublish or cancel a marketing email
Changed onIf 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.
Request
- Base URLhttps://api.hubapi.com
- URLhttps://api.hubapi.com/marketing/emails/2026-03/{emailId}/unpublish
- Auth
- HTTP bearer
- or API key in query parameter hapikey
- or none
Path parameters
Response
No content
Changes
- info
api operation id
post-/marketing/emails/2026-03/{emailId}/unpublish_unpublishOrCancelremoved and replaced withpost-/marketing/emails/2026-03/{emailId}/unpublish - info
the security scope
marketing-emailwas added to the endpoint's security schemeprivate_apps - info
the security scope
transactional-emailwas removed from the endpoint's security schemeprivate_apps
- info
- info
the security scope
marketing-emailwas added to the endpoint's security schemeprivate_apps - info
the security scope
transactional-emailwas removed from the endpoint's security schemeprivate_apps
- info
Some revisions have not been checked yet.