Skip to main content

Base URL

The Unosend API is built on REST principles. We enforce HTTPS in every request to improve data security, integrity, and privacy. The API does not support HTTP. All requests contain the following base URL:
https://www.unosend.co/api/v1

Authentication

To authenticate you need to add an Authorization header with the contents of the header being Bearer un_xxxxxxxxxx where un_xxxxxxxxxx is your API Key.
Authorization: Bearer un_xxxxxxxxxx
Keep your API key secure and never expose it in client-side code.

Response codes

Unosend 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 infrastructure issues.
StatusDescription
200Successful request.
400Check that the parameters were correct.
401The API key used was missing or invalid.
403The API key doesn’t have permissions for the request.
404The requested resource was not found.
422Unprocessable entity. Check the request body.
429The rate limit was exceeded.
500Internal server error.

Rate limit

The API has a rate limit of 100 requests per second. If you exceed this limit, you’ll receive a 429 response. Rate limit headers are included in all responses:
HeaderDescription
X-RateLimit-LimitMaximum requests per window
X-RateLimit-RemainingRequests remaining in current window
X-RateLimit-ResetUnix timestamp when the window resets

Pagination

List endpoints support pagination using limit and offset query parameters:
GET /v1/emails?limit=20&offset=40
ParameterTypeDefaultDescription
limitinteger20Number of items per page (max 100)
offsetinteger0Number of items to skip

FAQ

Unosend API keys start with un_ prefix for easy identification. If you’re migrating from Resend, you’ll need to generate new API keys in the Unosend dashboard.
No, API requests should only be made from your server to keep your API key secure. Never expose your API key in client-side code.
The maximum total email size including attachments is 40MB.