{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ringkit-com/json-schema/ringkit-com-business-schema.json",
  "title": "Business",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ringkit-com-openapi.json#/components/schemas/Business",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^biz_[0-9a-z]{8,32}$"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "timezone": {
      "type": "string",
      "minLength": 1
    },
    "vertical": {
      "type": "string",
      "maxLength": 60
    },
    "website": {
      "type": "string",
      "format": "uri"
    },
    "ownerEmail": {
      "type": "string",
      "format": "email",
      "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
    },
    "ownerPhone": {
      "type": "string",
      "pattern": "^\\+[1-9]\\d{6,14}$"
    },
    "notify": {
      "default": [],
      "type": "array",
      "items": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "sms"
              },
              "to": {
                "type": "string",
                "pattern": "^\\+[1-9]\\d{6,14}$"
              }
            },
            "required": [
              "type",
              "to"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "email"
              },
              "to": {
                "type": "string",
                "format": "email",
                "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
              }
            },
            "required": [
              "type",
              "to"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "webhook"
              },
              "url": {
                "type": "string",
                "format": "uri"
              },
              "secret": {
                "type": "string",
                "minLength": 16
              }
            },
            "required": [
              "type",
              "url"
            ],
            "additionalProperties": false
          }
        ]
      }
    },
    "status": {
      "default": "active",
      "type": "string",
      "enum": [
        "active",
        "paused",
        "suspended"
      ]
    },
    "knowledgeTier": {
      "default": "starter",
      "type": "string",
      "enum": [
        "starter",
        "pro"
      ]
    },
    "voice": {
      "default": "Ashley",
      "type": "string",
      "enum": [
        "Ashley",
        "Olivia",
        "Sarah",
        "Elizabeth",
        "Edward",
        "Dennis",
        "Mark",
        "Theodore",
        "el:hpp4J3VqNfWAUOO0d1Us",
        "el:EXAVITQu4vr4xnSDxMaL",
        "el:XrExE9yKIg1WjnnlVkGX",
        "el:cgSgspJ2msm6clMCkdW9",
        "el:Xb7hH8MSUJpSbSDYk0k2",
        "el:pFZP5JQG7iQjIQuC4Bku",
        "el:cjVigY5qzO86Huf0OWal",
        "el:iP95p4xoKVk53GoZ742B",
        "el:nPczCjzI2devNBz1zQrb",
        "el:bIHbv24MWmeRgasZH58o",
        "el:JBFqnCBsd6RMkjVDRZzb",
        "el:onwK4e9ZLuTAKqWW03F9"
      ]
    },
    "voiceSource": {
      "default": "default",
      "type": "string",
      "enum": [
        "default",
        "auto",
        "owner"
      ]
    },
    "voiceReason": {
      "type": "string",
      "maxLength": 200
    },
    "onboardingCompletedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
    },
    "createdVia": {
      "default": "api",
      "type": "string",
      "enum": [
        "dashboard",
        "api",
        "mcp"
      ]
    },
    "ownerSignedInAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
    },
    "billingMode": {
      "default": "live",
      "type": "string",
      "enum": [
        "live",
        "test"
      ]
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
    }
  },
  "required": [
    "id",
    "name",
    "timezone",
    "ownerEmail",
    "notify",
    "status",
    "knowledgeTier",
    "voice",
    "voiceSource",
    "createdVia",
    "billingMode",
    "createdAt",
    "updatedAt"
  ],
  "additionalProperties": false
}