Skip to main content

Send SMS

You can use send sms API to send SMS message.

Request parameters

NameTypeRequired/OptionalDescription
senderIdstringRequiredSender ID
templateIdstringRequiredSMS template
messagestringRequiredText message
phoneNumberstringRequiredcustomer phone number

Request Information

CategoryValue
Http requestPOST
URLhttps://bikapi.bikayi.app/integrations/bikPlatformFunctions-messages/v2/sendSms
curl --location 'https://bikapi.bikayi.app/integrations/bikPlatformFunctions-messages/v2/sendSms' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic AUTH_TOKEN' \
--data '{
"senderId": "123456",
"templateId": "Test Template ID",
"message": "This is a test message",
"phoneNumber": "+919900990090"
}'

JSON response example:

{
"status": 200,
"success": true,
"data": {
"messageId": "message_id1"
}
}

Response parameters

NameTypeDescription
statusnumberResponse status
successbooleanIs successful response or not
messageIdstringMessage id if any

Errors

Error CodeMeaning
400Invalid payload -- Your request is invalid.
401Unauthorized -- User is not authenticated.
404Not Found -- The specified API could not be found.
500Internal Server Error -- We had a problem with our server. Try again later.

Error response example:

{
"status": 400,
"errors": [
{
"code": 400,
"message": "Not able to send sms"
}
]
}