Azure Communication SMS Service (preview:2025-05-29)

2025/05/09 • 4 new methods

Sms_Send (new)
Description Sends a SMS message from a phone number that belongs to the authenticated account.
Reference Link ¶

⚼ Request

POST:  /sms
{
SendMessageRequest:
{
from: string ,
smsRecipients:
[
{
to: string ,
repeatabilityRequestId: string ,
repeatabilityFirstSent: string ,
}
,
]
,
message: string ,
smsSendOptions:
{
enableDeliveryReport: boolean ,
tag: string ,
deliveryReportTimeoutInSeconds: integer ,
messagingConnect:
{
apiKey: string ,
partner: string ,
}
,
}
,
}
,
api-version: string ,
}

⚐ Response (202)

{
value:
[
{
to: string ,
messageId: string ,
httpStatusCode: integer ,
repeatabilityResult: enum ,
successful: boolean ,
errorMessage: string ,
}
,
]
,
}
OptOuts_Add (new)
Description Add phone numbers to the optouts list which shall stop receiving messages from a sender number.
Reference Link ¶

⚼ Request

POST:  /sms/optouts:add
{
body:
{
from: string ,
recipients:
[
{
to: string ,
}
,
]
,
}
,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
to: string ,
httpStatusCode: integer ,
isOptedOut: boolean ,
errorMessage: string ,
}
,
]
,
}
OptOuts_Remove (new)
Description Remove phone numbers from the optouts list.
Reference Link ¶

⚼ Request

POST:  /sms/optouts:remove
{
body:
{
from: string ,
recipients:
[
{
to: string ,
}
,
]
,
}
,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
to: string ,
httpStatusCode: integer ,
isOptedOut: boolean ,
errorMessage: string ,
}
,
]
,
}
OptOuts_Check (new)
Description Check the opt out status for a recipient phone number with a sender phone number.
Reference Link ¶

⚼ Request

POST:  /sms/optouts:check
{
body:
{
from: string ,
recipients:
[
{
to: string ,
}
,
]
,
}
,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
to: string ,
httpStatusCode: integer ,
isOptedOut: boolean ,
errorMessage: string ,
}
,
]
,
}