> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

> **Deprecated.** This method is deprecated. Replaced by AssistantTriggerIntegrationsService.BulkGetTriggerIntegrationsByExternalMessage. Planned removal date: 2026-12-12.

# BulkGetByInboxMessages

# Package: aiSiteChat

# Namespace: Messages

# Method link: https://dev.wix.com/docs/api-reference/business-management/ai-site-chat/messages/bulk-get-by-inbox-messages.md

## Permission Scopes:
Innovation Lab Administrator: SCOPE.INNOVATION_LAB.ADMIN

## Introduction

Retrieves messages by inbox conversation ID.

Up to 100 Messages can be returned per request.

---

## REST API

### Schema

```
 Method: bulkGetByInboxMessages
 Description: Retrieves messages by inbox conversation GUID.  Up to 100 Messages can be returned per request.
 URL: https://www.wixapis.com/wix-assistant-widget/v1/messages/get-by-inbox
 Method: GET
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  inboxConversationId
 Method parameters: 
   query param name: inboxConversationId | type: inboxConversationId | description: conversationId of the conversation in inbox.  Can be found in [Message.conversationId](https://dev.wix.com/docs/api-reference/crm/communication/inbox/messages/message-object.md) | required: true | validation: format GUID
   query param name: inboxMessageSequences | type: array<inboxMessageSequences> | description: List of message sequences in the inbox conversation to retrieve messages for.  Can be found in [Message.sequence](https://dev.wix.com/docs/api-reference/crm/communication/inbox/messages/message-object.md)  | validation: minItems 1, maxItems 100, maxLength 20
 Return type: BulkGetByInboxMessagesResponse
  - name: results | type: array<BulkGetByInboxMessagesResult> | description:   
     - name: itemMetadata | type: ItemMetadata | description:   
        - name: id | type: string | description: Item GUID. Should always be available, unless it's impossible (for example, when failing to create an item).  | validation: format GUID
        - name: originalIndex | type: integer | description: Index of the item within the request array. Allows for correlation between request and response items.  
        - name: success | type: boolean | description: Whether the requested action was successful for this item. When `false`, the `error` field is populated.  
        - name: error | type: ApplicationError | description: Details about the error in case of failure.  
           - name: code | type: string | description: Error code.  
           - name: description | type: string | description: Description of the error.  
           - name: data | type: object | description: Data related to the error.  
     - name: message | type: Message | description: Message object if found, otherwise empty.  
        - name: id | type: string | description: Message GUID.  | read-only: true | validation: maxLength 40
        - name: createdDate | type: string | description: Date and time the message was created.  | read-only: true | validation: format date-time
        - name: sender | type: Sender | description: Message sender type.  
             - enum:
             -     ASSISTANT: AI assistant.
             -     USER: Wix user. For example, a site admin.
             -     SYSTEM: Message was sent automatically due to widget settings. For example, a contact form.
             -     SITE_VISITOR: Site visitor.
        - name: conversationId | type: string | description: Conversation GUID.  | read-only: true | validation: format GUID
        - name: answerTo | type: string | description: GUID of the message that this message is answering.  | validation: maxLength 40
        - name: messageType | type: MessageType | description: Message type.  
             - enum:
             -     QUESTION: Question.
             -     ANSWER: Answer.
             -     INTRO: Intro message, as defined in the widget settings.
             -     LEGAL: Legal disclaimer, as defined in the widget settings.
             -     CONTACT_FORM: Contact form.
             -     CONTACT_FORM_SUBMITTED: Message confirms that a contact form was successfully submitted.
             -     SITE_OWNER_NOTIFICATION: Notification for the site owner.
             -     OFFLINE: Message informing the site visitor that the AI assistant is offline, as defined in the widget settings.
             -     OUT_OF_QUOTA: Message that informs the Wix user that they have reached the maximum number of messages on their current plan.
             -     USER_ANSWER: User answer.
             -     SITE_NAVIGATION: Site visitor site Navigation information.
             -     NAVIGATION_ANSWER: Site visitor site Navigation information answer.
             -     IGNORED_ANSWER: AI Site Chat ignored the question.
             -     VISITOR_OPTION_SELECTED: Site visitor selected an option from  Message.visitor_options.
             -     ADD_TO_CART: Site visitor added a product to the cart.
             -     BOOK_SERVICE: Site visitor booked a service.
             -     GENERATED_QUESTION: AI assistant generated a question for the user to try.
             -     SUGGESTED_QUESTION: Suggested question, as defined in the widget settings.
             -     USER_QUESTION: Wix user question for testing and training.
             -     USER_QUESTION_ANSWER: Wix assistant answer for testing and training.
             -     WIX_USER_MEDIA: Media uploaded by Wix user for visitor.
             -     MEDIA: Media uploaded by visitor for Wix user.
             -     WIX_USER_CARD: Card template sent by the Wix User.
             -     WIX_USER_MINIMAL_BODY: Simple template sent by the Wix User.
             -     WIX_USER_FORM: Form sent by the Wix User.
             -     WIX_SYSTEM: System message from comm channels.
             -     FAQ_QUESTION: FAQ questions the site visitor can select, sent by the AI assistant in Manual chat mode.
             -     FAQ_ANSWER: FAQ answer sent by Wix user in Manual chat mode.
             -     WHATSAPP_SOCIAL_BUTTON: WhatsApp social button message, with a CTA linking to the connected WhatsApp chat.
        - name: body | type: Body | description: Message body.  
           - name: mainText | type: string | description: Main text of the message.  | validation: maxLength 4096
           - name: footerText | type: string | description: Footer text of the message.  | validation: maxLength 4096
           - name: additionalData | type: array | description: Additional data for the message.  | validation: maxItems 30
        - name: inboxId | type: string | description: Message Id in the Inbox  | read-only: true | validation: maxLength 40
        - name: visitorOptions | type: array<string> | description: Options site visitor can choose from.  | validation: maxItems 10, maxLength 500
        - name: assistantActions | type: array<string> | description: List of actions that ai assistant executed on the site visitor's behalf.  | validation: maxItems 10, maxLength 500
        - name: visitorOptionsFields | type: array | description: List of detailed options the visitor can choose from.  | read-only: true | validation: maxItems 50
        - name: engineStatus | type: string | description: Exact status message returned by ai site chat engine,  | read-only: true | validation: maxLength 50
  - name: bulkActionMetadata | type: BulkActionMetadata | description: If message was not found, still counts as success. Failure to retrieve a message will result in a failure count.  
     - name: totalSuccesses | type: integer | description: Number of items that were successfully processed.  
     - name: totalFailures | type: integer | description: Number of items that couldn't be processed.  
     - name: undetailedFailures | type: integer | description: Number of failures without details because detailed failure threshold was exceeded.  

 Possible Errors:
   HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: NoMetaSiteId | Description: The call has no site visitor, site member or Wix user identity with a site context, for example an API key or app identity. Call these methods with the site visitor's or site member's identity.


```

