REST APIActivity

Get activity boxes

GET
/activities/{activityCode}/me/boxes

The signed-in wallet's revealed boxes in the activity's current phase. Each box has its type, the match it was earned in and its status. An opened box also has its reward.

A box the wallet has not revealed is not listed. Reveal boxes with POST /v1/activities/{activityCode}/matches/reveal-all.

This endpoint can have breaking changes without notice, and it can be removed after the activity ends.

Authorization

ApiKeyAuthBearerAuth
headerx-api-key<token>

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

headerAuthorizationBearer <JWT>

Bearer authentication via the Authorization: Bearer <token> header.

Path Parameters

activityCode*string

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

Query Parameters

matchId?string

Only the boxes earned in this match.

boxTypeId?string

Only the boxes of this type, an id from GET /v1/activities/{activityCode}/box-types.

opened?boolean

true for only the opened boxes, false for only the unopened ones. Leave it out for both.

orderBy?string

The order of the list: ID_ASC, the default, for the lowest box id first, or REVEALED_AT_DESC for the most recently revealed box first.

Value in"ID_ASC""REVEALED_AT_DESC"
first?integer

Page size, from 1 to 100. Defaults to 50. A value outside that range is rejected.

Formatint32
after?string

The cursor from the previous page, to get the next one. A cursor from a page with other filters or another order is rejected.

Lengthlength <= 1024

Response Body

application/json; charset=utf-8
  1. response
success*boolean
data*array<>
cursor?string
Example Request
curl -X GET 'https://api.predict.fun/v1/activities/string/me/boxes'
Example Response
{  "success": true,  "data": [    {      "id": "string",      "matchId": "string",      "match": {        "title": "string",        "teams": [          {            "name": "string",            "shortName": "string",            "logoUrl": "string"          }        ]      },      "boxTypeId": "string",      "status": "ALLOCATED",      "revealedAt": "string",      "openedAt": "string",      "reward": {        "rewardType": "TOKEN",        "currencyId": 0,        "symbol": "string",        "decimals": 0,        "amount": "string"      },      "prizeType": "USDT"    }  ],  "cursor": "string"}