API Endpoint
GET Account Usage API
/api/v1/account/usage
Retrieve current API usage statistics for the authenticated user.
This endpoint does not require any parameters. It uses the Bearer token to identify the user.
Example Request
cURL
curl -X GET https://rsflowhub.com/api/v1/account/usage \
-H "Authorization: Bearer YOUR_API_KEY"
Example Response
JSON Response
{
"success": true,
"data": {
"billing_mode": "credits",
"credits_remaining": 700,
"subscription_credits_remaining": 500,
"top_up_credits_remaining": 200,
"plan": {
"key": "pro",
"name": "Pro Plan",
"monthly_credits": 10000,
"rate_limit_per_minute": 60,
"top_up_enabled": true
},
"subscription": {
"id": 1,
"status": "active",
"billing_cycle": "monthly",
"current_period_starts_at": "2026-05-01T00:00:00.000000Z",
"current_period_ends_at": "2026-05-31T23:59:59.000000Z",
"credits_used_in_period": 500,
"current_period_credits": 10000
},
"recent_transactions": [
{
"id": 105,
"type": "debit",
"amount": 10,
"source": "api",
"reason": "usage",
"endpoint": "content_generation",
"balance_after": 690,
"created_at": "2026-05-24T10:00:00.000000Z"
}
]
}
}
API Request Example
Use the cURL snippet below to test the endpoint.
cURL
curl -X GET 'https://rsflowhub.com/api/v1/account/usage' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '[]'