Docs
Engagement Hub
API

API Inbox

This page guides you through setting up the API inbox

How to setup a API channel?

To create and configure an API channel inbox in our service installations, follow the step described below.

Step 1. Go to Engagement Hub → Settings → Inboxes → “Add Inbox”.

telegram Step 1
Step 2. Click on the "API" icon.

telegram Step 1
Step 3. Provide a name for the channel and a callback URL. Here is an example:

telegram Step 1
Step 4. "Add operators" to your API inbox.

telegram Step 2
Step 5. "Add agents" to your API inbox.

telegram Step 2

The inbox setup is complete.

Receive messages using callback URL

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.

{
  {
    "conversationId": "conversation-id",
    "messages": [
      {
        "id": 1,
        "content": "Where I can buy shoes in New York?",
        "messageType": "incoming",
        "AIgenerated": false
      },
      {
        "id": 2,
        "content": "New York City offers a variety of great shoe stores depending on your style and preferences.",
        "messageType": "outgoing",
        "AIgenerated": true
      }
    ]
  }
}

Was this page useful?

Questions? We're here to help

Subscribe to updates