Skip to content

Conversation

@TyMick
Copy link
Contributor

@TyMick TyMick commented Sep 29, 2025

These were accidentally lost in the shuffle when some header features were added in #599.

As a result, I'm currently getting 401 Unauthorized errors when trying to Resend.broadcasts.remove.

{
  "statusCode": 401,
  "message": "Missing API Key",
  "name": "missing_api_key"
}

This change fixes the errors for me and lets me delete broadcasts again.


Summary by cubic

Send auth headers with DELETE requests so the API key is included, fixing 401 Unauthorized on Resend.broadcasts.remove and restoring broadcast deletion.

These were accidentally lost in the shuffle when some header features
were added in 64286b7.

As a result, I'm currently getting `401 Unauthorized` errors when trying
to `Resend.broadcasts.remove`.

```
{
  "statusCode": 401,
  "message": "Missing API Key",
  "name": "missing_api_key"
}
```

This change fixes the errors for me and lets me delete broadcasts again.
@TyMick TyMick requested a review from a team as a code owner September 29, 2025 06:59
@TyMick TyMick requested a review from rehanvdm September 29, 2025 06:59
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Copy link
Member

@gabrielmfern gabrielmfern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much for this!

@pkg-pr-new
Copy link

pkg-pr-new bot commented Sep 29, 2025

Open in StackBlitz

npm i https://pkg.pr.new/resend/resend-node/resend@635

commit: 1a79249

@gabrielmfern gabrielmfern changed the title Use headers in DELETE requests fix: headers not sent to DELETE requests Sep 29, 2025
@gabrielmfern gabrielmfern merged commit ace2bc4 into resend:canary Sep 29, 2025
9 of 11 checks passed
@TyMick
Copy link
Contributor Author

TyMick commented Sep 29, 2025

(Found this in the process of building resend/mcp-send-email#23.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants