Skip to content

Authorization

Cryptonly API requests must be authorized with an API key. Send the key from your backend only, and never expose it in a browser or mobile app.

Members with the Owner, Admin or Developer role can create API keys, edit a key’s name and scopes, and delete keys. Other roles can only see the list. See Managing access & roles.

API keys belong to an account. Requests authenticated with it operate on the account it was created for.

Get API key Get sandbox API key
  1. Open the Cryptonly Merchant Dashboard.
  2. Go to Accounts and select the account.
  3. Open the Settings tab, then Security.
  4. In API Keys, create a key. Set a name and at least one scope.
  5. Copy the secret immediately. It is shown only once.
Account Settings → Security with two API keys and their scopes, the Webhook signing key and the IP allowlist.Account Settings → Security with two API keys and their scopes, the Webhook signing key and the IP allowlist.
New API Key dialog: the key is named Production server and has the invoices and currencies scopes.New API Key dialog: the key is named Production server and has the invoices and currencies scopes.

Include your API key in the x-tenant-api-key header of each request, sent over HTTPS:

Terminal window
curl https://api-merchant.cryptonly.net/currencies \
-H "x-tenant-api-key: YOUR_API_KEY"

Use https://sandbox-api-merchant.cryptonly.net with a sandbox key. A missing or invalid key returns 401; a key without the required scope returns 403.

If an API key is no longer needed, or if you suspect it has been compromised, delete it from the account’s Security page.

Once deleted, the key can no longer be used to authorize API requests.