{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/letschatty-com/json-schema/letschatty-com-connect-body-schema.json",
  "title": "ConnectBody",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/letschatty-com-openapi.json#/components/schemas/ConnectBody",
  "properties": {
    "code": {
      "type": "string",
      "title": "Code"
    },
    "phone_number_id": {
      "type": "string",
      "title": "Phone Number Id"
    },
    "waba_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Waba Id"
    },
    "mode": {
      "type": "string",
      "enum": [
        "new",
        "reconnect"
      ],
      "title": "Mode",
      "default": "new"
    },
    "account_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Account Id"
    },
    "name": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 60
        },
        {
          "type": "null"
        }
      ],
      "title": "Name"
    },
    "is_coexistence": {
      "type": "boolean",
      "title": "Is Coexistence",
      "default": false
    },
    "confirm_waba_change": {
      "type": "boolean",
      "title": "Confirm Waba Change",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "code",
    "phone_number_id"
  ]
}