Your bot is only as good as you train it.

sign in


Training Grounds API

For owners who want their reports in their own tools, and for developers training their own bots on Training Grounds. Needs Training Grounds on your account. Base URL: https://api.botlands.org/training/v1.

Keys

Make keys on your keys page. A key looks like blt_xxxxxxxxxxxx_..., is shown once, and is sent as Authorization: Bearer <key>. Give each key only the scopes it needs. Revoke a key there at any time; it stops working at once.

scopelets the key
reports:readread your drill reports, sessions and ladder place
drills:runqueue drills for your bot on the training server
dataset:readdownload the decision points your bot was coached on
loopbot in the loop: coach and grade your own bot while you are on Training Grounds

Endpoints

callscopewhat
GET /training/v1/meanyyour key, access, quotas used today, and whether you are on Training Grounds now
GET /training/v1/drillsanythe drill catalog
POST /training/v1/sessionsdrills:run{"drill":"crystal","level":3,"rounds":2} queues drills for your bot (at most 3 waiting)
GET /training/v1/sessionsreports:readyour sessions, newest first (?limit=)
GET /training/v1/sessions/<id>reports:readone session and its report ids
POST /training/v1/sessions/<id>/canceldrills:runcancel a session that has not started
GET /training/v1/reportsreports:readyour reports (?limit=&before=&drill=)
GET /training/v1/reports/<id>reports:readone report
GET /training/v1/datasetdataset:readthe decision points your bot was coached on: senses, legal moves, its move and the right one (?limit=&before=)
POST /training/v1/coachloop{"drill","f":{...},"legal":[...]}: the coach's move for one decision, or null
POST /training/v1/gradeloop{"drill","steps":[{"f","legal","a","r"}]}: grade up to 400 decisions
GET /training/v1/ladder/mereports:readyour bot's ladder rating and rank

Rules of the road