Create Channel

Overview

Use this API to register and define custom channel parameters in the Conversation Manager which is used for chat messages. New Account API process flow: Authenticiation > Client Application > Participant > Channel > Orchestration > Account

Note: You can configure your system to use third party Channels. The API instructions provided here assume you are using eGain's application setup.

Scope

Client application must have 'app.conversation.conversationmgr.manage' scope assigned.

SecurityoAuthClient
Request
Request Body schema: application/json

Register new custom channel

type
required
string [ 1 .. 255 ] characters

Unique channel type. Do not prefix with 'custom.' for channels supported by eGain.

displayName
required
string [ 1 .. 255 ] characters
icon
required
string [ 1 .. 512000 ] characters

base64 encoded image. This icon is used in eGain Chat Advisor desktop for activities of this channel. If eGain Chat is used for live agents then use icon file in ‘png’ format with pixel dimensions 32 X 32.

description
string [ 1 .. 1023 ] characters
active
boolean
Default: true
object (Restrictions)

Channel restriction on inbound(from customer) and outbound( to customer) messages.

Array of objects (L10nProperties) [ 1 .. 25 ] items
Responses
201

Created

400

Bad Request

401

Unauthorized

403

Forbidden

500

Internal server error

post/channels
Request samples
application/json

This is sample payload to create BYOC channel. Add base64 encoded image as value of 'icon' attribute before creating channel.

{
  • "type": "custom_channel",
  • "icon": "<base64>",
  • "displayName": "Custom Channel",
  • "description": "Custom Channel",
  • "active": true,
  • "restrictions": {
    },
  • "l10nProperties": [
    ]
}
Response samples
application/json
{
  • "id": "45a095f4-d0ee-4220-a689-22b541c58f67"
}