Sample - OpenAI API
GET/organization/spend_limit

Get the organization spend limit

Retrieves the organization's hard spend limit. Use the response to inspect the configured threshold, currency, evaluation interval, and current enforcement state.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

1 status code
200Returns an organization spend limit object with the `organization.spend_limit` object type, threshold amount in cents, currency, evaluation interval, and enforcement status.
objectstringrequired
The object type, which is always `organization.spend_limit`.
Allowed:organization.spend_limitDefault:organization.spend_limit
threshold_amountintegerrequired
The hard spend limit amount, in cents.
currencystringrequired
The currency for the threshold amount. Currently, only `USD` is supported.
intervalstringrequired
The time interval for evaluating spend against the threshold. Currently, only `month` is supported.
enforcementobjectrequired
The current enforcement state of the hard spend limit.