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
  • URL
    https://api.hubapi.com/marketing/emails/2026-03/{emailId}/unpublish
  • Auth
    • HTTP bearer
    • or API key in query parameter hapikey
    • or none

Path parameters

emailIdstring required

Response

No content

Changes

    • info

      api operation id post-/marketing/emails/2026-03/{emailId}/unpublish_unpublishOrCancel removed and replaced with post-/marketing/emails/2026-03/{emailId}/unpublish

    • info

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

    • info

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

    • info

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

    • info

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

Some revisions have not been checked yet.