Skip to main content
POST

Authorizations

X-Api-Key
string
header
required

API key created from the magic-markets website

Body

application/json
sport
string

Sport code (required for normal/lay) - see "Sports & bet types" in the introduction.

event_id
string

Event ID (required for normal/lay)

bet_type
string

Bet type string (required for normal/lay) - see "Sports & bet types" in the introduction.

live_score
object | null

Recorded on the betslip for your reference. It is not checked when you place an order. Send current_score on the order to reject a fill at a different score.

legs
object[]

Parlay legs (required for parlay, 2-10 legs)

Required array length: 2 - 10 elements
betslip_type
enum<string>
default:normal
Available options:
normal,
lay,
parlay
equivalent_bets
boolean
default:true
user_data
string | null
Maximum string length: 512
exclude_danger
boolean
default:false

When true, only liquidity sources that do not hold bets in danger status are used. When false or omitted, all available liquidity sources are used.

Response

Betslip created

status
enum<string>
Available options:
ok
data
object

Create (POST) response; carries no prices. Poll GET or watch the stream for the quote.