Skip to main content

Rotate a channel's credential without deleting it

PUT 

/api/channels/:channel/credentials

Doc 65 S10. Replaces the one credential this channel's source can rotate in place, keeping the channel's id, conversations and settings: Telegram — a new bot token for the SAME bot (validated with getMe; a token for another bot is refused, and the webhook is re-registered); SMS — the sms_from sender; Netgsm / GSM gateway — the sip_password (the signalling gateway is told to re-read its accounts). Any other source answers 422. Same permission as editing the channel.

Request​

Responses​

The channel, with its new credential applied.