The Krayon Digital API uses API tokens to authenticate requests. You can view and manage your API tokens in the Test environment Krayon Digital Dashboard or the Production environment Krayon Digital Dashboard Krayon Digital Dashboard.
Your API Tokens carry many privileges, so be aware of keeping them secure! Do not share your secret API Tokens in publicly accessible areas such as GitHub, client-side code, etc.
Authentication to the Krayon Digital API via HTTP Basic Auth. Provide your API token as the basic auth username value. You do not need to provide a password.
You need to authenticate using bearer auth (e.g., for a cross-origin request). Use -H "Authorization: Bearer {API Token goes here}".
All API requests must be made over HTTPS. Calls made using plain HTTP will fail. API requests without authentication will also fail.
curl -H "Authorization: Bearer {API-Token}" \
https:/api.cyan.test.krayondigital.com/main/api/v1/support-coins
import axios from 'axios';
const options = {
method: 'POST',
url: 'https:/api.cyan.test.krayondigital.com/main/api/v1/support-coins',
headers: {
accept: 'application/json',
'content-type': 'application/json',
'Bearer': 'API-TOKEN'
}
};
axios
.request(options)
.then(function (response) {
console.log(response.data);
})
.catch(function (error) {
console.error(error);
});
import requests
url = "https:/api.cyan.test.krayondigital.com/main/api/v1/supported-coins"
headers = {
"accept": "application/json",
"content-type": "application/json"
"Bearer": "API-TOKEN"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
See also Krayon Digital Onboarding.