Authentication

How to authenticate API requests

All API requests require authentication using an API key.

Getting an API Key

  1. Choose your plan

  2. Your API key will be available in your dashboard

Using Your API Key

Include your API key in the Authorization header:

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

401

Invalid or missing API key

403

API key doesn't have access to this resource

429

Rate limit exceeded

Last updated