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": "be7a3d6c-9b70-45c4-820b-626ab4b2f8e5",
"to": [
{
"display_name": "sample string 1",
"email_address": "sample string 2",
"account_id": "66a13ca4-00e8-4de1-ae48-78863106dc01"
},
{
"display_name": "sample string 1",
"email_address": "sample string 2",
"account_id": "66a13ca4-00e8-4de1-ae48-78863106dc01"
}
],
"cc": [
{
"display_name": "sample string 1",
"email_address": "sample string 2",
"account_id": "66a13ca4-00e8-4de1-ae48-78863106dc01"
},
{
"display_name": "sample string 1",
"email_address": "sample string 2",
"account_id": "66a13ca4-00e8-4de1-ae48-78863106dc01"
}
],
"bcc": [
{
"display_name": "sample string 1",
"email_address": "sample string 2",
"account_id": "66a13ca4-00e8-4de1-ae48-78863106dc01"
},
{
"display_name": "sample string 1",
"email_address": "sample string 2",
"account_id": "66a13ca4-00e8-4de1-ae48-78863106dc01"
}
],
"importance": 0,
"message_id": "sample string 4",
"references": "sample string 5",
"body": "sample string 6",
"attachments": [
"90a085c6-cfb1-4f02-965a-2056021970a2",
"82040c21-4f66-4ee8-9ef4-44b9dd835a8f"
],
"parent_id": "df5c1269-c1ad-4bec-b727-7935c9945410",
"created_date": "2026-11-27T08:07:08.8742775+08:00",
"send": true,
"subject": "sample string 9",
"can_delete": true,
"id": "866c36a3-93a1-4665-b54b-3d43949876a9",
"subscription_id": "e1ca519b-416f-464e-83f7-89022c9cc936",
"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">866c36a3-93a1-4665-b54b-3d43949876a9</Id>
<SubscriptionId xmlns="http://schemas.datacontract.org/2004/07/CompleteEmpireApp.Api.Models.Base">e1ca519b-416f-464e-83f7-89022c9cc936</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>90a085c6-cfb1-4f02-965a-2056021970a2</d2p1:guid>
<d2p1:guid>82040c21-4f66-4ee8-9ef4-44b9dd835a8f</d2p1:guid>
</Attachments>
<Bcc>
<MessageRecipientModel>
<AccountId>66a13ca4-00e8-4de1-ae48-78863106dc01</AccountId>
<DisplayName>sample string 1</DisplayName>
<EmailAddress>sample string 2</EmailAddress>
</MessageRecipientModel>
<MessageRecipientModel>
<AccountId>66a13ca4-00e8-4de1-ae48-78863106dc01</AccountId>
<DisplayName>sample string 1</DisplayName>
<EmailAddress>sample string 2</EmailAddress>
</MessageRecipientModel>
</Bcc>
<Body>sample string 6</Body>
<Cc>
<MessageRecipientModel>
<AccountId>66a13ca4-00e8-4de1-ae48-78863106dc01</AccountId>
<DisplayName>sample string 1</DisplayName>
<EmailAddress>sample string 2</EmailAddress>
</MessageRecipientModel>
<MessageRecipientModel>
<AccountId>66a13ca4-00e8-4de1-ae48-78863106dc01</AccountId>
<DisplayName>sample string 1</DisplayName>
<EmailAddress>sample string 2</EmailAddress>
</MessageRecipientModel>
</Cc>
<CreatedDate>2026-11-27T08:07:08.8742775+08:00</CreatedDate>
<Importance>Low</Importance>
<MessageId>sample string 4</MessageId>
<ParentId>df5c1269-c1ad-4bec-b727-7935c9945410</ParentId>
<References>sample string 5</References>
<Send>true</Send>
<SenderAccountId>be7a3d6c-9b70-45c4-820b-626ab4b2f8e5</SenderAccountId>
<SenderDisplayName>sample string 2</SenderDisplayName>
<SenderEmail>sample string 1</SenderEmail>
<To>
<MessageRecipientModel>
<AccountId>66a13ca4-00e8-4de1-ae48-78863106dc01</AccountId>
<DisplayName>sample string 1</DisplayName>
<EmailAddress>sample string 2</EmailAddress>
</MessageRecipientModel>
<MessageRecipientModel>
<AccountId>66a13ca4-00e8-4de1-ae48-78863106dc01</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.