/v1/workspaces/{workspace_id}/broadcasts/{broadcast_id}AuthDelete a broadcast
Drafts, sent and canceled broadcasts, with their recipient list. The messages themselves stay in the message log.
Path parameters
workspace_id*string · uuidId of the workspace.
broadcast_id*string · uuidId of the broadcast.
Response · 204
Deleted.
Example
Request
DELETE https://api.mail.productcraft.co/v1/workspaces/{workspace_id}/broadcasts/{broadcast_id}
Authorization: Bearer YOUR_TOKENimport { Mail } from "@productcraft/mail";
// Reads PRODUCTCRAFT_API_KEY from the environment
const mail = new Mail();
await mail.broadcasts.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");mail.broadcasts.delete(broadcastId, options?): void