OpenAI · Schema

CreateSpendAlertBody

Parameters for creating or updating a spend alert.

LLMOpenAIArtificial IntelligenceGenerative AIChatbotsFoundation ModelsT1

Properties

Name Type Description
threshold_amount integer The alert threshold amount, in cents.
currency string The currency for the threshold amount.
interval string The time interval for evaluating spend against the threshold.
notification_channel object
View JSON Schema on GitHub

JSON Schema

openai-create-spend-alert-body-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/openai/main/json-schema/openai-create-spend-alert-body-schema.json",
  "title": "CreateSpendAlertBody",
  "description": "Parameters for creating or updating a spend alert.",
  "x-generated": "2026-09-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/openai-spend-alerts-api-openapi.yml#/components/schemas/CreateSpendAlertBody",
  "type": "object",
  "properties": {
    "threshold_amount": {
      "type": "integer",
      "minimum": 0,
      "description": "The alert threshold amount, in cents."
    },
    "currency": {
      "type": "string",
      "enum": [
        "USD"
      ],
      "description": "The currency for the threshold amount."
    },
    "interval": {
      "type": "string",
      "enum": [
        "month"
      ],
      "description": "The time interval for evaluating spend against the threshold."
    },
    "notification_channel": {
      "$ref": "#/$defs/SpendAlertNotificationChannel"
    }
  },
  "required": [
    "threshold_amount",
    "currency",
    "interval",
    "notification_channel"
  ],
  "$defs": {
    "SpendAlertNotificationChannel": {
      "type": "object",
      "description": "Email notification settings for a spend alert.",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "email"
          ],
          "description": "The notification channel type. Currently only `email` is supported.",
          "x-stainless-const": true
        },
        "recipients": {
          "type": "array",
          "description": "Email addresses that receive the spend alert notification.",
          "items": {
            "type": "string"
          }
        },
        "subject_prefix": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Optional subject prefix for alert emails."
        }
      },
      "required": [
        "type",
        "recipients"
      ]
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/openai-create-spend-alert-body"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.