POST Agents/EMail/GetMailFromMessageId
Some tooltip text!
• 6 minutes to read
• 6 minutes to read
POST /api/v1/Agents/EMail/GetMailFromMessageId
Get email from db based on Message Id
Online Restricted: ## The EMail agent is not available in Online by default. Access must be requested specifically when app is registered.
Query String Parameters
Parameter Name | Type | Description |
---|---|---|
$select | string | Optional comma separated list of properties to include in the result. Other fields are then nulled out to reduce payload size: "Name,department,category". Default = show all fields. |
POST /api/v1/Agents/EMail/GetMailFromMessageId?$select=name,department,category/id
Request Headers
Parameter Name | Description |
---|---|
Authorization | Supports 'Basic', 'SoTicket' and 'Bearer' schemes, depending on installation type. |
X-XSRF-TOKEN | If not using Authorization header, you must provide XSRF value from cookie or hidden input field |
Content-Type | Content-type of the request body: application/json , text/json , application/xml , text/xml , application/x-www-form-urlencoded , application/json-patch+json , application/merge-patch+json |
Accept | Content-type(s) you would like the response in: application/json , text/json , application/xml , text/xml , application/json-patch+json , application/merge-patch+json |
Accept-Language | Convert string references and multi-language values into a specified language (iso2) code. |
SO-Language | Convert string references and multi-language values into a specified language (iso2) code. Overrides Accept-Language value. |
SO-Culture | Number, date formatting in a specified culture (iso2 language) code. Partially overrides SO-Language/Accept-Language value. Ignored if no Language set. |
SO-TimeZone | Specify the timezone code that you would like date/time responses converted to. |
SO-AppToken | The application token that identifies the partner app. Used when calling Online WebAPI from a server. |
Request Body: request
MessageId
Property Name | Type | Description |
---|---|---|
MessageId | String |
Response:
OK
Response | Description |
---|---|
200 | OK |
Response body: EMailEntity
Property Name | Type | Description |
---|---|---|
To | array | To recipients of e-mail |
Cc | array | Cc recipients of e-mail |
Bcc | array | Bcc recipient of e-mail |
Subject | string | Subject of the e-mail |
HTMLBody | string | Body formatted in HTML |
From | EMailAddress | Who did the e-mail originate from |
Sent | date-time | When was the e-mail sent |
Size | int32 | Total size of the e-mail |
Priority | string | Importance of the e-mail |
Flags | string | Flag status of this mail (unread, replied, deleted ) |
MessageID | string | Unique id of e-mails |
PlainBody | string | Body formatted in plain text |
IsSent | bool | Is this a sent e-mail (not new) |
EMailSOInfo | EMailSOInfo | Glue between SuperOffice data and an e-mail. |
ServerId | int32 | Unique id for the e-mail on the server |
Attachments | array | |
CustomHeaderList | array | Non standard e-mail headers |
FolderName | string | Name of folder the e-mail belongs in |
EmailItemId | int32 | Primary key |
AccountId | int32 | Account Id |
ReceivedAt | date-time | Received date time |
InReplyTo | EMailEnvelope | The envelope of the email this email is a reply to, if it exists |
RepliedAt | date-time | When this email was replied at |
HasCalendarData | bool | If this email contains exactly one iCal appointment |
CalMethod | string | Method stored in the associated iCal appointment. Indicates if the iCal data is a reply, counter proposal etc. |
CalReplyStatus | string | Reply status stored in calendar data for the ical method is REPLY |
TableRight | TableRight | The carrier's table right |
FieldProperties | object | Field property dictionary mapping field names to field access rights. |
Sample request
POST /api/v1/Agents/EMail/GetMailFromMessageId
Authorization: Basic dGplMDpUamUw
Accept: application/json; charset=utf-8
Accept-Language: fr,de,ru,zh
Content-Type: application/json; charset=utf-8
{
"MessageId": "nihil"
}
Sample response
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"To": [
{
"ContactId": 363,
"ContactName": "Koelpin LLC",
"PersonId": 471,
"PersonName": "West, Wehner and Schulist",
"AssociateId": 779,
"Address": "corporis",
"EmailId": 401,
"DuplicatePersonIds": [
713,
955
],
"Name": "Feest Inc and Sons",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.String",
"FieldLength": 482
}
}
}
],
"Cc": [
{
"ContactId": 39,
"ContactName": "Kihn LLC",
"PersonId": 581,
"PersonName": "Harber, Hegmann and Waelchi",
"AssociateId": 367,
"Address": "qui",
"EmailId": 884,
"DuplicatePersonIds": [
555,
774
],
"Name": "Bergstrom, Watsica and Fay",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.String",
"FieldLength": 513
}
}
}
],
"Bcc": [
{
"ContactId": 788,
"ContactName": "Gottlieb Inc and Sons",
"PersonId": 164,
"PersonName": "Kiehn-Cruickshank",
"AssociateId": 266,
"Address": "quidem",
"EmailId": 912,
"DuplicatePersonIds": [
590,
957
],
"Name": "Pouros, Yundt and Pacocha",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.String",
"FieldLength": 618
}
}
}
],
"Subject": "dolores",
"HTMLBody": "consectetur",
"From": null,
"Sent": "2019-01-01T17:54:03.054585+01:00",
"Size": 247,
"Priority": "High",
"Flags": "Answered",
"MessageID": "rerum",
"PlainBody": "reprehenderit",
"IsSent": false,
"EMailSOInfo": null,
"ServerId": 430,
"Attachments": [
{
"Description": "Customer-focused demand-driven customer loyalty",
"Filename": "deleniti",
"Size": 852,
"Type": "nostrum",
"Encoding": "voluptatem",
"Id": "cumque",
"Disposition": "et",
"IsSafeFileExtension": false,
"Stream": "GIF89....File contents as raw bytes...",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.String",
"FieldLength": 854
}
}
}
],
"CustomHeaderList": [
{
"Name": "Wolf, Hoppe and O'Hara",
"Values": [
"amet",
"ut"
],
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.String",
"FieldLength": 195
}
}
},
{
"Name": "Wolf, Hoppe and O'Hara",
"Values": [
"amet",
"ut"
],
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.String",
"FieldLength": 195
}
}
}
],
"FolderName": "Flatley LLC",
"EmailItemId": 225,
"AccountId": 591,
"ReceivedAt": "2005-06-26T17:54:03.054585+02:00",
"InReplyTo": null,
"RepliedAt": "2003-01-24T17:54:03.054585+01:00",
"HasCalendarData": false,
"CalMethod": "Add",
"CalReplyStatus": "Accepted",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 123
}
}
}