The Ecomail API v2.0 lets you programmatically manage your email marketing — lists, subscribers, campaigns, automations, and more.Documentation Index
Fetch the complete documentation index at: https://docs.ecomail.cz/llms.txt
Use this file to discover all available pages before exploring further.
Base URL
All API requests use the following base URL:Authentication
Before using the API, you need an API key. To obtain one:- Log in to your Ecomail account
- Go to Manage your account → For developers
- Click Copy API Key
key header containing your API key:
Required headers
| Header | Value |
|---|---|
key | Your API key |
Content-Type | application/json |
CORS and security restrictions
For security reasons, the API does not accept direct HTTP requests from JavaScript/AJAX in a browser. Attempting to call the API from a frontend application results in a CORS (Cross-Origin Resource Sharing) error. JavaScript runs client-side, meaning API requests made directly from a browser would expose your API key. Always send API requests from a backend server where your API key is safely stored. Do not expose API requests in client-side code to prevent key leaks. If you need to access the API from a web application, route requests through your backend server to handle authentication securely.Rate limiting
The API allows up to 1,000 requests per minute per API key. If you exceed this limit, the API returns a429 Too Many Requests status code with a Retry-After header indicating how many seconds to wait before retrying.