Version 2.1.1792967583 · latest Download OpenAPI Markdown

Delivery channels

Configure and test the email (SMTP) and SMS delivery channels.

message-channelsMessagesAuthentication: Admin only3 endpoints

Delivery channels

GET/api/v2/message-channels
Authentication: Admin only

Update delivery channels

PUT/api/v2/message-channels
Authentication: Admin only

Request body application/json

FieldTypeRequiredDescription
smsSmsChannelRequired SMS channel settings.
smtpSmtpChannelRequired SMTP email channel settings.

Test delivery channel

POST/api/v2/message-channels/test
Authentication: Admin only

Request body application/json

FieldTypeRequiredDescription
channelstringRequired Channel to test (email or sms).
Values ["email","sms"]
draftChannelTestDraft— Unsaved channel settings; same shape as the save endpoint, omitted fields and blank secrets fall back to the stored values.
template_idstring— An approved template id is required for the Tencent Cloud SMS channel (not needed for SMSBao).
tostringRequired Recipient address or phone number.

Delivery channels object

FieldTypeRequiredDescription
channelstringRequired Channel to test (email or sms).
Values ["email","sms"]
draftChannelTestDraft— Unsaved channel settings; same shape as the save endpoint, omitted fields and blank secrets fall back to the stored values.
errorstring— Error message when the test failed.
okboolean— Whether the test send succeeded.
smsSmsChannel— SMS channel settings.
smtpSmtpChannel— SMTP email channel settings.
template_idstring— An approved template id is required for the Tencent Cloud SMS channel (not needed for SMSBao).
tostringRequired Recipient address or phone number.