REST APIActivity

Get activity box types

GET
/activities/{activityCode}/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.

Authorization

ApiKeyAuth
headerx-api-key<token>

API key authentication via the x-api-key header.

Path Parameters

activityCode*string

The activity's code, for example lol-worlds or cs2-major.

Response Body

application/json; charset=utf-8
  1. response
success*boolean
data*array<>
Example Request
curl -X GET 'https://api.predict.fun/v1/activities/string/box-types'
Example Response
{  "success": true,  "data": [    {      "id": "string",      "code": "string",      "name": "string",      "rarity": 0    }  ]}