Docs
API
Authorization

ezML API

For a complete breakdown of the endpoints available check out our API endpoint docs

Authorization

To authenticate with the API you will need to get an access token by sending your client_key and client_secret to the POST /auth endpoint. You are also able to configure the TTL of this token to suit your needs.

You will need to pass this token in the Authorization header of all requests to the API. Authorization: Bearer <token>

import requests

url = "https://gateway.ezml.io/api/v1/auth"

payload = {
    "client_key": "your_client_key",
    "client_secret": "your_client_secret",
    "ttl": 24 # optional (default 24), hours until token expires
}

res = requests.post(url, json=payload)

res.json()["access_token"] # use in Authorization header for all API requests
Last updated on September 26, 2023