Server-to-server inbound: SMS gateway, VoIP recorder, ticket system, XMPP bridge, or any other external channel pushes messages into per-channel chat.html groups via /chat.ashx?op=external-inject.
External-channels configuration requires an OIDC session with admin, superadmin, or superuser role.
External systems present this in the X-CodeB-External-Inject-Secret header on every POST. Rotate whenever it may be compromised.
(not set)
Each channel maps to a chat group prefixed gc-<channel>-<remoteId>. Every inbound message on a channel fans out to that channel's routing users. Channel names must match [a-z0-9-]{1,32}.
Example curl for an integration. Replace <secret> with the value above.
Response: {ok: true, groupId, messageId} on success, {ok: false, error} on failure. Duplicate sourceMsgId is dropped (returns messageId: "(dedup)").