Betfluks
DEVELOPER DOCUMENTATION

BetFluks API documentation.

Authentication, endpoint specifications and integration examples for the BetFluks API.

Quickstart

Authenticate server-side with X-API-Key: BF... or Authorization: Bearer BF.... Operator credentials must remain on the server. Access is provisioned under a commercial agreement.

Full OpenAPI Reference
curl -H "X-API-Key: BF..." \
  "https://api.betfluks.com/v1/events?sport=soccer&league=Premier%20League"
REST APIJSONHTTPS

API endpoints

The public OpenAPI reference is the source of truth for schemas, limits, and error codes.

GET/v1/sports

List sports with open offers.

curl -H "X-API-Key: BF..." \
  "https://api.betfluks.com/v1/sports"

GET/v1/countries

Discover available countries.

curl -H "X-API-Key: BF..." \
  "https://api.betfluks.com/v1/countries"

GET/v1/leagues

Find leagues by sport and country.

curl -H "X-API-Key: BF..." \
  "https://api.betfluks.com/v1/leagues"

GET/v1/events

Get upcoming events; filter by sport, league, country, and time.

curl -H "X-API-Key: BF..." \
  "https://api.betfluks.com/v1/events?sport=soccer&limit=10"

GET/v1/events/:id/markets

Fetch the markets and offers for an event.

curl -H "X-API-Key: BF..." \
  "https://api.betfluks.com/v1/events/EVENT_ID/markets"

GET/v1/stream

Stream pre-match offer deltas. Resume with a cursor.

curl -N -H "X-API-Key: BF..." \
  "https://api.betfluks.com/v1/stream"

Use a server-side SSE client that supports authentication headers. Browser EventSource cannot set X-API-Key; route the stream through an application backend.

POST/v1/bets

Register a single bet. An Idempotency-Key is required.

curl -X POST "https://api.betfluks.com/v1/bets" \
  -H "X-API-Key: BF..." \
  -H "Idempotency-Key: unique-request-id" \
  -H "Content-Type: application/json" \
  -d '{
  "offer_id": "OFFER_ID",
  "stake": "10.00",
  "price": "1.85",
  "currency": "USD",
  "external_bet_id": "operator-bet-001"
}'

Replace every placeholder with values from the current offers. Persist a unique idempotency key per business request; reuse it only for retries of that same request. Handle 409 price changes and 422 wallet or stake validation errors.

POST/v1/parlays

Register a multi-leg parlay. An Idempotency-Key is required.

curl -X POST "https://api.betfluks.com/v1/parlays" \
  -H "X-API-Key: BF..." \
  -H "Idempotency-Key: unique-request-id" \
  -H "Content-Type: application/json" \
  -d '{
  "stake": "10.00",
  "currency": "USD",
  "external_bet_id": "operator-parlay-001",
  "legs": [
    {
      "offer_id": "OFFER_ID_A",
      "price": "1.85"
    },
    {
      "offer_id": "OFFER_ID_B",
      "price": "2.10"
    }
  ]
}'