# Ticket

#### **Example**

```json
{
	"id": 255762,
	"title": "New car price list.",
	"message": "Hello I want to buy a new car, how can I get a price list?",
	"htmlMessage": "<div id=\"sb-message-8dbf66986449599\" class=\"sb-html-message\">Hello I want to buy a new car, how can I get a price list?</div>",
	"author": {
		"email": "bill_smith@gmail.com",
		"id": "3561ab34-b6bd-4998-97e6-4ad5a58a89e8",
		"image": null,
		"isBot": false,
		"name": "Bill Smith",
		"status": "client"
	},
	"category": null,
	"creationTime": "2023-12-06T17:42:07.7888252+03:00",
    "customFields": [],
	"lastThreadElementCreationTime": "2023-12-06T17:42:07.7888252+03:00",
	"lockedBy": null,
	"originalLink": null,
	"properties": {
		"isAnonymized": false,
		"isMuted": false,
		"hasAttachments": true,
		"hasDraft": false,
		"isAssignedToBot": false,
		"isDeleted": false,
		"isExpired": false,
		"isHidden": false,
		"isLocked": false,
		"isSpam": false,
		"isSensitive": false
	},
	"replyCount": 0,
	"isMuted": false,
	"sentiment": "question",
	"source": "web",
	"detailedSource": "web_website",
	"sourceName": null,
	"status": "open",
	"tags": [],
	"attachments": [
		{
			"isContentPart": false,
			"name": "filename.png",
			"url": "https://your.attachment.url/filename.png"
		}
	]
}
```

#### Fields

<table><thead><tr><th width="291.3333333333333">Field</th><th>Type</th><th>Comments</th></tr></thead><tbody><tr><td>attachments</td><td>array of <a href="base-attachment">Base Attachment</a> models</td><td>Ticket attachments</td></tr><tr><td>author</td><td><a href="user">User</a> model</td><td>Ticket creator</td></tr><tr><td>category</td><td><a href="category">Category</a> model</td><td>Ticket category. If null ticket has no category</td></tr><tr><td>creationTime</td><td>string</td><td>Indicates the time when the ticket was created. Represent datetime string in ISO 8601 format</td></tr><tr><td>customFields</td><td>array of <a href="base-custom-field">array of Custom Field Id with Value models</a> models</td><td>Ticket custom fields</td></tr><tr><td>detailedSource</td><td><a href="../enumerations/detailed-ticket-source">Detailed Ticket Source</a> enumeration</td><td>Indicates detailed ticket source</td></tr><tr><td>htmlMessage</td><td>string</td><td>Ticket html content</td></tr><tr><td>id</td><td>integer</td><td>Unique ticket id</td></tr><tr><td>lastThreadElementCreationTime</td><td>string</td><td>Indicates the time when the most recent element in a thread was created. Represent datetime string in ISO 8601 format</td></tr><tr><td>lockedBy</td><td><a href="user">User</a> model</td><td>Teammate who assigned to the ticket</td></tr><tr><td>message</td><td>string</td><td>Ticket text content</td></tr><tr><td>originalLink</td><td>string</td><td>Permanent link or URL to the post if ticket created from SoMe source; if not, will be null</td></tr><tr><td>properties</td><td><a href="ticket-properties">Ticket Properties</a> model</td><td>Properties or attributes associated with a ticket</td></tr><tr><td>replyCount</td><td>integer</td><td>Indicates the total count of replies in the ticket</td></tr><tr><td>sentiment</td><td><a href="../enumerations/sentiment">Sentiment</a> enumeration</td><td>Ticket sentiment</td></tr><tr><td>source</td><td><a href="../enumerations/ticket-source">Ticket Source</a> enumeration</td><td>Indicates general ticket source</td></tr><tr><td>sourceName</td><td>string</td><td>Indicates the specific source where ticket from (e.g., page post, mention, group post, review, etc)</td></tr><tr><td>status</td><td><a href="../enumerations/ticket-status">Ticket Status</a> enumeration</td><td>Current ticket status</td></tr><tr><td>tags</td><td>array of strings</td><td>Attached ticket tags</td></tr><tr><td>title</td><td>string</td><td>Ticket title</td></tr></tbody></table>
