Spendline · Schema

Policy

Artificial IntelligenceFinOpsB2BCost ManagementSoftware-as-a-Service

Properties

Name Type Description
id string
name string
type string model_block refuses the named model. model_allow is one ENTRY in an allow-list: every enabled model_allow row sharing one exact scope is one list, and a call must match some entry of every list that a
model string Model name to match. Stored lowercased.
match_mode string
value numbernull Required positive number for token-limit types. Null for model_block and model_allow.
enforcement string Ignored for model_block and model_allow, which always block.
enabled boolean
scope objectnull Optional; the same object a reroute rule carries. Omit for an account-wide policy. A scoped policy applies to calls attributed to that agent / customer AND to calls carrying no attribution, so leaving
View JSON Schema on GitHub

JSON Schema

spendline-ai-policy-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/spendline-ai/json-schema/spendline-ai-policy-schema.json",
  "title": "Policy",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/spendline-ai-openapi.json#/components/schemas/Policy",
  "type": "object",
  "required": [
    "name",
    "type",
    "model"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "readOnly": true
    },
    "name": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "enum": [
        "model_block",
        "model_allow",
        "max_input_tokens",
        "max_output_tokens"
      ],
      "description": "model_block refuses the named model. model_allow is one ENTRY in an allow-list: every enabled model_allow row sharing one exact scope is one list, and a call must match some entry of every list that applies to it. Both judge the requested and the served model."
    },
    "model": {
      "type": "string",
      "description": "Model name to match. Stored lowercased."
    },
    "match_mode": {
      "type": "string",
      "enum": [
        "exact",
        "prefix",
        "contains"
      ],
      "default": "exact"
    },
    "value": {
      "type": [
        "number",
        "null"
      ],
      "description": "Required positive number for token-limit types. Null for model_block and model_allow."
    },
    "enforcement": {
      "type": "string",
      "enum": [
        "block",
        "warn"
      ],
      "default": "block",
      "description": "Ignored for model_block and model_allow, which always block."
    },
    "enabled": {
      "type": "boolean",
      "default": true
    },
    "scope": {
      "type": [
        "object",
        "null"
      ],
      "description": "Optional; the same object a reroute rule carries. Omit for an account-wide policy. A scoped policy applies to calls attributed to that agent / customer AND to calls carrying no attribution, so leaving x-agent-id off is never a way around it. A call attributed to a different agent or customer is not affected. Unknown keys are a 400.",
      "properties": {
        "agent_id": {
          "type": "string"
        },
        "customer_id": {
          "type": "string"
        },
        "agent_name": {
          "type": "string"
        }
      }
    }
  }
}

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/spendline-ai-policy"
All schemas
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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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