POST api/messages/sendmessage
Request Information
URI Parameters
None.
Body Parameters
MessageComposeModel| Name | Description | Type | Additional information |
|---|---|---|---|
| sender_email | string |
None. |
|
| sender_display_name | string |
None. |
|
| sender_account_id | globally unique identifier |
None. |
|
| to | Collection of MessageRecipientModel |
None. |
|
| cc | Collection of MessageRecipientModel |
None. |
|
| bcc | Collection of MessageRecipientModel |
None. |
|
| importance | MessageImportance |
None. |
|
| message_id | string |
None. |
|
| references | string |
None. |
|
| body | string |
None. |
|
| attachments | Collection of globally unique identifier |
None. |
|
| parent_id | globally unique identifier |
None. |
|
| created_date | date |
None. |
|
| send | boolean |
None. |
|
| subject | string |
None. |
|
| can_delete | boolean |
None. |
|
| id | globally unique identifier |
None. |
|
| subscription_id | globally unique identifier |
None. |
|
| ts | Collection of byte |
None. |
Request Formats
application/json, text/json
Sample:
{
"sender_email": "sample string 1",
"sender_display_name": "sample string 2",
"sender_account_id": "e3a69cd4-887b-4c95-8f47-cbf27084a78b",
"to": [
{
"display_name": "sample string 1",
"email_address": "sample string 2",
"account_id": "8cfbf0ad-a903-4f50-b914-e357ccc525f4"
},
{
"display_name": "sample string 1",
"email_address": "sample string 2",
"account_id": "8cfbf0ad-a903-4f50-b914-e357ccc525f4"
}
],
"cc": [
{
"display_name": "sample string 1",
"email_address": "sample string 2",
"account_id": "8cfbf0ad-a903-4f50-b914-e357ccc525f4"
},
{
"display_name": "sample string 1",
"email_address": "sample string 2",
"account_id": "8cfbf0ad-a903-4f50-b914-e357ccc525f4"
}
],
"bcc": [
{
"display_name": "sample string 1",
"email_address": "sample string 2",
"account_id": "8cfbf0ad-a903-4f50-b914-e357ccc525f4"
},
{
"display_name": "sample string 1",
"email_address": "sample string 2",
"account_id": "8cfbf0ad-a903-4f50-b914-e357ccc525f4"
}
],
"importance": 0,
"message_id": "sample string 4",
"references": "sample string 5",
"body": "sample string 6",
"attachments": [
"2c60ab7b-15b9-480b-bf26-98807698f252",
"c0e4697f-3a00-43e5-9cd2-dead34df8f7d"
],
"parent_id": "3f38a84d-2a7b-419c-a04d-dbb6c1987817",
"created_date": "2026-08-08T17:17:53.9952415+08:00",
"send": true,
"subject": "sample string 9",
"can_delete": true,
"id": "edad2f0a-8590-4d6c-95a1-7c3a23969356",
"subscription_id": "e0e0f3f5-a486-41ed-8267-332ffb4a97c1",
"ts": "QEA="
}
application/xml, text/xml
Sample:
<MessageComposeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CompleteEmpireApp.Api.Models">
<Id xmlns="http://schemas.datacontract.org/2004/07/CompleteEmpireApp.Api.Models.Base">edad2f0a-8590-4d6c-95a1-7c3a23969356</Id>
<SubscriptionId xmlns="http://schemas.datacontract.org/2004/07/CompleteEmpireApp.Api.Models.Base">e0e0f3f5-a486-41ed-8267-332ffb4a97c1</SubscriptionId>
<Ts xmlns="http://schemas.datacontract.org/2004/07/CompleteEmpireApp.Api.Models.Base">QEA=</Ts>
<CanDelete>true</CanDelete>
<Subject>sample string 9</Subject>
<Attachments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>2c60ab7b-15b9-480b-bf26-98807698f252</d2p1:guid>
<d2p1:guid>c0e4697f-3a00-43e5-9cd2-dead34df8f7d</d2p1:guid>
</Attachments>
<Bcc>
<MessageRecipientModel>
<AccountId>8cfbf0ad-a903-4f50-b914-e357ccc525f4</AccountId>
<DisplayName>sample string 1</DisplayName>
<EmailAddress>sample string 2</EmailAddress>
</MessageRecipientModel>
<MessageRecipientModel>
<AccountId>8cfbf0ad-a903-4f50-b914-e357ccc525f4</AccountId>
<DisplayName>sample string 1</DisplayName>
<EmailAddress>sample string 2</EmailAddress>
</MessageRecipientModel>
</Bcc>
<Body>sample string 6</Body>
<Cc>
<MessageRecipientModel>
<AccountId>8cfbf0ad-a903-4f50-b914-e357ccc525f4</AccountId>
<DisplayName>sample string 1</DisplayName>
<EmailAddress>sample string 2</EmailAddress>
</MessageRecipientModel>
<MessageRecipientModel>
<AccountId>8cfbf0ad-a903-4f50-b914-e357ccc525f4</AccountId>
<DisplayName>sample string 1</DisplayName>
<EmailAddress>sample string 2</EmailAddress>
</MessageRecipientModel>
</Cc>
<CreatedDate>2026-08-08T17:17:53.9952415+08:00</CreatedDate>
<Importance>Low</Importance>
<MessageId>sample string 4</MessageId>
<ParentId>3f38a84d-2a7b-419c-a04d-dbb6c1987817</ParentId>
<References>sample string 5</References>
<Send>true</Send>
<SenderAccountId>e3a69cd4-887b-4c95-8f47-cbf27084a78b</SenderAccountId>
<SenderDisplayName>sample string 2</SenderDisplayName>
<SenderEmail>sample string 1</SenderEmail>
<To>
<MessageRecipientModel>
<AccountId>8cfbf0ad-a903-4f50-b914-e357ccc525f4</AccountId>
<DisplayName>sample string 1</DisplayName>
<EmailAddress>sample string 2</EmailAddress>
</MessageRecipientModel>
<MessageRecipientModel>
<AccountId>8cfbf0ad-a903-4f50-b914-e357ccc525f4</AccountId>
<DisplayName>sample string 1</DisplayName>
<EmailAddress>sample string 2</EmailAddress>
</MessageRecipientModel>
</To>
</MessageComposeModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.