v2
latestOpenAPI 3.1.02026-07-2661920.3 KBSMS Libraries and APIs
Send an outbound SMS
Send an outbound SMS via given provider (Ex: Twilio) and persist a full SMSLogs record. Validates that numbers are US (+1) or India (+91) only.
Either of the following must be provided
- assistantNumber
- phoneNumberId
- assistantId
Order of precedence for determining the sending number:
- assistantNumber (if provided)
- phoneNumberId (if provided)
- assistantId (if provided)
Returns the persisted log ID and delivery status.
post/sms/v1/sms/send
Request body
Example request
{
"phoneNumberId": "5eb7cf5a86d9755df3a6c593",
"workflowId": "5eb7cf5a86d9755df3a6c593",
"campaignId": "5eb7cf5a86d9755df3a6c593"
}Response
Successful Response
{"stackTrail":"paths:/sms/v1/sms/send:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}