Fidel API accounts have test and live API secret keys. To change environments just use the appropriate key to get a live or test object. You can find your API keys on the account page of your Fidel API dashboard.

Authenticate your API requests by including your test/live API secret key in the request header. Create an HTTP header named fidel-key and set your secret key as the value.

curl -X GET \
  https://api.fidel.uk/v1/transactions/85cdb967-5c5d-45e3-afdd-d0a9e792bf0f \
  -H 'content-type: application/json' \
  -H 'fidel-key: sk_test_50ea90b6-2a3b-4a56-814d-1bc592ba4d63'

📘

For each environment, test, or live you will have one public and one secret API key.
Your API public keys always start with pk and the secret keys always start with sk.

🚧

Do not share or include your API secret keys on client-side code.