Skip to main content

SmsService

A list of all methods in the SmsService service. Click on the method name to view detailed information about that method.

MethodsDescription
sms_messages_send_sms_to_phone_numbersSend an SMS to one or multiple phone numbers.

Phone numbers must be prefixed with a + and country code (e.g. +4670xxxxxxx for a Swedish mobile phone number). |

sms_messages_send_sms_to_phone_numbers

Send an SMS to one or multiple phone numbers.

Phone numbers must be prefixed with a + and country code (e.g. +4670xxxxxxx for a Swedish mobile phone number).

  • HTTP Method: POST
  • Endpoint: /api/v2/sms/sendToPhoneNumbers

Parameters

NameTypeRequiredDescription
request_bodySendSmsRequestThe request body.

Return Type

SendSmsResponse

Example Usage Code Snippet

from voyado_engage import VoyadoEngage, Environment
from voyado_engage.models import SendSmsRequest

sdk = VoyadoEngage(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)

request_body = SendSmsRequest(
description="description",
invoice_reference="invoiceReference",
message="message",
phone_numbers=[
"phoneNumbers"
],
sender="sender"
)

result = sdk.sms.sms_messages_send_sms_to_phone_numbers(request_body=request_body)

print(result)

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →