import requests
# Constants
ENDPOINT = "https://hyperhuman.deemos.com/api/v2/check_balance"
API_KEY = "your api key" # Replace with your actual API key
# Prepare the headers
headers = {
'Authorization': f'Bearer {API_KEY}',
}
# Make the GET request
response = requests.get(ENDPOINT, headers=headers)
# Parse and return the JSON response
print(response.json())
This API uses bearer key for authentication. You need to include a valid token in the Authorization header for all requests. Refer to the for how to generate an API key for your account.