Skip to content

Authentication

API Keys

Gainly authenticates your API requests using your account's API keys. Each API request must include a valid API key.

If your API request doesn't include a valid API key, Gainly will return a 401 Unauthorized error.

Gainly Dashboard

You can find your API keys by in your Gainly Dashboard.

You will find both test mode and live mode API keys in your dashboard. The API key used to authenticate your request will determine whether the request works in test mode or live mode.

X-API-Key HTTP Header

Pass your API key in the header of each API request using the custom HTTP header X-API-Key.

All API requests must include the API key. If an API request doesn't include a valid API key, Gainly will return a 401 Unauthorized error.