GET/organization/projects/{project_id}/spend_alerts

List project spend alerts

Lists spend alerts configured for a project, with cursor-based pagination. Use limit to set the page size, order to choose the sort direction, and after or before to move through the results.

5 parameters
project_idstringrequired
The ID of the project whose spend alerts to list.
limitintegeroptional
Maximum number of spend alerts to return, from 0 to 100. Defaults to 20 when omitted.
orderstringoptional
Sort direction for the returned spend alerts: `asc` or `desc`. Defaults to `asc` when omitted.
Allowed:ascdescDefault:asc
afterstringoptional
Cursor for the next page; provide the ID of the last spend alert from the previous response.
beforestringoptional
Cursor for the previous page; provide the ID of the first spend alert from the previous response.

4 status codes
200Returns a paginated list of project spend alerts, including the current page's data, first and last alert IDs, and a `has_more` flag.
objectstringrequired
Always `list`.
Allowed:list
dataarray<object>required
Spend alerts returned in the current page.
first_idstringrequired
The ID of the first spend alert in this page.
last_idstringrequired
The ID of the last spend alert in this page.
has_morebooleanrequired
Whether more spend alerts are available when paginating.
400Returned when the spend alert listing parameters are invalid.
errorobjectrequired
403Returned when the caller does not have permission to list project spend alerts.
errorobjectrequired
Details about the permission error.
404Returned when the project or a spend alert pagination cursor is not found.
errorobjectrequired

Error handling

A 400 is returned when the listing parameters are invalid; a 403 when the authenticated user lacks permission; and a 404 when the project or a spend alert pagination cursor is not found. limit must be between 0 and 100, and order must be asc or desc; the project_id path parameter must identify the project to inspect.