Overview
The Dromo API uses API keys to authenticate requests. You can view and manage your API keys in the Dromo Dashboard.Frontend and Backend Keys
Dromo has two types of API key, and each works only where it is meant to:- Frontend keys open the importer in your users’ browsers. They are visible to anyone who views your page, so they cannot call the REST API. Protect them with whitelisted domains.
- Backend keys authenticate REST API requests, including the Headless API. Keep them on your servers.
Restricting Frontend Keys to Your Domains
Because a frontend key is public, you can limit the websites that are allowed to open the importer with it. In the dashboard, add your domains under My organization → Whitelisted domains.- With no domains listed, the importer opens on any website.
- Once you add at least one, the importer opens only on the domains you list, and shows an error anywhere else.
- A domain can include
*as a wildcard.*.example.commatchesapp.example.comandstaging.example.com. - The list is not enforced in development mode, so you can keep working on
localhostwithout adding it.
Rotating Keys
You can have up to two active keys of each type. To replace a key without downtime:- Create a second key of the same type in the dashboard.
- Deploy the new key everywhere the old one is used.
- Delete the old key once nothing is using it.
Authentication Methods
To send an authorized API call, include your backend API key in theX-Dromo-License-Key header.
