Emails
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.
post/marketing/emails/2026-09/{emailId}/unpublish
Request
- Base URLhttps://api.hubapi.com
- URLhttps://api.hubapi.com/marketing/emails/2026-09/{emailId}/unpublish
- Auth
- OAuth 2Authorization code: https://app.hubspot.com/oauth/authorizeToken URL: https://api.hubapi.com/oauth/v1/token scopes: marketing-email
- or OAuth 2Authorization code: https://app.hubspot.com/oauth/authorizeToken URL: https://api.hubapi.com/oauth/v1/token scopes: transactional-email
Path parameters
emailIdstring required
The unique identifier of the email to unpublish.
Response
No content
Changes
- info
the security scope
marketing-emailwas added to the endpoint's security schemeoauth2 - info
the security scope
transactional-emailwas removed from the endpoint's security schemeoauth2
- info
- info
the security scope
marketing-emailwas added to the endpoint's security schemeoauth2 - info
the security scope
transactional-emailwas removed from the endpoint's security schemeoauth2
- info