Authentication

Authenticate server-to-server API calls by sending your secret key in the x-api-key header.

Kyshi provides separate test and live keys. Test secret keys use the sk_test_ prefix and live secret keys use the sk_live_ prefix. Keep secret keys on your server only; never expose them in client-side code or commit them to source control.

-H "x-api-key: sk_test_xxxxxxxxxxxxxxxxxxxxx"
curl https://api.kyshi.co/v1/transactions/history \
  -H "x-api-key: sk_test_xxxxxxxxxxxxxxxxxxxxx"

Modes

The API resolves request mode from the key you use:

Key PrefixMode
sk_test_Test mode
sk_live_Live mode

Requests without a valid key return 401 Unauthorized.