{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentisend-com/json-schema/agentisend-com-patch-api-keys-by-id-body-schema.json",
  "title": "PatchApi_keysBy_idBody",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentisend-com-api-keys-api-openapi.yml#/components/schemas/PatchApi_keysBy_idBody",
  "properties": {
    "domain_scope": {
      "anyOf": [
        {
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Limit the key to one domain, or null to allow every domain."
    },
    "loop_guard": {
      "description": "off watches nothing. repetition-only watches near-identical sends. full also watches recipient collapse. Omit it and transactional sends use repetition-only; a marketing send on a key with no setting still uses full.",
      "enum": [
        "off",
        "repetition-only",
        "full"
      ],
      "type": "string"
    },
    "name": {
      "description": "A new name. Omit it to keep the current one.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "scopes": {
      "description": "Replace the scope list.",
      "items": {
        "enum": [
          "emails:send",
          "emails:read",
          "domains:read",
          "domains:write",
          "webhooks:read",
          "webhooks:write",
          "limits:read",
          "limits:write",
          "trust:read",
          "contacts:read",
          "contacts:write",
          "suppressions:read",
          "suppressions:write",
          "templates:read",
          "templates:write",
          "segments:read",
          "segments:write",
          "topics:read",
          "topics:write",
          "inbound:read"
        ],
        "type": "string"
      },
      "maxItems": 20,
      "type": "array"
    }
  },
  "type": "object"
}