Get Limit (Credits) Endpoint
Overview
Retrieves the credit/quota information for the account, showing available credits and usage limits.
🔗 Quick Links
- 📊 Dashboard - Manage accounts, view logs, and monitor system status
- 📚 API Index - Complete API reference
Endpoint
GET /api/get_limit
GET /[accountId]/api/get_limit
Request
No parameters required.
Example Request
curl "https://your-domain.com/api/get_limit"
const response = await fetch('/api/get_limit');
Response
Success Response (200 OK)
Returns credit/limit information:
{
"credits_left": 50,
"monthly_credits": 100,
"used_credits": 50
}
Status Code: 200
Content-Type: application/json
Note: Actual response structure depends on Suno API response format.
Internal Server Error (500)
When an error occurs:
{
"error": "Internal server error. [error details]"
}
Status Code: 500
Content-Type: application/json
Method Not Allowed (405)
When using an unsupported HTTP method:
Status Code: 405
Headers: Allow: GET
Notes
- Returns account credit/quota information
- All responses include CORS headers