A channel is one way customers reach AnswerPal: an e-mail mailbox, a website chat, a phone number, a WhatsApp or SMS number, or a Teams mailbox. These endpoints manage channels and everything that belongs to one: routing and topic policy, WhatsApp and SMS connectors and templates, e-mail import and connection tests, mailbox folders and the texts of the chat window.
/api/Channels/api/Channels/api/Channels/{id}/api/Channels/{id}/api/Channels/{id}/api/Channels/{id}/routing/api/Channels/{id}/topic-policy/api/Channels/{id}/topic-policy/api/Channels/connectors/retainedonlyOrphaned=true limits the list to connectors of deleted channels./api/Channels/connectors/{connectorId}/provisionstatus and message./api/Channels/connectors/{connectorId}/release{ "confirm": true }./api/Channels/{id}/whatsapp-templates/api/Channels/{id}/whatsapp-templates/sync/api/Channels/import-emailsmaxCount. Answers 202 Accepted with a jobId./api/Channels/{channelId}/import-emailsmaxCount. Answers 202 Accepted with a jobId./api/Channels/test-connection/api/ChannelFolders/byChannel/{channelId}/api/ChannelFolders/fromMailbox/{channelId}/api/ChannelFolders/api/ChannelFolders/{id}/api/ChannelFolders/{id}/api/ChannelFolders/{id}/api/Channels/{channelToken}/translations-by-token/{lang}/api/ChannelTranslations/byChannel/{channelId}/api/ChannelTranslations/api/ChannelTranslations/{id}/api/ChannelTranslations/{id}/api/ChannelTranslations/{id}Create and update take the same body. The update replaces the channel: send all fields, not only the changed ones.
channelType (string, required)Email, Chat, Phone, WhatsApp, SMS, Teams.name (string, required, max 100)isActive (boolean, default true)connectionDetails (string, max 500)isDefaultTranslationChannel (boolean)emailAddress (string, required, valid, max 255)autoRetrieveEmails (boolean, default true)forcedReplyLanguage (string or null, max 10)fr or Fra, stored as a 3-letter code) instead of the language of the message. Only kept for e-mail channels; an empty string clears it.emailProviderType, overrideEmailSettingsoverrideGraphTenantID, overrideGraphClientID, overrideGraphAuthorityURL, overrideGraphScopeoverrideImapServer, overrideImapPort, overrideImapUsername, overrideImapUseSsl, overrideSmtpServer, overrideSmtpPort, overrideSmtpUsername, overrideSmtpUseSsloverrideGraphClientSecret, overrideImapPassword, overrideSmtpPassword. Blank keeps the stored value; remove one with clearOverrideGraphClientSecret, clearOverrideImapPassword or clearOverrideSmtpPassword. When you point a channel to another server while a password is stored, send the password again.hostnames (string or null)phoneNumber (string, required)phoneDefaultLanguage (string or null, max 10)null keeps the stored value on update, an empty string clears it; without it the called number decides. Callers can still switch language.provider (string)Twilio. Required on create.senderAddress (string)+32470123456. Required on create. On update send provider and senderAddress together or leave both out.disabledMessagingFeatures (array of strings)AutoReply, Outbound, and for WhatsApp also Media and Templates. Empty means everything is on.Connecting a WhatsApp number through Embedded Signup has its own endpoints.
channelID, customerID (integer)token (GUID)hasOverrideGraphClientSecret, hasOverrideImapPassword, hasOverrideSmtpPassword (boolean)provisioningStatus, connectorID, senderAddressLocked, senderAddressRetained, connectorReleasePending, connectorReleaseError, connectorIsSandbox, senderBindingKind, connectorChannelTypePOST /api/Channels
Authorization: Bearer <token>
Content-Type: application/json
{
"channelType": "Email",
"name": "Support mailbox",
"emailAddress": "support@example.com",
"isActive": true,
"autoRetrieveEmails": true,
"forcedReplyLanguage": null
} POST /api/Channels
Authorization: Bearer <token>
Content-Type: application/json
{
"channelType": "SMS",
"name": "SMS reminders",
"provider": "Twilio",
"senderAddress": "+32460123456",
"disabledMessagingFeatures": ["AutoReply"]
} PUT /api/Channels/12/topic-policy
Authorization: Bearer <token>
Content-Type: application/json
{
"mode": "AllApplicableExcept",
"includeTopicIds": [],
"excludeTopicIds": [31, 44]
} POST /api/Channels/test-connection
200 OK
{
"providerType": "ImapSmtp",
"imap": { "applicable": true, "success": true, "server": "imap.example.com", "port": 993, "useSsl": true, "error": null, "durationMs": 412 },
"smtp": { "applicable": true, "success": false, "server": "smtp.example.com", "port": 587, "useSsl": true, "error": "Authentication failed", "durationMs": 380 }
} Topics decide how a message is handled. The topic channel links on the Topics page set where a topic is relevant by default; the topic policy of a channel adds or removes topics for that one channel.
mode (string, required)AllApplicableExcept: every applicable topic except excludeTopicIds. NoneExcept: only includeTopicIds.includeTopicIds, excludeTopicIds (arrays of topic IDs)channelID, channelName, channelType, and the lists availableTopics, excludedTopics and notApplicableTopics. Each topic has topicID, topicName, source, reason, isDefaultRelevant, isIncluded and isExcluded.An invalid policy (for example a topic of another customer) gives 400 Bad Request.
channelID, channelName, channelType, scopeMode (GlobalPlusScoped or ScopedOnly)definitionassignmentMode (AiClassify, UrlRules or ManualOrSingleTopic), defaultScopeMode, displayName, supportsAutoClassification, supportsUrlRules, supportsReply, supportsReplySend, supportsRequiredFields.topicstopicID, topicName, source, replyEnabled, replySendEnabled, isDefault.rulesruleID, topicID, topicName, appliesToAllTopics, pattern, matchType, pathScope, source.A WhatsApp or SMS channel sends through a connector that holds its number at the provider. A connector can stay behind after its channel changed or was deleted; it then still holds the number until it is released.
connectorID, channelID, channelName, channelType, channelDeleted, provider, senderAddress, provisioningStatus, releasePending, lastReleaseError, isSandboxconfirm (boolean, required true)ConfirmationRequired.confirmSandboxWebhookRemoved (boolean)Provision answers 200 with status, message, senderReservationReleased, reRegisterAvailable and retainedSmsHolderBlocks, or 409 with a code (SenderConflict, ConcurrencyConflict, ReleaseInProgress, NotProvisionable). An unknown connector gives 404 with code ConnectorNotFound.
channelMessageTemplateID, channelID, provider, contentSid, friendlyName, language, category, approvalStatus, contentType, variables (object), bodyPreview, isActive, statusReason, lastSyncedAtisSendableFor a channel that is not WhatsApp both template endpoints give 400. The sync answers imported, updated, removed, total and truncated; when the provider call fails it gives 409 with code TemplateSyncFailed.
The import endpoints only queue a job and answer at once with { "message": "...", "jobId": "..." }. When the Microsoft 365 client secret has expired, they answer 409 with error GraphClientSecretExpired. The connection test takes the channel body plus an optional channelID: with an ID the stored channel is used and the body overrides it. Each protocol in the result has applicable, success, server, port, useSsl, error and durationMs.
channelID (integer, required on create)folderName (string, required, max 255)externalFolderID (string, required, max 255)fromMailbox.isActive, autoRetrieveEmails (boolean, default true)folderDirection (string)Incoming, Outgoing or Both (default).folderID.Linking the same folder twice gives 409 with code DuplicateChannelFolder. The mailbox listing returns id, displayName, fullName, depth and isInbox per folder.
A text set holds the labels of the chat window in one language. lang is a 3-letter code such as Nld, Fra or Eng; Unk is the fallback set. The public route looks for the requested language on the channel, then the channel’s Unk set, then the same two on the customer’s default translation channel.
channelID (integer, required on create), lang (string, required on create, max 3)chatTitle, defaultGreeting, sendButtonText, escalatePrompt, yesText, noText, availabilityCheck, validEmail, youText, submitButtonText, succesfulSubmission, agentJoin.channelTranslationID.A text set of another customer’s channel gives 401 Unauthorized.
GET /api/Channels/0f8fad5b-d9cb-469f-a165-70867728950e/translations-by-token/nl
200 OK
{
"chatTitle": "Hoe kunnen we helpen?",
"defaultGreeting": "Hallo! Stel gerust je vraag.",
"sendButtonText": "Verstuur",
"escalatePrompt": "Wil je met een medewerker praten?",
"yesText": "Ja",
"noText": "Nee",
"availabilityCheck": "We kijken of er iemand beschikbaar is...",
"validEmail": "Vul een geldig e-mailadres in.",
"youText": "Jij",
"submitButtonText": "Verzenden",
"succesfulSubmission": "Bedankt, we nemen contact op.",
"agentJoin": "Een medewerker neemt het gesprek over."
} 400 Bad RequestInvalidChannelConfiguration.404 Not Found409 Conflictcode: DuplicateChannelIdentifier (the address or number is already used by another channel), SenderAddressRetained, ConnectorBindingLocked, ConnectorAssignmentConflict, NumberBoundSenderConflict, PhoneChannelCompletionInProgress (a phone channel still has unfinished calls), DuplicateChannelFolder, TemplateSyncFailed, GraphClientSecretExpired.503 Service UnavailableCall GET /api/Channels with a token; it returns every channel of the customer in the token.
Send the channel settings to POST /api/Channels/test-connection. It tests incoming and outgoing mail and saves nothing.
Automatically for channels and folders with autoRetrieveEmails, and on demand with the two import endpoints, which queue a background job.
From the text sets of the channel. The chat embed reads them with the public channel token, in the visitor's language with a fallback.
AnswerPal: AI-powered customer service solutions to elevate your support and communication effortlessly.
For all support, sales, and partnership inquiries, email us at info@answerpal.eu
AnswerPal
Bisschoppenhoflaan 380
2100 Antwerp
Belgium
+32.36416685
BE 0862.692.858