Authentication
To use the Tutorial Documentation API, you need to authenticate using an API key. You can obtain your API key from the Tutorial Documentation dashboard.
Authenticate your API calls by including your secret key in the Authorization header of every request you make. You can manage your API keys from the dashboard.
If for any reason you believe your secret key has been compromised or you wish to reset them, you can do so from the dashboard.
Get your secret key on your dashboard on the link below:
Tutorial Documentation DashboardSecure your secret key
Do not commit your secret keys to git, or use them in client-side code.
Authorization headers should be in the following format:
Authorization: Bearer YOUR_SECRET_KEY
API Endpoints
- API Base URL: https://api.tutorial-clinic.avalonhealth.cloud/
API requests made without authentication will fail with the status code 401: Unauthorized. All API requests must be made over HTTPS.
Sample Request to Retrieve Tutorial Documentation Balance for a Specific Currency
cURL
curl -X GET https://api.tutorial-clinic.avalonhealth.cloud//v1/wallet/balance?currency=USD \ -H "Authorization: Bearer YOUR_SECRET_KEY"
Python
import requests \ url = "https://api.tutorial-clinic.avalonhealth.cloud//v1/wallets/balance?currency=USD" \ headers = { "Authorization": "Bearer YOUR_SECRET_KEY" } response = requests.get(url, headers=headers) if response.status_code == 200: print("Balance for USD:", response.json()) else: print("Error:", response.status_code, response.text)
Sample Request to Retrieve Tutorial Documentation Balance for All Wallets
cURL
curl -X GET https://api.tutorial-clinic.avalonhealth.cloud//v1/wallets/balance \ -H "Authorization: Bearer YOUR_SECRET_KEY"
Python
import requests \ url = "https://api.tutorial-clinic.avalonhealth.cloud//v1/wallets/balance" \ headers = { "Authorization": "Bearer YOUR_SECRET_KEY" } response = requests.get(url, headers=headers) if response.status_code == 200: print("Balance for all wallets:", response.json()) else: print("Error:", response.status_code, response.text)