GET /openapi/memorylake/admin/v1/billing/credit-balance/alert/events
Permission required:
credits:viewQuery Parameters
integer
default:"20"
Items per page (1–100)
string
Token from the previous page
curl -X GET 'https://app.memorylake.ai/openapi/memorylake/admin/v1/billing/credit-balance/alert/events' \
-H 'Authorization: Bearer sk_xxxxxx'
Response
object
Show Load More Response Balance Alert Event object
Show Load More Response Balance Alert Event object
array
List of items in the current page
Show Balance Alert Event object
Show Balance Alert Event object
integer
The balance when it fired, in tokens (negative after an overdraft)
integer
Unix seconds
integer
Event id
array
Emails sent for this event. When several levels fire at once, only the most severe sends email; the others list none
Show Balance Alert Delivery object
Show Balance Alert Delivery object
boolean
The balance has since risen back above this level
object
The level that fired
Show Balance Alert Threshold object
Show Balance Alert Threshold object
integer
When it recovered, Unix seconds
string
Token to fetch the next page; absent on the last page
integer
Total number of items matching the filter across all pages; omitted when the count is unavailable
{
"success": true,
"message": "Operation completed successfully",
"data": {
"items": [
{
"balance_tokens": 1200000,
"fired_at": 1760000000,
"id": 1,
"recipients": [
{
"status": "sent",
"email": "alice@example.com"
}
],
"recovered": false,
"threshold": {
"type": "percent_used",
"value": 1
},
"recovered_at": 1760000000
}
],
"continuation_token": "eyJvZmZzZXQiOjIwfQ",
"total": 1
}
}
Errors
Errors answer withsuccess: false, a message and an error_code. See Error Codes for every code.
| Status | Meaning |
|---|---|
400 | A parameter or the body is invalid |
401 | The API key is missing, invalid, disabled or expired |
403 | The key is not allowed to do this |
422 | The body or a parameter failed validation |
429 | Too many requests. Wait for the time in Retry-After |
500 | Server-side error |