All plans have 30% OFF For this week

Claim Discount

Channels

Channels API Reference

The Channels API in AnswerPal lets you manage communication streams—such as email, chat, phone, and WhatsApp—used to connect with your customers. Use this API to list, create, update, or delete channels, as well as manage folders and UI translations for each channel. This documentation covers the endpoints, data structures, and practical examples for seamless channel integration.

Overview

Channels represent the different ways your organization communicates with end users. Each channel has a type (Email, Chat, Phone, WhatsApp), configuration details, and can be managed via the API. You can also organize email channels into folders and provide localized UI and message translations per channel.

Endpoints

List All Channels

GET /api/Channels Returns all channels for the authenticated customer. Example Response:
[

{

"channelID": 1,

"customerID": 42,

"channelType": "Email",

"name": "Support Inbox",

"connectionDetails": "...",

"isActive": true

}

]

Get Single Channel

GET /api/Channels/{id} Returns the details for a specific channel.

Create Channel

POST /api/Channels Creates a new channel. Body Example:
{

"channelType": "Email",

"name": "New Support Inbox",

"connectionDetails": "...",

"isActive": true

}

Update Channel

PUT /api/Channels/{id} Updates an existing channel.

Delete Channel

DELETE /api/Channels/{id} Deletes a channel.

Import Emails

POST /api/Channels/import-emails Imports emails for all channels of the authenticated customer.

POST /api/Channels/{channelId}/import-emails Imports emails for a specific channel.

Channel Folders

Folders are used to organize emails within a channel. You can list, create, update, or delete folders for a given channel.

  • GET /api/ChannelFolders/byChannel/{channelId} — List folders for a channel
  • GET /api/ChannelFolders/{id} — Get a single folder
  • POST /api/ChannelFolders — Create a new folder
  • PUT /api/ChannelFolders/{id} — Update a folder
  • DELETE /api/ChannelFolders/{id} — Delete a folder

Channel Translations

Each channel can have UI and message translations for different languages.

  • GET /api/ChannelTranslations/byChannel/{channelId} — List all translations for a channel
  • GET /api/ChannelTranslations/{id} — Get a single translation
  • POST /api/ChannelTranslations — Create a translation
  • PUT /api/ChannelTranslations/{id} — Update a translation
  • DELETE /api/ChannelTranslations/{id} — Delete a translation

Example Translation Fields:

  • chatTitle
  • defaultGreeting
  • sendButtonText
  • escalatePrompt
  • yesText
  • noText
  • availabilityCheck
  • validEmail
  • youText
  • submitButtonText
  • succesfulSubmission
  • agentJoin

Data Models

Below are the data models returned by the Channels API and related endpoints. Each property is explained in detail.

Channel Object

PropertyTypeDescription
channelIDintUnique identifier for the channel
customerIDintIdentifier for the customer/organization that owns the channel
channelTypestringType of channel. Allowed values: ‘Email’, ‘Chat’, ‘Phone’, ‘WhatsApp’
namestringName or label for the channel
connectionDetailsstringConnection/configuration details (e.g., email server, API keys, phone system info)
isActiveboolWhether the channel is active (true) or inactive (false)
emailAddressstring(Email only) The email address associated with the channel
hostnamesstring(Chat only) Comma-separated list of allowed hostnames/domains for this chat channel
phoneNumberstring(Phone only) The phone number associated with the channel, in international format (+…)
tokenstringUnique token for API access/authentication (read-only)
isDefaultTranslationChannelbool(Chat only) If true, this channel is used as the default for translations
overrideGraphTenantIDstring(Email only, optional) Override for Microsoft Graph Tenant ID
overrideGraphClientIDstring(Email only, optional) Override for Microsoft Graph Client ID
overrideGraphClientSecretstring(Email only, optional) Override for Microsoft Graph Client Secret
overrideGraphAuthorityURLstring(Email only, optional) Override for Microsoft Graph Authority URL
overrideGraphScopestring(Email only, optional) Override for Microsoft Graph Scope

Notes:

  • Some properties are only relevant for specific channel types (see above).
  • Required fields: channelType, name, isActive. Others depend on type.

ChannelFolder Object

Property Type Description
folderID int Unique identifier for the folder
channelID int The channel to which this folder belongs
customerID int The customer/organization that owns this folder
name string Name of the folder (e.g., ‘Inbox’, ‘Support’, etc.)
parentFolderID int (Optional) If this is a subfolder, the ID of the parent folder
type string Folder type, e.g., ‘Inbox’, ‘Sent’, ‘Custom’

ChannelTranslation Object

Property Type Description
channelTranslationID int Unique identifier for this translation record
channelID int The channel this translation is associated with
lang string Language code (e.g., ‘en’, ‘fr’, ‘de’)
chatTitle string Title for the chat window
defaultGreeting string Default greeting message
sendButtonText string Label for the send button
escalatePrompt string Message shown when escalation to a human is needed
yesText string Label for ‘Yes’ buttons or prompts
noText string Label for ‘No’ buttons or prompts
availabilityCheck string Message shown while checking for available agents
validEmail string Prompt for entering a valid email address
youText string Label for the user (e.g., ‘You’)
submitButtonText string Label for the submit button
succesfulSubmission string Message shown after a successful submission
agentJoin string Message shown when an agent joins the chat
For all returned objects, refer to the tables above for a complete explanation of each property.

FAQ

Email, Chat, Phone, and WhatsApp.

Yes, each channel is associated with a specific customer and validated by access token and hostname.

Use the Channel Translations endpoints to manage per-language UI and message strings.

Need more help?

Table of Contents

AnswerPal: AI-powered customer service solutions to elevate your support and communication effortlessly.

Contact

For all support, sales, and partnership inquiries, email us at info@answerpal.eu