Authentication
How to authenticate API requests
Getting an API Key
Using Your API Key
curl -X GET "https://api.madjik.io/v1/metrics/ME10001" \
-H "Authorization: Bearer YOUR_API_KEY"Python Example
import requests
API_KEY = "your_api_key_here"
BASE_URL = "https://api.madjik.io/v1"
headers = {
"Authorization": f"Bearer {API_KEY}"
}
response = requests.get(f"{BASE_URL}/metrics/ME10001", headers=headers)
data = response.json()JavaScript Example
Error Responses
Code
Meaning
Last updated