Spend alerts
List project spend alerts
Changed onLists project spend alerts.
get/organization/projects/{project_id}/spend_alerts
Request
- Base URLhttps://api.openai.com/v1
- URLhttps://api.openai.com/v1/organization/projects/{project_id}/spend_alerts
- AuthHTTP bearer
Path parameters
project_idstring required
The ID of the project to inspect.
Query parameters
limitinteger
A limit on the number of spend alerts to return. Defaults to 20.
order'asc' | 'desc'
Sort order for the returned spend alerts.
afterstring
Cursor for pagination. Provide the ID of the last spend alert from the previous response to fetch the next page.
beforestring
Cursor for pagination. Provide the ID of the first spend alert from the previous response to fetch the previous page.
Response
Project spend alerts listed successfully.
Changes
- info
added the optional property
//////to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info
- info
endpoint added
- info