CLAUDE.mdepks — self-contained for any AI assistant. Base URL: https://api.b337.ai.<paste-your-api-key-here> placeholder.This guide will help you get up and running with the API quickly.
The API is available at:
https://api.b337.aiAll API requests must include the following headers:
Content-Type: application/json X-API-Key: YOUR_API_KEY
The API uses API key authentication. You'll need to:
X-API-Key header of every requestSee the Authentication guide for detailed information.
Let's start with a simple health check or account information request:
curl -X POST https://api.b337.ai/api/session_ids \ -H "X-API-Key: YOUR_API_KEY" \ -H "Content-Type: application/json"
import requests headers = { 'X-API-Key': 'YOUR_API_KEY', 'Content-Type': 'application/json', } response = requests.post( 'https://api.b337.ai/api/session_ids', headers=headers ) print(response.json())
API responses vary by endpoint:
Success Response (Place Bet):
{ "success": true, "bet_id": "bet-uuid", "bookie_bet_id": "bookie-specific-id", "stake": 10.0, "odds": 3.5, "potential_return": 35.0, "status": "placed" }
Success Response (Get Sessions):
{ "sessions": [ { "session_id": "uuid-string", "bookie": "tab", "username": "user@example.com", "active": true } ] }
Error Response:
{ "detail": "Error message describing what went wrong" }