{
  "openapi": "3.0.3",
  "info": {
    "title": "Wayits native WhatsApp Gateway",
    "description": "### Selecting a WhatsApp session\n\nYour API key authenticates the request. `X-Device-Id` selects which WhatsApp session runs a device-scoped operation, such as `POST /send/message`.\n\nFind the session ID in `results[].id` from `GET /devices`. That list request does not need `X-Device-Id`.\n\nYou can omit the selector if your account has exactly one session. Where `device_id` is accepted as a query parameter, it can replace the header. If you send both, they must match.\n\nIf the endpoint already includes `{device_id}` in the URL, such as `GET /devices/{device_id}/status`, use the URL parameter without repeating it in the header.",
    "version": "0.2.0"
  },
  "servers": [
    {
      "url": "/api/gateway"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Paste the API key from API Management. Do not include the Bearer prefix."
      }
    },
    "schemas": {}
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "paths": {
    "/health": {
      "get": {
        "tags": ["app"],
        "summary": "Health check",
        "description": "Health check",
        "security": [],
        "operationId": "getHealth"
      }
    },
    "/chatwoot/webhook": {
      "post": {
        "tags": ["chatwoot"],
        "summary": "Receive signed Chatwoot webhook",
        "description": "Receive signed Chatwoot webhook",
        "security": [],
        "operationId": "postChatwootWebhook"
      }
    },
    "/chatwoot/webhook/{device_id}": {
      "post": {
        "tags": ["chatwoot"],
        "summary": "Receive signed device Chatwoot webhook",
        "description": "Receive signed device Chatwoot webhook",
        "security": [],
        "parameters": [
          {
            "name": "device_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$",
              "description": "WhatsApp session ID from GET /devices."
            }
          }
        ],
        "operationId": "postChatwootWebhookByDevice_id"
      }
    },
    "/devices": {
      "get": {
        "tags": ["device"],
        "summary": "List owned devices",
        "description": "Lists the WhatsApp sessions in your account. Use `results[].id` as `X-Device-Id` for device-scoped operations. No device selector is needed for this request.",
        "parameters": [
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "operationId": "getDevices"
      },
      "post": {
        "tags": ["device"],
        "summary": "Create device",
        "description": "Create device",
        "parameters": [
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "webhook_url": {
                    "type": "string",
                    "maxLength": 2048
                  },
                  "webhook_secret": {
                    "type": "string",
                    "minLength": 32,
                    "maxLength": 128
                  },
                  "webhook_events": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "webhook_insecure_skip_verify": {
                    "type": "boolean",
                    "const": false
                  },
                  "device_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[a-zA-Z0-9_-]+$"
                  }
                },
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "webhook_url": {
                    "type": "string",
                    "maxLength": 2048
                  },
                  "webhook_secret": {
                    "type": "string",
                    "minLength": 32,
                    "maxLength": 128
                  },
                  "webhook_events": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "webhook_insecure_skip_verify": {
                    "type": "boolean",
                    "const": false
                  },
                  "device_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[a-zA-Z0-9_-]+$"
                  }
                },
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "webhook_url": {
                    "type": "string",
                    "maxLength": 2048
                  },
                  "webhook_secret": {
                    "type": "string",
                    "minLength": 32,
                    "maxLength": 128
                  },
                  "webhook_events": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "webhook_insecure_skip_verify": {
                    "type": "boolean",
                    "const": false
                  },
                  "device_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[a-zA-Z0-9_-]+$"
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "operationId": "postDevices"
      }
    },
    "/devices/{device_id}": {
      "get": {
        "tags": ["device"],
        "summary": "Get owned device",
        "description": "Get owned device",
        "parameters": [
          {
            "name": "device_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$",
              "description": "WhatsApp session ID from GET /devices."
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "operationId": "getDevicesByDevice_id"
      },
      "delete": {
        "tags": ["device"],
        "summary": "Remove owned device",
        "description": "Remove owned device",
        "parameters": [
          {
            "name": "device_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$",
              "description": "WhatsApp session ID from GET /devices."
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "operationId": "deleteDevicesByDevice_id"
      }
    },
    "/devices/{device_id}/status": {
      "get": {
        "tags": ["device"],
        "summary": "Get connection status",
        "description": "Get connection status",
        "parameters": [
          {
            "name": "device_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$",
              "description": "WhatsApp session ID from GET /devices."
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "operationId": "getDevicesByDevice_idStatus"
      }
    },
    "/devices/{device_id}/login": {
      "get": {
        "tags": ["device"],
        "summary": "Login with QR code",
        "description": "Login with QR code",
        "parameters": [
          {
            "name": "device_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$",
              "description": "WhatsApp session ID from GET /devices."
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "operationId": "getDevicesByDevice_idLogin"
      }
    },
    "/devices/{device_id}/reconnect": {
      "post": {
        "tags": ["device"],
        "summary": "Reconnect owned device",
        "description": "Reconnect owned device",
        "parameters": [
          {
            "name": "device_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$",
              "description": "WhatsApp session ID from GET /devices."
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "operationId": "postDevicesByDevice_idReconnect"
      }
    },
    "/devices/{device_id}/logout": {
      "post": {
        "tags": ["device"],
        "summary": "Logout and retain device slot",
        "description": "Logout and retain device slot",
        "parameters": [
          {
            "name": "device_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$",
              "description": "WhatsApp session ID from GET /devices."
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "operationId": "postDevicesByDevice_idLogout"
      }
    },
    "/devices/{device_id}/webhook": {
      "get": {
        "tags": ["device"],
        "summary": "Get device webhook",
        "description": "Get device webhook",
        "parameters": [
          {
            "name": "device_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$",
              "description": "WhatsApp session ID from GET /devices."
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "operationId": "getDevicesByDevice_idWebhook"
      },
      "patch": {
        "tags": ["device"],
        "summary": "Update device webhook",
        "description": "Update device webhook",
        "parameters": [
          {
            "name": "device_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$",
              "description": "WhatsApp session ID from GET /devices."
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "webhook_url": {
                    "type": "string",
                    "maxLength": 2048
                  },
                  "webhook_secret": {
                    "type": "string",
                    "minLength": 32,
                    "maxLength": 128
                  },
                  "webhook_events": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "webhook_insecure_skip_verify": {
                    "type": "boolean",
                    "const": false
                  }
                },
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "webhook_url": {
                    "type": "string",
                    "maxLength": 2048
                  },
                  "webhook_secret": {
                    "type": "string",
                    "minLength": 32,
                    "maxLength": 128
                  },
                  "webhook_events": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "webhook_insecure_skip_verify": {
                    "type": "boolean",
                    "const": false
                  }
                },
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "webhook_url": {
                    "type": "string",
                    "maxLength": 2048
                  },
                  "webhook_secret": {
                    "type": "string",
                    "minLength": 32,
                    "maxLength": 128
                  },
                  "webhook_events": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "webhook_insecure_skip_verify": {
                    "type": "boolean",
                    "const": false
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "operationId": "patchDevicesByDevice_idWebhook"
      }
    },
    "/app/devices": {
      "get": {
        "tags": ["app"],
        "summary": "List owned device identities",
        "description": "List owned device identities",
        "parameters": [
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "operationId": "getAppDevices"
      }
    },
    "/app/status": {
      "get": {
        "tags": ["app"],
        "summary": "Get selected device status",
        "description": "Get selected device status",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Alternative to X-Device-Id. If both are sent, they must match.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "operationId": "getAppStatus"
      }
    },
    "/app/login": {
      "get": {
        "tags": ["app"],
        "summary": "Login selected device",
        "description": "Login selected device",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Alternative to X-Device-Id. If both are sent, they must match.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "operationId": "getAppLogin"
      }
    },
    "/app/reconnect": {
      "get": {
        "tags": ["app"],
        "summary": "Reconnect selected device",
        "description": "Reconnect selected device",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Alternative to X-Device-Id. If both are sent, they must match.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "operationId": "getAppReconnect"
      }
    },
    "/app/logout": {
      "get": {
        "tags": ["app"],
        "summary": "Logout selected device",
        "description": "Logout selected device",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Alternative to X-Device-Id. If both are sent, they must match.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "operationId": "getAppLogout"
      }
    },
    "/send/message": {
      "post": {
        "tags": ["send"],
        "summary": "Send or schedule a text message with reply, mentions and forwarding options",
        "description": "Send or schedule a text message with reply, mentions and forwarding options",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Alternative to X-Device-Id. If both are sent, they must match.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "scheduled_at": {
                    "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)))$"
                  },
                  "timezone": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "recurrence": {
                    "type": "string",
                    "enum": ["once", "daily", "weekly", "monthly"]
                  },
                  "weekdays": {
                    "minItems": 1,
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    }
                  },
                  "day_of_month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31
                  },
                  "end_at": {
                    "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)))$"
                  },
                  "occurrence_limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  },
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "reply_message_id": {
                    "type": "string",
                    "maxLength": 255
                  },
                  "is_forwarded": {
                    "default": false,
                    "type": "boolean"
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 0
                      },
                      {
                        "type": "number",
                        "const": 86400
                      },
                      {
                        "type": "number",
                        "const": 604800
                      },
                      {
                        "type": "number",
                        "const": 7776000
                      }
                    ]
                  },
                  "caption": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "mentions": {
                    "maxItems": 1024,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 255
                    }
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 65536
                  },
                  "allow_reshare": {
                    "default": false,
                    "type": "boolean"
                  }
                },
                "required": ["phone", "is_forwarded", "message", "allow_reshare"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "scheduled_at": {
                    "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)))$"
                  },
                  "timezone": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "recurrence": {
                    "type": "string",
                    "enum": ["once", "daily", "weekly", "monthly"]
                  },
                  "weekdays": {
                    "minItems": 1,
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    }
                  },
                  "day_of_month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31
                  },
                  "end_at": {
                    "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)))$"
                  },
                  "occurrence_limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  },
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "reply_message_id": {
                    "type": "string",
                    "maxLength": 255
                  },
                  "is_forwarded": {
                    "default": false,
                    "type": "boolean"
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 0
                      },
                      {
                        "type": "number",
                        "const": 86400
                      },
                      {
                        "type": "number",
                        "const": 604800
                      },
                      {
                        "type": "number",
                        "const": 7776000
                      }
                    ]
                  },
                  "caption": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "mentions": {
                    "maxItems": 1024,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 255
                    }
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 65536
                  },
                  "allow_reshare": {
                    "default": false,
                    "type": "boolean"
                  }
                },
                "required": ["phone", "is_forwarded", "message", "allow_reshare"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "scheduled_at": {
                    "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)))$"
                  },
                  "timezone": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "recurrence": {
                    "type": "string",
                    "enum": ["once", "daily", "weekly", "monthly"]
                  },
                  "weekdays": {
                    "minItems": 1,
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    }
                  },
                  "day_of_month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31
                  },
                  "end_at": {
                    "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)))$"
                  },
                  "occurrence_limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  },
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "reply_message_id": {
                    "type": "string",
                    "maxLength": 255
                  },
                  "is_forwarded": {
                    "default": false,
                    "type": "boolean"
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 0
                      },
                      {
                        "type": "number",
                        "const": 86400
                      },
                      {
                        "type": "number",
                        "const": 604800
                      },
                      {
                        "type": "number",
                        "const": 7776000
                      }
                    ]
                  },
                  "caption": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "mentions": {
                    "maxItems": 1024,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 255
                    }
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 65536
                  },
                  "allow_reshare": {
                    "default": false,
                    "type": "boolean"
                  }
                },
                "required": ["phone", "is_forwarded", "message", "allow_reshare"],
                "additionalProperties": false
              }
            }
          }
        },
        "operationId": "postSendMessage"
      }
    },
    "/send/image": {
      "post": {
        "tags": ["send"],
        "summary": "Send or schedule an image",
        "description": "Send or schedule an image",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Alternative to X-Device-Id. If both are sent, they must match.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "scheduled_at": {
                    "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)))$"
                  },
                  "timezone": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "recurrence": {
                    "type": "string",
                    "enum": ["once", "daily", "weekly", "monthly"]
                  },
                  "weekdays": {
                    "minItems": 1,
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    }
                  },
                  "day_of_month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31
                  },
                  "end_at": {
                    "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)))$"
                  },
                  "occurrence_limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  },
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "reply_message_id": {
                    "type": "string",
                    "maxLength": 255
                  },
                  "is_forwarded": {
                    "default": false,
                    "type": "boolean"
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 0
                      },
                      {
                        "type": "number",
                        "const": 86400
                      },
                      {
                        "type": "number",
                        "const": 604800
                      },
                      {
                        "type": "number",
                        "const": 7776000
                      }
                    ]
                  },
                  "caption": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "mentions": {
                    "maxItems": 1024,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 255
                    }
                  },
                  "image": {
                    "type": "string",
                    "format": "binary",
                    "contentEncoding": "binary",
                    "minLength": 1,
                    "maxLength": 20971520
                  },
                  "image_url": {
                    "type": "string",
                    "format": "uri"
                  },
                  "compress": {
                    "type": "boolean"
                  },
                  "hd": {
                    "type": "boolean"
                  },
                  "view_once": {
                    "type": "boolean"
                  },
                  "allow_reshare": {
                    "default": false,
                    "type": "boolean"
                  }
                },
                "required": ["phone", "is_forwarded", "allow_reshare"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "scheduled_at": {
                    "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)))$"
                  },
                  "timezone": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "recurrence": {
                    "type": "string",
                    "enum": ["once", "daily", "weekly", "monthly"]
                  },
                  "weekdays": {
                    "minItems": 1,
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    }
                  },
                  "day_of_month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31
                  },
                  "end_at": {
                    "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)))$"
                  },
                  "occurrence_limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  },
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "reply_message_id": {
                    "type": "string",
                    "maxLength": 255
                  },
                  "is_forwarded": {
                    "default": false,
                    "type": "boolean"
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 0
                      },
                      {
                        "type": "number",
                        "const": 86400
                      },
                      {
                        "type": "number",
                        "const": 604800
                      },
                      {
                        "type": "number",
                        "const": 7776000
                      }
                    ]
                  },
                  "caption": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "mentions": {
                    "maxItems": 1024,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 255
                    }
                  },
                  "image": {
                    "type": "string",
                    "format": "binary",
                    "contentEncoding": "binary",
                    "minLength": 1,
                    "maxLength": 20971520
                  },
                  "image_url": {
                    "type": "string",
                    "format": "uri"
                  },
                  "compress": {
                    "type": "boolean"
                  },
                  "hd": {
                    "type": "boolean"
                  },
                  "view_once": {
                    "type": "boolean"
                  },
                  "allow_reshare": {
                    "default": false,
                    "type": "boolean"
                  }
                },
                "required": ["phone", "is_forwarded", "allow_reshare"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "scheduled_at": {
                    "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)))$"
                  },
                  "timezone": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "recurrence": {
                    "type": "string",
                    "enum": ["once", "daily", "weekly", "monthly"]
                  },
                  "weekdays": {
                    "minItems": 1,
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    }
                  },
                  "day_of_month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31
                  },
                  "end_at": {
                    "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)))$"
                  },
                  "occurrence_limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  },
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "reply_message_id": {
                    "type": "string",
                    "maxLength": 255
                  },
                  "is_forwarded": {
                    "default": false,
                    "type": "boolean"
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 0
                      },
                      {
                        "type": "number",
                        "const": 86400
                      },
                      {
                        "type": "number",
                        "const": 604800
                      },
                      {
                        "type": "number",
                        "const": 7776000
                      }
                    ]
                  },
                  "caption": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "mentions": {
                    "maxItems": 1024,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 255
                    }
                  },
                  "image": {
                    "type": "string",
                    "format": "binary",
                    "contentEncoding": "binary",
                    "minLength": 1,
                    "maxLength": 20971520
                  },
                  "image_url": {
                    "type": "string",
                    "format": "uri"
                  },
                  "compress": {
                    "type": "boolean"
                  },
                  "hd": {
                    "type": "boolean"
                  },
                  "view_once": {
                    "type": "boolean"
                  },
                  "allow_reshare": {
                    "default": false,
                    "type": "boolean"
                  }
                },
                "required": ["phone", "is_forwarded", "allow_reshare"],
                "additionalProperties": false
              }
            }
          }
        },
        "operationId": "postSendImage"
      }
    },
    "/send/video": {
      "post": {
        "tags": ["send"],
        "summary": "Send or schedule a video",
        "description": "Send or schedule a video",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Alternative to X-Device-Id. If both are sent, they must match.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "scheduled_at": {
                    "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)))$"
                  },
                  "timezone": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "recurrence": {
                    "type": "string",
                    "enum": ["once", "daily", "weekly", "monthly"]
                  },
                  "weekdays": {
                    "minItems": 1,
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    }
                  },
                  "day_of_month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31
                  },
                  "end_at": {
                    "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)))$"
                  },
                  "occurrence_limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  },
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "reply_message_id": {
                    "type": "string",
                    "maxLength": 255
                  },
                  "is_forwarded": {
                    "default": false,
                    "type": "boolean"
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 0
                      },
                      {
                        "type": "number",
                        "const": 86400
                      },
                      {
                        "type": "number",
                        "const": 604800
                      },
                      {
                        "type": "number",
                        "const": 7776000
                      }
                    ]
                  },
                  "caption": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "mentions": {
                    "maxItems": 1024,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 255
                    }
                  },
                  "video": {
                    "type": "string",
                    "format": "binary",
                    "contentEncoding": "binary",
                    "minLength": 1,
                    "maxLength": 20971520
                  },
                  "video_url": {
                    "type": "string",
                    "format": "uri"
                  },
                  "compress": {
                    "type": "boolean"
                  },
                  "hd": {
                    "type": "boolean"
                  },
                  "view_once": {
                    "type": "boolean"
                  },
                  "allow_reshare": {
                    "default": false,
                    "type": "boolean"
                  },
                  "gif_playback": {
                    "type": "boolean"
                  }
                },
                "required": ["phone", "is_forwarded", "allow_reshare"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "scheduled_at": {
                    "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)))$"
                  },
                  "timezone": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "recurrence": {
                    "type": "string",
                    "enum": ["once", "daily", "weekly", "monthly"]
                  },
                  "weekdays": {
                    "minItems": 1,
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    }
                  },
                  "day_of_month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31
                  },
                  "end_at": {
                    "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)))$"
                  },
                  "occurrence_limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  },
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "reply_message_id": {
                    "type": "string",
                    "maxLength": 255
                  },
                  "is_forwarded": {
                    "default": false,
                    "type": "boolean"
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 0
                      },
                      {
                        "type": "number",
                        "const": 86400
                      },
                      {
                        "type": "number",
                        "const": 604800
                      },
                      {
                        "type": "number",
                        "const": 7776000
                      }
                    ]
                  },
                  "caption": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "mentions": {
                    "maxItems": 1024,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 255
                    }
                  },
                  "video": {
                    "type": "string",
                    "format": "binary",
                    "contentEncoding": "binary",
                    "minLength": 1,
                    "maxLength": 20971520
                  },
                  "video_url": {
                    "type": "string",
                    "format": "uri"
                  },
                  "compress": {
                    "type": "boolean"
                  },
                  "hd": {
                    "type": "boolean"
                  },
                  "view_once": {
                    "type": "boolean"
                  },
                  "allow_reshare": {
                    "default": false,
                    "type": "boolean"
                  },
                  "gif_playback": {
                    "type": "boolean"
                  }
                },
                "required": ["phone", "is_forwarded", "allow_reshare"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "scheduled_at": {
                    "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)))$"
                  },
                  "timezone": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "recurrence": {
                    "type": "string",
                    "enum": ["once", "daily", "weekly", "monthly"]
                  },
                  "weekdays": {
                    "minItems": 1,
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    }
                  },
                  "day_of_month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31
                  },
                  "end_at": {
                    "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)))$"
                  },
                  "occurrence_limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  },
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "reply_message_id": {
                    "type": "string",
                    "maxLength": 255
                  },
                  "is_forwarded": {
                    "default": false,
                    "type": "boolean"
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 0
                      },
                      {
                        "type": "number",
                        "const": 86400
                      },
                      {
                        "type": "number",
                        "const": 604800
                      },
                      {
                        "type": "number",
                        "const": 7776000
                      }
                    ]
                  },
                  "caption": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "mentions": {
                    "maxItems": 1024,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 255
                    }
                  },
                  "video": {
                    "type": "string",
                    "format": "binary",
                    "contentEncoding": "binary",
                    "minLength": 1,
                    "maxLength": 20971520
                  },
                  "video_url": {
                    "type": "string",
                    "format": "uri"
                  },
                  "compress": {
                    "type": "boolean"
                  },
                  "hd": {
                    "type": "boolean"
                  },
                  "view_once": {
                    "type": "boolean"
                  },
                  "allow_reshare": {
                    "default": false,
                    "type": "boolean"
                  },
                  "gif_playback": {
                    "type": "boolean"
                  }
                },
                "required": ["phone", "is_forwarded", "allow_reshare"],
                "additionalProperties": false
              }
            }
          }
        },
        "operationId": "postSendVideo"
      }
    },
    "/send/audio": {
      "post": {
        "tags": ["send"],
        "summary": "Send or schedule audio",
        "description": "Send or schedule audio",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Alternative to X-Device-Id. If both are sent, they must match.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "scheduled_at": {
                    "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)))$"
                  },
                  "timezone": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "recurrence": {
                    "type": "string",
                    "enum": ["once", "daily", "weekly", "monthly"]
                  },
                  "weekdays": {
                    "minItems": 1,
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    }
                  },
                  "day_of_month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31
                  },
                  "end_at": {
                    "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)))$"
                  },
                  "occurrence_limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  },
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "reply_message_id": {
                    "type": "string",
                    "maxLength": 255
                  },
                  "is_forwarded": {
                    "default": false,
                    "type": "boolean"
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 0
                      },
                      {
                        "type": "number",
                        "const": 86400
                      },
                      {
                        "type": "number",
                        "const": 604800
                      },
                      {
                        "type": "number",
                        "const": 7776000
                      }
                    ]
                  },
                  "audio": {
                    "type": "string",
                    "format": "binary",
                    "contentEncoding": "binary",
                    "minLength": 1,
                    "maxLength": 20971520
                  },
                  "audio_url": {
                    "type": "string",
                    "format": "uri"
                  },
                  "ptt": {
                    "type": "boolean"
                  }
                },
                "required": ["phone", "is_forwarded"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "scheduled_at": {
                    "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)))$"
                  },
                  "timezone": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "recurrence": {
                    "type": "string",
                    "enum": ["once", "daily", "weekly", "monthly"]
                  },
                  "weekdays": {
                    "minItems": 1,
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    }
                  },
                  "day_of_month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31
                  },
                  "end_at": {
                    "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)))$"
                  },
                  "occurrence_limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  },
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "reply_message_id": {
                    "type": "string",
                    "maxLength": 255
                  },
                  "is_forwarded": {
                    "default": false,
                    "type": "boolean"
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 0
                      },
                      {
                        "type": "number",
                        "const": 86400
                      },
                      {
                        "type": "number",
                        "const": 604800
                      },
                      {
                        "type": "number",
                        "const": 7776000
                      }
                    ]
                  },
                  "audio": {
                    "type": "string",
                    "format": "binary",
                    "contentEncoding": "binary",
                    "minLength": 1,
                    "maxLength": 20971520
                  },
                  "audio_url": {
                    "type": "string",
                    "format": "uri"
                  },
                  "ptt": {
                    "type": "boolean"
                  }
                },
                "required": ["phone", "is_forwarded"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "scheduled_at": {
                    "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)))$"
                  },
                  "timezone": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "recurrence": {
                    "type": "string",
                    "enum": ["once", "daily", "weekly", "monthly"]
                  },
                  "weekdays": {
                    "minItems": 1,
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    }
                  },
                  "day_of_month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31
                  },
                  "end_at": {
                    "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)))$"
                  },
                  "occurrence_limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  },
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "reply_message_id": {
                    "type": "string",
                    "maxLength": 255
                  },
                  "is_forwarded": {
                    "default": false,
                    "type": "boolean"
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 0
                      },
                      {
                        "type": "number",
                        "const": 86400
                      },
                      {
                        "type": "number",
                        "const": 604800
                      },
                      {
                        "type": "number",
                        "const": 7776000
                      }
                    ]
                  },
                  "audio": {
                    "type": "string",
                    "format": "binary",
                    "contentEncoding": "binary",
                    "minLength": 1,
                    "maxLength": 20971520
                  },
                  "audio_url": {
                    "type": "string",
                    "format": "uri"
                  },
                  "ptt": {
                    "type": "boolean"
                  }
                },
                "required": ["phone", "is_forwarded"],
                "additionalProperties": false
              }
            }
          }
        },
        "operationId": "postSendAudio"
      }
    },
    "/send/file": {
      "post": {
        "tags": ["send"],
        "summary": "Send or schedule a document",
        "description": "Send or schedule a document",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Alternative to X-Device-Id. If both are sent, they must match.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "scheduled_at": {
                    "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)))$"
                  },
                  "timezone": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "recurrence": {
                    "type": "string",
                    "enum": ["once", "daily", "weekly", "monthly"]
                  },
                  "weekdays": {
                    "minItems": 1,
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    }
                  },
                  "day_of_month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31
                  },
                  "end_at": {
                    "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)))$"
                  },
                  "occurrence_limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  },
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "reply_message_id": {
                    "type": "string",
                    "maxLength": 255
                  },
                  "is_forwarded": {
                    "default": false,
                    "type": "boolean"
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 0
                      },
                      {
                        "type": "number",
                        "const": 86400
                      },
                      {
                        "type": "number",
                        "const": 604800
                      },
                      {
                        "type": "number",
                        "const": 7776000
                      }
                    ]
                  },
                  "caption": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "mentions": {
                    "maxItems": 1024,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 255
                    }
                  },
                  "file": {
                    "type": "string",
                    "format": "binary",
                    "contentEncoding": "binary",
                    "minLength": 1,
                    "maxLength": 20971520
                  },
                  "file_url": {
                    "type": "string",
                    "format": "uri"
                  }
                },
                "required": ["phone", "is_forwarded"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "scheduled_at": {
                    "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)))$"
                  },
                  "timezone": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "recurrence": {
                    "type": "string",
                    "enum": ["once", "daily", "weekly", "monthly"]
                  },
                  "weekdays": {
                    "minItems": 1,
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    }
                  },
                  "day_of_month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31
                  },
                  "end_at": {
                    "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)))$"
                  },
                  "occurrence_limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  },
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "reply_message_id": {
                    "type": "string",
                    "maxLength": 255
                  },
                  "is_forwarded": {
                    "default": false,
                    "type": "boolean"
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 0
                      },
                      {
                        "type": "number",
                        "const": 86400
                      },
                      {
                        "type": "number",
                        "const": 604800
                      },
                      {
                        "type": "number",
                        "const": 7776000
                      }
                    ]
                  },
                  "caption": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "mentions": {
                    "maxItems": 1024,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 255
                    }
                  },
                  "file": {
                    "type": "string",
                    "format": "binary",
                    "contentEncoding": "binary",
                    "minLength": 1,
                    "maxLength": 20971520
                  },
                  "file_url": {
                    "type": "string",
                    "format": "uri"
                  }
                },
                "required": ["phone", "is_forwarded"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "scheduled_at": {
                    "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)))$"
                  },
                  "timezone": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "recurrence": {
                    "type": "string",
                    "enum": ["once", "daily", "weekly", "monthly"]
                  },
                  "weekdays": {
                    "minItems": 1,
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    }
                  },
                  "day_of_month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31
                  },
                  "end_at": {
                    "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)))$"
                  },
                  "occurrence_limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  },
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "reply_message_id": {
                    "type": "string",
                    "maxLength": 255
                  },
                  "is_forwarded": {
                    "default": false,
                    "type": "boolean"
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 0
                      },
                      {
                        "type": "number",
                        "const": 86400
                      },
                      {
                        "type": "number",
                        "const": 604800
                      },
                      {
                        "type": "number",
                        "const": 7776000
                      }
                    ]
                  },
                  "caption": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "mentions": {
                    "maxItems": 1024,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 255
                    }
                  },
                  "file": {
                    "type": "string",
                    "format": "binary",
                    "contentEncoding": "binary",
                    "minLength": 1,
                    "maxLength": 20971520
                  },
                  "file_url": {
                    "type": "string",
                    "format": "uri"
                  }
                },
                "required": ["phone", "is_forwarded"],
                "additionalProperties": false
              }
            }
          }
        },
        "operationId": "postSendFile"
      }
    },
    "/app/info": {
      "get": {
        "tags": ["app"],
        "summary": "Get gateway metadata and enabled features",
        "description": "Get gateway metadata and enabled features",
        "parameters": [
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "operationId": "getAppInfo"
      }
    },
    "/app/metrics": {
      "get": {
        "tags": ["app"],
        "summary": "Get server metrics and owned device counts",
        "description": "Get server metrics and owned device counts",
        "parameters": [
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "operationId": "getAppMetrics"
      }
    },
    "/send/sticker": {
      "post": {
        "tags": ["send"],
        "summary": "Send sticker",
        "description": "Send sticker",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Alternative to X-Device-Id. If both are sent, they must match.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "scheduled_at": {
                    "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)))$"
                  },
                  "timezone": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "recurrence": {
                    "type": "string",
                    "enum": ["once", "daily", "weekly", "monthly"]
                  },
                  "weekdays": {
                    "minItems": 1,
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    }
                  },
                  "day_of_month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31
                  },
                  "end_at": {
                    "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)))$"
                  },
                  "occurrence_limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  },
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "reply_message_id": {
                    "type": "string",
                    "maxLength": 255
                  },
                  "is_forwarded": {
                    "default": false,
                    "type": "boolean"
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 0
                      },
                      {
                        "type": "number",
                        "const": 86400
                      },
                      {
                        "type": "number",
                        "const": 604800
                      },
                      {
                        "type": "number",
                        "const": 7776000
                      }
                    ]
                  },
                  "sticker": {
                    "type": "string",
                    "format": "binary",
                    "contentEncoding": "binary",
                    "minLength": 1,
                    "maxLength": 20971520
                  },
                  "sticker_url": {
                    "type": "string",
                    "format": "uri"
                  }
                },
                "required": ["phone", "is_forwarded"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "scheduled_at": {
                    "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)))$"
                  },
                  "timezone": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "recurrence": {
                    "type": "string",
                    "enum": ["once", "daily", "weekly", "monthly"]
                  },
                  "weekdays": {
                    "minItems": 1,
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    }
                  },
                  "day_of_month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31
                  },
                  "end_at": {
                    "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)))$"
                  },
                  "occurrence_limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  },
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "reply_message_id": {
                    "type": "string",
                    "maxLength": 255
                  },
                  "is_forwarded": {
                    "default": false,
                    "type": "boolean"
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 0
                      },
                      {
                        "type": "number",
                        "const": 86400
                      },
                      {
                        "type": "number",
                        "const": 604800
                      },
                      {
                        "type": "number",
                        "const": 7776000
                      }
                    ]
                  },
                  "sticker": {
                    "type": "string",
                    "format": "binary",
                    "contentEncoding": "binary",
                    "minLength": 1,
                    "maxLength": 20971520
                  },
                  "sticker_url": {
                    "type": "string",
                    "format": "uri"
                  }
                },
                "required": ["phone", "is_forwarded"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "scheduled_at": {
                    "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)))$"
                  },
                  "timezone": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "recurrence": {
                    "type": "string",
                    "enum": ["once", "daily", "weekly", "monthly"]
                  },
                  "weekdays": {
                    "minItems": 1,
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    }
                  },
                  "day_of_month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31
                  },
                  "end_at": {
                    "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)))$"
                  },
                  "occurrence_limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  },
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "reply_message_id": {
                    "type": "string",
                    "maxLength": 255
                  },
                  "is_forwarded": {
                    "default": false,
                    "type": "boolean"
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 0
                      },
                      {
                        "type": "number",
                        "const": 86400
                      },
                      {
                        "type": "number",
                        "const": 604800
                      },
                      {
                        "type": "number",
                        "const": 7776000
                      }
                    ]
                  },
                  "sticker": {
                    "type": "string",
                    "format": "binary",
                    "contentEncoding": "binary",
                    "minLength": 1,
                    "maxLength": 20971520
                  },
                  "sticker_url": {
                    "type": "string",
                    "format": "uri"
                  }
                },
                "required": ["phone", "is_forwarded"],
                "additionalProperties": false
              }
            }
          }
        },
        "operationId": "postSendSticker"
      }
    },
    "/send/contact": {
      "post": {
        "tags": ["send"],
        "summary": "Send contact",
        "description": "Send contact",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Alternative to X-Device-Id. If both are sent, they must match.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "scheduled_at": {
                    "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)))$"
                  },
                  "timezone": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "recurrence": {
                    "type": "string",
                    "enum": ["once", "daily", "weekly", "monthly"]
                  },
                  "weekdays": {
                    "minItems": 1,
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    }
                  },
                  "day_of_month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31
                  },
                  "end_at": {
                    "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)))$"
                  },
                  "occurrence_limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  },
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "reply_message_id": {
                    "type": "string",
                    "maxLength": 255
                  },
                  "is_forwarded": {
                    "default": false,
                    "type": "boolean"
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 0
                      },
                      {
                        "type": "number",
                        "const": 86400
                      },
                      {
                        "type": "number",
                        "const": 604800
                      },
                      {
                        "type": "number",
                        "const": 7776000
                      }
                    ]
                  },
                  "contact_name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "contact_phone": {
                    "type": "string",
                    "pattern": "^[1-9]\\d{5,19}$"
                  }
                },
                "required": ["phone", "is_forwarded", "contact_name", "contact_phone"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "scheduled_at": {
                    "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)))$"
                  },
                  "timezone": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "recurrence": {
                    "type": "string",
                    "enum": ["once", "daily", "weekly", "monthly"]
                  },
                  "weekdays": {
                    "minItems": 1,
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    }
                  },
                  "day_of_month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31
                  },
                  "end_at": {
                    "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)))$"
                  },
                  "occurrence_limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  },
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "reply_message_id": {
                    "type": "string",
                    "maxLength": 255
                  },
                  "is_forwarded": {
                    "default": false,
                    "type": "boolean"
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 0
                      },
                      {
                        "type": "number",
                        "const": 86400
                      },
                      {
                        "type": "number",
                        "const": 604800
                      },
                      {
                        "type": "number",
                        "const": 7776000
                      }
                    ]
                  },
                  "contact_name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "contact_phone": {
                    "type": "string",
                    "pattern": "^[1-9]\\d{5,19}$"
                  }
                },
                "required": ["phone", "is_forwarded", "contact_name", "contact_phone"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "scheduled_at": {
                    "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)))$"
                  },
                  "timezone": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "recurrence": {
                    "type": "string",
                    "enum": ["once", "daily", "weekly", "monthly"]
                  },
                  "weekdays": {
                    "minItems": 1,
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    }
                  },
                  "day_of_month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31
                  },
                  "end_at": {
                    "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)))$"
                  },
                  "occurrence_limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  },
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "reply_message_id": {
                    "type": "string",
                    "maxLength": 255
                  },
                  "is_forwarded": {
                    "default": false,
                    "type": "boolean"
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 0
                      },
                      {
                        "type": "number",
                        "const": 86400
                      },
                      {
                        "type": "number",
                        "const": 604800
                      },
                      {
                        "type": "number",
                        "const": 7776000
                      }
                    ]
                  },
                  "contact_name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "contact_phone": {
                    "type": "string",
                    "pattern": "^[1-9]\\d{5,19}$"
                  }
                },
                "required": ["phone", "is_forwarded", "contact_name", "contact_phone"],
                "additionalProperties": false
              }
            }
          }
        },
        "operationId": "postSendContact"
      }
    },
    "/send/link": {
      "post": {
        "tags": ["send"],
        "summary": "Send link",
        "description": "Send link",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Alternative to X-Device-Id. If both are sent, they must match.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "scheduled_at": {
                    "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)))$"
                  },
                  "timezone": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "recurrence": {
                    "type": "string",
                    "enum": ["once", "daily", "weekly", "monthly"]
                  },
                  "weekdays": {
                    "minItems": 1,
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    }
                  },
                  "day_of_month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31
                  },
                  "end_at": {
                    "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)))$"
                  },
                  "occurrence_limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  },
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "reply_message_id": {
                    "type": "string",
                    "maxLength": 255
                  },
                  "is_forwarded": {
                    "default": false,
                    "type": "boolean"
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 0
                      },
                      {
                        "type": "number",
                        "const": 86400
                      },
                      {
                        "type": "number",
                        "const": 604800
                      },
                      {
                        "type": "number",
                        "const": 7776000
                      }
                    ]
                  },
                  "link": {
                    "type": "string",
                    "format": "uri"
                  },
                  "caption": {
                    "type": "string",
                    "maxLength": 4096
                  }
                },
                "required": ["phone", "is_forwarded", "link"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "scheduled_at": {
                    "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)))$"
                  },
                  "timezone": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "recurrence": {
                    "type": "string",
                    "enum": ["once", "daily", "weekly", "monthly"]
                  },
                  "weekdays": {
                    "minItems": 1,
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    }
                  },
                  "day_of_month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31
                  },
                  "end_at": {
                    "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)))$"
                  },
                  "occurrence_limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  },
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "reply_message_id": {
                    "type": "string",
                    "maxLength": 255
                  },
                  "is_forwarded": {
                    "default": false,
                    "type": "boolean"
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 0
                      },
                      {
                        "type": "number",
                        "const": 86400
                      },
                      {
                        "type": "number",
                        "const": 604800
                      },
                      {
                        "type": "number",
                        "const": 7776000
                      }
                    ]
                  },
                  "link": {
                    "type": "string",
                    "format": "uri"
                  },
                  "caption": {
                    "type": "string",
                    "maxLength": 4096
                  }
                },
                "required": ["phone", "is_forwarded", "link"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "scheduled_at": {
                    "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)))$"
                  },
                  "timezone": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "recurrence": {
                    "type": "string",
                    "enum": ["once", "daily", "weekly", "monthly"]
                  },
                  "weekdays": {
                    "minItems": 1,
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    }
                  },
                  "day_of_month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31
                  },
                  "end_at": {
                    "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)))$"
                  },
                  "occurrence_limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  },
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "reply_message_id": {
                    "type": "string",
                    "maxLength": 255
                  },
                  "is_forwarded": {
                    "default": false,
                    "type": "boolean"
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 0
                      },
                      {
                        "type": "number",
                        "const": 86400
                      },
                      {
                        "type": "number",
                        "const": 604800
                      },
                      {
                        "type": "number",
                        "const": 7776000
                      }
                    ]
                  },
                  "link": {
                    "type": "string",
                    "format": "uri"
                  },
                  "caption": {
                    "type": "string",
                    "maxLength": 4096
                  }
                },
                "required": ["phone", "is_forwarded", "link"],
                "additionalProperties": false
              }
            }
          }
        },
        "operationId": "postSendLink"
      }
    },
    "/send/location": {
      "post": {
        "tags": ["send"],
        "summary": "Send location",
        "description": "Send location",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Alternative to X-Device-Id. If both are sent, they must match.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "scheduled_at": {
                    "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)))$"
                  },
                  "timezone": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "recurrence": {
                    "type": "string",
                    "enum": ["once", "daily", "weekly", "monthly"]
                  },
                  "weekdays": {
                    "minItems": 1,
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    }
                  },
                  "day_of_month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31
                  },
                  "end_at": {
                    "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)))$"
                  },
                  "occurrence_limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  },
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "reply_message_id": {
                    "type": "string",
                    "maxLength": 255
                  },
                  "is_forwarded": {
                    "default": false,
                    "type": "boolean"
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 0
                      },
                      {
                        "type": "number",
                        "const": 86400
                      },
                      {
                        "type": "number",
                        "const": 604800
                      },
                      {
                        "type": "number",
                        "const": 7776000
                      }
                    ]
                  },
                  "latitude": {
                    "type": "number",
                    "minimum": -90,
                    "maximum": 90
                  },
                  "longitude": {
                    "type": "number",
                    "minimum": -180,
                    "maximum": 180
                  }
                },
                "required": ["phone", "is_forwarded", "latitude", "longitude"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "scheduled_at": {
                    "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)))$"
                  },
                  "timezone": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "recurrence": {
                    "type": "string",
                    "enum": ["once", "daily", "weekly", "monthly"]
                  },
                  "weekdays": {
                    "minItems": 1,
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    }
                  },
                  "day_of_month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31
                  },
                  "end_at": {
                    "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)))$"
                  },
                  "occurrence_limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  },
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "reply_message_id": {
                    "type": "string",
                    "maxLength": 255
                  },
                  "is_forwarded": {
                    "default": false,
                    "type": "boolean"
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 0
                      },
                      {
                        "type": "number",
                        "const": 86400
                      },
                      {
                        "type": "number",
                        "const": 604800
                      },
                      {
                        "type": "number",
                        "const": 7776000
                      }
                    ]
                  },
                  "latitude": {
                    "type": "number",
                    "minimum": -90,
                    "maximum": 90
                  },
                  "longitude": {
                    "type": "number",
                    "minimum": -180,
                    "maximum": 180
                  }
                },
                "required": ["phone", "is_forwarded", "latitude", "longitude"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "scheduled_at": {
                    "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)))$"
                  },
                  "timezone": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "recurrence": {
                    "type": "string",
                    "enum": ["once", "daily", "weekly", "monthly"]
                  },
                  "weekdays": {
                    "minItems": 1,
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    }
                  },
                  "day_of_month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31
                  },
                  "end_at": {
                    "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)))$"
                  },
                  "occurrence_limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  },
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "reply_message_id": {
                    "type": "string",
                    "maxLength": 255
                  },
                  "is_forwarded": {
                    "default": false,
                    "type": "boolean"
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 0
                      },
                      {
                        "type": "number",
                        "const": 86400
                      },
                      {
                        "type": "number",
                        "const": 604800
                      },
                      {
                        "type": "number",
                        "const": 7776000
                      }
                    ]
                  },
                  "latitude": {
                    "type": "number",
                    "minimum": -90,
                    "maximum": 90
                  },
                  "longitude": {
                    "type": "number",
                    "minimum": -180,
                    "maximum": 180
                  }
                },
                "required": ["phone", "is_forwarded", "latitude", "longitude"],
                "additionalProperties": false
              }
            }
          }
        },
        "operationId": "postSendLocation"
      }
    },
    "/send/poll": {
      "post": {
        "tags": ["send"],
        "summary": "Send poll",
        "description": "Send poll",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Alternative to X-Device-Id. If both are sent, they must match.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "scheduled_at": {
                    "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)))$"
                  },
                  "timezone": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "recurrence": {
                    "type": "string",
                    "enum": ["once", "daily", "weekly", "monthly"]
                  },
                  "weekdays": {
                    "minItems": 1,
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    }
                  },
                  "day_of_month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31
                  },
                  "end_at": {
                    "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)))$"
                  },
                  "occurrence_limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  },
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "reply_message_id": {
                    "type": "string",
                    "maxLength": 255
                  },
                  "is_forwarded": {
                    "default": false,
                    "type": "boolean"
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 0
                      },
                      {
                        "type": "number",
                        "const": 86400
                      },
                      {
                        "type": "number",
                        "const": 604800
                      },
                      {
                        "type": "number",
                        "const": 7776000
                      }
                    ]
                  },
                  "question": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "options": {
                    "minItems": 2,
                    "maxItems": 12,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    }
                  },
                  "max_answer": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12
                  }
                },
                "required": ["phone", "is_forwarded", "question", "options", "max_answer"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "scheduled_at": {
                    "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)))$"
                  },
                  "timezone": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "recurrence": {
                    "type": "string",
                    "enum": ["once", "daily", "weekly", "monthly"]
                  },
                  "weekdays": {
                    "minItems": 1,
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    }
                  },
                  "day_of_month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31
                  },
                  "end_at": {
                    "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)))$"
                  },
                  "occurrence_limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  },
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "reply_message_id": {
                    "type": "string",
                    "maxLength": 255
                  },
                  "is_forwarded": {
                    "default": false,
                    "type": "boolean"
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 0
                      },
                      {
                        "type": "number",
                        "const": 86400
                      },
                      {
                        "type": "number",
                        "const": 604800
                      },
                      {
                        "type": "number",
                        "const": 7776000
                      }
                    ]
                  },
                  "question": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "options": {
                    "minItems": 2,
                    "maxItems": 12,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    }
                  },
                  "max_answer": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12
                  }
                },
                "required": ["phone", "is_forwarded", "question", "options", "max_answer"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "scheduled_at": {
                    "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)))$"
                  },
                  "timezone": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "recurrence": {
                    "type": "string",
                    "enum": ["once", "daily", "weekly", "monthly"]
                  },
                  "weekdays": {
                    "minItems": 1,
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    }
                  },
                  "day_of_month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31
                  },
                  "end_at": {
                    "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)))$"
                  },
                  "occurrence_limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  },
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "reply_message_id": {
                    "type": "string",
                    "maxLength": 255
                  },
                  "is_forwarded": {
                    "default": false,
                    "type": "boolean"
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 0
                      },
                      {
                        "type": "number",
                        "const": 86400
                      },
                      {
                        "type": "number",
                        "const": 604800
                      },
                      {
                        "type": "number",
                        "const": 7776000
                      }
                    ]
                  },
                  "question": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "options": {
                    "minItems": 2,
                    "maxItems": 12,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    }
                  },
                  "max_answer": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12
                  }
                },
                "required": ["phone", "is_forwarded", "question", "options", "max_answer"],
                "additionalProperties": false
              }
            }
          }
        },
        "operationId": "postSendPoll"
      }
    },
    "/send/interactive": {
      "post": {
        "tags": ["send"],
        "summary": "Send interactive",
        "description": "Send interactive",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Alternative to X-Device-Id. If both are sent, they must match.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "body": {
                    "type": "string",
                    "minLength": 1
                  },
                  "footer": {
                    "type": "string"
                  },
                  "buttons": {
                    "minItems": 1,
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "enum": ["quick_reply", "cta_url", "cta_copy", "cta_call", "single_select", "send_location"]
                        },
                        "params": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        }
                      },
                      "required": ["name", "params"],
                      "additionalProperties": false
                    }
                  },
                  "cards": {
                    "minItems": 2,
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "body": {
                          "type": "string",
                          "minLength": 1
                        },
                        "footer": {
                          "type": "string"
                        },
                        "image_base64": {
                          "type": "string",
                          "maxLength": 2800000,
                          "pattern": "^[A-Za-z0-9+/]*={0,2}$"
                        },
                        "buttons": {
                          "minItems": 1,
                          "maxItems": 10,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "enum": ["quick_reply", "cta_url", "cta_copy", "cta_call", "single_select", "send_location"]
                              },
                              "params": {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string"
                                },
                                "additionalProperties": {}
                              }
                            },
                            "required": ["name", "params"],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": ["body", "buttons"],
                      "additionalProperties": false
                    }
                  }
                },
                "required": ["phone", "body"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "body": {
                    "type": "string",
                    "minLength": 1
                  },
                  "footer": {
                    "type": "string"
                  },
                  "buttons": {
                    "minItems": 1,
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "enum": ["quick_reply", "cta_url", "cta_copy", "cta_call", "single_select", "send_location"]
                        },
                        "params": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        }
                      },
                      "required": ["name", "params"],
                      "additionalProperties": false
                    }
                  },
                  "cards": {
                    "minItems": 2,
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "body": {
                          "type": "string",
                          "minLength": 1
                        },
                        "footer": {
                          "type": "string"
                        },
                        "image_base64": {
                          "type": "string",
                          "maxLength": 2800000,
                          "pattern": "^[A-Za-z0-9+/]*={0,2}$"
                        },
                        "buttons": {
                          "minItems": 1,
                          "maxItems": 10,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "enum": ["quick_reply", "cta_url", "cta_copy", "cta_call", "single_select", "send_location"]
                              },
                              "params": {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string"
                                },
                                "additionalProperties": {}
                              }
                            },
                            "required": ["name", "params"],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": ["body", "buttons"],
                      "additionalProperties": false
                    }
                  }
                },
                "required": ["phone", "body"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "body": {
                    "type": "string",
                    "minLength": 1
                  },
                  "footer": {
                    "type": "string"
                  },
                  "buttons": {
                    "minItems": 1,
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "enum": ["quick_reply", "cta_url", "cta_copy", "cta_call", "single_select", "send_location"]
                        },
                        "params": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        }
                      },
                      "required": ["name", "params"],
                      "additionalProperties": false
                    }
                  },
                  "cards": {
                    "minItems": 2,
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "body": {
                          "type": "string",
                          "minLength": 1
                        },
                        "footer": {
                          "type": "string"
                        },
                        "image_base64": {
                          "type": "string",
                          "maxLength": 2800000,
                          "pattern": "^[A-Za-z0-9+/]*={0,2}$"
                        },
                        "buttons": {
                          "minItems": 1,
                          "maxItems": 10,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "enum": ["quick_reply", "cta_url", "cta_copy", "cta_call", "single_select", "send_location"]
                              },
                              "params": {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string"
                                },
                                "additionalProperties": {}
                              }
                            },
                            "required": ["name", "params"],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": ["body", "buttons"],
                      "additionalProperties": false
                    }
                  }
                },
                "required": ["phone", "body"],
                "additionalProperties": false
              }
            }
          }
        },
        "operationId": "postSendInteractive"
      }
    },
    "/send/schedules": {
      "get": {
        "tags": ["send"],
        "summary": "List owned scheduled sends",
        "description": "List owned scheduled sends",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Alternative to X-Device-Id. If both are sent, they must match.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["active", "running", "paused", "completed", "failed", "cancelled"]
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "message_type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 32
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": true,
            "schema": {
              "default": 25,
              "type": "integer",
              "minimum": 1,
              "maximum": 500
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": true,
            "schema": {
              "default": 0,
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "operationId": "getSendSchedules"
      }
    },
    "/send/schedules/{schedule_id}": {
      "get": {
        "tags": ["send"],
        "summary": "Get owned scheduled send",
        "description": "Get owned scheduled send",
        "parameters": [
          {
            "name": "schedule_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Alternative to X-Device-Id. If both are sent, they must match.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "operationId": "getSendSchedulesBySchedule_id"
      }
    },
    "/send/schedules/{schedule_id}/pause": {
      "post": {
        "tags": ["send"],
        "summary": "pause scheduled send",
        "description": "pause scheduled send",
        "parameters": [
          {
            "name": "schedule_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Alternative to X-Device-Id. If both are sent, they must match.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "operationId": "postSendSchedulesBySchedule_idPause"
      }
    },
    "/send/schedules/{schedule_id}/resume": {
      "post": {
        "tags": ["send"],
        "summary": "resume scheduled send",
        "description": "resume scheduled send",
        "parameters": [
          {
            "name": "schedule_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Alternative to X-Device-Id. If both are sent, they must match.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "operationId": "postSendSchedulesBySchedule_idResume"
      }
    },
    "/send/schedules/{schedule_id}/cancel": {
      "post": {
        "tags": ["send"],
        "summary": "cancel scheduled send",
        "description": "cancel scheduled send",
        "parameters": [
          {
            "name": "schedule_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Alternative to X-Device-Id. If both are sent, they must match.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "operationId": "postSendSchedulesBySchedule_idCancel"
      }
    },
    "/chatwoot/configs": {
      "get": {
        "tags": ["chatwoot"],
        "summary": "List owned Chatwoot integrations",
        "description": "List owned Chatwoot integrations",
        "parameters": [
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "operationId": "getChatwootConfigs"
      }
    },
    "/devices/{device_id}/chatwoot/config": {
      "get": {
        "tags": ["chatwoot"],
        "summary": "Get owned Chatwoot configuration",
        "description": "Get owned Chatwoot configuration",
        "parameters": [
          {
            "name": "device_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$",
              "description": "WhatsApp session ID from GET /devices."
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "operationId": "getDevicesByDevice_idChatwootConfig"
      },
      "put": {
        "tags": ["chatwoot"],
        "summary": "Set owned Chatwoot configuration",
        "description": "Set owned Chatwoot configuration",
        "parameters": [
          {
            "name": "device_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$",
              "description": "WhatsApp session ID from GET /devices."
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "chatwoot_url": {
                    "type": "string",
                    "format": "uri"
                  },
                  "account_id": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "inbox_id": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "api_token": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "webhook_secret": {
                    "type": "string",
                    "maxLength": 256
                  },
                  "enabled": {
                    "default": true,
                    "type": "boolean"
                  }
                },
                "required": ["chatwoot_url", "account_id", "inbox_id", "enabled"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "chatwoot_url": {
                    "type": "string",
                    "format": "uri"
                  },
                  "account_id": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "inbox_id": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "api_token": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "webhook_secret": {
                    "type": "string",
                    "maxLength": 256
                  },
                  "enabled": {
                    "default": true,
                    "type": "boolean"
                  }
                },
                "required": ["chatwoot_url", "account_id", "inbox_id", "enabled"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "chatwoot_url": {
                    "type": "string",
                    "format": "uri"
                  },
                  "account_id": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "inbox_id": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "api_token": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "webhook_secret": {
                    "type": "string",
                    "maxLength": 256
                  },
                  "enabled": {
                    "default": true,
                    "type": "boolean"
                  }
                },
                "required": ["chatwoot_url", "account_id", "inbox_id", "enabled"],
                "additionalProperties": false
              }
            }
          }
        },
        "operationId": "putDevicesByDevice_idChatwootConfig"
      },
      "delete": {
        "tags": ["chatwoot"],
        "summary": "Delete owned Chatwoot configuration",
        "description": "Delete owned Chatwoot configuration",
        "parameters": [
          {
            "name": "device_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$",
              "description": "WhatsApp session ID from GET /devices."
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "operationId": "deleteDevicesByDevice_idChatwootConfig"
      }
    },
    "/chatwoot/sync": {
      "post": {
        "tags": ["chatwoot"],
        "summary": "Synchronize WhatsApp history to Chatwoot",
        "description": "Synchronize WhatsApp history to Chatwoot",
        "parameters": [
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "device_id": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "days_limit": {
                    "default": 3,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 365
                  },
                  "include_media": {
                    "default": true,
                    "type": "boolean"
                  },
                  "include_groups": {
                    "default": true,
                    "type": "boolean"
                  }
                },
                "required": ["days_limit", "include_media", "include_groups"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "device_id": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "days_limit": {
                    "default": 3,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 365
                  },
                  "include_media": {
                    "default": true,
                    "type": "boolean"
                  },
                  "include_groups": {
                    "default": true,
                    "type": "boolean"
                  }
                },
                "required": ["days_limit", "include_media", "include_groups"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "device_id": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "days_limit": {
                    "default": 3,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 365
                  },
                  "include_media": {
                    "default": true,
                    "type": "boolean"
                  },
                  "include_groups": {
                    "default": true,
                    "type": "boolean"
                  }
                },
                "required": ["days_limit", "include_media", "include_groups"],
                "additionalProperties": false
              }
            }
          }
        },
        "operationId": "postChatwootSync"
      }
    },
    "/chatwoot/sync/status": {
      "get": {
        "tags": ["chatwoot"],
        "summary": "Get owned history synchronization status",
        "description": "Get owned history synchronization status",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Alternative to X-Device-Id. If both are sent, they must match.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "operationId": "getChatwootSyncStatus"
      }
    },
    "/app/login-with-code": {
      "get": {
        "tags": ["app"],
        "summary": "Login with pairing code",
        "description": "Login with pairing code",
        "operationId": "appLoginWithCode",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "phone",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[1-9]\\d{5,19}$"
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ]
      }
    },
    "/app/passkey": {
      "get": {
        "tags": ["app"],
        "summary": "Get pending passkey pairing state",
        "description": "Get pending passkey pairing state",
        "operationId": "appPasskeyStatus",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ]
      }
    },
    "/app/passkey/response": {
      "post": {
        "tags": ["app"],
        "summary": "Submit the WebAuthn assertion for passkey pairing",
        "description": "Submit the WebAuthn assertion for passkey pairing",
        "operationId": "appPasskeyResponse",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 65536
                  },
                  "rawId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 65536
                  },
                  "type": {
                    "type": "string",
                    "const": "public-key"
                  },
                  "response": {
                    "type": "object",
                    "properties": {
                      "clientDataJSON": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 65536
                      },
                      "authenticatorData": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 65536
                      },
                      "signature": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 65536
                      },
                      "userHandle": {
                        "type": ["string", "null"]
                      }
                    },
                    "required": ["clientDataJSON", "authenticatorData", "signature"],
                    "additionalProperties": false
                  }
                },
                "required": ["id", "rawId", "type", "response"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 65536
                  },
                  "rawId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 65536
                  },
                  "type": {
                    "type": "string",
                    "const": "public-key"
                  },
                  "response": {
                    "type": "object",
                    "properties": {
                      "clientDataJSON": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 65536
                      },
                      "authenticatorData": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 65536
                      },
                      "signature": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 65536
                      },
                      "userHandle": {
                        "type": ["string", "null"]
                      }
                    },
                    "required": ["clientDataJSON", "authenticatorData", "signature"],
                    "additionalProperties": false
                  }
                },
                "required": ["id", "rawId", "type", "response"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 65536
                  },
                  "rawId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 65536
                  },
                  "type": {
                    "type": "string",
                    "const": "public-key"
                  },
                  "response": {
                    "type": "object",
                    "properties": {
                      "clientDataJSON": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 65536
                      },
                      "authenticatorData": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 65536
                      },
                      "signature": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 65536
                      },
                      "userHandle": {
                        "type": ["string", "null"]
                      }
                    },
                    "required": ["clientDataJSON", "authenticatorData", "signature"],
                    "additionalProperties": false
                  }
                },
                "required": ["id", "rawId", "type", "response"],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/app/passkey/confirm": {
      "post": {
        "tags": ["app"],
        "summary": "Confirm the passkey pairing code",
        "description": "Confirm the passkey pairing code",
        "operationId": "appPasskeyConfirm",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ]
      }
    },
    "/devices/{device_id}/login/code": {
      "post": {
        "tags": ["device"],
        "summary": "Login a device with pairing code",
        "description": "Login a device with pairing code",
        "operationId": "appLoginWithCode",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "phone",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[1-9]\\d{5,19}$"
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ]
      }
    },
    "/user/presence/subscribe": {
      "post": {
        "tags": ["user"],
        "summary": "Subscribe to contact presence",
        "description": "Subscribe to contact presence",
        "operationId": "userSubscribePresence",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  }
                },
                "required": ["phone"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  }
                },
                "required": ["phone"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  }
                },
                "required": ["phone"],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/user/info": {
      "get": {
        "tags": ["user"],
        "summary": "User Info",
        "description": "User Info",
        "operationId": "userInfo",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "phone",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ]
      }
    },
    "/user/avatar": {
      "get": {
        "tags": ["user"],
        "summary": "User Avatar",
        "description": "User Avatar",
        "operationId": "userAvatar",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "phone",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
            }
          },
          {
            "name": "is_preview",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "is_community",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ]
      },
      "post": {
        "tags": ["user"],
        "summary": "User Change Avatar",
        "description": "User Change Avatar",
        "operationId": "userChangeAvatar",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "avatar": {
                    "type": "string",
                    "format": "binary",
                    "contentEncoding": "binary",
                    "minLength": 1,
                    "maxLength": 20971520,
                    "anyOf": [
                      {
                        "contentMediaType": "image/jpeg"
                      },
                      {
                        "contentMediaType": "image/png"
                      },
                      {
                        "contentMediaType": "image/webp"
                      }
                    ]
                  }
                },
                "required": ["avatar"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "avatar": {
                    "type": "string",
                    "format": "binary",
                    "contentEncoding": "binary",
                    "minLength": 1,
                    "maxLength": 20971520,
                    "anyOf": [
                      {
                        "contentMediaType": "image/jpeg"
                      },
                      {
                        "contentMediaType": "image/png"
                      },
                      {
                        "contentMediaType": "image/webp"
                      }
                    ]
                  }
                },
                "required": ["avatar"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "avatar": {
                    "type": "string",
                    "format": "binary",
                    "contentEncoding": "binary",
                    "minLength": 1,
                    "maxLength": 20971520,
                    "anyOf": [
                      {
                        "contentMediaType": "image/jpeg"
                      },
                      {
                        "contentMediaType": "image/png"
                      },
                      {
                        "contentMediaType": "image/webp"
                      }
                    ]
                  }
                },
                "required": ["avatar"],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/user/pushname": {
      "post": {
        "tags": ["user"],
        "summary": "User Change Push Name",
        "description": "User Change Push Name",
        "operationId": "userChangePushName",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "push_name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  }
                },
                "required": ["push_name"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "push_name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  }
                },
                "required": ["push_name"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "push_name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  }
                },
                "required": ["push_name"],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/user/my/privacy": {
      "get": {
        "tags": ["user"],
        "summary": "User My Privacy Setting",
        "description": "User My Privacy Setting",
        "operationId": "userMyPrivacy",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ]
      }
    },
    "/user/my/groups": {
      "get": {
        "tags": ["user"],
        "summary": "User My List Groups",
        "description": "User My List Groups",
        "operationId": "userMyGroups",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ]
      }
    },
    "/user/my/newsletters": {
      "get": {
        "tags": ["user"],
        "summary": "User My List Groups",
        "description": "User My List Groups",
        "operationId": "userMyNewsletter",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ]
      }
    },
    "/user/my/contacts": {
      "get": {
        "tags": ["user"],
        "summary": "Get list of user contacts",
        "description": "Get list of user contacts",
        "operationId": "userMyContacts",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ]
      }
    },
    "/user/my/contacts/detailed": {
      "get": {
        "tags": ["user"],
        "summary": "Get list of user contacts with every contact name separate",
        "description": "Get list of user contacts with every contact name separate",
        "operationId": "userMyContactsDetailed",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ]
      }
    },
    "/user/check": {
      "get": {
        "tags": ["user"],
        "summary": "Check if user is on WhatsApp",
        "description": "Check if user is on WhatsApp",
        "operationId": "userCheck",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "phone",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ]
      }
    },
    "/user/business-profile": {
      "get": {
        "tags": ["user"],
        "summary": "Get Business Profile Information",
        "description": "Get Business Profile Information",
        "operationId": "userBusinessProfile",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "phone",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ]
      }
    },
    "/send/presence": {
      "post": {
        "tags": ["send"],
        "summary": "Send presence status",
        "description": "Send presence status",
        "operationId": "sendPresence",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": ["available", "unavailable"]
                  },
                  "is_forwarded": {
                    "type": "boolean"
                  }
                },
                "required": ["type"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": ["available", "unavailable"]
                  },
                  "is_forwarded": {
                    "type": "boolean"
                  }
                },
                "required": ["type"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": ["available", "unavailable"]
                  },
                  "is_forwarded": {
                    "type": "boolean"
                  }
                },
                "required": ["type"],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/send/chat-presence": {
      "post": {
        "tags": ["send"],
        "summary": "Send chat presence (typing indicator)",
        "description": "Send chat presence (typing indicator)",
        "operationId": "sendChatPresence",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "action": {
                    "type": "string",
                    "enum": ["start", "stop"]
                  }
                },
                "required": ["phone", "action"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "action": {
                    "type": "string",
                    "enum": ["start", "stop"]
                  }
                },
                "required": ["phone", "action"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "action": {
                    "type": "string",
                    "enum": ["start", "stop"]
                  }
                },
                "required": ["phone", "action"],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/message/{message_id}/revoke": {
      "post": {
        "tags": ["message"],
        "summary": "Revoke Message",
        "description": "Revoke Message",
        "operationId": "revokeMessage",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  }
                },
                "required": ["phone"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  }
                },
                "required": ["phone"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  }
                },
                "required": ["phone"],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/message/{message_id}/delete": {
      "post": {
        "tags": ["message"],
        "summary": "Delete Message",
        "description": "Delete Message",
        "operationId": "deleteMessage",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  }
                },
                "required": ["phone"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  }
                },
                "required": ["phone"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  }
                },
                "required": ["phone"],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/message/{message_id}/reaction": {
      "post": {
        "tags": ["message"],
        "summary": "Send reaction to message",
        "description": "Send reaction to message",
        "operationId": "reactMessage",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "emoji": {
                    "type": "string",
                    "maxLength": 32
                  }
                },
                "required": ["phone", "emoji"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "emoji": {
                    "type": "string",
                    "maxLength": 32
                  }
                },
                "required": ["phone", "emoji"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "emoji": {
                    "type": "string",
                    "maxLength": 32
                  }
                },
                "required": ["phone", "emoji"],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/message/{message_id}/update": {
      "post": {
        "tags": ["message"],
        "summary": "Edit message by message ID before 15 minutes",
        "description": "Edit message by message ID before 15 minutes",
        "operationId": "updateMessage",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 65536
                  },
                  "link": {
                    "type": "string",
                    "format": "uri"
                  },
                  "media_type": {
                    "type": "string",
                    "enum": ["image", "document"]
                  }
                },
                "required": ["phone", "message"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 65536
                  },
                  "link": {
                    "type": "string",
                    "format": "uri"
                  },
                  "media_type": {
                    "type": "string",
                    "enum": ["image", "document"]
                  }
                },
                "required": ["phone", "message"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 65536
                  },
                  "link": {
                    "type": "string",
                    "format": "uri"
                  },
                  "media_type": {
                    "type": "string",
                    "enum": ["image", "document"]
                  }
                },
                "required": ["phone", "message"],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/message/{message_id}/read": {
      "post": {
        "tags": ["message"],
        "summary": "Mark as read message",
        "description": "Mark as read message",
        "operationId": "readMessage",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  }
                },
                "required": ["phone"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  }
                },
                "required": ["phone"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  }
                },
                "required": ["phone"],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/message/{message_id}/played": {
      "post": {
        "tags": ["message"],
        "summary": "Mark an audio message as played",
        "description": "Mark an audio message as played",
        "operationId": "markMessagePlayed",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  }
                },
                "required": ["phone"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  }
                },
                "required": ["phone"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  }
                },
                "required": ["phone"],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/message/{message_id}/star": {
      "post": {
        "tags": ["message"],
        "summary": "Star message",
        "description": "Star message",
        "operationId": "starMessage",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  }
                },
                "required": ["phone"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  }
                },
                "required": ["phone"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  }
                },
                "required": ["phone"],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/message/{message_id}/unstar": {
      "post": {
        "tags": ["message"],
        "summary": "Unstar message",
        "description": "Unstar message",
        "operationId": "unstarMessage",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  }
                },
                "required": ["phone"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  }
                },
                "required": ["phone"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  }
                },
                "required": ["phone"],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/message/{message_id}/forward": {
      "post": {
        "tags": ["message"],
        "summary": "Forward Message",
        "description": "Forward Message",
        "operationId": "forwardMessage",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "scheduled_at": {
                    "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)))$"
                  },
                  "timezone": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "recurrence": {
                    "type": "string",
                    "enum": ["once", "daily", "weekly", "monthly"]
                  },
                  "weekdays": {
                    "minItems": 1,
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    }
                  },
                  "day_of_month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31
                  },
                  "end_at": {
                    "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)))$"
                  },
                  "occurrence_limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 0
                      },
                      {
                        "type": "number",
                        "const": 86400
                      },
                      {
                        "type": "number",
                        "const": 604800
                      },
                      {
                        "type": "number",
                        "const": 7776000
                      }
                    ]
                  },
                  "force_reupload": {
                    "type": "boolean"
                  }
                },
                "required": ["phone"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "scheduled_at": {
                    "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)))$"
                  },
                  "timezone": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "recurrence": {
                    "type": "string",
                    "enum": ["once", "daily", "weekly", "monthly"]
                  },
                  "weekdays": {
                    "minItems": 1,
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    }
                  },
                  "day_of_month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31
                  },
                  "end_at": {
                    "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)))$"
                  },
                  "occurrence_limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 0
                      },
                      {
                        "type": "number",
                        "const": 86400
                      },
                      {
                        "type": "number",
                        "const": 604800
                      },
                      {
                        "type": "number",
                        "const": 7776000
                      }
                    ]
                  },
                  "force_reupload": {
                    "type": "boolean"
                  }
                },
                "required": ["phone"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "scheduled_at": {
                    "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)))$"
                  },
                  "timezone": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "recurrence": {
                    "type": "string",
                    "enum": ["once", "daily", "weekly", "monthly"]
                  },
                  "weekdays": {
                    "minItems": 1,
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    }
                  },
                  "day_of_month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31
                  },
                  "end_at": {
                    "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)))$"
                  },
                  "occurrence_limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 0
                      },
                      {
                        "type": "number",
                        "const": 86400
                      },
                      {
                        "type": "number",
                        "const": 604800
                      },
                      {
                        "type": "number",
                        "const": 7776000
                      }
                    ]
                  },
                  "force_reupload": {
                    "type": "boolean"
                  }
                },
                "required": ["phone"],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/message/{message_id}/download": {
      "get": {
        "tags": ["message"],
        "summary": "Download media from message",
        "description": "Download media from message",
        "operationId": "downloadMessageMedia",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "phone",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ]
      }
    },
    "/call/reject": {
      "post": {
        "tags": ["call"],
        "summary": "Reject an incoming call",
        "description": "Reject an incoming call",
        "operationId": "rejectCall",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "caller_jid": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "call_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 65536
                  }
                },
                "required": ["caller_jid", "call_id"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "caller_jid": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "call_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 65536
                  }
                },
                "required": ["caller_jid", "call_id"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "caller_jid": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                  },
                  "call_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 65536
                  }
                },
                "required": ["caller_jid", "call_id"],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/chats": {
      "get": {
        "tags": ["chat"],
        "summary": "Get list of chats",
        "description": "Get list of chats",
        "operationId": "listChats",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": true,
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 500
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": true,
            "schema": {
              "default": 0,
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "has_media",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "archived",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ]
      }
    },
    "/chat/{chat_jid}/messages": {
      "get": {
        "tags": ["chat"],
        "summary": "Get messages from a specific chat",
        "description": "Get messages from a specific chat",
        "operationId": "getChatMessages",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": true,
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 500
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": true,
            "schema": {
              "default": 0,
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000
            }
          },
          {
            "name": "start_time",
            "in": "query",
            "required": false,
            "schema": {
              "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)))$"
            }
          },
          {
            "name": "end_time",
            "in": "query",
            "required": false,
            "schema": {
              "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)))$"
            }
          },
          {
            "name": "media_only",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "is_from_me",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ]
      }
    },
    "/chat/{chat_jid}/history": {
      "post": {
        "tags": ["chat"],
        "summary": "Request older chat history from the phone",
        "description": "Request older chat history from the phone",
        "operationId": "requestChatHistory",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "count": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 500
                  }
                },
                "required": ["count"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "count": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 500
                  }
                },
                "required": ["count"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "count": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 500
                  }
                },
                "required": ["count"],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/chat/{chat_jid}/pin": {
      "post": {
        "tags": ["chat"],
        "summary": "Pin or unpin a chat",
        "description": "Pin or unpin a chat",
        "operationId": "pinChat",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "pinned": {
                    "type": "boolean"
                  }
                },
                "required": ["pinned"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "pinned": {
                    "type": "boolean"
                  }
                },
                "required": ["pinned"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "pinned": {
                    "type": "boolean"
                  }
                },
                "required": ["pinned"],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/chat/{chat_jid}/disappearing": {
      "post": {
        "tags": ["chat"],
        "summary": "Set disappearing messages timer",
        "description": "Set disappearing messages timer",
        "operationId": "setDisappearingTimer",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "timer_seconds": {
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 0
                      },
                      {
                        "type": "number",
                        "const": 86400
                      },
                      {
                        "type": "number",
                        "const": 604800
                      },
                      {
                        "type": "number",
                        "const": 7776000
                      }
                    ]
                  }
                },
                "required": ["timer_seconds"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "timer_seconds": {
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 0
                      },
                      {
                        "type": "number",
                        "const": 86400
                      },
                      {
                        "type": "number",
                        "const": 604800
                      },
                      {
                        "type": "number",
                        "const": 7776000
                      }
                    ]
                  }
                },
                "required": ["timer_seconds"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "timer_seconds": {
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 0
                      },
                      {
                        "type": "number",
                        "const": 86400
                      },
                      {
                        "type": "number",
                        "const": 604800
                      },
                      {
                        "type": "number",
                        "const": 7776000
                      }
                    ]
                  }
                },
                "required": ["timer_seconds"],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/chat/{chat_jid}/archive": {
      "post": {
        "tags": ["chat"],
        "summary": "Archive or unarchive a chat",
        "description": "Archive or unarchive a chat",
        "operationId": "archiveChat",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "archived": {
                    "type": "boolean"
                  }
                },
                "required": ["archived"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "archived": {
                    "type": "boolean"
                  }
                },
                "required": ["archived"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "archived": {
                    "type": "boolean"
                  }
                },
                "required": ["archived"],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/group/info": {
      "get": {
        "tags": ["group"],
        "summary": "Group Info",
        "description": "Group Info",
        "operationId": "groupInfo",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "group_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 255,
              "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ]
      }
    },
    "/group": {
      "post": {
        "tags": ["group"],
        "summary": "Create group and add participant",
        "description": "Create group and add participant",
        "operationId": "createGroup",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "participants": {
                    "minItems": 1,
                    "maxItems": 1024,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255,
                      "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                    }
                  }
                },
                "required": ["title", "participants"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "participants": {
                    "minItems": 1,
                    "maxItems": 1024,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255,
                      "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                    }
                  }
                },
                "required": ["title", "participants"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "participants": {
                    "minItems": 1,
                    "maxItems": 1024,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255,
                      "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                    }
                  }
                },
                "required": ["title", "participants"],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/group/participants": {
      "get": {
        "tags": ["group"],
        "summary": "Get list of participants in a group",
        "description": "Get list of participants in a group",
        "operationId": "getGroupParticipants",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "group_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 255,
              "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ]
      },
      "post": {
        "tags": ["group"],
        "summary": "Adding more participants to group",
        "description": "Adding more participants to group",
        "operationId": "addParticipantToGroup",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "group_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
                  },
                  "participants": {
                    "minItems": 1,
                    "maxItems": 1024,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255,
                      "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                    }
                  }
                },
                "required": ["group_id", "participants"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "group_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
                  },
                  "participants": {
                    "minItems": 1,
                    "maxItems": 1024,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255,
                      "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                    }
                  }
                },
                "required": ["group_id", "participants"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "group_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
                  },
                  "participants": {
                    "minItems": 1,
                    "maxItems": 1024,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255,
                      "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                    }
                  }
                },
                "required": ["group_id", "participants"],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/group/participants/export": {
      "get": {
        "tags": ["group"],
        "summary": "Export group participants as CSV",
        "description": "Export group participants as CSV",
        "operationId": "exportGroupParticipants",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "group_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 255,
              "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ]
      }
    },
    "/group/participants/remove": {
      "post": {
        "tags": ["group"],
        "summary": "Remove participants from group",
        "description": "Remove participants from group",
        "operationId": "removeParticipantFromGroup",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "group_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
                  },
                  "participants": {
                    "minItems": 1,
                    "maxItems": 1024,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255,
                      "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                    }
                  }
                },
                "required": ["group_id", "participants"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "group_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
                  },
                  "participants": {
                    "minItems": 1,
                    "maxItems": 1024,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255,
                      "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                    }
                  }
                },
                "required": ["group_id", "participants"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "group_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
                  },
                  "participants": {
                    "minItems": 1,
                    "maxItems": 1024,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255,
                      "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                    }
                  }
                },
                "required": ["group_id", "participants"],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/group/participants/promote": {
      "post": {
        "tags": ["group"],
        "summary": "Promote participants to admin",
        "description": "Promote participants to admin",
        "operationId": "promoteParticipantToAdmin",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "group_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
                  },
                  "participants": {
                    "minItems": 1,
                    "maxItems": 1024,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255,
                      "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                    }
                  }
                },
                "required": ["group_id", "participants"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "group_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
                  },
                  "participants": {
                    "minItems": 1,
                    "maxItems": 1024,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255,
                      "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                    }
                  }
                },
                "required": ["group_id", "participants"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "group_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
                  },
                  "participants": {
                    "minItems": 1,
                    "maxItems": 1024,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255,
                      "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                    }
                  }
                },
                "required": ["group_id", "participants"],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/group/participants/demote": {
      "post": {
        "tags": ["group"],
        "summary": "Demote participants to member",
        "description": "Demote participants to member",
        "operationId": "demoteParticipantToMember",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "group_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
                  },
                  "participants": {
                    "minItems": 1,
                    "maxItems": 1024,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255,
                      "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                    }
                  }
                },
                "required": ["group_id", "participants"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "group_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
                  },
                  "participants": {
                    "minItems": 1,
                    "maxItems": 1024,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255,
                      "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                    }
                  }
                },
                "required": ["group_id", "participants"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "group_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
                  },
                  "participants": {
                    "minItems": 1,
                    "maxItems": 1024,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255,
                      "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                    }
                  }
                },
                "required": ["group_id", "participants"],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/group/join-with-link": {
      "post": {
        "tags": ["group"],
        "summary": "Join group with link",
        "description": "Join group with link",
        "operationId": "joinGroupWithLink",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "link": {
                    "type": "string",
                    "maxLength": 1024
                  }
                },
                "required": ["link"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "link": {
                    "type": "string",
                    "maxLength": 1024
                  }
                },
                "required": ["link"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "link": {
                    "type": "string",
                    "maxLength": 1024
                  }
                },
                "required": ["link"],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/group/info-from-link": {
      "get": {
        "tags": ["group"],
        "summary": "Get group information from invitation link",
        "description": "Get group information from invitation link",
        "operationId": "getGroupInfoFromLink",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "link",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 1024
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ]
      }
    },
    "/group/participant-requests": {
      "get": {
        "tags": ["group"],
        "summary": "Get list of participant requests to join group",
        "description": "Get list of participant requests to join group",
        "operationId": "getGroupParticipantRequests",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "group_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 255,
              "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ]
      }
    },
    "/group/participant-requests/approve": {
      "post": {
        "tags": ["group"],
        "summary": "Approve participant request to join group",
        "description": "Approve participant request to join group",
        "operationId": "approveGroupParticipantRequest",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "group_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
                  },
                  "participants": {
                    "minItems": 1,
                    "maxItems": 1024,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255,
                      "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                    }
                  }
                },
                "required": ["group_id", "participants"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "group_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
                  },
                  "participants": {
                    "minItems": 1,
                    "maxItems": 1024,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255,
                      "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                    }
                  }
                },
                "required": ["group_id", "participants"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "group_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
                  },
                  "participants": {
                    "minItems": 1,
                    "maxItems": 1024,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255,
                      "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                    }
                  }
                },
                "required": ["group_id", "participants"],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/group/participant-requests/reject": {
      "post": {
        "tags": ["group"],
        "summary": "Reject participant request to join group",
        "description": "Reject participant request to join group",
        "operationId": "rejectGroupParticipantRequest",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "group_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
                  },
                  "participants": {
                    "minItems": 1,
                    "maxItems": 1024,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255,
                      "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                    }
                  }
                },
                "required": ["group_id", "participants"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "group_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
                  },
                  "participants": {
                    "minItems": 1,
                    "maxItems": 1024,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255,
                      "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                    }
                  }
                },
                "required": ["group_id", "participants"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "group_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
                  },
                  "participants": {
                    "minItems": 1,
                    "maxItems": 1024,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255,
                      "pattern": "^(?:[1-9]\\d{5,19}(?:@s\\.whatsapp\\.net)?|\\d+(?:-\\d+)?@g\\.us|\\d+@lid|\\d+@newsletter|status@broadcast)$"
                    }
                  }
                },
                "required": ["group_id", "participants"],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/group/leave": {
      "post": {
        "tags": ["group"],
        "summary": "Leave group",
        "description": "Leave group",
        "operationId": "leaveGroup",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "group_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
                  }
                },
                "required": ["group_id"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "group_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
                  }
                },
                "required": ["group_id"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "group_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
                  }
                },
                "required": ["group_id"],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/group/photo": {
      "post": {
        "tags": ["group"],
        "summary": "Set group photo",
        "description": "Set group photo",
        "operationId": "setGroupPhoto",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "group_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
                  },
                  "photo": {
                    "type": "string",
                    "format": "binary",
                    "contentEncoding": "binary",
                    "minLength": 1,
                    "maxLength": 20971520,
                    "anyOf": [
                      {
                        "contentMediaType": "image/jpeg"
                      },
                      {
                        "contentMediaType": "image/png"
                      },
                      {
                        "contentMediaType": "image/webp"
                      }
                    ]
                  }
                },
                "required": ["group_id"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "group_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
                  },
                  "photo": {
                    "type": "string",
                    "format": "binary",
                    "contentEncoding": "binary",
                    "minLength": 1,
                    "maxLength": 20971520,
                    "anyOf": [
                      {
                        "contentMediaType": "image/jpeg"
                      },
                      {
                        "contentMediaType": "image/png"
                      },
                      {
                        "contentMediaType": "image/webp"
                      }
                    ]
                  }
                },
                "required": ["group_id"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "group_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
                  },
                  "photo": {
                    "type": "string",
                    "format": "binary",
                    "contentEncoding": "binary",
                    "minLength": 1,
                    "maxLength": 20971520,
                    "anyOf": [
                      {
                        "contentMediaType": "image/jpeg"
                      },
                      {
                        "contentMediaType": "image/png"
                      },
                      {
                        "contentMediaType": "image/webp"
                      }
                    ]
                  }
                },
                "required": ["group_id"],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/group/name": {
      "post": {
        "tags": ["group"],
        "summary": "Set group name",
        "description": "Set group name",
        "operationId": "setGroupName",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "group_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 25
                  }
                },
                "required": ["group_id", "name"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "group_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 25
                  }
                },
                "required": ["group_id", "name"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "group_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 25
                  }
                },
                "required": ["group_id", "name"],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/group/locked": {
      "post": {
        "tags": ["group"],
        "summary": "Set group locked status",
        "description": "Set group locked status",
        "operationId": "setGroupLocked",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "group_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
                  },
                  "locked": {
                    "type": "boolean"
                  }
                },
                "required": ["group_id", "locked"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "group_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
                  },
                  "locked": {
                    "type": "boolean"
                  }
                },
                "required": ["group_id", "locked"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "group_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
                  },
                  "locked": {
                    "type": "boolean"
                  }
                },
                "required": ["group_id", "locked"],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/group/announce": {
      "post": {
        "tags": ["group"],
        "summary": "Set group announce mode",
        "description": "Set group announce mode",
        "operationId": "setGroupAnnounce",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "group_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
                  },
                  "announce": {
                    "type": "boolean"
                  }
                },
                "required": ["group_id", "announce"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "group_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
                  },
                  "announce": {
                    "type": "boolean"
                  }
                },
                "required": ["group_id", "announce"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "group_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
                  },
                  "announce": {
                    "type": "boolean"
                  }
                },
                "required": ["group_id", "announce"],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/group/topic": {
      "post": {
        "tags": ["group"],
        "summary": "Set group topic",
        "description": "Set group topic",
        "operationId": "setGroupTopic",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "group_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
                  },
                  "topic": {
                    "type": "string",
                    "maxLength": 2048
                  }
                },
                "required": ["group_id", "topic"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "group_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
                  },
                  "topic": {
                    "type": "string",
                    "maxLength": 2048
                  }
                },
                "required": ["group_id", "topic"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "group_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
                  },
                  "topic": {
                    "type": "string",
                    "maxLength": 2048
                  }
                },
                "required": ["group_id", "topic"],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/group/invite-link": {
      "get": {
        "tags": ["group"],
        "summary": "Group Invite Link",
        "description": "Group Invite Link",
        "operationId": "groupInviteLink",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "group_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 255,
              "pattern": "^\\d+(?:-\\d+)?@g\\.us$"
            }
          },
          {
            "name": "reset",
            "in": "query",
            "required": true,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ]
      }
    },
    "/newsletter/follow": {
      "post": {
        "tags": ["newsletter"],
        "summary": "Follow newsletter",
        "description": "Follow newsletter",
        "operationId": "followNewsletter",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "newsletter_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+@newsletter$"
                  }
                },
                "required": ["newsletter_id"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "newsletter_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+@newsletter$"
                  }
                },
                "required": ["newsletter_id"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "newsletter_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+@newsletter$"
                  }
                },
                "required": ["newsletter_id"],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/newsletter/unfollow": {
      "post": {
        "tags": ["newsletter"],
        "summary": "Unfollow newsletter",
        "description": "Unfollow newsletter",
        "operationId": "unfollowNewsletter",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "newsletter_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+@newsletter$"
                  }
                },
                "required": ["newsletter_id"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "newsletter_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+@newsletter$"
                  }
                },
                "required": ["newsletter_id"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "newsletter_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+@newsletter$"
                  }
                },
                "required": ["newsletter_id"],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/newsletter/info": {
      "get": {
        "tags": ["newsletter"],
        "summary": "Get newsletter (channel) metadata",
        "description": "Get newsletter (channel) metadata",
        "operationId": "getNewsletterInfo",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "newsletter_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255,
              "pattern": "^\\d+@newsletter$"
            }
          },
          {
            "name": "invite",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 65536
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ]
      }
    },
    "/newsletter/directory": {
      "get": {
        "tags": ["newsletter"],
        "summary": "Browse or search the public channel directory",
        "description": "Browse or search the public channel directory",
        "operationId": "searchNewsletterDirectory",
        "parameters": [
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ]
      }
    },
    "/newsletter/messages": {
      "get": {
        "tags": ["newsletter"],
        "summary": "Get latest newsletter (channel) messages",
        "description": "Get latest newsletter (channel) messages",
        "operationId": "getNewsletterMessages",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "newsletter_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 255,
              "pattern": "^\\d+@newsletter$"
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": true,
            "schema": {
              "default": 20,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ]
      }
    },
    "/newsletter/message-updates": {
      "get": {
        "tags": ["newsletter"],
        "summary": "Get newsletter message counters",
        "description": "Get newsletter message counters",
        "operationId": "getNewsletterMessageUpdates",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "newsletter_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 255,
              "pattern": "^\\d+@newsletter$"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": true,
            "schema": {
              "default": 20,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "since",
            "in": "query",
            "required": true,
            "schema": {
              "default": 0,
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ]
      }
    },
    "/newsletter/live-updates": {
      "get": {
        "tags": ["newsletter"],
        "summary": "List live updates subscriptions of the device",
        "description": "List live updates subscriptions of the device",
        "operationId": "listNewsletterLiveUpdates",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ]
      },
      "post": {
        "tags": ["newsletter"],
        "summary": "Subscribe to newsletter live updates",
        "description": "Subscribe to newsletter live updates",
        "operationId": "subscribeNewsletterLiveUpdates",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "newsletter_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+@newsletter$"
                  }
                },
                "required": ["newsletter_id"],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "newsletter_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+@newsletter$"
                  }
                },
                "required": ["newsletter_id"],
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "newsletter_id": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^\\d+@newsletter$"
                  }
                },
                "required": ["newsletter_id"],
                "additionalProperties": false
              }
            }
          }
        }
      },
      "delete": {
        "tags": ["newsletter"],
        "summary": "Stop renewing newsletter live updates",
        "description": "Stop renewing newsletter live updates",
        "operationId": "unsubscribeNewsletterLiveUpdates",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "newsletter_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 255,
              "pattern": "^\\d+@newsletter$"
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ]
      }
    },
    "/newsletter/messages/{server_id}/download": {
      "get": {
        "tags": ["newsletter"],
        "summary": "Download media from a newsletter message",
        "description": "Download media from a newsletter message",
        "operationId": "downloadNewsletterMessageMedia",
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "newsletter_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 255,
              "pattern": "^\\d+@newsletter$"
            }
          },
          {
            "name": "x-device-id",
            "in": "header",
            "required": false,
            "schema": {
              "description": "Selects a WhatsApp session by its GET /devices ID when the operation needs a session and the URL does not already contain device_id.",
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            }
          }
        ]
      }
    }
  }
}
