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/auto-topup' \
-H 'Authorization: Bearer sk_xxxxxx'
{
"success": true,
"message": "Operation completed successfully",
"data": {
"amount": {
"amount": 1999,
"currency": "usd"
},
"enabled": true,
"threshold_tokens": 1200000,
"tokens": 1200000,
"cooldown_until": 1,
"last_topup_at": 1760000000
}
}
Returns whether the balance is topped up automatically, at what level and for how much
curl -X GET 'https://app.memorylake.ai/openapi/memorylake/admin/v1/billing/auto-topup' \
-H 'Authorization: Bearer sk_xxxxxx'
{
"success": true,
"message": "Operation completed successfully",
"data": {
"amount": {
"amount": 1999,
"currency": "usd"
},
"enabled": true,
"threshold_tokens": 1200000,
"tokens": 1200000,
"cooldown_until": 1,
"last_topup_at": 1760000000
}
}
GET /openapi/memorylake/admin/v1/billing/auto-topup
credits:viewcurl -X GET 'https://app.memorylake.ai/openapi/memorylake/admin/v1/billing/auto-topup' \
-H 'Authorization: Bearer sk_xxxxxx'
Show Auto Topup object
{
"success": true,
"message": "Operation completed successfully",
"data": {
"amount": {
"amount": 1999,
"currency": "usd"
},
"enabled": true,
"threshold_tokens": 1200000,
"tokens": 1200000,
"cooldown_until": 1,
"last_topup_at": 1760000000
}
}
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 |