Skip to main content

Get your API key

Your API key authenticates every request between your site and Wearo. Each account can have multiple keys (e.g., one for production, one for staging).

Get your first key

1

Sign in to your Wearo dashboard

2

Navigate to API keys

In the sidebar, click API Keys.
3

Create a new key

Click Create new key. Give it a name like Production or Kookai prod, and optionally the domains it is allowed on.
4

Copy the key

The key starts with wearo_. Copy it and store it securely (1Password, AWS Secrets Manager, etc.). The creation dialog asks you to save it right away; the key also stays listed on the API Keys page, where you can Show and Copy it.
Treat the key like a password: anyone who has it can run try-ons billed to your account (restrict it to your domains below).

Restrict your key to specific domains

To prevent abuse if your key leaks (e.g., scraped from your front-end), restrict it to your domains:
  1. In API Keys, click Security on the key.
  2. Under Allowed domains, add your root domain: kookai.fr.
  3. All subdomains are automatically included — www.kookai.fr, shop.kookai.fr, etc. don’t need a separate entry.
A key with no domain is unrestricted and works from any website. Requests from any other origin than your domains will get a 403 Domain not authorized for this API key error. See Domain whitelist for the matching rules.

Rotate or revoke a key

If a key is compromised:
  1. Create a new key.
  2. Update your snippets.
  3. Delete the old key.
Once a key is deleted, requests that use it fail with 401 Invalid API key. Deleting a key cannot be undone.