Authentication

The Gameball API uses API keys to authenticate requests. You can view your API keys in the Gameball Dashboard.

Gameball APIs are secured using API Keys to add an additional layer of protection to your account. Two types of keys are provided: the API Key and the Secret Key (also referred to as the transaction key).

  • The API Key is used for regular, non-sensitive endpoints.

  • The Secret Key must be used along with the API Key when performing sensitive operations.

Highly Important Note! Your API keys carry significant privileges, so it's essential to keep them secure. Never share your Secret Key in publicly accessible areas, such as GitHub or client-side code.

For each API request, include your account's API Key, and in some cases, the Secret Key as well, in the request headers. For more details on how to retrieve your API Key and Secret Key, refer to our Help Center.

Example: Authentication with API Key

curl --request POST \
  --url 'https://api.gameball.co/api/v4.0/integrations/event' \
  --header 'APIKey: ue7eh32eiwlsncoko08u8b'

Example: Authentication with API Key and Secret Key

curl --request POST \
  --url 'https://api.gameball.co/api/v4.0/integrations/transaction/cashback' \
  --header 'APIKey: ue7eh32eiwlsncoko08u8b'
  --header 'SecretKey: kz7eh32eiwldlowbo08u5p'

Last updated