Authentication

To access the endpoints in the KineticPay API, you need to authenticate your requests. The recommended authentication method is OAuth2 with a bearer token. Here's how you can authenticate your requests using cURL:

  1. Obtain your api key from the KineticPay dashboard under API Key.
  2. Include the api key in the request header using the Authorization header field with the value

Authorization header

Authorization:  Bearer YOUR_API_KEY

Example cURL command:

Example request with bearer token

curl --location 'http://www.kineticpay.test/api/v2/ping' \
    -H 'Accept: application/json' \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer YOUR_API_KEY'

Always keep api key safe and reset it if you suspect it has been compromised.