Broker Dashboard

Build your betting application with TCL API

API Access

Your API Key: Loading...

Status: Active

Requests this month: 0

Membership

Current Plan: Basic

Renewal Date: N/A

API Calls Included: 10,000

Quick Stats

Total Bets Processed: 0

Active Applications: 0

Revenue Generated: $0.00

API Documentation

Use these endpoints to integrate with the Townships Combat League API. All requests require your API key in the Authorization header.

Authentication

POST
/api/auth/login

Authenticate a user and receive an access token. Use this token in subsequent API calls.

{
  "email": "user@example.com",
  "password": "password123"
}

Create Bet

POST
/api/bets

Create a new bet for a player. Requires authentication token.

{
  "match_id": "12345",
  "player_id": "67890",
  "outcome": "home_win",
  "amount": 100.00,
  "odds": 2.50
}

Get Bets

GET
/api/bets

Retrieve all bets for the authenticated broker. Supports filtering by date, status, and player.

GET /api/bets?status=pending&date=2026-02-09

Get HLS Stream

GET
/api/stream/{match_id}

Retrieve the HLS stream URL for a specific match in headless mode. Use this to embed live video in your application.

GET /api/stream/12345

Get Matches

GET
/api/matches

Retrieve available matches with odds and betting options. Filter by date, status, or league.

GET /api/matches?status=live&date=2026-02-09

Get Player Balance

GET
/api/players/{player_id}/balance

Retrieve the current balance for a specific player.

GET /api/players/67890/balance

Process Payment

POST
/api/payments

Process a payment for a bet or withdrawal. Requires authentication token.

{
  "player_id": "67890",
  "amount": 100.00,
  "type": "deposit",
  "method": "credit_card"
}

Webhook Configuration

Configure webhooks to receive real-time updates about bets, payments, and match events.

Application Settings