- Prevent threading on Gmail with the
X-Entity-Ref-IDheader (Example) - Include a shortcut for users to unsubscribe with the
List-Unsubscribeheader - Add missing identification headers such as the
User-Agentheader when sending direct HTTP requests to the Resend API
Add custom headers
Add custom headers to your emails in theheaders object:
Avoid 403 error code 1010 with the User-Agent header
If you’re using a Resend SDK or tools like curl, the required User-Agent header is already included automatically.
However, direct HTTP requests made without an SDK may require you to add a User-Agent header to avoid a 403 error with error code 1010 (Access denied):
Example with Node.js fetch: