Authentication
Authentication
Section titled “Authentication”OddsMap requests use a placeholder bearer-token flow until the real product auth contract is documented here.
Local variables
Section titled “Local variables”export API_KEY=YOUR_API_KEYexport API_BASE_URL=https://api.example.comExample request
Section titled “Example request”curl https://api.example.com/users \ -H "Authorization: Bearer YOUR_API_KEY"TypeScript example
Section titled “TypeScript example”const response = await fetch('https://api.example.com/users', { headers: { Authorization: `Bearer ${process.env.API_KEY}` }});
if (!response.ok) { throw new Error(`Request failed: ${response.status}`);}
const data = await response.json();console.log(data);