Spend alerts

Retrieve organization spend alert

Changed on

Retrieves an organization spend alert.

get/organization/spend_alerts/{alert_id}

Request

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

Path parameters

alert_idstring required

The ID of the spend alert to retrieve.

Response

Organization spend alert retrieved 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