Spend alerts

Create organization spend alert

Changed on

Creates an organization spend alert.

post/organization/spend_alerts

Request

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

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

Organization spend alert created successfully.

idstring required

The identifier, which can be referenced in API endpoints.

object'organization.spend_alert' required

The object type, which is always organization.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 non-success response with the status

    • info

      added the non-success response with the status