REST APIActivity

Reveal activity boxes

POST
/activities/{activityCode}/matches/reveal-all

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.

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.

Request Body

application/json; charset=utf-8
  1. body
phaseId*integer

The phase to reveal boxes in. The activity's current phase is the phaseId of GET /v1/activities/{activityCode}/me/box-summary.

Formatint32

Response Body

application/json; charset=utf-8
  1. response
success*boolean
data*
Example Request
curl -X POST 'https://api.predict.fun/v1/activities/string/matches/reveal-all' \  -H 'Content-Type: application/json; charset=utf-8' \  -d '{  "phaseId": 0}'
Example Response
{  "success": true,  "data": {    "performances": [      {        "matchId": "string",        "phaseId": 0,        "revealedAt": "string",        "metrics": {          "preMatchTradeCount": 0,          "inMatchTradeCount": 0,          "preMatchVolumeUsd": "string",          "inMatchVolumeUsd": "string"        },        "boxCounts": [          {            "boxTypeId": "string",            "revealedCount": 0          }        ]      }    ]  }}