Authentication
Authenticate requests to the ENLYZE API with an API key.
Every request to the ENLYZE API must be authenticated. The API uses API keys, which you pass in the Authorization header using the Bearer scheme.
Create an API key
You manage API keys in the ENLYZE web app. See Manage API keys.
Use an API key
Pass the API key in the Authorization header. The scheme is Bearer, followed by a space and the key:
Authorization: Bearer YOUR_API_KEYExample request:
import requests
response = requests.get(
"https://app.enlyze.com/api/v2/machines",
headers={"Authorization": "Bearer YOUR_API_KEY"},
)curl https://app.enlyze.com/api/v2/machines \
-H "Authorization: Bearer YOUR_API_KEY"Failed authentication
If the Authorization header is missing or malformed, or uses a scheme other than Bearer, the API responds with status code 401 Unauthorized. See Errors.
Last updated