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}" \
import axios from 'axios';

const options = {
  method: 'POST',
  url: 'https:/',
  headers: {
    accept: 'application/json',
    'content-type': 'application/json',
    'Bearer': 'API-TOKEN'

  .then(function (response) {
  .catch(function (error) {
import requests

url = "https:/"

headers = {
    "accept": "application/json",
    "content-type": "application/json"
 		"Bearer": "API-TOKEN"

response =, json=payload, headers=headers)

See also Krayon Digital Onboarding.