Mager API

Get balance and limits

GET/api/v1/balance

Returns available mood balance, total usage, developer price multiplier, and the rate limits applied to the current API key.

Authorization

MagerApiKey
x-mager-api-key<token>

Mager API key

In: header

Header Parameters

x-mager-api-key*string

Mager API key

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/balance" \  -H "x-mager-api-key: YOUR_API_KEY"
{  "status": 200,  "message": "Success",  "data": {    "moodsBalance": 250,    "moodsUsed": 50,    "moodsGranted": 300,    "priceMultiplier": 1.5,    "rateLimit": {      "perMinute": 60,      "perDay": 5000,      "accountPerMinute": 60,      "accountPerDay": 5000    }  }}