Publish a pick for a package

You can create and publish a new pick using the API by utilizing the API key provided for each tip package. With the API key, you can make the necessary API calls to create and publish the pick programmatically. This allows for automation and seamless integration with your own systems or applications.

Endpoint

POST /pick/tipster/publish/

CURL example


curl -X POST https://betmatic.app/api/pick/tipster/publish/ \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Token {token}'

Parameters

Name
In
Type
Required
Description

data

body

PickCreateQ

true

Pick content

PickCreateQ

Name
Type
Required
Description

apikey

string

true

API key for the package provided by BETMATIC .

tips

true

Tip contents

PickCreateQ

Name
Type
Required
Description

apikey

string

true

API key for the package provided by BETMATIC .

tips

true

Tip contents

PickCreateTipQ

Name
Type
Required
Description

competition

string

true

Competition name i.e., venue name. Supposed to be one of the ones returned by /competition/namecodes/ API call.

code

string

true

Event code. One of ["Galloping", "Harness", "Greyhounds"]

market

string

true

Target bet market. Supposed to be a full name of the market returned by /bet/markets/

event_number

integer

true

Event no i.e., race no.

selection

integer

true

Target runner. For markets other than Same Race Multi, it is a string of one number. For Same Race Multi market, it is a string of "R:P" separated by comma where R is for runner no and P is for Top place index. E.g. "1:2,3:3" means Runner 1 for Top 2 and Runner 3 for Top 3.

amount_units

number

true

Wager amount in units.

odds

number

false

Minimum odds. This is optional and it will be only used if the punter set check_odds to true in package settings.

max_odds

number

false

Maximum odds. This is optional and it will be only used if the punter set check_max_odds to true in package settings.

bookies

string

false

Target bookie IDs separated by "&"

Body parameter example

{
  "apikey": "R7Y06A12Z4IOVO6H",
  "tips": [
    {
      "competition": "MONMORE",
      "code": "Greyhounds",
      "event_number": 7,
      "market": "Fixed Place",
      "selection": 3,
      "amount_units": 3,
      "odds": 2.3,
      "max_odds": 6.4,
      "bookies": "1&20&3&4&9&23"
    },
    {
      "competition": "OSTERSUND",
      "code": "Harness",
      "event_number": 7,
      "market": "Fixed Place",
      "selection": 3,
      "amount_units": 30,
      "odds": 2.3,
      "max_odds": 6.4,
      "bookies": "20&3&4&9"
    }
  ]
}

Responses

Status
Meaning
Description
Schema

200

OK

None

403

Invalid package API Key

None

404

Competition or market is not available

None

406

Invalid data syntax

None

500

Internal error

None

Last updated