SpendLimitCreateRequest
Create an absolute limit or a percentage alert. Set one scope ID for an API-key or membership limit, or neither for a team limit. Percentage alerts set ``parent_limit_id`` and ``threshold_percent``; their interval must match the parent and their amount is inherited.
Properties
| Name | Type | Description |
|---|---|---|
| api_key_id | object | |
| membership_id | object | |
| parent_limit_id | object | |
| threshold_percent | object | |
| interval | object | |
| amount_usd | object | |
| action | object | |
| enabled | boolean |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/hud-ai/json-schema/hud-ai-spend-limit-create-request-schema.json",
"title": "SpendLimitCreateRequest",
"description": "Create an absolute limit or a percentage alert.\n\nSet one scope ID for an API-key or membership limit, or neither for a team\nlimit. Percentage alerts set ``parent_limit_id`` and\n``threshold_percent``; their interval must match the parent and their\namount is inherited.",
"x-generated": "2026-11-10",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/hud-ai-limits-api-openapi.yml#/components/schemas/SpendLimitCreateRequest",
"properties": {
"api_key_id": {
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
],
"title": "Api Key Id"
},
"membership_id": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Membership Id"
},
"parent_limit_id": {
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
],
"title": "Parent Limit Id"
},
"threshold_percent": {
"anyOf": [
{
"type": "number",
"maximum": 100.0,
"exclusiveMinimum": 0.0
},
{
"type": "string",
"pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$"
},
{
"type": "null"
}
],
"title": "Threshold Percent"
},
"interval": {
"$ref": "#/$defs/SpendInterval"
},
"amount_usd": {
"anyOf": [
{
"type": "number",
"maximum": 1000000.0,
"exclusiveMinimum": 0.0
},
{
"type": "string",
"pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
},
{
"type": "null"
}
],
"title": "Amount Usd"
},
"action": {
"$ref": "#/$defs/SpendLimitAction"
},
"enabled": {
"type": "boolean",
"title": "Enabled",
"default": true
}
},
"type": "object",
"required": [
"interval",
"action"
],
"$defs": {
"SpendInterval": {
"type": "string",
"enum": [
"week",
"month"
],
"title": "SpendInterval"
},
"SpendLimitAction": {
"type": "string",
"enum": [
"alert",
"block"
],
"title": "SpendLimitAction"
}
}
}
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.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/json-schemas/hud-ai-spend-limit-create-request"
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
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.