Getting started
Authentication and keys
Use this page to send your key and to see what a failed request looks like. Every endpoint except the documentation needs a key.
1. Send the key as a bearer token
Send the key in the Authorization header of every request.
Authorization: Bearer YOUR_KEY2. Keep the key secret
Read the key from an environment variable or a secrets store, and never write it into code that ships to a browser or into a repository. A key is shown once when you create it. If one leaks, delete it in the dashboard and create another.
3. Check a failed request
A request without a valid key gets a 401 and an error object. Every error is built the same way, described on Errors.
curl "https://odds-feed.on-forge.com/api/v2/matches?limit=1"{
"error": {
"status": 401,
"code": "unauthenticated",
"message": "A valid API key is required."
}
}4. Know what a key can do
A key carries abilities, and your plan decides which abilities it can use. An endpoint that needs an ability the key lacks answers 403 with the code not_entitled. Plans and access shows the answer for each plan, and Abilities lists the ability each endpoint needs.
Reference
| Item | Value |
|---|---|
| Base URL | https://odds-feed.on-forge.com/api/v2 |
| Authentication | Authorization: Bearer YOUR_KEY |
| Format | JSON, UTF-8 |
| Times | UTC, ISO 8601 with milliseconds, for example 2026-11-27T09:40:20.000Z |
| Ids | Matches, competitions, teams and venues use UUIDs |