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

  1. Create a free account on the sign-up page.
  2. Open your dashboard.
  3. 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:

Authenticated 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:

PlanIncludesRate Limit
FreeFull API access with the smallest credit and rate-limit pool1,000 credits/month
StarterFull API access with a larger monthly credit pool150,000 credits/month
ProFull API access with higher throughput1,500,000 credits/month
BusinessFull API access with overage billing and higher throughput5,000,000 credits/month
EnterpriseFull API access with custom commercial termsUnlimited

Error Responses

If your API key is missing or invalid, the API returns a 401 Unauthorized response:

401 — Invalid or missing key
{
  "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.