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.
Who can manage API keys?
Section titled “Who can manage API keys?”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.
How to create an API key
Section titled “How to create an API key”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- Open the Cryptonly Merchant Dashboard.
- Go to Accounts and select the account.
- Open the Settings tab, then Security.
- In API Keys, create a key. Set a name and at least one scope.
- Copy the secret immediately. It is shown only once.




How to use an API key
Section titled “How to use an API key”Include your API key in the x-tenant-api-key header of each request, sent over HTTPS:
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.
Deleting a key
Section titled “Deleting a key”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.