### Examples

### Retrieve messages by inbox conversation ID
Retrieves specific messages in an inbox conversation by their message sequences.

```curl
curl -X GET \
'https://www.wixapis.com/innovation/widget/v1/messages/get-by-inbox?inboxConversationId=8f2c6e91-4a7d-4b3e-9f18-5c2a7e6b1d33&inboxMessageSequences=1&inboxMessageSequences=2' \
-H 'Authorization: <AUTH>' \
-H 'Content-Type: application/json'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.aiSiteChat.messages.bulkGetByInboxMessages(inboxConversationId, options)
 Description: Retrieves messages by inbox conversation GUID.  Up to 100 Messages can be returned per request.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  inboxConversationId
 Method parameters: 
   param name: inboxConversationId | type: string | description: conversationId of the conversation in inbox.  Can be found in [Message.conversationId](https://dev.wix.com/docs/api-reference/crm/communication/inbox/messages/message-object.md) | required: true | validation: format GUID
   param name: options | type: BulkGetByInboxMessagesOptions  none  
        - name: inboxMessageSequences | type: array<string> | description: List of message sequences in the inbox conversation to retrieve messages for.  Can be found in [Message.sequence](https://dev.wix.com/docs/api-reference/crm/communication/inbox/messages/message-object.md)  | validation: minItems 1, maxItems 100, maxLength 20
 Return type: PROMISE<BulkGetByInboxMessagesResponse>
  - name: results | type: array<BulkGetByInboxMessagesResult> | description:   
     - name: itemMetadata | type: ItemMetadata | description:   
        - name: _id | type: string | description: Item GUID. Should always be available, unless it's impossible (for example, when failing to create an item).  | validation: format GUID
        - name: originalIndex | type: integer | description: Index of the item within the request array. Allows for correlation between request and response items.  
        - name: success | type: boolean | description: Whether the requested action was successful for this item. When `false`, the `error` field is populated.  
        - name: error | type: ApplicationError | description: Details about the error in case of failure.  
           - name: code | type: string | description: Error code.  
           - name: description | type: string | description: Description of the error.  
           - name: data | type: object | description: Data related to the error.  
     - name: message | type: Message | description: Message object if found, otherwise empty.  
        - name: _id | type: string | description: Message GUID.  | read-only: true | validation: maxLength 40
        - name: _createdDate | type: Date | description: Date and time the message was created.  | read-only: true 
        - name: sender | type: Sender | description: Message sender type.  
             - enum:
             -     ASSISTANT: AI assistant.
             -     USER: Wix user. For example, a site admin.
             -     SYSTEM: Message was sent automatically due to widget settings. For example, a contact form.
             -     SITE_VISITOR: Site visitor.
        - name: conversationId | type: string | description: Conversation GUID.  | read-only: true | validation: format GUID
        - name: answerTo | type: string | description: GUID of the message that this message is answering.  | validation: maxLength 40
        - name: messageType | type: MessageType | description: Message type.  
             - enum:
             -     QUESTION: Question.
             -     ANSWER: Answer.
             -     INTRO: Intro message, as defined in the widget settings.
             -     LEGAL: Legal disclaimer, as defined in the widget settings.
             -     CONTACT_FORM: Contact form.
             -     CONTACT_FORM_SUBMITTED: Message confirms that a contact form was successfully submitted.
             -     SITE_OWNER_NOTIFICATION: Notification for the site owner.
             -     OFFLINE: Message informing the site visitor that the AI assistant is offline, as defined in the widget settings.
             -     OUT_OF_QUOTA: Message that informs the Wix user that they have reached the maximum number of messages on their current plan.
             -     USER_ANSWER: User answer.
             -     SITE_NAVIGATION: Site visitor site Navigation information.
             -     NAVIGATION_ANSWER: Site visitor site Navigation information answer.
             -     IGNORED_ANSWER: AI Site Chat ignored the question.
             -     VISITOR_OPTION_SELECTED: Site visitor selected an option from  Message.visitor_options.
             -     ADD_TO_CART: Site visitor added a product to the cart.
             -     BOOK_SERVICE: Site visitor booked a service.
             -     GENERATED_QUESTION: AI assistant generated a question for the user to try.
             -     SUGGESTED_QUESTION: Suggested question, as defined in the widget settings.
             -     USER_QUESTION: Wix user question for testing and training.
             -     USER_QUESTION_ANSWER: Wix assistant answer for testing and training.
             -     WIX_USER_MEDIA: Media uploaded by Wix user for visitor.
             -     MEDIA: Media uploaded by visitor for Wix user.
             -     WIX_USER_CARD: Card template sent by the Wix User.
             -     WIX_USER_MINIMAL_BODY: Simple template sent by the Wix User.
             -     WIX_USER_FORM: Form sent by the Wix User.
             -     WIX_SYSTEM: System message from comm channels.
             -     FAQ_QUESTION: FAQ questions the site visitor can select, sent by the AI assistant in Manual chat mode.
             -     FAQ_ANSWER: FAQ answer sent by Wix user in Manual chat mode.
             -     WHATSAPP_SOCIAL_BUTTON: WhatsApp social button message, with a CTA linking to the connected WhatsApp chat.
        - name: body | type: Body | description: Message body.  
           - name: mainText | type: string | description: Main text of the message.  | validation: maxLength 4096
           - name: footerText | type: string | description: Footer text of the message.  | validation: maxLength 4096
           - name: additionalData | type: array | description: Additional data for the message.  | validation: maxItems 30
        - name: inboxId | type: string | description: Message Id in the Inbox  | read-only: true | validation: maxLength 40
        - name: visitorOptions | type: array<string> | description: Options site visitor can choose from.  | validation: maxItems 10, maxLength 500
        - name: assistantActions | type: array<string> | description: List of actions that ai assistant executed on the site visitor's behalf.  | validation: maxItems 10, maxLength 500
        - name: visitorOptionsFields | type: array | description: List of detailed options the visitor can choose from.  | read-only: true | validation: maxItems 50
        - name: engineStatus | type: string | description: Exact status message returned by ai site chat engine,  | read-only: true | validation: maxLength 50
  - name: bulkActionMetadata | type: BulkActionMetadata | description: If message was not found, still counts as success. Failure to retrieve a message will result in a failure count.  
     - name: totalSuccesses | type: integer | description: Number of items that were successfully processed.  
     - name: totalFailures | type: integer | description: Number of items that couldn't be processed.  
     - name: undetailedFailures | type: integer | description: Number of failures without details because detailed failure threshold was exceeded.  

 Possible Errors:
   HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: NoMetaSiteId | Description: The call has no site visitor, site member or Wix user identity with a site context, for example an API key or app identity. Call these methods with the site visitor's or site member's identity.


```

