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-03/{emailId}/unpublish

Request

  • Base URL
    https://api.hubapi.com
  • Auth
    • OAuth 2
      Authorization codehttps://app.hubspot.com/oauth/authorize
      Token URLhttps://api.hubapi.com/oauth/v1/token
      Scopesmarketing-email
    • or OAuth 2
      Authorization codehttps://app.hubspot.com/oauth/authorize
      Token URLhttps://api.hubapi.com/oauth/v1/token
      Scopestransactional-email

Path parameters

emailIdstring required

The unique identifier of the email to unpublish.

Response

No content

Changes

  • 2026-03a2b5d0cf80abRevision 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-03deba4fb9e606Revision changes
    • info

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

    1 more change in this revision