POST Agents/Ticket/GetTicketMessage
Some tooltip text!
• 4 minutes to read
• 4 minutes to read
POST /api/v1/Agents/Ticket/GetTicketMessage
Gets a TicketMessage object.
Query String Parameters
Parameter Name | Type | Description |
---|---|---|
ticketMessageId | int32 | Required The primary key. |
$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/Ticket/GetTicketMessage?ticketMessageId=819
POST /api/v1/Agents/Ticket/GetTicketMessage?$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 |
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. |
Response:
OK
Response | Description |
---|---|
200 | OK |
Response body: TicketMessage
Property Name | Type | Description |
---|---|---|
TicketMessageId | int32 | The primary key (auto-incremented) |
CreatedAt | date-time | When the message was posted. |
Slevel | string | The securitylevel of the message. |
Important | bool | If this message is important or not. |
Author | string | A string representing the author of the message. Could be a user's name, or a persons email address. |
PersonId | int32 | Primary key |
PersonFullName | string | Get the persons full name (internal name used in clients for employees). |
ContactId | int32 | Primary key |
ContactName | string | Contact name |
ContactDepartment | string | Department |
NumAttachments | int32 | Number of attachments in the message |
EmailHeader | string | The email header is saved in this field as raw text |
MessageHeaders | array | Contains the message headers, like To, Cc, Bcc information, or custom headers |
Language | string | The language this message is in, based on some kind of analysis |
Sentiment | int32 | Sentiment index, 100 = completely happy; -100 = suicidally unhappy; 0 = no idea |
SentimentConfidence | int32 | Confidence of sentiment index, 0 = no idea, 100 = completely sure |
CreatedBy | int32 | The id of the user who posted the message. The value 1 (system user) for externally posted messages. |
ChangedAt | date-time | When the message was changed. |
Badge | string | Badge to explicitly determine how a message was generated |
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/Ticket/GetTicketMessage
Authorization: Basic dGplMDpUamUw
Accept: application/json; charset=utf-8
Accept-Language: en
Sample response
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"TicketMessageId": 613,
"CreatedAt": "2021-05-02T14:13:41.5790183+02:00",
"Slevel": "External",
"Important": false,
"Author": "aut",
"PersonId": 173,
"PersonFullName": "Cleo Montana Sporer DDS",
"ContactId": 192,
"ContactName": "Blick, Kulas and VonRueden",
"ContactDepartment": "",
"NumAttachments": 793,
"EmailHeader": "jerrell_gutmann@doyleharvey.us",
"MessageHeaders": [
{
"Id": 911,
"Name": "Osinski LLC",
"Value": "dignissimos",
"StdItem": "CustomerReadFAQ",
"StdItemCol": "Name",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 443
}
}
}
],
"Language": "et",
"Sentiment": 977,
"SentimentConfidence": 821,
"CreatedBy": 399,
"ChangedAt": "2014-01-03T14:13:41.5790183+01:00",
"Badge": "Comment",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 899
}
}
}