From a44f2c6943eb6afdabbe4dea63aa988c818a5a75 Mon Sep 17 00:00:00 2001 From: dielduarte Date: Mon, 10 Aug 2026 15:30:02 -0300 Subject: [PATCH 1/2] feat: add broadcasts/{id}/cancel endpoint Adds the path and CancelBroadcastResponseSuccess schema for canceling a queued or scheduled broadcast, mirroring the existing send/remove broadcast endpoints. Co-Authored-By: Claude Sonnet 5 --- resend.yaml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/resend.yaml b/resend.yaml index ce77896..e164101 100644 --- a/resend.yaml +++ b/resend.yaml @@ -1108,6 +1108,31 @@ paths: application/json: schema: $ref: '#/components/schemas/SendBroadcastResponseSuccess' + /broadcasts/{id}/cancel: + post: + tags: + - Broadcasts + summary: Cancel a broadcast + description: >- + Cancels a broadcast that is queued or scheduled. Canceling a + scheduled broadcast also cancels the scheduled delivery. Canceling a + queued broadcast stops it mid-send; emails already sent are not + affected, but no further emails will go out. + parameters: + - name: id + in: path + required: true + schema: + type: string + format: uuid + description: The Broadcast ID. + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/CancelBroadcastResponseSuccess' /webhooks: post: tags: @@ -3722,6 +3747,17 @@ components: type: string description: The ID of the broadcast. example: 78261eea-8f8b-4381-83c6-79fa7120f1cf + CancelBroadcastResponseSuccess: + type: object + properties: + id: + type: string + description: The ID of the broadcast. + example: 78261eea-8f8b-4381-83c6-79fa7120f1cf + object: + type: string + description: The object type of the response. + example: broadcast RetrievedAttachment: type: object properties: From c158254dd3705a10e44e0b59f78cf2b48cf10404 Mon Sep 17 00:00:00 2001 From: dielduarte Date: Mon, 10 Aug 2026 15:48:10 -0300 Subject: [PATCH 2/2] fix: trim scheduled-cancellation detail from cancel broadcast description Co-Authored-By: Claude Sonnet 5 --- resend.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/resend.yaml b/resend.yaml index e164101..f107497 100644 --- a/resend.yaml +++ b/resend.yaml @@ -1115,7 +1115,6 @@ paths: summary: Cancel a broadcast description: >- Cancels a broadcast that is queued or scheduled. Canceling a - scheduled broadcast also cancels the scheduled delivery. Canceling a queued broadcast stops it mid-send; emails already sent are not affected, but no further emails will go out. parameters: