API Reference
Introduction
Get to know the foundational concepts, error handling, and API endpoints.
The Dhesend API is designed based on REST principles and requires HTTPS for all requests, ensuring maximum security, data integrity, and privacy. The API does not support HTTP.
All requests contain the following base URL:
To authenticate you need to add an Authorization header with the contents of the header being Bearer dhe_7s8e5s4e where dhe_7s8e5s4e is your API Key.
Resend uses standard HTTP codes to indicate the success or failure of your requests.
In general, 2xx HTTP codes correspond to success, 4xx codes are for user-related failures, and 5xx codes are for internal issues.
Status
Description
200
Successful request.
400
Check that the parameters were correct.
401
The API key used was missing.
403
The API key used was invalid.
404
The resource was not found.
429
The rate limit was exceeded.
429
Indicates an error with Dhesend servers.
The default maximum rate limit is 2 requests per second. This number can be increased for trusted senders by request.
After that, you’ll hit the rate limit and receive a 429 response error code.
To prevent this, we recommend reducing the rate at which you request the API. This can be done by introducing a queue mechanism or reducing the number of concurrent requests per second. If you have specific requirements, contact support to request a rate increase.
On this page