Integrations
Use an API key to connect your own application or automation to your Emayler account.
You do not need the API to use Emayler. For setup in the website, start with Set up your email.
Open API Keys in your dashboard and choose Generate key. Give the key a name you will recognise. Choose read for an integration that only retrieves information, or write if it needs to create or change anything. Copy the key and store it securely. See Create API keys.
Set EMAYLER_API_KEY in your server or terminal environment. Run this request to list your domains. Never put a key into a public website, screenshot or source repository.
curl https://api.emayler.com/v1/domains \
-H "Authorization: Bearer $EMAYLER_API_KEY"For requests that create or send something, include an Idempotency-Key header. Use a new unique value for each new action. If you retry the same action after a timeout, reuse its original value so the retry does not create another copy.
If a response includes next_cursor, pass that value as cursor in the next request. Repeat until no next cursor is returned.
| What you see | What to do |
|---|---|
| 401 | Check that your API key was copied correctly and has not been revoked. |
| 403 | Check your key permissions and account sending approval. |
| Domain not verified | Open Domains in the dashboard and finish the DNS setup. |
| 429 | Wait for the retry time shown in the response before trying again. |
| Another error | Read the response message, correct the requested value, or contact support with the error and time of the request. |
For general account or email problems, see Troubleshooting.