### Examples

### Retrieve messages by inbox conversation ID
```javascript
import { messages } from "@wix/ai-site-chat";

const inboxConversationId = "8f2c6e91-4a7d-4b3e-9f18-5c2a7e6b1d33";

const options = {
  inboxMessageSequences: ["1", "2"],
};

async function bulkGetByInboxMessages() {
  const response = await messages.bulkGetByInboxMessages(inboxConversationId, options);

  return response.results;
}

/* Promise resolves to:
 * {
 *   "results": [
 *     {
 *       "itemMetadata": {
 *         "originalIndex": 0,
 *         "success": true
 *       },
 *       "message": {
 *         "_id": "a1d9c4e7-2f36-4c81-b5a0-7e3d9f2c6b18",
 *         "_createdDate": "2026-07-08T10:30:02.000Z",
 *         "sender": "SITE_VISITOR",
 *         "conversationId": "0f2c6e91-4a7d-4b3e-9f18-5c2a7e6b1d33",
 *         "messageType": "QUESTION",
 *         "body": {
 *           "mainText": "What are your business hours?",
 *           "additionalData": []
 *         },
 *         "inboxId": "d4e8b21f-6c9a-4d17-8f3b-1a5c7e9d2b60",
 *         "visitorOptions": [],
 *         "assistantActions": [],
 *         "visitorOptionsFields": []
 *       }
 *     },
 *     {
 *       "itemMetadata": {
 *         "originalIndex": 1,
 *         "success": true
 *       },
 *       "message": {
 *         "_id": "b3f1a7d2-9c14-4e58-8a2b-6d0f5c8e1a44",
 *         "_createdDate": "2026-07-08T10:30:04.000Z",
 *         "sender": "ASSISTANT",
 *         "conversationId": "0f2c6e91-4a7d-4b3e-9f18-5c2a7e6b1d33",
 *         "answerTo": "a1d9c4e7-2f36-4c81-b5a0-7e3d9f2c6b18",
 *         "messageType": "ANSWER",
 *         "body": {
 *           "mainText": "Our business hours are 9 AM to 5 PM, Monday through Friday.",
 *           "additionalData": []
 *         },
 *         "inboxId": "e5f9c3a8-7d0b-4e28-9c4a-2b6d8f0e3c19",
 *         "visitorOptions": [],
 *         "assistantActions": [],
 *         "visitorOptionsFields": []
 *       }
 *     }
 *   ],
 *   "bulkActionMetadata": {
 *     "totalSuccesses": 2,
 *     "totalFailures": 0,
 *     "undetailedFailures": 0
 *   }
 * }
 */

```

### bulkGetByInboxMessages (self-managed)
Self-managed SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { messages } from '@wix/ai-site-chat';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { messages },
  // Include the auth strategy and host as relevant
});


async function bulkGetByInboxMessages(inboxConversationId,options) {
  const response = await myWixClient.messages.bulkGetByInboxMessages(inboxConversationId,options);
};
```

---