Authentication
Step 1: Get API Key
Contact dev@enimach1.com for access to our API keys and request an authentication token.
Token validity: 90 days
Renewable through developer portal
Step 2: Format Request
Include your API key in the Authorization header as a bearer token.
curl -X GET https://api.enimach1.com/data \
-H "Authorization: Bearer YOUR_API_KEY"
Example Endpoints
GET /user/data
Retrieve user profile and account details. Requires standard authentication.
{
"userId": "12345"
}
POST /predict
Run a machine learning prediction using uploaded data.
{
"modelId": "climate-model-v1",
"inputData": {"temp": 72, "humidity": 60}
}
Code Samples
JavaScript Fetch API
fetch('https://api.enimach1.com/data', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_KEY'
}
})
.then(response => response.json());
Python Requests
import requests
response = requests.get(
'https://api.enimach1.com/predict',
headers={'Authorization': 'Bearer YOUR_KEY'},
json={'modelId': 'climate-model-v1', 'inputData': {'temp': 72}}
)