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.
NsApiSlow threshold: 2000 ms.
Query String Parameters
| Parameter Name | Type | Description |
|---|---|---|
| ticketMessageId | int32 | Required The identifier of the TicketMessage object |
| $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=393
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": 912,
"CreatedAt": "2003-04-16T02:30:47.9756861+02:00",
"Slevel": "External",
"Important": false,
"Author": "et",
"PersonId": 778,
"PersonFullName": "Vernon Schroeder",
"ContactId": 922,
"ContactName": "Mertz Group",
"ContactDepartment": "",
"NumAttachments": 118,
"EmailHeader": "ralph@oberbrunnersimonis.name",
"MessageHeaders": [
{
"Id": 400,
"Name": "Kling, Frami and Hessel",
"Value": "dolorum",
"StdItem": "CustomerReadFAQ",
"StdItemCol": "Name",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.String",
"FieldLength": 375
}
}
}
],
"Language": "distinctio",
"Sentiment": 821,
"SentimentConfidence": 749,
"CreatedBy": 282,
"ChangedAt": "2001-11-24T02:30:47.9756861+01:00",
"Badge": "Comment",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 779
}
}
}