Skip to main content

Overview

The Dromo API uses API keys to authenticate requests. You can view and manage your API keys in the Dromo Dashboard.
Keep your backend API keys secure!
  • Never expose them in client-side code
  • Store them securely in environment variables

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.com matches app.example.com and staging.example.com.
  • The list is not enforced in development mode, so you can keep working on localhost without adding it.

Rotating Keys

You can have up to two active keys of each type. To replace a key without downtime:
  1. Create a second key of the same type in the dashboard.
  2. Deploy the new key everywhere the old one is used.
  3. Delete the old key once nothing is using it.
You always keep at least one key of each type: the last one cannot be deleted.

Authentication Methods

To send an authorized API call, include your backend API key in the X-Dromo-License-Key header.