CommunicationMessagesClient (preview:2025-04-01)

2025/04/11 • 13 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 ,
}
,
}
,
}
,
}
ConversationThreadOperations_ListConversations (new)
Description Retrieves list of conversations.
Reference Link ¶

⚼ Request

GET:  /messages/conversations
{
api-version: string ,
maxPageSize: integer ,
participantId: string ,
channelId: string ,
x-ms-client-request-id: string ,
}

⚐ Response (200)

{
$headers:
{
x-ms-client-request-id: string ,
}
,
$schema:
{
value:
[
{
id: string ,
topic: string ,
deliveryChannelIds:
[
string ,
]
,
outboundDeliveryStrategy: enum ,
participants:
[
{
id: string ,
displayName: string ,
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 ,
}
,
}
,
}
,
}
ConversationAdministrationOperations_CreateConversation (new)
Description Creates a new conversation. This is only for create operation.
Reference Link ¶

⚼ Request

POST:  /messages/conversations
{
api-version: string ,
body:
{
conversation:
{
id: string ,
topic: string ,
deliveryChannelIds:
[
string ,
]
,
outboundDeliveryStrategy: enum ,
participants:
[
{
id: string ,
displayName: string ,
kind: enum ,
}
,
]
,
}
,
initialMessage:
{
content: string ,
}
,
}
,
}

⚐ Response (201)

{
id: string ,
topic: string ,
deliveryChannelIds:
[
string ,
]
,
outboundDeliveryStrategy: enum ,
participants:
[
{
id: string ,
displayName: string ,
kind: enum ,
}
,
]
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
ConversationAdministrationOperations_GetConversation (new)
Description Gets the details of a specific conversation.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
$headers:
{
x-ms-client-request-id: string ,
}
,
$schema:
{
id: string ,
topic: string ,
deliveryChannelIds:
[
string ,
]
,
outboundDeliveryStrategy: enum ,
participants:
[
{
id: string ,
displayName: string ,
kind: enum ,
}
,
]
,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
ConversationAdministrationOperations_DeleteConversation (new)
Description Deletes a specific conversation.
Reference Link ¶

⚼ Request

DELETE:  /messages/conversations/{conversationId}
{
api-version: string ,
conversationId: string ,
Repeatability-Request-ID: string ,
Repeatability-First-Sent: string ,
x-ms-client-request-id: string ,
}

⚐ Response (204)

{
repeatability-result: string ,
x-ms-client-request-id: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
ConversationAdministrationOperations_TerminateConversation (new)
Description Terminates a specific conversation.
Reference Link ¶

⚼ Request

POST:  /messages/conversations/{conversationId}:terminate
{
api-version: string ,
conversationId: string ,
Repeatability-Request-ID: string ,
Repeatability-First-Sent: string ,
x-ms-client-request-id: string ,
}

⚐ Response (200)

{
repeatability-result: string ,
x-ms-client-request-id: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
ConversationThreadOperations_AnalyzeConversation (new)
Description Get AI Analysis of a conversation.
Reference Link ¶

⚼ Request

POST:  /messages/conversations/{conversationId}:analyze
{
api-version: string ,
conversationId: string ,
Repeatability-Request-ID: string ,
Repeatability-First-Sent: string ,
x-ms-client-request-id: string ,
}

⚐ Response (200)

{
$headers:
{
repeatability-result: string ,
x-ms-client-request-id: string ,
}
,
$schema:
{
summary: string ,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
ConversationThreadOperations_ListMessages (new)
Description Retrieves list of conversation messages.
Reference Link ¶

⚼ Request

GET:  /messages/conversations/{conversationId}/messages
{
api-version: string ,
conversationId: string ,
maxPageSize: integer ,
participantId: string ,
x-ms-client-request-id: string ,
}

⚐ Response (200)

{
$headers:
{
x-ms-client-request-id: string ,
}
,
$schema:
{
value:
[
{
id: string ,
sequenceId: integer ,
message:
{
kind: enum ,
}
,
senderDisplayName: string ,
senderCommunicationIdentifier: string ,
createdOn: string ,
}
,
]
,
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 ,
}
,
}
,
}
,
}
ConversationThreadOperations_SendMessage (new)
Description Sends a conversation message from Business to User.
Reference Link ¶

⚼ Request

POST:  /messages/conversations/{conversationId}/messages:send
{
api-version: string ,
conversationId: string ,
Repeatability-Request-ID: string ,
Repeatability-First-Sent: string ,
x-ms-client-request-id: string ,
options:
{
request:
{
kind: enum ,
}
,
outboundDeliveryStrategy: enum ,
}
,
}

⚐ Response (200)

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

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
ConversationThreadOperations_AddParticipants (new)
Description Adds participants to a specific conversation.
Reference Link ¶

⚼ Request

POST:  /messages/conversations/{conversationId}/participants:add
{
api-version: string ,
conversationId: string ,
Repeatability-Request-ID: string ,
Repeatability-First-Sent: string ,
x-ms-client-request-id: string ,
options:
{
participants:
[
{
id: string ,
displayName: string ,
kind: enum ,
}
,
]
,
}
,
}

⚐ Response (207)

{
$headers:
{
repeatability-result: string ,
x-ms-client-request-id: string ,
}
,
$schema:
{
invalidParticipants:
[
{
id: string ,
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
]
,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
ConversationThreadOperations_RemoveParticipants (new)
Description remove a participant from a conversation
Reference Link ¶

⚼ Request

POST:  /messages/conversations/{conversationId}/participants:remove
{
api-version: string ,
conversationId: string ,
Repeatability-Request-ID: string ,
Repeatability-First-Sent: string ,
x-ms-client-request-id: string ,
options:
{
participantIds:
[
string ,
]
,
}
,
}

⚐ Response (207)

{
$headers:
{
repeatability-result: string ,
x-ms-client-request-id: string ,
}
,
$schema:
{
invalidParticipants:
[
{
id: string ,
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: 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 ,
}
,
}
,
}
,
}