Authentication
All requests to the MoneyLine API must include a valid API key. Pass your key via the x-api-key header on every request. Requests without a valid key will be rejected with a 401 status code.
Getting an API Key
- Create a free account on the sign-up page.
- Open your dashboard.
- Click Create Key to generate a new API key.
Your key will look something like ml_live_abc123.... Keep it secret — treat it like a password.
Example Request
Include the x-api-key header with your key in every request:
curl -H "x-api-key: ml_live_abc123..." \
https://mlapi.bet/v1/events/today
Plans And Usage
Every plan can access every public API endpoint. Plans differ by monthly credits, request rate limits, and overage behavior rather than feature access:
| Plan | Includes | Rate Limit |
|---|---|---|
| Free | Full API access with the smallest credit and rate-limit pool | 1,000 credits/month |
| Starter | Full API access with a larger monthly credit pool | 150,000 credits/month |
| Pro | Full API access with higher throughput | 1,500,000 credits/month |
| Business | Full API access with overage billing and higher throughput | 5,000,000 credits/month |
| Enterprise | Full API access with custom commercial terms | Unlimited |
Error Responses
If your API key is missing or invalid, the API returns a 401 Unauthorized response:
{
"success": false,
"data": null,
"meta": {
"requestId": "ml_req_ab12cd34ef56"
},
"error": {
"message": "API key required. Pass it via the x-api-key header.",
"statusCode": 401
}
}
The API does not use plan-based feature gating for public endpoints. If a request is rejected after authentication, the most likely causes are invalid input, exhausted credits, rate limiting, or an admin-only/private route outside the public API.