CommunicationMessagesClient (preview:2025-01-15)

2025/02/10 • 3 new methods

TemplateOperations_ListTemplates (new)
Description List all templates for given Azure Communication Services channel
Reference Link ¶

⚼ Request

GET:  /messages/channels/{channelId}/templates
{
api-version: string ,
channelId: string ,
maxpagesize: integer ,
x-ms-client-request-id: string ,
}

⚐ Response (200)

{
$headers:
{
x-ms-client-request-id: string ,
}
,
$schema:
{
value:
[
{
name: string ,
language: string ,
status: enum ,
kind: enum ,
}
,
]
,
nextLink: string ,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
NotificationMessagesOperations_Send (new)
Description Sends a notification message from Business to User.
Reference Link ¶

⚼ Request

POST:  /messages/notifications:send
{
api-version: string ,
Repeatability-Request-ID: string ,
Repeatability-First-Sent: string ,
x-ms-client-request-id: string ,
body:
{
channelRegistrationId: string ,
to:
[
string ,
]
,
kind: enum ,
}
,
}

⚐ Response (202)

{
$headers:
{
repeatability-result: string ,
x-ms-client-request-id: string ,
}
,
$schema:
{
receipts:
[
{
messageId: string ,
to: string ,
}
,
]
,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
StreamOperations_GetMedia (new)
Description Download the Media payload from a User to Business message.
Reference Link ¶

⚼ Request

GET:  /messages/streams/{id}
{
api-version: string ,
id: string ,
x-ms-client-request-id: string ,
}

⚐ Response (200)

{
$headers:
{
x-ms-client-request-id: string ,
}
,
$schema: file ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}