Skip to main content

Update Integration

PUT 

/api/v2/instance/:instanceId/chatwoot-integration

Update Integration

Request

Path Parameters

    instanceId stringrequired

    ID of the instance.

Body

required

Objective:

This endpoint is used to update the integration between a specific instance and Chatwoot, allowing control over various aspects of the integration.

Request Body:

  • accountId: Identifier for the Chatwoot account.

    • Type: String or Integer
    • Required: No
  • enabled: Determines if the integration is enabled or not.

    • Type: Boolean
    • Default: true
    • Required: No
  • chatwootURL: URL of the Chatwoot frontend.

    • Type: String (URL)
    • Required
    • Required: No
  • chatwootAccessToken: Access token for the Chatwoot account.

    • Type: String
    • Required
    • Required: No
  • webhookId: The registered webhook must contain the path /webhook and follow the format below.

  • inbox: Object containing inbox information.

    • name: Name of the inbox. Used if creating a new inbox.
      • Type: String
      • Required: Only if identifier is not provided.
    • identifier: Used to link an existing inbox.
      • Type: String or Integer
      • Required: Only if name is not provided.
  • integrationOptions: Object with additional integration options.

    • enabledGroup: Defines if group messages should be sent to Chatwoot.

      • Type: Boolean
      • Default: false
      • Required: No
    • displayAttendant: Enables the display of the attendant's name in the message header.

      • Type: Boolean
      • Required: No
    • startConversationAs: Determines how a new conversation should start.

      • Type: String
      • Possible Values: open, pending
      • Default: open
      • Required: No
    chatwootId Chatwoot ID
    accountId Your chatwoot Account ID
    enabled Enabled

    Default value: true

    chatwootURL Chatwoot URL

    Url of your chatwoot access

    chatwootAccessToken Chatwoot Access Token

    Access token for your chatwoot account

    webhookId Webhook Id

    Webhook ID that connects to the connector.

    inbox object
    name Name

    Name of the inbox that will be created

    identifier Identifier

    Enter the ID of an inbox that already exists

    integrationOptions object
    enabledGroup Enabled Grouprequired

    Default value: false

    Enables the exchange of messages with groups

    displayAttendant Display Attendantrequired

    Default value: true

    Enable the display of the attendant's name in the message caput.

    startConversationAs Start Conversation Asrequired

    Possible values: [pending, open]

    Default value: open

    Define how you will start new conversations on Chatwoot.

Responses

Success - status: 200

Schema
    integrationId stringrequired
    enabled booleanrequired
    accountId numberrequired
    inboxId numberrequired
    chatwootURL stringrequired
    chatwootAccessToken stringrequired
    enabledGroup booleanrequired
    displayAttendant booleanrequired
    startConversationAs stringrequired

    Possible values: [pending, open]

    createdAt date-timerequired
    updatedAt date-timerequired
    deletedAt date-timerequired
    instanceInstanceId stringrequired
    Webhook object
    url Urlrequired

    Instance unique url.

    enabled Enabled

    Default value: false

    Enable or disable the url.

    webhookId stringrequired
Loading...