Mensageiro · Schema

KeyPatch

WhatsAppAI Chatbot

Properties

Name Type Description
name string
status string revoked pauses the key; active resumes it. A key revoked with DELETE cannot come back.
allowed_models arraynull
allowed_ips arraynull Addresses or CIDRs; null clears the allowlist.
rpm integernull null clears it.
tpm integernull null clears it.
monthly_cap_usd numbernull null clears it.
spend_limit_period string
concurrency integernull null clears it.
budget_usd numbernull Not under what the key has spent against its budget. null removes the budget; setting one again starts its count at zero.
expires_at integernull null clears it.
routing string
retain_bodies boolean
session_max_requests integernull null clears it.
session_max_spend_usd numbernull null clears it.
user_budget_usd numbernull null clears it.
user_budget_period string
loop_guard boolean
redact string
fallback_models arraynull The key's default fallback list; [] or null clears it. Each must be a live model id or one of your aliases that the key's allowlist admits.
response_cache_ttl integernull 60 to 86,400 seconds; null or 0 turns the key's default off.
context_overflow string
guardrails object The key's own guardrails; null for none. The organization default (GET /v1/guardrails) layers under them.
View JSON Schema on GitHub

JSON Schema

mensageiro-ai-key-patch-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mensageiro-ai/json-schema/mensageiro-ai-key-patch-schema.json",
  "title": "KeyPatch",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mensageiro-ai-openapi.json#/components/schemas/KeyPatch",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "revoked"
      ],
      "description": "revoked pauses the key; active resumes it. A key revoked with DELETE cannot come back."
    },
    "allowed_models": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "allowed_ips": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      },
      "description": "Addresses or CIDRs; null clears the allowlist."
    },
    "rpm": {
      "type": [
        "integer",
        "null"
      ],
      "description": "null clears it."
    },
    "tpm": {
      "type": [
        "integer",
        "null"
      ],
      "description": "null clears it."
    },
    "monthly_cap_usd": {
      "type": [
        "number",
        "null"
      ],
      "description": "null clears it."
    },
    "spend_limit_period": {
      "type": "string",
      "enum": [
        "daily",
        "weekly",
        "monthly"
      ]
    },
    "concurrency": {
      "type": [
        "integer",
        "null"
      ],
      "description": "null clears it."
    },
    "budget_usd": {
      "type": [
        "number",
        "null"
      ],
      "description": "Not under what the key has spent against its budget. null removes the budget; setting one again starts its count at zero."
    },
    "expires_at": {
      "type": [
        "integer",
        "null"
      ],
      "description": "null clears it."
    },
    "routing": {
      "type": "string",
      "enum": [
        "cheapest",
        "fastest",
        "throughput"
      ]
    },
    "retain_bodies": {
      "type": "boolean"
    },
    "session_max_requests": {
      "type": [
        "integer",
        "null"
      ],
      "description": "null clears it."
    },
    "session_max_spend_usd": {
      "type": [
        "number",
        "null"
      ],
      "description": "null clears it."
    },
    "user_budget_usd": {
      "type": [
        "number",
        "null"
      ],
      "description": "null clears it."
    },
    "user_budget_period": {
      "type": "string",
      "enum": [
        "daily",
        "weekly",
        "monthly"
      ]
    },
    "loop_guard": {
      "type": "boolean"
    },
    "redact": {
      "type": "string",
      "enum": [
        "off",
        "secrets",
        "secrets_pii"
      ]
    },
    "fallback_models": {
      "type": [
        "array",
        "null"
      ],
      "maxItems": 5,
      "items": {
        "type": "string"
      },
      "description": "The key's default fallback list; [] or null clears it. Each must be a live model id or one of your aliases that the key's allowlist admits."
    },
    "response_cache_ttl": {
      "type": [
        "integer",
        "null"
      ],
      "description": "60 to 86,400 seconds; null or 0 turns the key's default off."
    },
    "context_overflow": {
      "type": "string",
      "enum": [
        "error",
        "middle-out"
      ]
    },
    "guardrails": {
      "oneOf": [
        {
          "$ref": "#/$defs/Guardrails"
        },
        {
          "type": "null"
        }
      ],
      "description": "The key's own guardrails; null for none. The organization default (GET /v1/guardrails) layers under them."
    }
  },
  "$defs": {
    "BlockedPattern": {
      "type": "object",
      "required": [
        "pattern"
      ],
      "properties": {
        "pattern": {
          "type": "string",
          "description": "A JavaScript regular expression, up to 512 characters. Backreferences, lookaround and a repeated group that holds a repeat or alternatives are refused."
        },
        "flags": {
          "type": "string",
          "description": "Any of i, m, s, u. i unless set.",
          "pattern": "^[imsu]{0,4}$"
        },
        "action": {
          "type": "string",
          "enum": [
            "block",
            "flag"
          ],
          "description": "block unless set."
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "Named in the error message instead of the pattern's position."
        }
      }
    },
    "Guardrails": {
      "type": "object",
      "description": "Opt-in checks on your own traffic. Nothing applies unless set. A blocked request answers 400 guardrail_blocked before any model is asked and costs nothing; a flagged one carries `x-uplink-guardrail: flagged`; a stripped tool call `x-uplink-guardrail: tool_call_stripped`.",
      "properties": {
        "blocked_patterns": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BlockedPattern"
          },
          "description": "Up to 50. Checked against the prompt's system, user and tool text (not earlier assistant turns). A string is shorthand for { pattern, action: block, flags: i }."
        },
        "prompt_injection": {
          "type": "string",
          "enum": [
            "off",
            "flag",
            "block"
          ],
          "description": "A local heuristic detector, no model call: known override and jailbreak phrasings, chat-template and role markers inside user or tool text, instructions aimed at the model inside tool results, invisible Unicode tag characters. It matches wording: paraphrases, other languages and encoded payloads pass, and text quoting an attack is flagged like one."
        },
        "tool_policy": {
          "oneOf": [
            {
              "$ref": "#/$defs/ToolPolicy"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "ToolPolicy": {
      "type": "object",
      "properties": {
        "allow": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          },
          "description": "Only these tools; null for every tool not denied. A trailing * matches a prefix."
        },
        "deny": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Never these: function names, server tools (web_search) and /mcp/org names (github__delete_*). Their declarations are removed before the request is forwarded, a tool_choice forcing one is refused, and a call to one in an answer is stripped."
        }
      }
    }
  }
}

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/mensageiro-ai-key-patch"
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.