---
title: "Unpublish or cancel a marketing email"
method: POST
path: "/marketing/emails/2026-03/{emailId}/unpublish"
tags: ["Emails"]
---

# Unpublish or cancel a marketing email

`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: one of:
  - HTTP bearer
  - API key in query parameter `hapikey`
  - none

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.

## Path parameters

- `emailId` string, required

## Response `204`

No content

## Other responses

- `default`: An error occurred.

## Changes

> 14 revisions in range; 1 not diffed, 2 could not be searched.

- **2026-04-08** `b0d8bc008db9`: 3 info
  - api operation id `post-/marketing/emails/2026-03/{emailId}/unpublish_unpublishOrCancel` removed and replaced with `post-/marketing/emails/2026-03/{emailId}/unpublish`
  - the security scope `marketing-email` was added to the endpoint's security scheme `private_apps`
  - the security scope `transactional-email` was removed from the endpoint's security scheme `private_apps`
- **2026-04-03** `3578967e48df`: 2 info
  - the security scope `marketing-email` was added to the endpoint's security scheme `private_apps`
  - the security scope `transactional-email` was removed from the endpoint's security scheme `private_apps`
- **2026-04-01** `e0403341222c`: 2 info
  - the security scope `marketing-email` was added to the endpoint's security scheme `private_apps`
  - the security scope `transactional-email` was removed from the endpoint's security scheme `private_apps`
- **2026-03-31** `f33be5a82610`: 2 info
  - the security scope `marketing-email` was added to the endpoint's security scheme `private_apps`
  - the security scope `transactional-email` was removed from the endpoint's security scheme `private_apps`
- **2026-03-30** `dc2fdad57f7f`: 2 info
  - the security scope `marketing-email` was added to the endpoint's security scheme `private_apps`
  - the security scope `transactional-email` was removed from the endpoint's security scheme `private_apps`

[Operation history](https://skmtc.dev/hubspot/apis/hubspot-api-specification/changes/marketing/emails/2026-03/:emailId/unpublish/post.md)

---

[API](https://skmtc.dev/hubspot/apis/hubspot-api-specification.md) - [All operations](https://skmtc.dev/hubspot/apis/hubspot-api-specification/llms.txt) - [OpenAPI document](https://skmtc.dev/hubspot/apis/hubspot-api-specification/revisions/f9c7181056c5?raw)
