Emails

Unpublish or cancel a marketing email

Changed on

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.

post/marketing/emails/2026-09/{emailId}/unpublish

Request

  • Base URL
    https://api.hubapi.com
  • URL
    https://api.hubapi.com/marketing/emails/2026-09/{emailId}/unpublish
  • Auth
    • OAuth 2
      Authorization code: https://app.hubspot.com/oauth/authorize
      Token URL: https://api.hubapi.com/oauth/v1/token scopes: marketing-email
    • or OAuth 2
      Authorization code: https://app.hubspot.com/oauth/authorize
      Token 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

  • 2026-0963a409723776Revision changes
    • info

      the security scope marketing-email was added to the endpoint's security scheme oauth2

    • info

      the security scope transactional-email was removed from the endpoint's security scheme oauth2

  • 2026-09f3d5b6124704Revision changes
    • info

      the security scope marketing-email was added to the endpoint's security scheme oauth2

    • info

      the security scope transactional-email was removed from the endpoint's security scheme oauth2