REST APIActivity
Get activity box types
The box types of an activity that rewards trading with boxes, such as cs2-major, from
the most common to the rarest. A box's type is its level. Every box carries a
boxTypeId, and the type's name and rarity tell which level that is.
The prize of a type is not listed. A wallet learns it by opening a box of that type.
This endpoint can have breaking changes without notice, and it can be removed after the activity ends.
ApiKeyAuthx-api-key<token>API key authentication via the x-api-key header.
activityCode*stringThe activity's code, for example lol-worlds or cs2-major.
application/json; charset=utf-8- response
success*booleandata*array<>curl -X GET 'https://api.predict.fun/v1/activities/string/box-types'{ "success": true, "data": [ { "id": "string", "code": "string", "name": "string", "rarity": 0 } ]}Get activity registration GET
The signed-in wallet's registration for the activity named by activityCode, for example lol-worlds or cs2-major.
Reveal activity boxes POST
Reveals the boxes the signed-in wallet earned in every match of a phase whose boxes are ready. A wallet earns boxes by trading on the activity's matches after it joins the activity. The boxes of a match stay hidden until the wallet reveals them, and only revealed boxes can be listed, counted and opened. Returns one entry for each match this request revealed, with the wallet's trading in that match and the boxes it earned. A match revealed earlier is left out, so a repeated request returns an empty list. If a response is lost, read the boxes from GET /v1/activities/{activityCode}/me/boxes. This endpoint can have breaking changes without notice, and it can be removed after the activity ends.