getOrCreateConversation( )


Developer Preview

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.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Inbox Messages
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
participantIdParticipantIdRequired

ID of the visitor, contact, or member chatting with the business.

Returns
Return Type:Promise<GetOrCreateConversationResponse>
Did this help?