Alerts
List alerts
GET /v1/alerts- Permission
read:alerts- Tokens
- API key, CLI user token, Session token
List your account's alerts newest first. Page with limit and cursor. Every credential can read alerts, so a session can check whether the account is near a budget or out of credit.
Query parameters
limitdefault
100integercursorstring
{
"has_more": bool,
"next_cursor": str
}
1
import os
2
3
from ellipsis import Ellipsis
4
5
client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])
6
7
for item in client.alerts.list():
8
print(item)
1
import { Ellipsis } from '@ellipsis-dev/sdk';
2
3
const client = new Ellipsis({
4
apiKey: process.env.ELLIPSIS_API_TOKEN!,
5
});
6
7
for await (const item of await client.alerts.list()) {
8
console.log(item);
9
}
1
curl "https://api.ellipsis.dev/v1/alerts" \
2
-H "Authorization: Bearer $ELLIPSIS_API_TOKEN"
Response
alertsarray<Alert>required
The matching alerts.
has_moredefault
falsebooleanWhether more results exist past this page.
next_cursorstring
Pass as `cursor` to fetch the next page. Null on the last page. Opaque , echo it back rather than parsing it.