Skip to content

Replace channel credentials

PUT
/v1/Accounts/{auth_id}/Integrations/Channels/{connection_id}/Credentials
curl --request PUT \
--url https://api.siprtc.io/v1/Accounts/example/Integrations/Channels/example/Credentials \
--header 'Authorization: Basic <credentials>' \
--header 'Content-Type: application/json' \
--data '{ "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" }'

Replaces a connection’s provider credentials once the provider accepts them. The body is the credentials object itself (same keys as credentials on connect, by the connection’s channel and provider). They must belong to the same provider account (400 “these credentials belong to another provider account”), except for SMPP, where a new bind moves the sender to that link. Credentials are shared by all of the account’s senders of that provider, so this updates them all. The provider webhook is set again and status becomes active or action_required. For a sender imported by hand this finishes its setup; an imported WhatsApp number must also send phone_number_id and waba_id here. Authentication: HTTP Basic with the account’s Auth ID and Auth Secret. {auth_id} must be the authenticated account itself: a parent account’s credentials on a sub-account’s path are refused with 403 “account mismatch”, and only an account of type tenant may manage channels (403 “only the tenant administrator manages channels”). Another account’s connection is reported as 404, never shown.

auth_id
required
string

Auth ID of the account (must be the authenticated account)

connection_id
required
string

Channel connection id (CH followed by 32 hex characters)

New provider credentials (write-only)

Media type application/json
object
access_token

AccessToken is the WhatsApp Cloud API access token (system user token) of the WABA. WhatsApp only; required.

string

Example

EAAG-fake-access-token
account_sid

AccountSID is the Twilio Account SID (“AC” + 32 hex). Twilio only; required.

string

Example

AC00000000000000000000000000000000
api_key

APIKey is the Movider API key. Movider only; required.

string

Example

fake-movider-key
api_secret

APISecret is the Movider API secret. Movider only; required.

string

Example

fake-movider-secret
app_secret

AppSecret is the Meta app secret that signs WhatsApp webhook calls. WhatsApp only; required.

string

Example

0123456789abcdef0123456789abcdef
auth_id

AuthID is the Plivo Auth ID (“MA” or “SA” + 18 characters). Plivo only; required.

string

Example

MA000000000000000000
auth_token

AuthToken is the Twilio auth token, the Plivo auth token, or the Viber bot token. Required for twilio, plivo and viber.

string

Example

fake-auth-token
phone_number_id

PhoneNumberID is the WhatsApp phone number id; only used on PUT …/Credentials to finish a WhatsApp number that was imported without it.

string

Example

100000000000001
smpp

SMPP is the SMPP vendor’s link (provider smpp only; required for it).

object
host
required

Host is the vendor’s SMPP server: a hostname or an IP address. Required.

string

Example

smpp.example.net
mode

Mode 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).

string
Allowed values: transceiver separate transmitter

Example

transceiver
password
required

Password is the SMPP bind password (1-64 printable characters, no quotes or backslashes). Required; write-only.

string

Example

fake-pass
port
required

Port is the vendor’s SMPP port (1-65535); in separate mode the transmitter port. Required.

integer

Example

2775
receive_port

ReceivePort is the receiver port (1-65535); required in separate mode.

integer

Example

2776
source_npi

SourceNPI is the numbering plan indicator for the source address (0-18); omitted uses the gateway’s default.

integer

Example

0
source_ton

SourceTON is the type of number for the source address (0-18); omitted uses the gateway’s default.

integer

Example

5
system_id
required

SystemID is the SMPP bind user (1-16 printable characters, no quotes or backslashes). Required.

string

Example

acme01
system_type

SystemType is the optional SMPP system_type (up to 13 printable characters).

string

Example

throughput

Throughput is the messages per second the vendor allows (0-10000); 0 = no limit.

integer

Example

50
tls

TLS binds over TLS.

boolean

Example

false
waba_id

WabaID is the WhatsApp Business Account id; only used on PUT …/Credentials to finish a WhatsApp number that was imported without it.

string

Example

200000000000002

OK

Media type application/json
object
data

Data is the connection, with its webhook details.

object
account_id

AccountID is the Auth ID of the account that owns the connection.

string
address

Address is what customers see: an E.164 number, a Movider sender ID, or the bot’s name.

string
application_id

