Security
Emailable has two types of API Keys. Please use the proper API key for your application.
Private API Keys
This type of key is meant to be used on the server-side of your application.
These keys should never be exposed because they are not protected.
Should a Private API key be compromised, you should immediately generate a new
one by using the “roll key” function in the dashboard.
To enhance security, you can specify a list of trusted IP addresses for each
Private API key. If specified, only requests originating from one of the IP
addresses you have listed will be accepted.
Private API keys can be used to access any API endpoint.
Public API Keys
This type of key is meant to be used anywhere that the key will be exposed
publicly. One example would be using the API in the JavaScript of a website to
verify that user entered email addresses are valid.
To prevent abuse of your account, we require that you set up a list of
trusted domains when you create a Public API key. All requests that are made
using a Public API key will only work if they originate from a trusted domain.
They will also be rate limited to 10 unique requests per day per user.
If you’ve configured a captcha provider for your API key, you will need to
send a captcha_response parameter with the request. This will be used to
validate the captcha with your captcha provider. If the captcha fails to
verify, the API will return a 403 status code.
Public API keys are limited to authenticating requests to the /verify
endpoint. Attempting to use a Public API key for any other endpoint will fail.