Permission required:
credits:viewResponse
object
Errors
Errors answer withsuccess: false, a message and an error_code. See Error Codes for every code.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl -X GET 'https://app.memorylake.ai/openapi/memorylake/admin/v1/billing/credit-balance' \
-H 'Authorization: Bearer sk_xxxxxx'
{
"success": true,
"message": "Operation completed successfully",
"data": {
"available_tokens": 1200000,
"billing_mode": "standard",
"breakdown": [
{
"source": "subscription",
"tokens": 1200000,
"expires_at": 1760000000
}
],
"unlimited": false
}
}
Returns the team’s balance in tokens, split into this cycle’s subscription grant and one-time credit, plus the billing mode
curl -X GET 'https://app.memorylake.ai/openapi/memorylake/admin/v1/billing/credit-balance' \
-H 'Authorization: Bearer sk_xxxxxx'
{
"success": true,
"message": "Operation completed successfully",
"data": {
"available_tokens": 1200000,
"billing_mode": "standard",
"breakdown": [
{
"source": "subscription",
"tokens": 1200000,
"expires_at": 1760000000
}
],
"unlimited": false
}
}
GET /openapi/memorylake/admin/v1/billing/credit-balance
credits:viewcurl -X GET 'https://app.memorylake.ai/openapi/memorylake/admin/v1/billing/credit-balance' \
-H 'Authorization: Bearer sk_xxxxxx'
Show Credit Balance object
Show Credit Balance Bucket object
{
"success": true,
"message": "Operation completed successfully",
"data": {
"available_tokens": 1200000,
"billing_mode": "standard",
"breakdown": [
{
"source": "subscription",
"tokens": 1200000,
"expires_at": 1760000000
}
],
"unlimited": false
}
}
success: false, a message and an error_code. See Error Codes for every code.
| Status | Meaning |
|---|---|
401 | The API key is missing, invalid, disabled or expired |
403 | The key is not allowed to do this |
429 | Too many requests. Wait for the time in Retry-After |
500 | Server-side error |