Connect a messaging channel
const url = 'https://api.siprtc.io/v1/Accounts/example/Integrations/Channels';const options = { method: 'POST', headers: {Authorization: 'Basic <credentials>', 'Content-Type': 'application/json'}, body: '{"application_id":1234,"channel":"whatsapp","country_codes":["1","44"],"credentials":{"access_token":"EAAG-fake-access-token","account_sid":"AC00000000000000000000000000000000","api_key":"fake-movider-key","api_secret":"fake-movider-secret","app_secret":"0123456789abcdef0123456789abcdef","auth_id":"MA000000000000000000","auth_token":"fake-auth-token","phone_number_id":"100000000000001","smpp":{"host":"smpp.example.net","mode":"transceiver","password":"fake-pass","port":2775,"receive_port":2776,"source_npi":0,"source_ton":5,"system_id":"acme01","system_type":"","throughput":50,"tls":false},"waba_id":"200000000000002"},"display_name":"Support line","phone_number":"+15555550100","phone_number_id":"100000000000001","provider":"twilio","sender_id":"ACMEBANK","waba_id":"200000000000002"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.siprtc.io/v1/Accounts/example/Integrations/Channels \ --header 'Authorization: Basic <credentials>' \ --header 'Content-Type: application/json' \ --data '{ "application_id": 1234, "channel": "whatsapp", "country_codes": [ "1", "44" ], "credentials": { "access_token": "EAAG-fake-access-token", "account_sid": "AC00000000000000000000000000000000", "api_key": "fake-movider-key", "api_secret": "fake-movider-secret", "app_secret": "0123456789abcdef0123456789abcdef", "auth_id": "MA000000000000000000", "auth_token": "fake-auth-token", "phone_number_id": "100000000000001", "smpp": { "host": "smpp.example.net", "mode": "transceiver", "password": "fake-pass", "port": 2775, "receive_port": 2776, "source_npi": 0, "source_ton": 5, "system_id": "acme01", "system_type": "", "throughput": 50, "tls": false }, "waba_id": "200000000000002" }, "display_name": "Support line", "phone_number": "+15555550100", "phone_number_id": "100000000000001", "provider": "twilio", "sender_id": "ACMEBANK", "waba_id": "200000000000002" }'Connects a sender with the account’s own provider credentials: a WhatsApp Cloud API number (channel whatsapp), an SMS number or sender ID through Twilio, Plivo, Movider or an SMPP vendor (channel sms; provider defaults to twilio), or a Viber bot (channel viber). Required fields: display_name, application_id (an application of this account) and credentials for every channel; whatsapp also needs phone_number, phone_number_id and waba_id with credentials access_token and app_secret; sms needs phone_number or sender_id (movider is always a send-only sender_id) and credentials account_sid + auth_token (twilio), auth_id + auth_token (plivo), api_key + api_secret (movider) or smpp {host, port, system_id, password} (smpp); viber needs only credentials.auth_token. Every channel except viber also needs country_codes.
Everything is checked before anything is written: the credentials and sender are verified with the provider (an SMPP bind must come online within the bind wait, 15 s by default), the number must not belong to another account or already use a different application, and a tenant may use one provider account per provider (several SMPP vendors are allowed). Then the number is added to the account’s numbers if needed (SMS-capable), routing and the encrypted credentials are stored, and the provider is pointed at the platform: the WABA’s webhook override (WhatsApp), the number’s SMS URL (Twilio), a “dialog365-
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Auth ID of the account (must be the authenticated account)
Request Bodyrequired
Section titled “ Request Bodyrequired ”Sender and provider credentials
object
ApplicationID is the SIPRTC application (owned by this account) that handles inbound messages. Required.
Example
1234Channel to connect: whatsapp, sms or viber (case-insensitive).
Example
smsCountryCodes are the international calling codes (1-4 digits, a leading “+” is dropped; 1-50 codes) the sender is used for. Required except for viber.
Example
[ "1", "44"]Credentials are the provider credentials; which keys are required depends on channel and provider. Write-only: never returned.
object
AccessToken is the WhatsApp Cloud API access token (system user token) of the WABA. WhatsApp only; required.
Example
EAAG-fake-access-tokenAccountSID is the Twilio Account SID (“AC” + 32 hex). Twilio only; required.
Example
AC00000000000000000000000000000000APIKey is the Movider API key. Movider only; required.
Example
fake-movider-keyAPISecret is the Movider API secret. Movider only; required.
Example
fake-movider-secretAppSecret is the Meta app secret that signs WhatsApp webhook calls. WhatsApp only; required.
Example
0123456789abcdef0123456789abcdefAuthID is the Plivo Auth ID (“MA” or “SA” + 18 characters). Plivo only; required.
Example
MA000000000000000000AuthToken is the Twilio auth token, the Plivo auth token, or the Viber bot token. Required for twilio, plivo and viber.
Example
fake-auth-tokenPhoneNumberID is the WhatsApp phone number id; only used on PUT …/Credentials to finish a WhatsApp number that was imported without it.
Example
100000000000001SMPP is the SMPP vendor’s link (provider smpp only; required for it).
object
Host is the vendor’s SMPP server: a hostname or an IP address. Required.
Example
smpp.example.netMode is transceiver (default: one bind both ways), separate (transmitter on port, receiver on receive_port) or transmitter (send only: no delivery reports and no replies; allowed only for a sender_id).
Example
transceiverPassword is the SMPP bind password (1-64 printable characters, no quotes or backslashes). Required; write-only.
Example
fake-passPort is the vendor’s SMPP port (1-65535); in separate mode the transmitter port. Required.
Example
2775ReceivePort is the receiver port (1-65535); required in separate mode.
Example
2776SourceNPI is the numbering plan indicator for the source address (0-18); omitted uses the gateway’s default.
Example
0SourceTON is the type of number for the source address (0-18); omitted uses the gateway’s default.
Example
5SystemID is the SMPP bind user (1-16 printable characters, no quotes or backslashes). Required.
Example
acme01SystemType is the optional SMPP system_type (up to 13 printable characters).
Example
Throughput is the messages per second the vendor allows (0-10000); 0 = no limit.
Example
50TLS binds over TLS.
Example
falseWabaID is the WhatsApp Business Account id; only used on PUT …/Credentials to finish a WhatsApp number that was imported without it.
Example
200000000000002DisplayName labels the connection (1-64 characters). For Viber it also becomes the bot name (cut to 28 characters).
Example
Support linePhoneNumber is the sender’s number in E.164 (spaces removed). Required for whatsapp and for an SMS number; must not be sent with sender_id. Not used for viber.
Example
+15555550100PhoneNumberID is the WhatsApp phone number id from WhatsApp Manager (5-32 digits). WhatsApp only; required.
Example
100000000000001Provider of an SMS sender: twilio (default when empty), plivo, movider or smpp. Ignored for whatsapp and viber.
Example
twilioSenderID makes an SMS sender send-only from a registered sender ID: up to 11 letters, digits, spaces and - _ . & + with at least one letter, or an E.164 number. Required for movider; optional for twilio, plivo and smpp instead of phone_number.
Example
ACMEBANKWabaID is the WhatsApp Business Account id (5-32 digits). WhatsApp only; required.
Example
200000000000002Responses
Section titled “ Responses ”Connected; status is active, or action_required when the provider webhook could not be set
object
Data is the connection, with its webhook details.
object
AccountID is the Auth ID of the account that owns the connection.
Address is what customers see: an E.164 number, a Movider sender ID, or the bot’s name.
ApplicationID is the SIPRTC application that handles inbound messages on this sender.
CallbackURL is the platform URL the provider delivers this sender’s inbound messages and status reports to
(https://
Channel is the messaging channel: whatsapp, sms or viber.
ConnectionID identifies the connection in the Channels API: “CH” followed by 32 hex characters.
CountryCodes are the international calling codes (digits only, no “+”) this sender is used for when sending. Not used for Viber.
CreatedAt is when the connection was made (RFC 3339, UTC).
CreatedBy is the user who connected the sender, or the Auth ID when it was connected with API credentials.
DisplayName is the connection’s label (up to 64 characters).
Imported: set up by hand before onboarding. A WhatsApp or SMS sender stops being imported once its credentials are added; a Viber bot keeps the flag, because its stored bot id is not Viber’s.
LastCheckedAt is when the credentials were last checked with the provider (RFC 3339, UTC).
ParentAuthID is the Auth ID of the owning account’s parent account, empty for a top-level account.
Provider is who carries the messages: meta (WhatsApp), twilio, plivo, movider or smpp (SMS), viber (Viber).
ProviderAccount is the WABA id, Twilio account SID, Plivo auth id or Movider API key (for SMPP, the platform’s id of the vendor link).
ProviderSender is the phone number id, Twilio number SID, Plivo number, Movider API key and sender ID, or Viber bot id.
SendOnly: the sender is a sender ID, not a number: customers cannot reply, and the provider has no webhook to set. Every Movider sender is one.
Status: provisioning (being set up), active (credentials accepted and the provider’s webhook set), action_required (saved, but the provider refused a check; see status_detail), unverified (imported, not yet proved with the provider).
StatusDetail says what the provider refused when status is action_required.
UpdatedAt is when the connection last changed (RFC 3339, UTC).
UpdatedBy is the login that last changed the connection.
VerifyToken is the webhook verify token Meta echoes when it checks callback_url (WhatsApp only).
WebhookSid identifies the platform webhook the provider calls back (a UUID). The callback URL is shown as callback_url on a single connection.
Message describes what was done (“Channel connected”, “Channel updated”, “Credentials updated”, “Channel checked”; empty on a read).
Status is “success”.
Example
{ "data": { "account_id": "AC000000000000000000", "address": "+15555550100", "application_id": 1234, "callback_url": "https://webhooks.example.com/v1/PubWebHooks/9f1c2d3e-0000-4000-8000-000000000001", "channel": "whatsapp", "connection_id": "CH0123456789abcdef0123456789abcdef", "country_codes": [ "1", "44" ], "created_at": "2026-11-20T10:15:00Z", "created_by": "AC000000000000000000", "display_name": "Support line", "imported": false, "last_checked_at": "2026-11-20T10:15:00Z", "parent_auth_id": "AC000000000000000099", "provider": "meta", "provider_account": "AC00000000000000000000000000000000", "provider_sender": "PN00000000000000000000000000000000", "send_only": false, "status": "provisioning", "status_detail": "Twilio webhook: the provider rejected these credentials", "updated_at": "2026-11-20T10:15:00Z", "updated_by": "AC000000000000000000", "verify_token": "0123456789abcdef0123456789abcdef0123456789abcdef", "webhook_sid": "9f1c2d3e-0000-4000-8000-000000000001" }, "message": "Channel connected", "status": "success"}Invalid body or field (message names the field), an application that is not this account’s, or an account that cannot connect a Viber bot
object
Message says what went wrong.
Status is always “failed” on an error (some validation errors omit it).
Example
{ "message": "error message", "status": "failed"}Missing or invalid credentials; the body is the JSON string Authentication failed
Example generated
exampleAccount mismatch, or the account is not a tenant
object
Message says what went wrong.
Status is always “failed” on an error (some validation errors omit it).
Example
{ "message": "error message", "status": "failed"}Conflict: the sender, number, WhatsApp Business account or provider account is already in use (message says which)
object
Message says what went wrong.
Status is always “failed” on an error (some validation errors omit it).
Example
{ "message": "error message", "status": "failed"}The provider rejected the credentials or the sender (message names the provider’s reason)
object
Message says what went wrong.
Status is always “failed” on an error (some validation errors omit it).
Example
{ "message": "error message", "status": "failed"}Internal error, including a failed account lookup (message: the channel could not be saved)
object
Message says what went wrong.
Status is always “failed” on an error (some validation errors omit it).
Example
{ "message": "error message", "status": "failed"}The provider could not be reached or answered 429/5xx; nothing was changed; try again
object
Message says what went wrong.
Status is always “failed” on an error (some validation errors omit it).
Example
{ "message": "error message", "status": "failed"}Channel onboarding is not configured on this platform
object
Message says what went wrong.
Status is always “failed” on an error (some validation errors omit it).
Example
{ "message": "error message", "status": "failed"}