cURL
curl --request GET \ --url https://api.example.com/api/v2/user/me \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "avatar_url": "<string>" } '
{ "id": 123, "name": "<string>", "email": {}, "telegram_username": {}, "avatar_url": {}, "plan": "<string>", "plan_expires_at": {}, "token_balance": 123, "token_limit": 123, "rate_limit_hourly": 123, "rate_limit_daily": 123, "auth_methods": {} }
Retrieve the authenticated user’s profile, plan, and token balance
curl https://neuralbox.top/api/v2/user/me \ -H "Authorization: Bearer nb_YOUR_API_KEY"
free
basic
pro
vip
elite
0
{ "id": 1042, "name": "Ivan Petrov", "email": "ivan@example.com", "telegram_username": "ivan_dev", "avatar_url": "https://t.me/i/userpic/320/ivan_dev.jpg", "plan": "vip", "plan_expires_at": "2026-04-08T00:00:00Z", "token_balance": 1247, "token_limit": 1500, "tokens_used_this_period": 253, "rate_limit_hourly": 100, "rate_limit_daily": 1000, "auth_methods": { "telegram": true, "google": false, "email": true } }
curl https://neuralbox.top/api/v2/user/balance \ -H "Authorization: Bearer nb_YOUR_API_KEY"
{ "plan": "vip", "token_balance": 1247, "plan_tokens_remaining": 1247, "bonus_tokens": 0, "plan_expires_at": "2026-04-08T00:00:00Z", "next_refill_at": "2026-04-08T00:00:00Z" }
curl -X PATCH https://neuralbox.top/api/v2/user/me \ -H "Authorization: Bearer nb_YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "Ivan P." }'