Get all racing codes

GET /bet/codes/

Operation ID: get_bet_codes

Retrieve all racing codes. These codes can be used by users to generate racing notifications or publish picks.

Parameters

No parameters required.

Response

Success Response (200)

Returns a BetCode object:

{
  "codes": [
    "Galloping",
    "Harness", 
    "Greyhounds"
  ]
}
Field
Type
Description

codes

array[string]

Racing type codes available in the system

Usage

curl -X GET "https://betmatic.app/api/bet/codes/" \
  -H "Authorization: Token your_token"

Potential Use Cases

  1. Bet Creation Validation: Validate racing codes before creating notifications or bets

  2. Bot Configuration: Configure automated betting bots with valid racing types

  3. Tipster Publishing: Verify racing codes before publishing picks to subscribers

Authentication

This endpoint requires authentication. Include your token in the Authorization header:

Authorization: Token your_token

Last updated