Receive messages using callback URL in OneChat
Receive messages When a new message is created in the API channel, you will get a POST request to the Callback URL specified while creating the API channel. The payload would look like this. Find the full list of events supported by the webhook here. Event type: messagecreatedFew readersCreate Interfaces using client APIs in OneChat
Client APIs ++Note: These APIs are still in alpha, and there might be changes in the implementation in future.++ Client APIs available for the API channel will help you build customer-facing interfaces for OneChat. These APIs are useful for cases similar to the ones described below. Use a custom chat interface instead of the OneChat chat widget Build conversational interfaces into your mobile apps Add OneChat to other platforms for which OneChat doesn't have an official SDK CrFew readersSend messages to API channel in OneChat
Send messages To send messages to API channel, you need have a basic understanding of the models and nomenclature used in OneChat. Let us try to understand these first. Channel: Channel defines the type of the source of conversations. Eg: Facebook, Twitter, API etc. Inbox: You can create multiple sources of conversations which is of the same channel type. For eg: You can have more than one Facebook page connected to a OneChat account. Each page is called as the inbox in OneChFew readersHow to create an API channel inbox in OneChat?
Create Channel Setting up an API channel consists of the following steps. Create API Channel inbox Send messages using OneChat APIs Receive webhooks on new messages from OneChat This document allows you to create and configure an API channel inbox in OneChat installations. Step 1: Go to Settings Inboxes and click on "Add Inbox". Step 2: Select API from the list of channels. (https://storage.crisp.chat/users/helpdesk/website/6f1c2c7b8034d000/screenshot-2022-02-2Few readers