Skip to main content
curl --request POST \
  --url https://api.longshot.xyz/v1/user/contest_bet \
  --header 'Authorization: Bearer <session_token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "contest_id": "550e8400-e29b-41d4-a716-446655440000",
    "bets": [
      { "market_id": 61619, "direction": "up" },
      { "market_id": 61620, "direction": "down" }
    ]
  }'
{
  "contest_id": "550e8400-e29b-41d4-a716-446655440000",
  "entry_index": 0,
  "reserved_micros": "2000000"
}
curl --request POST \
  --url https://api.longshot.xyz/v1/user/contest_bet \
  --header 'Authorization: Bearer <session_token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "contest_id": "550e8400-e29b-41d4-a716-446655440000",
    "bets": [
      { "market_id": 61619, "direction": "up" },
      { "market_id": 61620, "direction": "down" }
    ]
  }'
{
  "contest_id": "550e8400-e29b-41d4-a716-446655440000",
  "entry_index": 0,
  "reserved_micros": "2000000"
}

Endpoint

POST https://api.longshot.xyz/v1/user/contest_bet
Authorization: Bearer <session_token>
Content-Type: application/json
Submits a contest entry for the authenticated user. Pick count and category rules are enforced by the contest’s bet_type.

Headers

Authorization
string
required
Bearer <session_token> from wallet auth or Privy session auth.

Body Parameters

contest_id
uuid
required
Contest ID returned by GET /v1/contests.
entry_index
int32
Optional entry index for continuing an existing Survivor or Streak entry. Omit this to allocate the caller’s next entry index, starting at 0 for their first entry in the contest.
bets
array
required
Picks for the contest entry.
bets[].market_id
int64
required
Market ID from the contest detail response’s markets[].market_id.
bets[].direction
string
required
Pick direction: up or down.

Response Fields

contest_id
uuid
Contest ID that accepted the entry.
entry_index
int32
Entry index assigned to this entry.
reserved_micros
string
Amount reserved for the entry in micros, encoded as a decimal integer string.