Skip to main content

Earn Level Quota

Returns the authenticated user's current Earn Level status and estimated season token share.

GET /points/earn-quota
Authorization: Bearer <token>

Query Parameters

ParameterTypeRequiredDescription
epochintegerNoEpoch number; defaults to current

Response

{
"earn_level": 2,
"earn_level_weight": 12,
"total_points": "15000.00",
"points_to_next_level": "35000.00",
"next_level": 3,
"next_level_weight": 25,
"estimated_share_pct": "0.000045",
"season_pool_tokens": 25000000
}

Response Fields

FieldTypeDescription
earn_levelintCurrent Earn Level (0–5)
earn_level_weightintDistribution weight for current level
total_pointsDecimalTotal points accumulated this epoch
points_to_next_levelDecimalPoints needed to reach the next level
next_levelint | nullNext Earn Level number; null at L5
next_level_weightint | nullWeight at next level; null at L5
estimated_share_pctDecimalEstimated share of season token pool
season_pool_tokensintTotal user pool tokens for the current season

Earn Level Weights

LevelPoints RangeWeight
L00 – 9994
L11,000 – 9,9998
L210,000 – 49,99912
L350,000 – 199,99925
L4200,000 – 499,99960
L5500,000+120

Code Examples

Python

import requests

BASE_URL = "https://api.primit.io/api/v1"
JWT_TOKEN = "your_jwt_token"

resp = requests.get(
f"{BASE_URL}/points/earn-quota",
headers={"Authorization": f"Bearer {JWT_TOKEN}"},
)
data = resp.json()

est_tokens = float(data["estimated_share_pct"]) * data["season_pool_tokens"]
print(f"Earn Level: L{data['earn_level']} (weight={data['earn_level_weight']})")
print(f"Estimated tokens: {est_tokens:,.0f}")