ApplicationID is the SIPRTC application that handles inbound messages on this sender.

integer
callback_url

CallbackURL is the platform URL the provider delivers this sender’s inbound messages and status reports to (https:///v1/PubWebHooks/{webhook_sid}). Set on a single connection that has a webhook.

string
channel

Channel is the messaging channel: whatsapp, sms or viber.

string
Allowed values: whatsapp sms viber
connection_id

ConnectionID identifies the connection in the Channels API: “CH” followed by 32 hex characters.

string
country_codes

CountryCodes are the international calling codes (digits only, no “+”) this sender is used for when sending. Not used for Viber.

Array<string>
created_at

CreatedAt is when the connection was made (RFC 3339, UTC).

string
created_by

CreatedBy is the user who connected the sender, or the Auth ID when it was connected with API credentials.

string
display_name

DisplayName is the connection’s label (up to 64 characters).

string
imported

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.

boolean
last_checked_at

LastCheckedAt is when the credentials were last checked with the provider (RFC 3339, UTC).

string
parent_auth_id

ParentAuthID is the Auth ID of the owning account’s parent account, empty for a top-level account.

string
provider

Provider is who carries the messages: meta (WhatsApp), twilio, plivo, movider or smpp (SMS), viber (Viber).

string
Allowed values: meta twilio plivo movider smpp viber
provider_account

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).

string
provider_sender

ProviderSender is the phone number id, Twilio number SID, Plivo number, Movider API key and sender ID, or Viber bot id.

string
send_only

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.

boolean
status

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).

string
Allowed values: provisioning active action_required unverified
status_detail

StatusDetail says what the provider refused when status is action_required.

string
updated_at

UpdatedAt is when the connection last changed (RFC 3339, UTC).

string
updated_by

UpdatedBy is the login that last changed the connection.

string
verify_token

VerifyToken is the webhook verify token Meta echoes when it checks callback_url (WhatsApp only).

string
webhook_sid

WebhookSid identifies the platform webhook the provider calls back (a UUID). The callback URL is shown as callback_url on a single connection.

string
message

Message describes what was done (“Channel connected”, “Channel updated”, “Credentials updated”, “Channel checked”; empty on a read).

string
status

Status is “success”.

string

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 missing/invalid credential field, transmitter mode on a number, or credentials of another provider account

Media type application/json
object
message

Message says what went wrong.

string
status

Status is always “failed” on an error (some validation errors omit it).

string

Example

{
"message": "error message",
"status": "failed"
}

Missing or invalid credentials; the body is the JSON string Authentication failed

Media type application/json
string

Example generated

example

Account mismatch, or the account is not a tenant

Media type application/json
object
message

Message says what went wrong.

string
status

Status is always “failed” on an error (some validation errors omit it).

string

Example

{
"message": "error message",
"status": "failed"
}

No such connection on this account (message: channel connection not found)

Media type application/json
object
message

Message says what went wrong.

string
status

Status is always “failed” on an error (some validation errors omit it).

string

Example

{
"message": "error message",
"status": "failed"
}

Conflict: the sender, number, WhatsApp Business account or provider account is already in use (message says which)

Media type application/json
object
message

Message says what went wrong.

string
status

Status is always “failed” on an error (some validation errors omit it).

string

Example

{
"message": "error message",
"status": "failed"
}

The provider rejected the credentials or the sender (message names the provider’s reason)

Media type application/json
object
message

Message says what went wrong.

string
status

Status is always “failed” on an error (some validation errors omit it).

string

Example

{
"message": "error message",
"status": "failed"
}

Internal error, including a failed account lookup (message: the channel could not be saved)

Media type application/json
object
message

Message says what went wrong.

string
status

Status is always “failed” on an error (some validation errors omit it).

string

Example

{
"message": "error message",
"status": "failed"
}

The provider could not be reached or answered 429/5xx; nothing was changed; try again

Media type application/json
object
message

Message says what went wrong.

string
status

Status is always “failed” on an error (some validation errors omit it).

string

Example

{
"message": "error message",
"status": "failed"
}

Channel onboarding is not configured on this platform

Media type application/json
object
message

Message says what went wrong.

string
status

Status is always “failed” on an error (some validation errors omit it).

string

Example

{
"message": "error message",
"status": "failed"
}