Setup
To use the Conversations API, install the @wix/inbox
package using npm or Yarn:
1npm install @wix/inbox
or
1yarn add @wix/inbox
Then import { conversations }
from @wix/inbox
:
1import { conversations } from '@wix/inbox'
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Retrieves a conversation by conversation ID.
If you don't have the conversation ID, use getOrCreateConversation()
to retrieve the conversation using the visitor, contact, or member ID.
Permission Scopes
For app development, you must have one of the following permission scopes:function getConversation(conversationId: string): Promise<Conversation>
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Retrieves a conversation by the specified visitor, contact, or member ID. If the conversation does not exist for the provided visitor, contact, or member, the function creates a new conversation.
Permission Scopes
For app development, you must have one of the following permission scopes:function getOrCreateConversation(participantId: ParticipantId): Promise<GetOrCreateConversationResponse>