---
updatedAt: 2026-09-04T07:06:48.000Z
agentTools:
  projectIndex: https://documentation.indigitall.com/llms.txt
---

# Update integration

Update a specific integration for a given application

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "2.0.0",
    "title": "INDIGITALL API",
    "x-logo": {
      "url": "https://console.indigitall.com/images/logo_verdeblanco@2x.png",
      "backgroundColor": "#0F3B7A"
    },
    "description": "\n### Introduction:\nThis documentation describes every endpoint of Indigitall's API v2\n\nAPI BASE URL: https://api.indigitall.com/v2\n\n### Authentication:\n\nMost of the endpoints of the API needs an Authorization header.\n\nThere are two Authorization ways:\n\n- If your intention is to manage API calls with a server-side script you have to create a Server key through Indigitall's console.\n\n  You can set the following Authorization Header : 'Authorization: ServerKey {ServerKey}'\n- If your intention is to integrate this API for front-end users POST /auth endpoint authorizes a user and returns an access token.\n\n  You can set the following Authorization Header : 'Authorization: Bearer {Token}'\n"
  },
  "security": [
    {
      "Authorization": []
    }
  ],
  "tags": [
    {
      "name": "chat-integration",
      "description": "Endpoints to manage chat integrations for chat-service-v2. The integrations are used to handle incoming messages.",
      "x-displayName": "Chat - Integration"
    }
  ],
  "x-tagGroups": [
    {
      "name": "Chat Service",
      "tags": [
        "chat-configuration",
        "chat-channel",
        "chat-contact",
        "chat-integration",
        "chat-task",
        "chat-campaign",
        "chat-send",
        "chat-multimedia",
        "chat-slicing",
        "chat-tag",
        "chat-contact-list",
        "chat-cc-agent",
        "chat-cc-permissions-profile",
        "chat-cc-weekly-schedule",
        "chat-cc-special-days-schedule",
        "chat-cc-conversation",
        "chat-cc-agent-group",
        "chat-cc-contact-comment",
        "chat-cc-form",
        "chat-stats",
        "chat-internal"
      ]
    },
    {
      "name": "Customer Service",
      "tags": [
        "customer-service-adviser",
        "customer-service-customer",
        "customer-service-customer-csv",
        "customer-service-customer-field",
        "customer-service-customer-journey",
        "customer-service-customer-journey-template",
        "customer-service-customer-journey-control",
        "customer-service-customer-send",
        "customer-service-stats",
        "customer-service-webhook-template",
        "customer-service-segment",
        "customer-service-audience",
        "customer-service-application",
        "customer-service-journeywaitqueue",
        "customer-service-task",
        "customer-service-cdpeventtype",
        "customer-service-cdpeventtypetemplate",
        "customer-service-internal"
      ]
    },
    {
      "name": "Email Service",
      "tags": [
        "es-configuration",
        "es-configurationDomain",
        "es-configurationDomainEmail",
        "es-footer",
        "es-audience",
        "es-contact",
        "es-category",
        "es-campaign",
        "es-campaign-block",
        "es-campaign block-column",
        "es-campaign-multimedia",
        "es-shipment",
        "es-attachment",
        "es-statistics",
        "es-webhook",
        "es-tasks"
      ]
    },
    {
      "name": "InApp Service",
      "tags": [
        "inapp-configuration",
        "inapp-campaign",
        "inapp-schema",
        "inapp-topic",
        "inapp-multimedia",
        "inapp-form",
        "inapp-stats",
        "inapp-audience",
        "inapp-task"
      ]
    },
    {
      "name": "SMS Service",
      "tags": [
        "sms-campaign",
        "sms-configuration",
        "sms-contact",
        "sms-send",
        "sms-stats",
        "sms-topic",
        "sms-cost",
        "sms-webhook",
        "sms-private"
      ]
    },
    {
      "name": "Wallet Service",
      "tags": [
        "wallet-project",
        "wallet-images",
        "wallet-tasks",
        "wallet-notifications",
        "wallet-template",
        "wallet-loyalty-pass",
        "wallet-loyalty-template",
        "wallet-offer-pass",
        "wallet-offer-template",
        "wallet-generic-pass",
        "wallet-generic-template"
      ]
    },
    {
      "name": "Stats Service",
      "tags": [
        "stats-service-chat",
        "stats-service-cs",
        "stats-service-report",
        "stats-service-wallet",
        "stats-service-meta"
      ]
    },
    {
      "name": "ChatGen service",
      "tags": [
        "icc-chatgen-gateway-agent",
        "icc-chatgen-gateway-api-tool",
        "icc-chatgen-gateway-configured-custom-tool",
        "icc-chatgen-gateway-conversation",
        "icc-chatgen-gateway-custom-tool",
        "icc-chatgen-gateway-document",
        "icc-chatgen-gateway-file",
        "icc-chatgen-gateway-instance-config",
        "icc-chatgen-gateway-router-agent-tool",
        "icc-chatgen-gateway-router-agent"
      ]
    },
    {
      "name": "AI Assitant service",
      "tags": [
        "ai-generator-campaign"
      ]
    },
    {
      "name": "Meta Service",
      "tags": [
        "meta-cloudapi",
        "meta-configuration",
        "meta-webhook",
        "meta-business",
        "meta-templates",
        "meta-upload"
      ]
    },
    {
      "name": "Push Live Service",
      "tags": [
        "push-live-configuration",
        "push-live-ios-class",
        "push-live-activity",
        "push-live-send"
      ]
    },
    {
      "name": "Pathbot",
      "tags": [
        "pathbot-agents",
        "pathbot-applications",
        "pathbot-documents",
        "pathbot-flows",
        "pathbot-tools",
        "pathbot-nodes",
        "pathbot-ingestion-sources",
        "pathbot-evaluation",
        "pathbot-skills"
      ]
    },
    {
      "name": "Link Service",
      "tags": [
        "link-short-domain"
      ]
    }
  ],
  "servers": [
    {
      "url": "https://api.indigitall.com/v2"
    }
  ],
  "paths": {
    "/chat/{applicationId}/integration/{integrationId}": {
      "put": {
        "tags": [
          "chat-integration"
        ],
        "summary": "Update integration",
        "description": "Update a specific integration for a given application",
        "x-eov-operation-handler": "integration.controller",
        "x-gateway-endpoint": "chatServiceV2",
        "operationId": "updateIntegration",
        "x-gateway-check-permission": {
          "account-features": [
            "CHAT_V2_ENABLED"
          ]
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/CHS_ApplicationId_PathParameter"
          },
          {
            "$ref": "#/components/parameters/CHS_IntegrationId_PathParameter"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/CHS_Integration_Update_Body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/CHS_Integration_Response"
          },
          "400": {
            "$ref": "#/components/responses/CHS_BadRequest_Response"
          },
          "403": {
            "$ref": "#/components/responses/CHS_Forbidden_Response"
          },
          "404": {
            "$ref": "#/components/responses/CHS_NotFound_Response"
          },
          "500": {
            "$ref": "#/components/responses/CHS_ServerError_Response"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "Authorization": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "description": "Authorization for accesing endpoints , must be in one of the following format:\n- **Bearer {token}**\n- **ServerKey {key}**\n"
      }
    },
    "schemas": {
      "CHS_Id_Property": {
        "type": "integer",
        "format": "int32",
        "minimum": 0,
        "description": "Identifier",
        "example": 1234
      },
      "CHS_ApplicationId_Property": {
        "type": "integer",
        "format": "int32",
        "minimum": 0,
        "description": "Application identifier",
        "example": 1234
      },
      "CHS_DateTime_Property": {
        "type": "string",
        "format": "date-time",
        "description": "Date and time",
        "example": "2021-08-25T15:00:00Z"
      },
      "CHS_MultimediaUrl_Property": {
        "type": "string",
        "description": "Set a media element uploaded outside the platform to replace a variable using the file hosted in the URL.",
        "example": "https://myserver.com/image.jpg"
      },
      "CHS_MultimediaCode_Property": {
        "type": "string",
        "description": "Set a media element previously uploaded to the platform to replace a variable using its code.\n",
        "example": "summary_document_1"
      },
      "CHS_MultimediaId_Property": {
        "type": "integer",
        "description": "Set a media element previously uploaded to the platform to replace a variable using its ID.",
        "example": 12345
      },
      "CHS_MultimediaFilename_Property": {
        "type": "string",
        "description": "Only necessary for `document` **multimediaType**.\n\nSet a media element previously uploaded to the platform to replace a variable using its code.\n",
        "example": "summary.docx"
      },
      "CHS_MultimediaCaption_Property": {
        "type": "string",
        "description": "An optional caption for multimedia content. The caption provides additional context or information about the multimedia content being sent.\n\nOnly available for `image`, `video` and `document` **multimediaType** for **cloud_api** channel.\n",
        "example": "Check out this image!"
      },
      "CHS_MultimediaType_Property": {
        "type": "string",
        "description": "The type of multimedia content.",
        "enum": [
          "image",
          "video",
          "audio",
          "document"
        ],
        "example": "image"
      },
      "CHS_MessageContent_Schema": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/CHS_Body_MessageContent_Schema"
          },
          {
            "$ref": "#/components/schemas/CHS_Location_MessageContent_Schema"
          },
          {
            "$ref": "#/components/schemas/CHS_Multimedia_MessageContent_Schema"
          },
          {
            "$ref": "#/components/schemas/CHS_Template_MessageContent_Schema"
          },
          {
            "$ref": "#/components/schemas/CHS_Interactive_MessageContent_Schema"
          },
          {
            "$ref": "#/components/schemas/CHS_Event_MessageContent_Schema"
          },
          {
            "$ref": "#/components/schemas/CHS_Redirection_MessageContent_Schema"
          }
        ]
      },
      "CHS_Body_MessageContent_Schema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "body"
        ],
        "properties": {
          "body": {
            "type": "string",
            "description": "Text message",
            "example": "Hello, how can I help you today?"
          }
        }
      },
      "CHS_Event_MessageContent_Schema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "event"
        ],
        "properties": {
          "event": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "name"
            ],
            "properties": {
              "name": {
                "type": "string",
                "description": "Name of the event.",
                "example": "user_registered"
              },
              "parameters": {
                "type": "object",
                "additionalProperties": true,
                "description": "Parameters of the event.\nThis can include any relevant data associated with the event.\n"
              }
            }
          }
        }
      },
      "CHS_Location_MessageContent_Schema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "location"
        ],
        "properties": {
          "location": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "latitude",
              "longitude"
            ],
            "properties": {
              "latitude": {
                "type": "number",
                "description": "Latitude of the location.",
                "example": 40.7128
              },
              "longitude": {
                "type": "number",
                "description": "Longitude of the location.",
                "example": -74.006
              },
              "address": {
                "type": "string",
                "description": "Address of the location.",
                "example": "123 Main St, New York, NY 10001"
              },
              "name": {
                "type": "string",
                "description": "Name of the location.",
                "example": "My Location"
              }
            }
          }
        }
      },
      "CHS_Redirection_MessageContent_Schema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "redirection"
        ],
        "properties": {
          "redirection": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "integrationType"
            ],
            "properties": {
              "integrationType": {
                "$ref": "#/components/schemas/CHS_Integration_Type_Property"
              },
              "agentGroupId": {
                "$ref": "#/components/schemas/CHS_Redirection_AgentGroupId_Property"
              }
            }
          }
        }
      },
      "CHS_Redirection_AgentGroupId_Property": {
        "type": "integer",
        "nullable": true,
        "description": "Only available when the **integrationType** is set to `contact_center`.\n\nThe agent group identifier to which the conversation will be redirected.\n\nIf not provided, the conversation will be redirected to any available agent.\n",
        "example": 5678
      },
      "CHS_Multimedia_MessageContent_Schema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "multimedia"
        ],
        "properties": {
          "multimedia": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "multimediaType"
            ],
            "properties": {
              "multimediaType": {
                "$ref": "#/components/schemas/CHS_MultimediaType_Property"
              },
              "multimediaFilename": {
                "$ref": "#/components/schemas/CHS_MultimediaFilename_Property"
              },
              "multimediaId": {
                "$ref": "#/components/schemas/CHS_MultimediaId_Property"
              },
              "multimediaCode": {
                "$ref": "#/components/schemas/CHS_MultimediaCode_Property"
              },
              "multimediaUrl": {
                "$ref": "#/components/schemas/CHS_MultimediaUrl_Property"
              },
              "caption": {
                "$ref": "#/components/schemas/CHS_MultimediaCaption_Property"
              }
            }
          }
        }
      },
      "CHS_Template_MessageContent_Schema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "template"
        ],
        "properties": {
          "template": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "components"
            ],
            "properties": {
              "components": {
                "$ref": "#/components/schemas/CHS_Template_Components_MessageContent_Property"
              },
              "name": {
                "type": "string",
                "description": "*Only required for* `cloud_api` *channel.*\n\nThe name of the template (e.g. `reminder_appointment`).\n"
              },
              "language": {
                "type": "object",
                "additionalProperties": false,
                "description": "*Only required for* `cloud_api` *channel.*\n\nThe language of the template.\n",
                "required": [
                  "code"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "description": "*Only required for* `cloud_api` *channel.*\n\nThe language code or locale to use on the template (e.g., `en`, `en_US`, `es`, `es_ES`).\n",
                    "example": "en"
                  },
                  "policy": {
                    "type": "string",
                    "description": "*Optional. Only for* `cloud_api` *channel.*\n\nThe policy to use on the template (e.g., `deterministic`).\nIf not provided, the default policy is `deterministic`.\n",
                    "enum": [
                      "deterministic"
                    ],
                    "default": "deterministic"
                  }
                }
              }
            }
          }
        }
      },
      "CHS_Template_Carousel_Card_Components_MessageContent_Property": {
        "type": "array",
        "description": "Components for a single carousel card.\n\nCards can contain a header, a body and up to two button components.\n",
        "minItems": 1,
        "maxItems": 4,
        "items": {
          "$ref": "#/components/schemas/CHS_Template_Carousel_Card_Component_MessageContent_Property"
        }
      },
      "CHS_Template_Carousel_Card_Property": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "cardIndex",
          "components"
        ],
        "properties": {
          "cardIndex": {
            "type": "integer",
            "minimum": 0,
            "description": "Zero-based card index.\n\nOnly available inside components with `type: carousel`.\n",
            "example": 0
          },
          "components": {
            "$ref": "#/components/schemas/CHS_Template_Carousel_Card_Components_MessageContent_Property"
          }
        }
      },
      "CHS_Template_Carousel_Card_Component_MessageContent_Property": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "Template component type inside a carousel card.\n\nOnly available inside `cards[].components`.\n",
            "enum": [
              "header",
              "body",
              "button"
            ]
          },
          "subType": {
            "type": "string",
            "description": "Only available for `button` components inside carousel cards.\n",
            "enum": [
              "url",
              "quickReply",
              "copyCode"
            ]
          },
          "index": {
            "type": "string",
            "description": "Only available for `button` components inside carousel cards.\n",
            "example": "0"
          },
          "parameters": {
            "type": "array",
            "description": "Parameters used to replace template variables.\n\nOnly available for `header`, `body` and `button` components inside carousel cards.\nFor `header`, only multimedia parameters are valid.\nFor `body`, only text, currency and date_time parameters are valid.\nFor `button`, the valid parameter type depends on `subType`.\n",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/CHS_Text_Template_Component_Parameter_Property"
                },
                {
                  "$ref": "#/components/schemas/CHS_Currency_Template_Component_Parameter_Property"
                },
                {
                  "$ref": "#/components/schemas/CHS_Multimedia_Template_Component_Parameter_Property"
                },
                {
                  "$ref": "#/components/schemas/CHS_Datetime_Template_Component_Parameter_Property"
                },
                {
                  "$ref": "#/components/schemas/CHS_Payload_Template_Component_Parameter_Property"
                },
                {
                  "$ref": "#/components/schemas/CHS_CopyCode_Template_Component_Parameter_Property"
                }
              ]
            }
          }
        }
      },
      "CHS_Template_Component_MessageContent_Property": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "Template component type.\n\nUse `header`, `body` and `footer` for standard template sections.\nUse `button` for button components.\nUse `carousel` only for carousel template components.\n",
            "enum": [
              "header",
              "body",
              "footer",
              "button",
              "carousel"
            ]
          },
          "subType": {
            "type": "string",
            "description": "Only available for `button` components.\n",
            "enum": [
              "url",
              "quickReply",
              "copyCode"
            ]
          },
          "index": {
            "type": "string",
            "description": "Only available for `button` components.\n",
            "example": "0"
          },
          "text": {
            "type": "string",
            "description": "Optional text value.\n\nOnly available for `header`, `body` and `footer` components in `messenger` and `webchat` channels.\n"
          },
          "multimediaId": {
            "type": "string",
            "description": "Optional multimedia identifier.\n\nOnly available for `header` components in `webchat` channels.\n"
          },
          "multimediaCode": {
            "type": "string",
            "description": "Optional multimedia code.\n\nOnly available for `header` components in `webchat` channels.\n"
          },
          "multimediaFilename": {
            "type": "string",
            "description": "Optional multimedia filename.\n\nOnly available for `header` components in `webchat` channels.\n"
          },
          "label": {
            "type": "string",
            "description": "Optional button label.\n\nOnly available for `button` components in `messenger` and `webchat` channels.\n"
          },
          "url": {
            "type": "string",
            "description": "Optional button URL.\n\nOnly available for `button` components with `subType: url` in `messenger` and `webchat` channels.\n"
          },
          "payload": {
            "type": "string",
            "description": "Optional button payload.\n\nOnly available for `button` components with `subType: quickReply` or `subType: copyCode` in `messenger` and `webchat` channels.\n"
          },
          "parameters": {
            "type": "array",
            "description": "Parameters used to replace template variables.\n\nOnly available for `header`, `body` and `button` components in `cloud_api` channels.\nFor `carousel`, these parameters are defined inside each card component.\n",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/CHS_Text_Template_Component_Parameter_Property"
                },
                {
                  "$ref": "#/components/schemas/CHS_Currency_Template_Component_Parameter_Property"
                },
                {
                  "$ref": "#/components/schemas/CHS_Multimedia_Template_Component_Parameter_Property"
                },
                {
                  "$ref": "#/components/schemas/CHS_Datetime_Template_Component_Parameter_Property"
                },
                {
                  "$ref": "#/components/schemas/CHS_Payload_Template_Component_Parameter_Property"
                },
                {
                  "$ref": "#/components/schemas/CHS_CopyCode_Template_Component_Parameter_Property"
                }
              ]
            }
          },
          "cards": {
            "type": "array",
            "description": "Carousel cards to send.\n\nOnly available for components with `type: carousel`.\n",
            "minItems": 1,
            "maxItems": 10,
            "items": {
              "$ref": "#/components/schemas/CHS_Template_Carousel_Card_Property"
            }
          }
        }
      },
      "CHS_Template_Components_MessageContent_Property": {
        "type": "array",
        "description": "Template components payload.\n\nRequired for `cloud_api` template messages.\nSets the content of each component defined by a template.\n\nDepending on the type of destination channel for the message, the components can be fully set or only the content of some variables.\n\nThe `cloud_api` channel works with previously defined templates, where a series of variable fields have been defined and are replaced by the content of the parameters set in the components.\n",
        "minItems": 0,
        "items": {
          "$ref": "#/components/schemas/CHS_Template_Component_MessageContent_Property"
        }
      },
      "CHS_Text_Template_Component_Parameter_Property": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "type",
          "text"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "The type of the parameter.\n",
            "enum": [
              "text"
            ],
            "default": "text"
          },
          "text": {
            "type": "string",
            "description": "The text to be replaced in the template.\n",
            "example": "Eric Smith"
          }
        }
      },
      "CHS_CopyCode_Template_Component_Parameter_Property": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "type",
          "copyCode"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "The type of the parameter.\n",
            "enum": [
              "copyCode"
            ],
            "default": "copyCode"
          },
          "copyCode": {
            "type": "string",
            "description": "The code to be copied\n",
            "example": "CODE100"
          }
        }
      },
      "CHS_Payload_Template_Component_Parameter_Property": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "type",
          "payload"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "The type of the parameter.\n",
            "enum": [
              "payload"
            ],
            "default": "payload"
          },
          "payload": {
            "type": "string",
            "description": "Button payload.\nIt allows defining an event in your integration (e.g. `df`) that will be triggered when the button is pressed.\n\nThis allows to reply with a message to the user when pressing a button.\n",
            "example": "clicked_open_button"
          }
        }
      },
      "CHS_Currency_Template_Component_Parameter_Property": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "type",
          "currency"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "The type of the parameter.\n",
            "enum": [
              "currency"
            ],
            "default": "currency"
          },
          "currency": {
            "type": "object",
            "additionalProperties": false,
            "description": "The currency to be replaced in the template parameter.",
            "properties": {
              "amount": {
                "type": "number",
                "description": "The amount of the currency. (e.g., `100`, `100.99` ...).",
                "example": 100
              },
              "code": {
                "type": "string",
                "description": "The currency code (e.g., `USD`, `EUR`...).",
                "example": "USD"
              },
              "fallbackValue": {
                "type": "string",
                "description": "The fallback value to be used if the currency is not available (e.g., `$100.99`, `100 USD`, `120€` ...).",
                "example": "100 USD"
              }
            }
          }
        }
      },
      "CHS_Multimedia_Template_Component_Parameter_Property": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "type",
          "multimediaType"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "The type of the parameter.\n",
            "enum": [
              "multimedia"
            ],
            "default": "multimedia"
          },
          "multimediaType": {
            "$ref": "#/components/schemas/CHS_MultimediaType_Property"
          },
          "multimediaFilename": {
            "$ref": "#/components/schemas/CHS_MultimediaFilename_Property"
          },
          "multimediaId": {
            "$ref": "#/components/schemas/CHS_MultimediaId_Property"
          },
          "multimediaCode": {
            "$ref": "#/components/schemas/CHS_MultimediaCode_Property"
          },
          "multimediaUrl": {
            "$ref": "#/components/schemas/CHS_MultimediaUrl_Property"
          }
        }
      },
      "CHS_Datetime_Template_Component_Parameter_Property": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "type",
          "dateTime"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "The type of the parameter.\n",
            "enum": [
              "date_time"
            ],
            "default": "date_time"
          },
          "dateTime": {
            "type": "object",
            "additionalProperties": false,
            "description": "The date and time to be replaced in the template.",
            "properties": {
              "dayOfWeek": {
                "type": "integer",
                "description": "The day of the week (e.g., `1` for *Monday*, `2` for *Tuesday* ...).",
                "example": 3,
                "minimum": 1,
                "maximum": 7
              },
              "dayOfMonth": {
                "type": "integer",
                "description": "The day of the month (e.g., `1`, `2`, `3` ...).",
                "example": 15,
                "minimum": 1,
                "maximum": 31
              },
              "year": {
                "type": "integer",
                "description": "The year (e.g., `2026`, `2027` ...).",
                "example": 2026
              },
              "month": {
                "type": "integer",
                "description": "The month (e.g., `1` for *January*, `2` for *February* ...).",
                "example": 8,
                "minimum": 1,
                "maximum": 12
              },
              "hour": {
                "type": "integer",
                "description": "The hour (e.g., `0`, `1`, `2` ...).",
                "example": 15,
                "minimum": 0,
                "maximum": 23
              },
              "minute": {
                "type": "integer",
                "description": "The minute (e.g., `0`, `1`, `2` ...).",
                "example": 0,
                "minimum": 0,
                "maximum": 59
              },
              "fallbackValue": {
                "type": "string",
                "description": "The fallback value to be used if the date and time is not available (e.g., `2026-08-15 15:00` ...).",
                "example": "2026-08-15 15:00"
              }
            }
          }
        }
      },
      "CHS_Interactive_Header_Properties": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "type",
          "text"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "text"
            ],
            "description": "Only supports `text`."
          },
          "text": {
            "type": "string",
            "description": "The text to display in the header.",
            "example": "Header Text"
          }
        }
      },
      "CHS_Interactive_Footer_Properties": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "text"
        ],
        "properties": {
          "text": {
            "type": "string",
            "description": "The text to display in the footer of the interactive message.",
            "example": "Footer Text",
            "maxLength": 60
          }
        }
      },
      "CHS_Interactive_Body_Properties": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "text"
        ],
        "properties": {
          "text": {
            "type": "string",
            "description": "The text to display in the body of the interactive message.",
            "example": "Body Text",
            "maxLength": 1024
          }
        }
      },
      "CHS_Interactive_Button_Type_Schema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "type",
          "action"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "button"
            ]
          },
          "header": {
            "$ref": "#/components/schemas/CHS_Interactive_Header_Properties"
          },
          "body": {
            "$ref": "#/components/schemas/CHS_Interactive_Body_Properties"
          },
          "footer": {
            "$ref": "#/components/schemas/CHS_Interactive_Footer_Properties"
          },
          "action": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "buttons"
            ],
            "properties": {
              "buttons": {
                "type": "array",
                "description": "The buttons of the interactive message.",
                "minItems": 1,
                "maxItems": 3,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type",
                    "reply"
                  ],
                  "properties": {
                    "type": {
                      "type": "string",
                      "enum": [
                        "reply"
                      ],
                      "description": "The type of the button. Only `reply` is supported."
                    },
                    "reply": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "payload",
                        "title"
                      ],
                      "properties": {
                        "payload": {
                          "type": "string",
                          "description": "The event name or payload that will be sent when the button is clicked.",
                          "example": "reply1"
                        },
                        "title": {
                          "type": "string",
                          "description": "The title of the reply button.",
                          "example": "Reply Button"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "CHS_Interactive_List_Type_Schema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "type",
          "action"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "list"
            ]
          },
          "header": {
            "$ref": "#/components/schemas/CHS_Interactive_Header_Properties"
          },
          "body": {
            "$ref": "#/components/schemas/CHS_Interactive_Body_Properties"
          },
          "footer": {
            "$ref": "#/components/schemas/CHS_Interactive_Footer_Properties"
          },
          "action": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "button",
              "sections"
            ],
            "properties": {
              "button": {
                "type": "string",
                "description": "The text for the button that will be displayed in the interactive message.",
                "example": "Select an option"
              },
              "sections": {
                "type": "array",
                "description": "The sections of the list.",
                "minItems": 1,
                "maxItems": 10,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "title",
                    "rows"
                  ],
                  "properties": {
                    "title": {
                      "type": "string",
                      "description": "The title of the section.",
                      "example": "Section Title"
                    },
                    "rows": {
                      "type": "array",
                      "description": "The rows of the section.",
                      "minItems": 1,
                      "maxItems": 10,
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "payload",
                          "title"
                        ],
                        "properties": {
                          "payload": {
                            "type": "string",
                            "description": "The event name or payload that will be sent when the row is selected.",
                            "example": "row1"
                          },
                          "title": {
                            "type": "string",
                            "description": "The title of the row.",
                            "example": "Row Title"
                          },
                          "description": {
                            "type": "string",
                            "description": "The description of the row.",
                            "example": "Row Description"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "CHS_Interactive_CtaUrl_Type_Schema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "type",
          "action"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "ctaUrl"
            ]
          },
          "header": {
            "$ref": "#/components/schemas/CHS_Interactive_Header_Properties"
          },
          "body": {
            "$ref": "#/components/schemas/CHS_Interactive_Body_Properties"
          },
          "footer": {
            "$ref": "#/components/schemas/CHS_Interactive_Footer_Properties"
          },
          "action": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "displayText",
              "url"
            ],
            "properties": {
              "displayText": {
                "type": "string",
                "description": "The text to display in the button.",
                "example": "Click here to learn more",
                "maxLength": 20
              },
              "url": {
                "type": "string",
                "description": "The URL to open when the button is clicked.",
                "example": "https://example.com"
              }
            }
          }
        }
      },
      "CHS_Interactive_Flow_Type_Schema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "type",
          "action"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "flow"
            ]
          },
          "header": {
            "$ref": "#/components/schemas/CHS_Interactive_Header_Properties"
          },
          "body": {
            "$ref": "#/components/schemas/CHS_Interactive_Body_Properties"
          },
          "footer": {
            "$ref": "#/components/schemas/CHS_Interactive_Footer_Properties"
          },
          "action": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "flowId",
              "flowCTA",
              "flowMessageVersion"
            ],
            "properties": {
              "mode": {
                "type": "string",
                "enum": [
                  "draft",
                  "published"
                ],
                "description": "The mode of the interactive message.",
                "default": "published"
              },
              "flowMessageVersion": {
                "type": "string",
                "enum": [
                  "3"
                ],
                "description": "The version of the flow message."
              },
              "flowToken": {
                "type": "string",
                "description": "Optional token used to identify the flow message. If omitted, the service generates one.\n\nWhen the user completes the Flow, the service emits `FLOW_RESPONSE_EVENT` to the\nactive integration. The response is available in\n`event.parameters.flowResponse`; the original token is available in\n`event.parameters.flowResponse.flowToken.token`.\n",
                "example": "flow-token-12345"
              },
              "flowId": {
                "type": "string",
                "description": "The ID of the Flow provided by WhatsApp manager.",
                "example": "flow-id-12345"
              },
              "flowCTA": {
                "type": "string",
                "description": "The text on the CTA button. Only text is supported. Emojis are not supported.",
                "example": "Sign Up",
                "maxLength": 20
              },
              "flowAction": {
                "type": "string",
                "description": "Defines how the flow behaves when opened.\n- `Maps`: opens a specific screen in the flow.\n- `data_exchange`: starts the flow with prefilled or dynamic data.\nOnly available for `flow` type. Optional field.\n",
                "enum": [
                  "navigate",
                  "data_exchange"
                ],
                "default": "navigate"
              },
              "flowActionPayload": {
                "type": "object",
                "additionalProperties": false,
                "description": "The payload for the flow action.",
                "properties": {
                  "screen": {
                    "type": "string",
                    "description": "The screen id to navigate to when the flow is opened.",
                    "default": "FRIST_ENTRY_SCREEN"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "The input data for the first screen of the Flow. Must be a non-empty object.",
                    "minProperties": 1
                  }
                }
              }
            }
          }
        }
      },
      "CHS_Interactive_LocationRequest_Type_Schema": {
        "type": "object",
        "additionalProperties": true,
        "required": [
          "type",
          "body"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "locationRequest"
            ]
          },
          "body": {
            "$ref": "#/components/schemas/CHS_Interactive_Body_Properties"
          },
          "action": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "name": {
                "type": "string",
                "description": "The action to perform when the location is requested.\n",
                "default": "send_location",
                "enum": [
                  "send_location"
                ]
              }
            }
          }
        }
      },
      "CHS_Interactive_SingleProduct_Type_Schema": {
        "type": "object",
        "additionalProperties": true,
        "required": [
          "type",
          "action"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "singleProduct"
            ]
          },
          "body": {
            "$ref": "#/components/schemas/CHS_Interactive_Body_Properties"
          },
          "footer": {
            "$ref": "#/components/schemas/CHS_Interactive_Footer_Properties"
          },
          "action": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "productId",
              "catalogId"
            ],
            "properties": {
              "productId": {
                "type": "string",
                "description": "The ID of the product.",
                "example": "product-id-12345"
              },
              "catalogId": {
                "type": "string",
                "description": "The catalog ID of the product.",
                "example": "catalog-id-12345"
              }
            }
          }
        }
      },
      "CHS_Interactive_MultiProduct_Type_Schema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "type",
          "action"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "multiProduct"
            ]
          },
          "header": {
            "$ref": "#/components/schemas/CHS_Interactive_Header_Properties"
          },
          "body": {
            "$ref": "#/components/schemas/CHS_Interactive_Body_Properties"
          },
          "footer": {
            "$ref": "#/components/schemas/CHS_Interactive_Footer_Properties"
          },
          "action": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "catalogId",
              "sections"
            ],
            "properties": {
              "catalogId": {
                "type": "string",
                "description": "The catalog ID of the products.",
                "example": "catalog-id-12345"
              },
              "sections": {
                "type": "array",
                "description": "The sections of the multi-product message.",
                "minItems": 1,
                "maxItems": 10,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "title",
                    "productItems"
                  ],
                  "properties": {
                    "title": {
                      "type": "string",
                      "description": "The title of the section.",
                      "example": "Section Title"
                    },
                    "productItems": {
                      "type": "array",
                      "description": "The product items in the section.",
                      "minItems": 1,
                      "maxItems": 10,
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "productId"
                        ],
                        "properties": {
                          "productId": {
                            "type": "string",
                            "description": "The ID of the product.",
                            "example": "product-id-12345"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "CHS_Interactive_RequestContactInfo_Type_Schema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "type",
          "action"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "requestContactInfo"
            ]
          },
          "body": {
            "$ref": "#/components/schemas/CHS_Interactive_Body_Properties"
          },
          "action": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "name"
            ],
            "properties": {
              "name": {
                "type": "string",
                "description": "The action to perform when the contact info is requested.",
                "default": "requestContactInfo",
                "enum": [
                  "requestContactInfo"
                ]
              }
            }
          }
        }
      },
      "CHS_Interactive_MessageContent_Schema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "interactive"
        ],
        "properties": {
          "interactive": {
            "type": "object",
            "additionalProperties": true,
            "description": "The interactive message content.\nThe specific interactive message type is determined by the `type` property within this object.\n",
            "oneOf": [
              {
                "$ref": "#/components/schemas/CHS_Interactive_Button_Type_Schema"
              },
              {
                "$ref": "#/components/schemas/CHS_Interactive_List_Type_Schema"
              },
              {
                "$ref": "#/components/schemas/CHS_Interactive_CtaUrl_Type_Schema"
              },
              {
                "$ref": "#/components/schemas/CHS_Interactive_Flow_Type_Schema"
              },
              {
                "$ref": "#/components/schemas/CHS_Interactive_SingleProduct_Type_Schema"
              },
              {
                "$ref": "#/components/schemas/CHS_Interactive_MultiProduct_Type_Schema"
              },
              {
                "$ref": "#/components/schemas/CHS_Interactive_LocationRequest_Type_Schema"
              },
              {
                "$ref": "#/components/schemas/CHS_Interactive_RequestContactInfo_Type_Schema"
              }
            ],
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "button": "#/components/schemas/CHS_Interactive_Button_Type_Schema",
                "list": "#/components/schemas/CHS_Interactive_List_Type_Schema",
                "ctaUrl": "#/components/schemas/CHS_Interactive_CtaUrl_Type_Schema",
                "flow": "#/components/schemas/CHS_Interactive_Flow_Type_Schema",
                "singleProduct": "#/components/schemas/CHS_Interactive_SingleProduct_Type_Schema",
                "multiProduct": "#/components/schemas/CHS_Interactive_MultiProduct_Type_Schema",
                "locationRequest": "#/components/schemas/CHS_Interactive_LocationRequest_Type_Schema",
                "requestContactInfo": "#/components/schemas/CHS_Interactive_RequestContactInfo_Type_Schema"
              }
            }
          }
        }
      },
      "CHS_Integration_Update_AutoReply": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "auto_reply"
            ],
            "description": "The available integration types are:\n- `auto_reply` for Auto Reply\n- `dialogflow` for Dialogflow\n- `contact_center` for Contact Center\n- `typebot` for Typebot\n- `pathbot` for Pathbot\n"
          },
          "enabled": {
            "$ref": "#/components/schemas/CHS_Integration_Enabled_Property"
          },
          "priority": {
            "$ref": "#/components/schemas/CHS_Integration_Priority_Property"
          },
          "config": {
            "$ref": "#/components/schemas/CHS_Integration_AutoReply_Config_Schema"
          }
        }
      },
      "CHS_Integration_Update_DialogFlow": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "dialogflow"
            ],
            "description": "The available integration types are:\n- `auto_reply` for Auto Reply\n- `dialogflow` for Dialogflow\n- `contact_center` for Contact Center\n- `typebot` for Typebot\n- `pathbot` for Pathbot\n"
          },
          "enabled": {
            "$ref": "#/components/schemas/CHS_Integration_Enabled_Property"
          },
          "priority": {
            "$ref": "#/components/schemas/CHS_Integration_Priority_Property"
          },
          "config": {
            "$ref": "#/components/schemas/CHS_Integration_DialogFlow_Config_Schema"
          }
        }
      },
      "CHS_Integration_Update_ContactCenter": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "contact_center"
            ],
            "description": "The available integration types are:\n- `auto_reply` for Auto Reply\n- `dialogflow` for Dialogflow\n- `contact_center` for Contact Center\n- `typebot` for Typebot\n- `pathbot` for Pathbot\n"
          },
          "enabled": {
            "$ref": "#/components/schemas/CHS_Integration_Enabled_Property"
          },
          "priority": {
            "$ref": "#/components/schemas/CHS_Integration_Priority_Property"
          },
          "config": {
            "$ref": "#/components/schemas/CHS_Integration_ContactCenter_Config_Schema"
          }
        }
      },
      "CHS_Integration_Update_TypeBot": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "typebot"
            ],
            "description": "The available integration types are:\n- `auto_reply` for Auto Reply\n- `dialogflow` for Dialogflow\n- `contact_center` for Contact Center\n- `typebot` for Typebot\n- `pathbot` for Pathbot\n"
          },
          "enabled": {
            "$ref": "#/components/schemas/CHS_Integration_Enabled_Property"
          },
          "priority": {
            "$ref": "#/components/schemas/CHS_Integration_Priority_Property"
          },
          "config": {
            "$ref": "#/components/schemas/CHS_Integration_TypeBot_Config_Schema"
          }
        }
      },
      "CHS_Integration_Update_Pathbot": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "pathbot"
            ],
            "description": "The available integration types are:\n- `auto_reply` for Auto Reply\n- `dialogflow` for Dialogflow\n- `contact_center` for Contact Center\n- `typebot` for Typebot\n- `pathbot` for Pathbot\n"
          },
          "enabled": {
            "$ref": "#/components/schemas/CHS_Integration_Enabled_Property"
          },
          "priority": {
            "$ref": "#/components/schemas/CHS_Integration_Priority_Property"
          },
          "config": {
            "$ref": "#/components/schemas/CHS_Integration_Pathbot_Config_Schema"
          }
        }
      },
      "CHS_Integration_Schema": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/CHS_Integration_AutoReply"
          },
          {
            "$ref": "#/components/schemas/CHS_Integration_DialogFlow"
          },
          {
            "$ref": "#/components/schemas/CHS_Integration_ContactCenter"
          },
          {
            "$ref": "#/components/schemas/CHS_Integration_TypeBot"
          },
          {
            "$ref": "#/components/schemas/CHS_Integration_Pathbot"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "auto_reply": "#/components/schemas/CHS_Integration_AutoReply",
            "dialogflow": "#/components/schemas/CHS_Integration_DialogFlow",
            "contact_center": "#/components/schemas/CHS_Integration_ContactCenter",
            "typebot": "#/components/schemas/CHS_Integration_TypeBot",
            "pathbot": "#/components/schemas/CHS_Integration_Pathbot"
          }
        }
      },
      "CHS_Integration_AutoReply": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "createdAt",
          "updatedAt",
          "applicationId",
          "type",
          "priority",
          "enabled",
          "config"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/CHS_Integration_Id_Property"
          },
          "createdAt": {
            "$ref": "#/components/schemas/CHS_Integration_CreatedAt_Property"
          },
          "updatedAt": {
            "$ref": "#/components/schemas/CHS_Integration_UpdatedAt_Property"
          },
          "applicationId": {
            "$ref": "#/components/schemas/CHS_ApplicationId_Property"
          },
          "type": {
            "type": "string",
            "enum": [
              "auto_reply"
            ],
            "description": "must be “auto_reply”"
          },
          "priority": {
            "$ref": "#/components/schemas/CHS_Integration_Priority_Property"
          },
          "enabled": {
            "$ref": "#/components/schemas/CHS_Integration_Enabled_Property"
          },
          "config": {
            "$ref": "#/components/schemas/CHS_Integration_AutoReply_Config_Schema"
          }
        }
      },
      "CHS_Integration_ContactCenter": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "createdAt",
          "updatedAt",
          "applicationId",
          "type",
          "priority",
          "enabled",
          "config"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/CHS_Integration_Id_Property"
          },
          "createdAt": {
            "$ref": "#/components/schemas/CHS_Integration_CreatedAt_Property"
          },
          "updatedAt": {
            "$ref": "#/components/schemas/CHS_Integration_UpdatedAt_Property"
          },
          "applicationId": {
            "$ref": "#/components/schemas/CHS_ApplicationId_Property"
          },
          "type": {
            "type": "string",
            "enum": [
              "contact_center"
            ],
            "description": "must be “contact_center”"
          },
          "priority": {
            "$ref": "#/components/schemas/CHS_Integration_Priority_Property"
          },
          "enabled": {
            "$ref": "#/components/schemas/CHS_Integration_Enabled_Property"
          },
          "config": {
            "$ref": "#/components/schemas/CHS_Integration_ContactCenter_Config_Schema"
          }
        }
      },
      "CHS_Integration_DialogFlow": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "createdAt",
          "updatedAt",
          "applicationId",
          "type",
          "priority",
          "enabled",
          "config"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/CHS_Integration_Id_Property"
          },
          "createdAt": {
            "$ref": "#/components/schemas/CHS_Integration_CreatedAt_Property"
          },
          "updatedAt": {
            "$ref": "#/components/schemas/CHS_Integration_UpdatedAt_Property"
          },
          "applicationId": {
            "$ref": "#/components/schemas/CHS_ApplicationId_Property"
          },
          "type": {
            "type": "string",
            "enum": [
              "dialogflow"
            ],
            "description": "must be “dialogflow”"
          },
          "priority": {
            "$ref": "#/components/schemas/CHS_Integration_Priority_Property"
          },
          "enabled": {
            "$ref": "#/components/schemas/CHS_Integration_Enabled_Property"
          },
          "config": {
            "$ref": "#/components/schemas/CHS_Integration_DialogFlow_Config_Schema"
          }
        }
      },
      "CHS_Integration_TypeBot": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "createdAt",
          "updatedAt",
          "applicationId",
          "type",
          "priority",
          "enabled",
          "config"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/CHS_Integration_Id_Property"
          },
          "createdAt": {
            "$ref": "#/components/schemas/CHS_Integration_CreatedAt_Property"
          },
          "updatedAt": {
            "$ref": "#/components/schemas/CHS_Integration_UpdatedAt_Property"
          },
          "applicationId": {
            "$ref": "#/components/schemas/CHS_ApplicationId_Property"
          },
          "type": {
            "type": "string",
            "enum": [
              "typebot"
            ],
            "description": "must be “typebot”"
          },
          "priority": {
            "$ref": "#/components/schemas/CHS_Integration_Priority_Property"
          },
          "enabled": {
            "$ref": "#/components/schemas/CHS_Integration_Enabled_Property"
          },
          "config": {
            "$ref": "#/components/schemas/CHS_Integration_TypeBot_Config_Schema"
          }
        }
      },
      "CHS_Integration_Pathbot": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "createdAt",
          "updatedAt",
          "applicationId",
          "type",
          "priority",
          "enabled",
          "config"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/CHS_Integration_Id_Property"
          },
          "createdAt": {
            "$ref": "#/components/schemas/CHS_Integration_CreatedAt_Property"
          },
          "updatedAt": {
            "$ref": "#/components/schemas/CHS_Integration_UpdatedAt_Property"
          },
          "applicationId": {
            "$ref": "#/components/schemas/CHS_ApplicationId_Property"
          },
          "type": {
            "type": "string",
            "enum": [
              "pathbot"
            ],
            "description": "must be “pathbot”"
          },
          "priority": {
            "$ref": "#/components/schemas/CHS_Integration_Priority_Property"
          },
          "enabled": {
            "$ref": "#/components/schemas/CHS_Integration_Enabled_Property"
          },
          "config": {
            "$ref": "#/components/schemas/CHS_Integration_Pathbot_Config_Schema"
          }
        }
      },
      "CHS_Integration_Id_Property": {
        "allOf": [
          {
            "description": "Integration ID"
          },
          {
            "$ref": "#/components/schemas/CHS_Id_Property"
          }
        ]
      },
      "CHS_Integration_CreatedAt_Property": {
        "allOf": [
          {
            "description": "Date and time when the integration was created"
          },
          {
            "$ref": "#/components/schemas/CHS_DateTime_Property"
          }
        ]
      },
      "CHS_Integration_UpdatedAt_Property": {
        "allOf": [
          {
            "description": "Date and time when the integration was last updated"
          },
          {
            "$ref": "#/components/schemas/CHS_DateTime_Property"
          }
        ]
      },
      "CHS_Integration_Enabled_Property": {
        "type": "boolean",
        "description": "Indicates whether a specific integration and its configuration is active or not.\nIf there isn't an active integration, incoming messages will not be processed.\n"
      },
      "CHS_Integration_Type_Property": {
        "type": "string",
        "description": "Integration type is used to determine the integration that must be used to handle incoming messages.\n\nThe available integration types are:\n- `auto_reply` for Auto Reply\n- `dialogflow` for Dialogflow\n- `contact_center` for Contact Center\n- `typebot` for Typebot\n- `pathbot` for Pathbot\n",
        "enum": [
          "auto_reply",
          "dialogflow",
          "contact_center",
          "typebot",
          "pathbot"
        ],
        "example": "auto_reply"
      },
      "CHS_Integration_Priority_Property": {
        "type": "integer",
        "description": "Integration priority is used to determine which integration must be used when multiple integrations are being used for a single application.\nBy default, the integration with the highest priority will be used for incoming messages.\nAvoid using the same priority for multiple integrations.\n",
        "example": 1,
        "minimum": 1,
        "maximum": 100
      },
      "CHS_Integration_AutoReply_Config_Schema": {
        "type": "object",
        "additionalProperties": false,
        "description": "Configuration for the Auto Reply integration.\nThis integration allows the application to automatically reply to incoming messages with predefined content or a campaign.\nExactly one of `defaultReplyContent` or `defaultReplyCampaign` must be provided.\n",
        "properties": {
          "defaultReplyContent": {
            "$ref": "#/components/schemas/CHS_MessageContent_Schema"
          },
          "defaultReplyCampaign": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "campaignId"
            ],
            "properties": {
              "campaignId": {
                "type": "integer"
              },
              "customFields": {
                "type": "object",
                "additionalProperties": true,
                "description": "Values used to replace the campaign variables."
              }
            }
          }
        },
        "oneOf": [
          {
            "required": [
              "defaultReplyContent"
            ]
          },
          {
            "required": [
              "defaultReplyCampaign"
            ]
          }
        ]
      },
      "CHS_Integration_DialogFlow_Config_Schema": {
        "type": "object",
        "additionalProperties": false,
        "description": "Configuration for the Dialogflow integration.\nThis integration allows the application to use Dialogflow for natural language understanding and processing.\n",
        "properties": {
          "dfProjectId": {
            "type": "string",
            "description": "The Dialogflow project ID.",
            "example": "test-project-id"
          },
          "dfCredentials": {
            "type": "object",
            "description": "The Dialogflow service account credentials in JSON format.",
            "additionalProperties": true,
            "example": "{\n  \"type\": \"service_account\",\n  \"project_id\": \"test-project-id\",\n  \"private_key_id\": \"test-private-key-id\",\n  \"private_key\": \"-----BEGIN PRIVATE KEY-----\\nMIIEvgIBADANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQ...\\n-----END PRIVATE KEY-----\\n\",\n  \"client_email\": \"@test-project-id.iam.gserviceaccount.com\",\n  \"client_id\": \"123456789012345678901\",\n  \"auth_uri\": \"https://accounts.google.com/o/oauth2/auth\",\n  \"token_uri\": \"https://oauth2.googleapis.com/token\",\n  \"auth_provider_x509_cert_url\": \"https://www.googleapis.com/oauth2/v1/certs\",\n  \"client_x509_cert_url\": \"https://www.googleapis.com/robot/v1/metadata/client/test-project-id.iam.gserviceaccount.com\"\n}\n"
          },
          "dfDefaultLanguage": {
            "type": "string",
            "description": "The default language for the Dialogflow agent.",
            "example": "es"
          },
          "dfVersion": {
            "type": "string",
            "description": "The version of the Dialogflow agent to use.",
            "example": "v2",
            "enum": [
              "v2",
              "v2beta1"
            ]
          },
          "dfLocation": {
            "type": "string",
            "description": "The region where the Dialogflow agent is hosted.\nSome supported regions include:\n- `global`\n- `europe-west1`\n- `europe-west2`\n- `australia-southeast1`\n- `asia-northeast1`\n\nMore info: https://cloud.google.com/dialogflow/es/docs/how/region#regions\n",
            "example": "global"
          },
          "dfWelcome": {
            "type": "boolean",
            "description": "Indicates whether the Dialogflow agent should send a welcome message when a new conversation starts.\nIf set to `true`, the bot will send a welcome message to the user the first time they interact with the bot.\n",
            "example": true
          },
          "dfRemoveAccents": {
            "type": "boolean",
            "description": "Indicates whether the Dialogflow agent should remove accents from the user's input.\nIf set to `true`, the bot will remove accents from the user's input before processing it.\n",
            "example": true
          },
          "dfSecretConfig": {
            "type": "boolean",
            "description": "If set to `true`, credentials are managed internally.\n"
          },
          "dfFallbackOnEmptyContent": {
            "type": "string",
            "description": "The fallback message to send when Dialogflow does not return a valid response.\nThis is used to handle cases where no intent is matched or the response is empty.\n",
            "example": "Sorry, I didn't understand that. Can you please rephrase your question?"
          }
        }
      },
      "CHS_Integration_ContactCenter_Config_Schema": {
        "type": "object",
        "additionalProperties": false,
        "description": "Configuration for the Contact Center integration.\nThis integration allows the application to route incoming messages to a contact center for human agent handling.\n",
        "properties": {
          "ccAgentMaxConcurrentChats": {
            "type": "integer",
            "description": "The maximum number of concurrent active chats that a contact center agent can handle.\n",
            "example": 10,
            "minimum": 1,
            "maximum": 250
          },
          "ccShowContactCode": {
            "type": "boolean",
            "description": "Indicates whether to show the contact code from users in the contact-center interface.\n",
            "example": true
          },
          "ccTimeZone": {
            "type": "string",
            "description": "The time zone that will be used for time-based operations in the contact center.\nThe value must follow the UTC offset time zone format (e.g., `UTC`, `UTC+1`, `UTC-5`).\n",
            "example": "UTC+1",
            "pattern": "^UTC([+-]([0-9]|1[0-4]))?$"
          },
          "ccAssignment": {
            "type": "object",
            "additionalProperties": false,
            "description": "Configuration for chat assignment and auto-closing behavior.\n",
            "properties": {
              "timeoutMinutes": {
                "type": "integer",
                "description": "The timeout in minutes after which unassigned chats will be automatically closed.\n\nThe value must be between 5 minutes (minimum) and 7200 minutes (maximum, equivalent to 5 days).\n\nIf not specified, the default value will be 2 days (2880 minutes).\n",
                "example": 2880,
                "minimum": 5,
                "maximum": 7200
              },
              "defaultMessageContentBeforeAssignment": {
                "description": "The default message content to send to users when their chat is created, before it is processed for assignment.",
                "$ref": "#/components/schemas/CHS_MessageContent_Schema"
              },
              "defaultMessageContentAfterAssignment": {
                "description": "The default message content to send to users after their chat has been assigned to an agent.",
                "$ref": "#/components/schemas/CHS_MessageContent_Schema"
              },
              "defaultMessageContentAfterClosingByAgent": {
                "description": "The default message content to send to users after their chat has been closed by an agent.",
                "$ref": "#/components/schemas/CHS_MessageContent_Schema"
              },
              "defaultMessageContentAfterAutoClose": {
                "description": "The default message content to send to users when their chat is automatically closed after remaining unassigned beyond the configured timeout.",
                "$ref": "#/components/schemas/CHS_MessageContent_Schema"
              }
            }
          },
          "ccTransfer": {
            "type": "object",
            "additionalProperties": false,
            "description": "Configuration for chat transfer between agents or groups.\n",
            "properties": {
              "defaultMessageContent": {
                "description": "The default message content to send to users when their chat is transferred to another agent or group.",
                "$ref": "#/components/schemas/CHS_MessageContent_Schema"
              }
            }
          },
          "ccOutsideSchedule": {
            "type": "object",
            "additionalProperties": false,
            "description": "Configuration for handling messages received outside of the available schedule.\n",
            "properties": {
              "defaultMessageContent": {
                "description": "The default message content to send to users when they contact outside of the available schedule.",
                "$ref": "#/components/schemas/CHS_MessageContent_Schema"
              },
              "contactListId": {
                "type": "integer",
                "description": "The ID of the contact list to which the contact will be added when they reach out outside of the available schedule.\n\nIf not specified, the contact will not be added to any contact list.\n",
                "example": 5
              },
              "emptyContactListAfterSending": {
                "type": "boolean",
                "description": "Indicates whether to remove the contact from the contact list after sending the default message content.\n\nBy default, contacts will be removed from the contact list after performing a sendContactList operation with that list.\n",
                "example": true
              }
            }
          },
          "ccInactivity": {
            "type": "object",
            "additionalProperties": false,
            "description": "Configuration for the inactivity detection feature.\nWhen enabled, conversations will be automatically closed after a period of inactivity.\n",
            "properties": {
              "enabled": {
                "type": "boolean",
                "description": "Indicates whether the inactivity detection feature is enabled.\n",
                "example": true
              },
              "timeoutMinutes": {
                "type": "integer",
                "description": "The timeout in minutes after which an inactive conversation will be automatically closed.\n\nThe value must be between 5 minutes (minimum) and 43200 minutes (maximum, equivalent to 30 days).\n",
                "example": 60,
                "minimum": 5,
                "maximum": 43200
              },
              "resetMode": {
                "type": "string",
                "description": "Determines which messages reset the inactivity timer.\n- `agentMessage`: Only messages sent by the agent reset the timer.\n- `contactMessage`: Only messages sent by the contact reset the timer.\n- `both`: Messages from either the agent or the contact reset the timer.\n",
                "enum": [
                  "agentMessage",
                  "contactMessage",
                  "both"
                ],
                "example": "agentMessage"
              },
              "defaultMessageContent": {
                "description": "The default message content to send to the contact when the conversation is closed due to inactivity.",
                "$ref": "#/components/schemas/CHS_MessageContent_Schema"
              }
            }
          },
          "ccDisconnection": {
            "type": "object",
            "additionalProperties": false,
            "description": "Configuration for automatically reassigning conversations when assigned agents disconnect.\n",
            "properties": {
              "autoReassignmentEnabled": {
                "type": "boolean",
                "description": "Indicates whether active conversations assigned to disconnected agents will be reassigned to other available agents.\n",
                "example": false
              },
              "timeMarginMinutes": {
                "type": "integer",
                "description": "The number of minutes to wait after the agent's last confirmed disconnection before attempting automatic reassignment.\n",
                "example": 5,
                "minimum": 1,
                "maximum": 1440
              },
              "defaultMessageContent": {
                "description": "The default message content to send to users when their chat is automatically reassigned because the assigned agent disconnected.",
                "$ref": "#/components/schemas/CHS_MessageContent_Schema"
              }
            }
          },
          "ccEndChatRedirectMode": {
            "type": "string",
            "description": "Determines where a contact is redirected when their Contact Center conversation ends\n(regardless of the flow that closes it).\n- `lastIntegration`: redirects the contact to the last integration stored in their history.\n- `priorityIntegration`: redirects the contact to the highest-priority integration.\n- `noAction`: does not redirect the contact when the conversation ends.\n\nIf not defined or `null`, `priorityIntegration` is used.\n",
            "nullable": true,
            "enum": [
              "lastIntegration",
              "priorityIntegration",
              "noAction",
              null
            ],
            "default": "priorityIntegration",
            "example": "priorityIntegration"
          },
          "ccPathbotApplicationId": {
            "type": "integer",
            "description": "The ID of the application with contains the CC Helper pathbot\n",
            "example": 1234
          },
          "ccPathbotFlowId": {
            "type": "integer",
            "description": "The ID of the flow in the CC Helper pathbot\n",
            "example": 5678
          }
        }
      },
      "CHS_Integration_TypeBot_Config_Schema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "typebotId"
        ],
        "description": "Configuration for the Typebot integration.\nThis integration uses the authenticated chat API against the self-hosted Typebot instance configured for the environment.\n",
        "properties": {
          "typebotId": {
            "type": "string",
            "minLength": 1,
            "description": "The main Typebot identifier associated with the application.",
            "example": "typebot_123"
          },
          "jsonParseErrorFallbackMessageContent": {
            "description": "Optional internal message content to send when a CHS_JSON payload from Typebot cannot be parsed or validated.",
            "$ref": "#/components/schemas/CHS_MessageContent_Schema"
          }
        }
      },
      "CHS_Integration_Pathbot_Config_Schema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "flowId"
        ],
        "description": "Configuration for the Pathbot integration.\n",
        "properties": {
          "flowId": {
            "type": "integer",
            "description": "The flow id.",
            "nullable": true,
            "minimum": 1,
            "example": 1234
          },
          "sendButtonClicks": {
            "type": "boolean",
            "description": "When enabled, button clicks on proactive WhatsApp messages are forwarded to Pathbot as events."
          },
          "documentRequestLimit": {
            "type": "integer",
            "description": "Configuration to limit the rate of API calls per day for documents requests.",
            "minimum": 1,
            "example": 5
          },
          "inappropriateMessagesLimit": {
            "type": "integer",
            "description": "Configuration to limit the rate of inappropriate questions per day in the iagen system.",
            "minimum": 1,
            "example": 3
          },
          "inactivityTimeout": {
            "type": "string",
            "pattern": "^P(?!$)(?:(?:\\d+Y)?(?:\\d+M)?(?:\\d+W)?(?:\\d+D)?(?:T(?:\\d+H)?(?:\\d+M)?(?:\\d+(?:\\.\\d+)?S)?)?)$",
            "default": "PT10M",
            "example": "PT30M",
            "description": "Time without messages before redirecting a contact from Pathbot to the\nhighest-priority enabled integration. It must be an ISO 8601 duration\nbetween 10 minutes and 1 week, inclusive.\n"
          }
        }
      }
    },
    "responses": {
      "CHS_NotFound_Response": {
        "description": "Not found",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "additionalProperties": true,
              "properties": {
                "statusCode": {
                  "type": "integer",
                  "description": "Status code",
                  "example": 404
                },
                "errorCode": {
                  "type": "string",
                  "description": "Error code",
                  "example": "NOT_FOUND"
                },
                "message": {
                  "type": "string",
                  "description": "Error message",
                  "example": "Resource not found."
                }
              }
            }
          }
        }
      },
      "CHS_ServerError_Response": {
        "description": "Internal server error",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "additionalProperties": true,
              "properties": {
                "statusCode": {
                  "type": "integer",
                  "description": "Status code",
                  "example": 500
                },
                "errorCode": {
                  "type": "string",
                  "description": "Error code",
                  "example": "INTERNAL_SERVER_ERROR"
                },
                "message": {
                  "type": "string",
                  "description": "Error message",
                  "example": "Internal server error."
                }
              }
            }
          }
        }
      },
      "CHS_Forbidden_Response": {
        "description": "Forbidden",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "additionalProperties": true,
              "properties": {
                "statusCode": {
                  "type": "integer",
                  "description": "Status code",
                  "example": 403
                },
                "errorCode": {
                  "type": "string",
                  "description": "Error code",
                  "example": "FORBIDDEN"
                },
                "message": {
                  "type": "string",
                  "description": "Error message",
                  "example": "Forbidden."
                }
              }
            }
          }
        }
      },
      "CHS_BadRequest_Response": {
        "description": "Bad request",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "additionalProperties": true,
              "properties": {
                "statusCode": {
                  "type": "integer",
                  "description": "Status code",
                  "example": 400
                },
                "errorCode": {
                  "type": "string",
                  "description": "Error code",
                  "example": "BAD_REQUEST"
                },
                "message": {
                  "type": "string",
                  "description": "Error message",
                  "example": "Bad request."
                }
              }
            }
          }
        }
      },
      "CHS_Integration_Response": {
        "description": "Retrieve information about a specific integration for a given application",
        "content": {
          "application/json": {
            "schema": {
              "required": [
                "statusCode",
                "message",
                "data"
              ],
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "statusCode": {
                  "type": "integer",
                  "description": "Status code",
                  "example": 200
                },
                "message": {
                  "type": "string",
                  "description": "Response message, usually OK",
                  "example": "OK"
                },
                "data": {
                  "$ref": "#/components/schemas/CHS_Integration_Schema"
                }
              }
            }
          }
        }
      }
    },
    "requestBodies": {
      "CHS_Integration_Update_Body": {
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/CHS_Integration_Update_AutoReply"
                },
                {
                  "$ref": "#/components/schemas/CHS_Integration_Update_DialogFlow"
                },
                {
                  "$ref": "#/components/schemas/CHS_Integration_Update_ContactCenter"
                },
                {
                  "$ref": "#/components/schemas/CHS_Integration_Update_TypeBot"
                },
                {
                  "$ref": "#/components/schemas/CHS_Integration_Update_Pathbot"
                }
              ],
              "discriminator": {
                "propertyName": "type",
                "mapping": {
                  "auto_reply": "#/components/schemas/CHS_Integration_Update_AutoReply",
                  "dialogflow": "#/components/schemas/CHS_Integration_Update_DialogFlow",
                  "contact_center": "#/components/schemas/CHS_Integration_Update_ContactCenter",
                  "typebot": "#/components/schemas/CHS_Integration_Update_TypeBot",
                  "pathbot": "#/components/schemas/CHS_Integration_Update_Pathbot"
                }
              }
            }
          }
        }
      }
    },
    "parameters": {
      "CHS_ApplicationId_PathParameter": {
        "in": "path",
        "name": "applicationId",
        "required": true,
        "description": "Application's ID",
        "schema": {
          "type": "integer",
          "example": 123
        }
      },
      "CHS_IntegrationId_PathParameter": {
        "in": "path",
        "name": "integrationId",
        "required": true,
        "description": "Integration's ID",
        "schema": {
          "type": "integer",
          "example": 123
        }
      }
    }
  }
}
```