Spend alerts

Create project spend alert

Changed on

Creates a project spend alert.

post/organization/projects/{project_id}/spend_alerts

Request

  • Base URL
    https://api.openai.com/v1
  • URL
    https://api.openai.com/v1/organization/projects/{project_id}/spend_alerts
  • Auth
    HTTP bearer

Path parameters

project_idstring required

The ID of the project to update.

Request body

threshold_amountinteger required

The alert threshold amount, in cents.

currency'USD' required

The currency for the threshold amount.

interval'month' required

The time interval for evaluating spend against the threshold.

Response

Project spend alert created successfully.

idstring required

The identifier, which can be referenced in API endpoints.

object'project.spend_alert' required

The object type, which is always project.spend_alert.

threshold_amountinteger required

The alert threshold amount, in cents.

currency'USD' required

The currency for the threshold amount.

interval'month' required

The time interval for evaluating spend against the threshold.

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

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status