REST APIAccount

Get connected account

GET
/account

Get information for the connected user account. points are for one season, season or the current season by default. Requires JWT authentication.

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.

Query Parameters

season?integer

The id of the points season to report points for, which must exist. Defaults to the current season, the latest one to have started.

Formatint32

Response Body

application/json; charset=utf-8
  1. response

Response for GET /v1/account

success*boolean
data*

Account data

Example Request
curl -X GET 'https://api.predict.fun/v1/account'
Example Response
{  "success": true,  "data": {    "name": "string",    "address": "string",    "imageUrl": "string",    "referral": {      "code": "string",      "status": "LOCKED"    },    "points": {      "total": 0.1,      "rank": 0,      "season": 0    }  }}