---
updatedAt: 2026-06-03T15:32:12.000Z
agentTools:
  projectIndex: https://docs.glassix.com/llms.txt
---

# Get

This endpoint returns a ticket by id.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.2",
    "title": "Glassix",
    "description": "Glassix REST API",
    "contact": {}
  },
  "servers": [
    {
      "description": "Production server",
      "url": "https://{workspace}.glassix.com/api/v1.2"
    }
  ],
  "security": [
    {
      "Bearer": []
    }
  ],
  "paths": {
    "/tickets/get/{ticketId}": {
      "get": {
        "operationId": "GET_tickets-get-ticketId",
        "summary": "Get",
        "tags": [
          "Tickets"
        ],
        "security": [
          {
            "Bearer": []
          }
        ],
        "description": "This endpoint returns a ticket by id.",
        "parameters": [
          {
            "name": "ticketId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success – ticket returned",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ticket"
                },
                "examples": {
                  "Success": {
                    "value": {
                      "id": 123456789,
                      "field1": "Tuscany vacation",
                      "field2": "3909 Saint James Drive, Chambersburg",
                      "field3": "string",
                      "field4": "string",
                      "field5": "string",
                      "field6": "string",
                      "field7": "string",
                      "field8": "string",
                      "field9": "string",
                      "field10": "string",
                      "culture": "en-US",
                      "tags": [
                        "string"
                      ],
                      "activityLogs": [
                        {
                          "state": "Closed",
                          "changedOn": "2025-09-29T13:09:13Z",
                          "initiatorUserId": "f4d56da7-f39f-4741-8c84-4b5b34e40ad3",
                          "userId": "f4d56da7-f39f-4741-8c84-4b5b34e40ad3",
                          "ticketType": "Regular",
                          "totalActivityTimeSec": null,
                          "totalActivityTimeSecNet": null
                        },
                        {
                          "state": "Open",
                          "changedOn": "2025-09-29T13:07:21Z",
                          "initiatorUserId": "f4d56da7-f39f-4741-8c84-4b5b34e40ad3",
                          "userId": "f4d56da7-f39f-4741-8c84-4b5b34e40ad3",
                          "ticketType": "Regular",
                          "totalActivityTimeSec": "00:01:52",
                          "totalActivityTimeSecNet": "00:01:52"
                        }
                      ],
                      "owner": {
                        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
                        "gender": "Undefined",
                        "UserName": "jayne.wick@glassix.com",
                        "culture": "en-US",
                        "isAnonymous": false,
                        "uniqueArgument": "string",
                        "type": "AGENT",
                        "fullName": "Jayne Wix",
                        "shortName": "Jayne",
                        "jobTitle": "Customer service manager.",
                        "status": "Online",
                        "roles": [
                          "MasterUser"
                        ]
                      },
                      "state": "Closed",
                      "open": "2019-08-24T14:15:22Z",
                      "close": "2019-08-24T14:15:22Z",
                      "lastActivity": "string",
                      "ticketType": "Regular",
                      "uniqueArgument": "string",
                      "primaryProtocolType": "SMS",
                      "details": {
                        "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36",
                        "iPAddress": "144.31.95.46",
                        "location": "Kansas City, MO, USA",
                        "source": {
                          "title": "My Landing Page",
                          "uri": "https://www.example.com/landing-page"
                        },
                        "externalLink": "https://na6.salesforce.com/sserv/casedetail.jsp?id=37946499377",
                        "identityTokenClaims": {
                          "myCustomClaim1": "9030087829",
                          "myCustomClaim2": "6718408204"
                        },
                        "referral": {
                          "utmParameters": {
                            "utm_source": "google",
                            "utm_medium": "cpc",
                            "utm_campaign": "spring_sale",
                            "utm_content": "running+shoes",
                            "utm_term": "logolink"
                          },
                          "adId": "",
                          "adTitle": "",
                          "productId": "",
                          "refData": "",
                          "fbPostId": ""
                        }
                      },
                      "participants": [
                        {
                          "id": 1,
                          "name": "John Wick",
                          "displayName": "",
                          "protocolType": "WhatsApp",
                          "subProtocolType": "Undefined",
                          "isActive": true,
                          "isDeleted": false,
                          "identifier": "12122001127",
                          "departmentIdentifier": "12029550133",
                          "type": "Client",
                          "contactId": "7a10856d-6d27-4a2a-a8e9-641d26566dab",
                          "userName": ""
                        }
                      ],
                      "transactions": [
                        {
                          "guidTransactionId": "753370ad-9b0a-4539-3483-c914f2bfbc43",
                          "dateTime": "2018-11-20T13:56:13",
                          "fromProtocolType": "Web",
                          "type": "Message",
                          "text": "Hello!",
                          "html": "<p>Hello!</p>",
                          "status": "Read",
                          "fromParticipant": {
                            "id": 1,
                            "name": "John Wick",
                            "displayName": "",
                            "protocolType": "Web",
                            "subProtocolType": "Undefined",
                            "isActive": true,
                            "isDeleted": false,
                            "identifier": "John.Whick@Gmail.com",
                            "type": "Client"
                          },
                          "attachments": [
                            {
                              "id": 1557,
                              "type": "Image",
                              "fileIdentifier": "201118135610uploadedimageklapzqep.jpg",
                              "originalFileName": "UPLOADED_IMAGE.jpg",
                              "thumbnails": [
                                "https://glassix-test.s3.eu-central-1.amazonaws.com/thumbnail_201118135610uploadedimageklapzqep.jpg?X-Amz-Expires=10800&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJIFZS27UMTE47NXA/20181120/eu-central-1/s3/aws4_request&X-Amz-Date=20181120T140436Z&X-Amz-SignedHeaders=host&X-Amz-Signature=766df921e38312c96621e63150df3143a4570c532670404ce6ba2982886c69ca"
                              ],
                              "uri": "https://glassix-test.s3.eu-central-1.amazonaws.com/201118135610uploadedimageklapzqep.jpg?X-Amz-Expires=10800&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJIFZS27UMTE47NXA/20181120/eu-central-1/s3/aws4_request&X-Amz-Date=20181120T140436Z&X-Amz-SignedHeaders=host&X-Amz-Signature=8b17ad1960aa0302b8071bbf0ac51dec0c79cacc2b9bec7ae9aff7ad1c337258"
                            }
                          ]
                        }
                      ],
                      "departmentId": "a3452d1e-b055-4677-aa66-858ddc0a1f59",
                      "movedToTicketId": 0,
                      "movedToDepartmentId": "dc833104-b343-4531-8ca5-64f655f2d25e",
                      "firstCustomerMessageDateTime": "2019-08-24T14:15:22Z",
                      "firstAgentMessageDateTime": "2019-08-24T14:15:22Z",
                      "lastCustomerMessageDateTime": "2019-08-24T14:15:22Z",
                      "queueTimeGross": "14:15:22Z",
                      "queueTimeNet": "14:15:22Z",
                      "firstAgentResponseTimeGross": "14:15:22Z",
                      "firstAgentResponseTimeNet": "14:15:22Z",
                      "agentAssignToResponseTimeGross": "14:15:22Z",
                      "agentAssignToResponseTimeNet": "14:15:22Z",
                      "agentMediaCount": 0,
                      "customerMediaCount": 0,
                      "agentMessagesCount": 0,
                      "customerMessagesCount": 0,
                      "durationNet": "14:15:22Z",
                      "durationGross": "14:15:22Z",
                      "agentResponseAverageTimeNet": "14:15:22Z",
                      "agentCannedRepliesCount": 0,
                      "botConversationSteps": [
                        {
                          "departmentId": "824b4850-b24c-45ed-8d41-c740ad2618bf",
                          "botConversationId": "cf08810e-9a28-4bc3-a966-b3bc75b5bbf0",
                          "flowId": "b778d230-05f5-460d-bb85-da15b78d9c9d",
                          "flowVersion": 1.02,
                          "flowName": "New Customer",
                          "stepType": "Card",
                          "uniqueCardId": "396f876e-f6ec-4bad-ad8f-3115ec20310a",
                          "cardFriendlyName": "Main",
                          "visitDatetime": "2023-05-08T06:46:06.321Z"
                        },
                        {
                          "departmentId": "824b4850-b24c-45ed-8d41-c740ad2618bf",
                          "botConversationId": "cf08810e-9a28-4bc3-a966-b3bc75b5bbf0",
                          "flowId": "b778d230-05f5-460d-bb85-da15b78d9c9d",
                          "flowVersion": 1.02,
                          "flowName": "New Customer",
                          "stepType": "Card",
                          "uniqueCardId": "6fb43139-e5c8-4621-a3ba-2ce75d027903",
                          "cardFriendlyName": "Destination",
                          "visitDatetime": "2023-05-08T06:46:09.409Z"
                        },
                        {
                          "departmentId": "824b4850-b24c-45ed-8d41-c740ad2618bf",
                          "botConversationId": "cf08810e-9a28-4bc3-a966-b3bc75b5bbf0",
                          "flowId": "b778d230-05f5-460d-bb85-da15b78d9c9d",
                          "flowVersion": 1.02,
                          "flowName": "New Customer",
                          "stepType": "Card",
                          "uniqueCardId": "3b6aa064-72bf-46c4-b177-b3e045f68b72",
                          "cardFriendlyName": "Name",
                          "visitDatetime": "2023-05-08T06:46:28.688Z"
                        },
                        {
                          "departmentId": "824b4850-b24c-45ed-8d41-c740ad2618bf",
                          "botConversationId": "cf08810e-9a28-4bc3-a966-b3bc75b5bbf0",
                          "flowId": "b778d230-05f5-460d-bb85-da15b78d9c9d",
                          "flowVersion": 1.02,
                          "flowName": "New Customer",
                          "stepType": "Card",
                          "uniqueCardId": "ca643a8d-4b68-4fd7-bb54-f4296b969e67",
                          "cardFriendlyName": "Mail address",
                          "visitDatetime": "2023-05-08T06:46:50.979Z"
                        },
                        {
                          "departmentId": "824b4850-b24c-45ed-8d41-c740ad2618bf",
                          "botConversationId": "cf08810e-9a28-4bc3-a966-b3bc75b5bbf0",
                          "flowId": "b778d230-05f5-460d-bb85-da15b78d9c9d",
                          "flowVersion": 1.02,
                          "flowName": "New Customer",
                          "stepType": "Card",
                          "uniqueCardId": "e826a500-a617-4de2-aced-3a0b1d2debb1",
                          "cardFriendlyName": "Thanks",
                          "visitDatetime": "2023-05-08T06:47:05.721Z"
                        },
                        {
                          "departmentId": "824b4850-b24c-45ed-8d41-c740ad2618bf",
                          "botConversationId": "cf08810e-9a28-4bc3-a966-b3bc75b5bbf0",
                          "flowId": "b778d230-05f5-460d-bb85-da15b78d9c9d",
                          "flowVersion": 1.02,
                          "flowName": "New Customer",
                          "stepType": "SesionOpened",
                          "uniqueCardId": "00000000-0000-0000-0000-000000000000",
                          "cardFriendlyName": null,
                          "visitDatetime": "2023-05-08T06:47:06.051Z"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "user doesn't exist": {
                    "value": {
                      "message": "No ticket was found with the ticketId: 123456789"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ticket": {
        "title": "Ticket",
        "type": "object",
        "description": "Tickets are the means through which your end users (customers) communicate with agents on Glassix. \nTickets can originate from a number of channels, including email, chat, SMS, Facebook messenger, or the API.\nEach ticket consists of all the messages sent between all Participants.",
        "x-example": {
          "value": {
            "id": 13783,
            "departmentId": "824b4850-b24c-45ed-8d41-c740ad2618bf",
            "field1": "Tuscany vacation",
            "field2": "3909  Saint James Drive, Chambersburg",
            "field3": "",
            "field4": "",
            "field5": "",
            "field6": "",
            "field7": "",
            "field8": "",
            "field9": "",
            "field10": "",
            "culture": "en-US",
            "tags": [
              "Vacation"
            ],
            "activityLogs": [
              {
                "state": "Closed",
                "changedOn": "2025-09-29T13:09:13Z",
                "initiatorUserId": "f4d56da7-f39f-4741-8c84-4b5b34e40ad3",
                "userId": "f4d56da7-f39f-4741-8c84-4b5b34e40ad3",
                "ticketType": "Regular",
                "totalActivityTimeSec": null,
                "totalActivityTimeSecNet": null
              },
              {
                "state": "Open",
                "changedOn": "2025-09-29T13:07:21Z",
                "initiatorUserId": "f4d56da7-f39f-4741-8c84-4b5b34e40ad3",
                "userId": "f4d56da7-f39f-4741-8c84-4b5b34e40ad3",
                "ticketType": "Regular",
                "totalActivityTimeSec": "00:01:52",
                "totalActivityTimeSecNet": "00:01:52"
              }
            ],
            "owner": {
              "id": "648370ad-8c0a-4809-8373-d914f2bfbc36",
              "gender": "Male",
              "UserName": "john.wick@glassix.com",
              "culture": "en-US",
              "isAnonymous": false,
              "uniqueArgument": "",
              "type": "AGENT"
            },
            "state": "Open",
            "open": "2018-11-26T19:42:53.15",
            "close": "0001-01-01T00:00:00",
            "lastActivity": "2018-11-27T16:42:53.15",
            "uniqueArgument": "",
            "primaryProtocolType": "Web",
            "details": {
              "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36",
              "iPAddress": "144.31.95.46",
              "location": "Kansas City, MO, USA",
              "source": {
                "title": "",
                "uri": ""
              },
              "referral": {
                "utmParameters": {
                  "utm_source": "facebook",
                  "utm_medium": "banner",
                  "utm_campaign": "product launch",
                  "utm_content": "bottom button",
                  "utm_term": "textlink"
                },
                "adId": "",
                "adTitle": "",
                "productId": "",
                "refData": "",
                "fbPostId": ""
              }
            },
            "participants": [
              {
                "id": 1,
                "name": "Jack Bower",
                "displayName": "",
                "protocolType": "Web",
                "subProtocolType": "Undefined",
                "isActive": true,
                "isDeleted": false,
                "identifier": "",
                "type": "Client",
                "userName": ""
              },
              {
                "id": 2,
                "name": "John Wick",
                "displayName": "John",
                "protocolType": "Web",
                "subProtocolType": "Undefined",
                "isActive": true,
                "isDeleted": false,
                "identifier": "648370ad-8c0a-4809-8373-d914f2bfbc36",
                "type": "User",
                "userName": "john.wick@glassix.com"
              }
            ],
            "transactions": [
              {
                "guidTransactionId": "b2979cc0-82a6-47e1-9cc1-ec71220648d8",
                "dateTime": "2018-11-26T19:44:30",
                "fromProtocolType": "Web",
                "type": "Message",
                "text": "Hi Jack,\nIm sorry, but currently we dont have anything in Italy.",
                "html": "<head></head><body><p>Hi Jack,</p><p>I'm sorry, but currently we don't have anything in Italy.</p></body>",
                "status": "Delivered",
                "fromParticipant": {
                  "id": 3,
                  "name": "John Wick",
                  "displayName": "John",
                  "protocolType": "Web",
                  "subProtocolType": "Undefined",
                  "isActive": true,
                  "isDeleted": false,
                  "identifier": "d27d25e9-jfc2-461e-13bf-36180a61cd0e",
                  "type": "User"
                },
                "attachments": []
              },
              {
                "guidTransactionId": "0f6daf80-6dd8-4c9d-8c2b-2eef8129236f",
                "dateTime": "2018-11-26T19:42:54",
                "fromProtocolType": "Web",
                "type": "Message",
                "text": "Hi,\nI'm look for a vacation package in Tuscany.",
                "html": "",
                "status": "Read",
                "fromParticipant": {
                  "id": 1,
                  "name": "Jack Bower",
                  "displayName": "",
                  "protocolType": "Web",
                  "subProtocolType": "Undefined",
                  "isActive": true,
                  "isDeleted": false,
                  "identifier": "",
                  "type": "Client"
                },
                "attachments": []
              },
              {
                "guidTransactionId": "26cbf03f-9b8f-47da-a214-8e3977903823",
                "dateTime": "2018-11-26T19:42:53",
                "fromProtocolType": "Web",
                "type": "IntroductionMessage",
                "text": "Hello! How may we assist you today?",
                "html": "",
                "status": "Read",
                "fromParticipant": {
                  "id": 2,
                  "name": "John Wick",
                  "displayName": "John",
                  "protocolType": "Web",
                  "subProtocolType": "Undefined",
                  "isActive": false,
                  "isDeleted": false,
                  "identifier": "d27d25e9-jfc2-461e-13bf-36180a61cd0e",
                  "type": "User"
                },
                "attachments": []
              },
              {
                "guidTransactionId": "0932b960-c423-48e8-b914-d74daef6a309",
                "dateTime": "2018-11-26T19:42:53",
                "fromProtocolType": "Undefined",
                "type": "TicketOpened",
                "text": "",
                "html": "",
                "status": "Read",
                "fromParticipant": {
                  "id": 0,
                  "name": "",
                  "displayName": null,
                  "protocolType": "Undefined",
                  "subProtocolType": "Undefined",
                  "isActive": true,
                  "isDeleted": false,
                  "identifier": "00000000-0000-0000-0000-000000000000",
                  "type": "System"
                },
                "attachments": []
              }
            ]
          }
        },
        "required": [
          "id",
          "culture",
          "participants"
        ],
        "properties": {
          "id": {
            "type": "integer",
            "description": "Unique identifier for a ticket.",
            "example": 123456789
          },
          "departmentId": {
            "type": "string",
            "format": "uuid",
            "description": "The department this ticket belongs to. (this value is the same as the apiKey)"
          },
          "field1": {
            "type": "string",
            "description": "Free text field for ticket subject.",
            "maxLength": 120,
            "example": "Tuscany vacation"
          },
          "field2": {
            "type": "string",
            "description": "Dynamic field",
            "maxLength": 120,
            "example": "3909 Saint James Drive, Chambersburg"
          },
          "field3": {
            "type": "string",
            "description": "Dynamic field",
            "maxLength": 120
          },
          "field4": {
            "type": "string",
            "description": "Dynamic field",
            "maxLength": 4000
          },
          "field5": {
            "type": "string",
            "description": "Dynamic field",
            "maxLength": 120
          },
          "field6": {
            "type": "string",
            "description": "Dynamic field",
            "maxLength": 120
          },
          "field7": {
            "type": "string",
            "description": "Dynamic field",
            "maxLength": 120
          },
          "field8": {
            "type": "string",
            "description": "Dynamic field",
            "maxLength": 120
          },
          "field9": {
            "type": "string",
            "description": "Dynamic field",
            "maxLength": 120
          },
          "field10": {
            "type": "string",
            "description": "Dynamic field",
            "maxLength": 120
          },
          "culture": {
            "$ref": "#/components/schemas/cultureField"
          },
          "ticketType": {
            "type": "string",
            "description": "Determans whether the ticket is with an agent a bot or a Glassix bot based on the owner.",
            "enum": [
              "Regular",
              "Bot",
              "GlassixBot"
            ],
            "example": "Regular"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "activityLogs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/activityLog"
            }
          },
          "owner": {
            "$ref": "#/components/schemas/user"
          },
          "state": {
            "type": "string",
            "enum": [
              "Closed",
              "Open",
              "Snoozed",
              "Pending"
            ],
            "description": "The state of the ticket"
          },
          "open": {
            "type": "string",
            "format": "date-time",
            "description": "The date and time of when this ticket was opened. UTC"
          },
          "close": {
            "type": "string",
            "description": "The date and time of when this ticket was closed. UTC",
            "format": "date-time"
          },
          "lastActivity": {
            "type": "string"
          },
          "uniqueArgument": {
            "$ref": "#/components/schemas/uniqueArgumentField"
          },
          "details": {
            "$ref": "#/components/schemas/details"
          },
          "primaryProtocolType": {
            "$ref": "#/components/schemas/protocolTypeField"
          },
          "movedToTicketId": {
            "type": "integer",
            "description": "New ticket id after cloning to another department"
          },
          "movedToDepartmentId": {
            "type": "string",
            "format": "uuid",
            "description": "This ticket was moved to another department with this id"
          },
          "movedFromTicketId": {
            "type": "integer",
            "x-stoplight": {
              "id": "2hwwm44du2opd"
            },
            "description": "The ticket Id of the original ticket before cloning to this department."
          },
          "movedFromDepartmentId": {
            "type": "string",
            "format": "uuid",
            "description": "This ticket was moved from another department with this id",
            "x-stoplight": {
              "id": "fx2z2ugbru2zm"
            }
          },
          "firstCustomerMessageDateTime": {
            "type": "string",
            "format": "date-time",
            "description": "The first time a customer has sent a message"
          },
          "firstAgentMessageDateTime": {
            "type": "string",
            "format": "date-time",
            "description": "The first time an agent has sent a message"
          },
          "firstAgentMessageUserId": {
            "type": "string",
            "format": "date-time",
            "description": "The first time an agent has sent a message",
            "x-stoplight": {
              "id": "xo7r37u2t2vv8"
            }
          },
          "agentAssignToResponseTimeGross": {
            "type": "string",
            "format": "time",
            "description": "Owner's response time to the customer’s first inbound message during working hours  (inbound tickets only)"
          },
          "agentAssignToResponseTimeNet": {
            "type": "string",
            "format": "time",
            "description": "Owner’s net response time to the customer’s first inbound message during working hours  (inbound tickets only)"
          },
          "lastCustomerMessageDateTime": {
            "type": "string",
            "format": "date-time",
            "description": "The last time a customer has sent a message"
          },
          "lastAgentMessageDateTime": {
            "type": "string",
            "x-stoplight": {
              "id": "ubd4uc2cxtj2q"
            },
            "format": "date-time",
            "description": "The last time an agent has sent a message"
          },
          "queueTimeGross": {
            "type": "string",
            "format": "time",
            "description": "Total time ticket was un-assigned "
          },
          "queueTimeNet": {
            "type": "string",
            "format": "time",
            "description": "Total net time ticket was un-assigned during working hours"
          },
          "firstAgentResponseTimeGross": {
            "type": "string",
            "format": "time",
            "description": "Agent’s gross response time to the customer’s first inbound message (inbound tickets only)"
          },
          "firstAgentResponseTimeNet": {
            "type": "string",
            "format": "time",
            "description": "Agent’s net response time to the customer’s first inbound message during working hours  (inbound tickets only)"
          },
          "firstAgentAllocationTimestamp": {
            "type": "string",
            "format": "time",
            "description": "The timestamp of the first time the ticket was assigned to an agent.",
            "x-stoplight": {
              "id": "lfxboamm3pv33"
            }
          },
          "lastAgentAllocationTimestamp": {
            "type": "string",
            "format": "time",
            "description": "The timestamp of the last time the ticket was assigned to an agent.",
            "x-stoplight": {
              "id": "ade92jowcunq9"
            }
          },
          "agentMediaCount": {
            "type": "integer",
            "description": "How many images, files etc were sent by agents in this ticket"
          },
          "customerMediaCount": {
            "type": "integer",
            "description": "How many images, files etc were sent by customers in this ticket"
          },
          "agentMessagesCount": {
            "type": "integer",
            "description": "How many messages were sent by agents in this ticket"
          },
          "customerMessagesCount": {
            "type": "integer",
            "description": "How many messages were sent by customers in this ticket"
          },
          "durationNet": {
            "type": "string",
            "format": "time",
            "description": "Total net ticket’s duration of this ticket from ticket open to closure during working hours"
          },
          "durationGross": {
            "type": "string",
            "format": "time",
            "description": "Total ticket’s duration from ticket open to closure"
          },
          "agentResponseAverageTimeNet": {
            "type": "string",
            "format": "time",
            "description": "The net average response time it took to the agent to respond for each message sent by the customer from ticket open to closure during working hours"
          },
          "totalConversationTimeNet": {
            "type": "string",
            "format": "time",
            "description": "The total time of the conversation.",
            "x-stoplight": {
              "id": "w6ypumzdzwc85"
            }
          },
          "agentCannedRepliesCount": {
            "type": "integer",
            "description": "How many canned replies did the agent sent in this ticket"
          },
          "botConversationId": {
            "type": "string",
            "x-stoplight": {
              "id": "daqkikav8ndyp"
            },
            "format": "uuid",
            "description": "The ID of the last bot conversation in this ticket. A bot conversation is any communication with a bot in a ticket."
          },
          "botConversations": {
            "type": "array",
            "x-stoplight": {
              "id": "50oh37d0hh56w"
            },
            "description": "A list of IDs of all bot conversations in this ticket. Multiple bot conversations can happen when, for example, an agent uses an In-Conversation Assistant.",
            "items": {
              "x-stoplight": {
                "id": "rnxkf2nk4k2fs"
              },
              "type": "string",
              "format": "uuid"
            }
          },
          "isIncoming": {
            "type": "boolean",
            "x-stoplight": {
              "id": "u8cp3mr7l49pf"
            },
            "description": "Whether this ticket opened by an end-user"
          },
          "isScrambled": {
            "type": "boolean",
            "x-stoplight": {
              "id": "0sh6ytd3kby46"
            },
            "description": "Has this ticket been scrambled using the /tickets/scramble endpoint"
          },
          "participants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/participant"
            }
          },
          "transactions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/transaction"
            }
          },
          "dynamicParameters": {
            "x-stoplight": {
              "id": "bteu3ujsrmjw6"
            },
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/dynamic-parameter"
            }
          },
          "botConversationSteps": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/botConversationSteps"
            }
          },
          "ticketSummary": {
            "type": "object",
            "x-stoplight": {
              "id": "bz7pavpund1gc"
            },
            "description": "An object containing the ticket's summary. Will display both user-generated and AI-generated summaries (when available).",
            "properties": {
              "userId": {
                "type": "string",
                "x-stoplight": {
                  "id": "z41pfa11rp878"
                },
                "example": "648370ad-8c0a-4809-8373-d914f2bfbc36",
                "format": "uuid",
                "description": "ID of the user who created this summary. If the summary is AI-generated, this is the ID of the user who accepted the AI-suggested summary."
              },
              "lastUpdateTimestamp": {
                "type": "string",
                "x-stoplight": {
                  "id": "8xlb5ovs0t3lz"
                },
                "format": "date-time",
                "description": "Timestamp of the last time the summary was updated."
              },
              "value": {
                "type": "string",
                "x-stoplight": {
                  "id": "m26ztz6xurvsi"
                },
                "description": "The text of the summary."
              }
            }
          },
          "nestedTicketsIds": {
            "type": "array",
            "x-stoplight": {
              "id": "iu1diuw3b5czf"
            },
            "description": "A list of ticket IDs of all nested conversations within this ticket.",
            "items": {
              "x-stoplight": {
                "id": "erp68m1aqr392"
              },
              "type": "integer"
            }
          },
          "parentNestedTicketId": {
            "type": "integer",
            "x-stoplight": {
              "id": "c8oauz0036lns"
            },
            "description": "If this ticket is itself a nested conversation, contains the ticket ID of the ticket under which this ticket is nested."
          },
          "wasClosedAutomatically": {
            "type": "boolean",
            "x-stoplight": {
              "id": "1o4a8idrhn77r"
            },
            "description": "Whether this ticket was closed by an automation (rather than an agent)."
          },
          "transactionsCount": {
            "type": "integer",
            "x-stoplight": {
              "id": "ut3d4kyg7stjh"
            },
            "description": "Number of transactions in this ticket. The transactions themselves are in the transactions array, above."
          }
        }
      },
      "participant": {
        "title": "Participant",
        "type": "object",
        "description": "A participant is someone who belongs to a specific ticket. Each ticket has at least 2 participants, who can be either an agent or a customer.",
        "example": {
          "id": 1,
          "name": "John Wick",
          "displayName": "",
          "protocolType": "WhatsApp",
          "subProtocolType": "Undefined",
          "isActive": true,
          "isDeleted": false,
          "identifier": "12122001127",
          "departmentIdentifier": "12029550133",
          "type": "Client",
          "contactId": "7a10856d-6d27-4a2a-a8e9-641d26566dab",
          "userName": ""
        },
        "x-examples": {
          "example-1": {
            "id": 1,
            "name": "John Wick",
            "displayName": "",
            "protocolType": "WhatsApp",
            "subProtocolType": "Undefined",
            "isActive": true,
            "isDeleted": false,
            "identifier": "12122001127",
            "departmentIdentifier": "12029550133",
            "type": "Client",
            "contactId": "7a10856d-6d27-4a2a-a8e9-641d26566dab",
            "userName": ""
          }
        },
        "properties": {
          "id": {
            "type": "integer",
            "description": "Participant Id in the ticket."
          },
          "type": {
            "type": "string",
            "enum": [
              "Client",
              "User"
            ],
            "default": "Client",
            "description": "Client is the end user you're comunicating with.\nUser is a Glassix agent. This is used in cases where you want to add agent participants that are not the owners of the ticket or a conversation between agents only."
          },
          "name": {
            "type": "string",
            "description": "The name of the participant."
          },
          "displayName": {
            "type": "string",
            "description": "The name that will be displayed for the customer."
          },
          "protocolType": {
            "$ref": "#/components/schemas/protocolTypeField"
          },
          "subProtocolType": {
            "$ref": "#/components/schemas/subProtocolTypeField"
          },
          "identifier": {
            "description": "The identifier of the customer.",
            "type": "string"
          },
          "isActive": {
            "type": "boolean",
            "default": true,
            "description": "Switch to determan if the particiapnt is active in the conversation."
          },
          "isDeleted": {
            "type": "boolean",
            "default": false,
            "description": "Switch to determan if the particiapnt is deleted from the conversation."
          },
          "departmentIdentifier": {
            "type": "string",
            "description": "The identifier of the department. If blank for WhatsApp or SMS, Glassix selects a random number."
          },
          "contactId": {
            "type": "string",
            "format": "uuid",
            "description": "The Glassix contact id of this participant.If you don't know it keep this field empty.",
            "example": "618580ff-ed85-4297-973b-7c0d09385cfe"
          },
          "userName": {
            "type": "string",
            "description": "Relevant only to agent participants."
          }
        },
        "required": [
          "type",
          "protocolType",
          "identifier"
        ]
      },
      "transaction": {
        "title": "Transaction",
        "type": "object",
        "description": "A Transaction represents an event that happened in a ticket such as a message, ticket state change, ticket was assigned to another agent and more.",
        "properties": {
          "guidTransactionId": {
            "type": "string",
            "format": "uuid"
          },
          "dateTime": {
            "type": "string",
            "description": "The date and time this transaction was created"
          },
          "fromProtocolType": {
            "$ref": "#/components/schemas/protocolTypeField"
          },
          "type": {
            "$ref": "#/components/schemas/transactionTypeField"
          },
          "text": {
            "type": "string"
          },
          "html": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/statusField"
          },
          "fromParticipant": {
            "$ref": "#/components/schemas/participant"
          },
          "attachments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/attachment"
            }
          }
        },
        "example": {
          "guidTransactionId": "753370ad-9b0a-4539-3483-c914f2bfbc43",
          "dateTime": "2018-11-20T13:56:13",
          "fromProtocolType": "Web",
          "type": "Message",
          "text": "Hello!",
          "html": "<p>Hello!</p>",
          "status": "Read",
          "fromParticipant": {
            "id": 1,
            "name": "John Wick",
            "displayName": "",
            "protocolType": "Web",
            "subProtocolType": "Undefined",
            "isActive": true,
            "isDeleted": false,
            "identifier": "John.Whick@Gmail.com",
            "type": "Client"
          },
          "attachments": [
            {
              "id": 1557,
              "type": "Image",
              "fileIdentifier": "201118135610uploadedimageklapzqep.jpg",
              "originalFileName": "UPLOADED_IMAGE.jpg",
              "thumbnails": [
                "https://glassix-test.s3.eu-central-1.amazonaws.com/thumbnail_201118135610uploadedimageklapzqep.jpg?X-Amz-Expires=10800&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJIFZS27UMTE47NXA/20181120/eu-central-1/s3/aws4_request&X-Amz-Date=20181120T140436Z&X-Amz-SignedHeaders=host&X-Amz-Signature=766df921e38312c96621e63150df3143a4570c532670404ce6ba2982886c69ca"
              ],
              "uri": "https://glassix-test.s3.eu-central-1.amazonaws.com/201118135610uploadedimageklapzqep.jpg?X-Amz-Expires=10800&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJIFZS27UMTE47NXA/20181120/eu-central-1/s3/aws4_request&X-Amz-Date=20181120T140436Z&X-Amz-SignedHeaders=host&X-Amz-Signature=8b17ad1960aa0302b8071bbf0ac51dec0c79cacc2b9bec7ae9aff7ad1c337258"
            }
          ]
        }
      },
      "attachment": {
        "title": "Attachment",
        "type": "object",
        "example": {
          "id": 1557,
          "type": "Image",
          "fileIdentifier": "201118135610uploadedimageklapzqep.jpg",
          "originalFileName": "UPLOADED_IMAGE.jpg",
          "thumbnails": [
            "https://glassix-test.s3.eu-central-1.amazonaws.com/thumbnail_201118135610uploadedimageklapzqep.jpg?X-Amz-Expires=10800&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJIFZS27UMTE47NXA/20181120/eu-central-1/s3/aws4_request&X-Amz-Date=20181120T140436Z&X-Amz-SignedHeaders=host&X-Amz-Signature=766df921e38312c96621e63150df3143a4570c532670404ce6ba2982886c69ca"
          ],
          "uri": "https://glassix-test.s3.eu-central-1.amazonaws.com/201118135610uploadedimageklapzqep.jpg?X-Amz-Expires=10800&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJIFZS27UMTE47NXA/20181120/eu-central-1/s3/aws4_request&X-Amz-Date=20181120T140436Z&X-Amz-SignedHeaders=host&X-Amz-Signature=8b17ad1960aa0302b8071bbf0ac51dec0c79cacc2b9bec7ae9aff7ad1c337258"
        },
        "description": "An Attachment is part of a transaction, for example an image sent along with a message from a customer.",
        "properties": {
          "id": {
            "type": "integer"
          },
          "type": {
            "type": "string",
            "description": "The type of the attachment",
            "enum": [
              "Image",
              "Video",
              "Document",
              "File",
              "Solution",
              "InteractiveDocument",
              "Audio"
            ]
          },
          "fileIdentifier": {
            "type": "string",
            "description": "The file name"
          },
          "originalFileName": {
            "type": "string",
            "description": "The original of the file. An email was sent with the file name \"example-image.jpg\", then the original file name will be \"example-image.jpg\". The fileIdentifier will be a random file name"
          },
          "thumbnails": {
            "type": "array",
            "description": "Thumbnails that were created for that file. A thumbnail of a video will be a frame from the video. A thumbnail for a PDF file will be the first page.",
            "items": {
              "type": "string",
              "format": "uri"
            }
          },
          "uri": {
            "type": "string",
            "format": "uri",
            "description": "The uri of this file.\nNote that this uri has an expiry of 3 hours."
          },
          "isEmbedded": {
            "type": "boolean",
            "description": "If true, the file is embedded in the message and doesn't count as an inbound/outbound attachment.\nIf false, the file is attached to the message and counted in the inbound/outbound attachments."
          }
        }
      },
      "details": {
        "title": "Details",
        "type": "object",
        "description": "Additional details about this ticket. You can set the details object either when [creating a ticket](https://docs.glassix.com/reference/create-ticket) or when [updating existing ticket](https://docs.glassix.com/reference/setfields).",
        "example": {
          "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36",
          "iPAddress": "144.31.95.46",
          "location": "Kansas City, MO, USA",
          "source": {
            "title": "My Landing Page",
            "uri": "https://www.example.com/landing-page"
          },
          "externalLink": "https://na6.salesforce.com/sserv/casedetail.jsp?id=37946499377",
          "identityTokenClaims": {
            "myCustomClaim1": "9030087829",
            "myCustomClaim2": "6718408204"
          },
          "referral": {
            "utmParameters": {
              "utm_source": "google",
              "utm_medium": "cpc",
              "utm_campaign": "spring_sale",
              "utm_content": "running+shoes",
              "utm_term": "logolink"
            },
            "adId": "",
            "adTitle": "",
            "productId": "",
            "refData": "",
            "fbPostId": ""
          }
        },
        "properties": {
          "userAgent": {
            "type": "string",
            "description": "The user agent of the customer."
          },
          "iPAddress": {
            "type": "string",
            "description": "The IP of the customer."
          },
          "location": {
            "type": "string",
            "description": "City, State, Country etc."
          },
          "source": {
            "type": "object",
            "description": "The source from which this ticket was opened. Can be a website address, a Facebook page, etc.",
            "properties": {
              "title": {
                "type": "string",
                "description": "Source title."
              },
              "uri": {
                "type": "string",
                "description": "Source URI",
                "format": "uri"
              }
            }
          },
          "externalLink": {
            "type": "string",
            "description": "Link to the CRM ticket (referenced in the unique argument) or any other link you want the agent to see with the ticket details."
          },
          "identityTokenClaims": {
            "type": "object",
            "properties": {
              "myCustomClaim1": {
                "type": "string"
              },
              "myCustomClaim2": {
                "type": "string"
              }
            }
          },
          "referral": {
            "type": "object",
            "properties": {
              "utmParameters": {
                "type": "object",
                "description": "UTM parameters are just short pieces of code (starts with utm_) you can add to links. They include information about the link’s placement and purpose, making it easier to track clicks and traffic.",
                "properties": {
                  "utm_source": {
                    "type": "string"
                  },
                  "utm_medium": {
                    "type": "string"
                  },
                  "utm_campaign": {
                    "type": "string"
                  },
                  "utm_content": {
                    "type": "string"
                  },
                  "utm_term": {
                    "type": "string"
                  }
                }
              },
              "adId": {
                "type": "string",
                "description": "Facebook ad/Instagram ad id that this ticket originated from."
              },
              "adTitle": {
                "type": "string",
                "description": "Facebook ad/Instagram ad title that this ticket originated from."
              },
              "productId": {
                "type": "string",
                "description": "Product ID from the Ad the user is interested in."
              },
              "refData": {
                "type": "string",
                "description": "Data passed as a query string to messenger links. http://m.me/<PAGE_NAME>?ref=<REF_PARAM> https://developers.facebook.com/docs/messenger-platform/discovery/m-me-links"
              },
              "fbPostId": {
                "type": "string",
                "description": "The fb post id of the ad."
              },
              "instagramStoryId": {
                "type": "string",
                "x-stoplight": {
                  "id": "g7qpbslq1f8z4"
                }
              },
              "instagramStoryMediaUrl": {
                "type": "string",
                "x-stoplight": {
                  "id": "g7qpbslq1f8z4"
                }
              },
              "appleIntentId": {
                "type": "string",
                "x-stoplight": {
                  "id": "g7qpbslq1f8z4"
                }
              },
              "appleGroupId": {
                "type": "string",
                "x-stoplight": {
                  "id": "g7qpbslq1f8z4"
                }
              },
              "twitterRootTweetId": {
                "type": "string",
                "x-stoplight": {
                  "id": "g7qpbslq1f8z4"
                }
              }
            }
          },
          "isMobile": {
            "type": "boolean",
            "description": "Was this ticket opened on the mobile. This value is valid only for chat tickets."
          }
        }
      },
      "dynamic-parameter": {
        "type": "object",
        "title": "Dynamic parameter",
        "description": "Custom-made parameters that are defined by the department. The values for these parameters will be collected during a chatbot conversation.",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "The id of the parameter."
          },
          "flowId": {
            "type": "string",
            "format": "uuid",
            "description": "The flow Id on which this parameter was defined."
          },
          "name": {
            "type": "string",
            "description": "The parameter name."
          },
          "strValue": {
            "type": "string",
            "description": "String data that was filled by the customer during the chatbot conversation."
          },
          "boolValue": {
            "type": "boolean",
            "description": "Boolean data that was filled by the customer during the chatbot conversation."
          },
          "numValue": {
            "type": "number",
            "description": "Number data that was filled by the customer during the chatbot conversation."
          },
          "type": {
            "type": "string",
            "description": "The expected type of the data that is stored on the value property of this parameter.",
            "enum": [
              "String",
              "Number",
              "Boolean",
              "Location",
              "Attachment"
            ]
          },
          "creationDatetime": {
            "type": "string",
            "format": "date-time",
            "description": "ISO-8601-formatted datetime of the creation date; as UTC.",
            "example": "2021-12-30T08:58:27Z"
          }
        }
      },
      "user": {
        "title": "User",
        "type": "object",
        "description": "A user represents an agent and can be assigned to many departments.",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "The Id of the user."
          },
          "gender": {
            "type": "string",
            "enum": [
              "Undefined",
              "Male",
              "Female",
              "Not applicable"
            ],
            "description": "The gender of the user."
          },
          "UserName": {
            "type": "string",
            "format": "email",
            "description": "User's email address.",
            "example": "jayne.wick@glassix.com"
          },
          "culture": {
            "$ref": "#/components/schemas/cultureField"
          },
          "isAnonymous": {
            "type": "boolean",
            "default": false,
            "description": "Switch to determine whether owner appears as participant in ticket."
          },
          "uniqueArgument": {
            "$ref": "#/components/schemas/uniqueArgumentField"
          },
          "type": {
            "type": "string",
            "enum": [
              "AGENT",
              "BOT",
              "API"
            ],
            "description": "The type of the user. AGENT is the standard type, for a human agent.\nTickets assigned to BOT will not send any automatic messages from our platform.\nBOT and API users can't login into our platform, they can only use the REST API."
          },
          "fullName": {
            "type": "string",
            "description": "Full name of the user. This value is not exposed to customers.",
            "example": "Jayne Wix"
          },
          "shortName": {
            "type": "string",
            "description": "First name of the user. This value is exposed to customers.",
            "example": "Jayne"
          },
          "jobTitle": {
            "type": "string",
            "description": "Exposed in mail signatures.",
            "example": "Customer service manager."
          },
          "status": {
            "type": "string",
            "enum": [
              "Offline",
              "Break",
              "Online"
            ],
            "description": "The status of the user.",
            "example": "Online"
          },
          "roles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/roles"
            }
          },
          "teams": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/team"
            },
            "description": "A list of the user's teams."
          }
        },
        "x-example": {
          "id": "6539cdb9-5644-4807-a386-4c618c603c29",
          "type": "AGENT",
          "gender": "Male",
          "UserName": "jhon.wick@example.com",
          "culture": "en-US",
          "isAnonymous": true,
          "uniqueArgument": "johnsCustomArgument",
          "fullName": "Jhon Wick",
          "shortName": "Jhon",
          "jobTitle": "Support agent",
          "status": "Offline",
          "roles": [
            "SystemUser",
            "WhatsApp"
          ]
        }
      },
      "protocolTypeField": {
        "type": "string",
        "description": "Participant's comunication channel. For user type `User` only Web is aplicable.",
        "enum": [
          "SMS",
          "WhatsApp",
          "Mail",
          "Web",
          "FBmessenger",
          "WebViaSMS",
          "TelegramBot",
          "FacebookFeed",
          "InstagramFeed",
          "PhoneCall",
          "Viber",
          "AppleBusinessChat",
          "GoogleBusinessMessages",
          "GoogleBusinessReviews",
          "Undefined"
        ]
      },
      "subProtocolTypeField": {
        "type": "string",
        "enum": [
          "Undefined",
          "MailTo",
          "MailCc",
          "MailBcc"
        ]
      },
      "uniqueArgumentField": {
        "type": "string",
        "maxLength": 50,
        "description": "Custom parameter to assist sys admins to keep the CRM's tickets in sync, e.g., CRM case id. Returned on every event or endpoint."
      },
      "cultureField": {
        "type": "string",
        "description": "\"Restricted [code list](https://msdn.microsoft.com/en-us/library/ee825488(v=cs.20).aspx) to note ticket/participant's language/culture. Can customize user's GUI.\n  - en-US; English\n  - he-IL; Hebrew\n  - pt-PT; Portuguese\n  - es-ES; Spanish\"\n",
        "enum": [
          "en-US",
          "es-ES",
          "he-IL",
          "pt-PT"
        ],
        "example": "en-US",
        "default": "en-US"
      },
      "transactionTypeField": {
        "type": "string",
        "enum": [
          "Message",
          "InteractiveDocument",
          "LiveVideo",
          "LiveVideoBidirectional",
          "LiveVideoEnded",
          "TicketClosed",
          "TicketOpened",
          "TicketSnoozed",
          "TicketReAssigned",
          "ParticipantAdd",
          "ParticipantDeActivated",
          "ParticipantReActivated",
          "ParticipantProtocolTypeChangeByAgent",
          "ParticipantProtocolTypeChangeByCustomer",
          "InputBlockedInactiveCustomer",
          "ParticipantBlocked",
          "TicketSetAsPending",
          "IntroductionMessage",
          "DepartmentClosedMessage",
          "OwnerOfflineMessage",
          "OwnerOnBreakMessage",
          "TicketClosedMessage",
          "TicketReOpenedMessage",
          "CustomerAreYouHereMessage",
          "CustomerInputBlockedMessage",
          "InteractiveDocumentSealed",
          "UnsupportedMediaTypeMessage",
          "Note",
          "TicketAwaken",
          "MessageEdited",
          "MessageDeleted",
          "TicketMovedFromDepartment",
          "TicketMovedToDepartment",
          "TicketClosedAutomatically"
        ]
      },
      "statusField": {
        "type": "string",
        "description": "The status of this transaction. If all the participants have read this message, then the status will be \"Read\". If only one has read it, and another only received it, then the status will be \"Delivered\"",
        "enum": [
          "Pending",
          "Delivered",
          "Read",
          "Undelivered",
          "Queued",
          "Accepted",
          "Buffered",
          "Failed",
          "Rejected",
          "Expired"
        ]
      },
      "roles": {
        "type": "string",
        "description": "List of roles an agent can have.",
        "enum": [
          "MasterUser",
          "DataControler",
          "DepartmentAdmin",
          "EmailSession",
          "SystemUser",
          "webChat",
          "ReadOnly",
          "FaceBookMessenger",
          "FaceBookPosts",
          "SMSchat",
          "WhatsApp",
          "InstagramFeed",
          "InstagramDM",
          "Viber",
          "AppleBusinessChat",
          "PhoneCall"
        ]
      },
      "team": {
        "type": "object",
        "properties": {
          "teamId": {
            "type": "string",
            "format": "uuid",
            "description": "This team's ID."
          },
          "teamName": {
            "type": "string",
            "description": "This team's name."
          }
        }
      },
      "botConversationSteps": {
        "type": "array",
        "x-stoplight": {
          "id": "hb7z10mraa0t2"
        },
        "description": "Detailed information on the cards in the bot the customer went through.",
        "enum": [
          "MasterUser",
          "DataControler",
          "DepartmentAdmin",
          "EmailSession",
          "SystemtUser",
          "webChat",
          "ReadOnly",
          "FaceBookMessenger",
          "FaceBookPosts",
          "SMSchat",
          "WhatsApp",
          "InstagramFeed",
          "InstagramDM",
          "Viber",
          "AppleBusinessChat",
          "PhoneCall"
        ],
        "title": "botConversationSteps",
        "items": {
          "x-stoplight": {
            "id": "ixx16h8o4tt6v"
          },
          "type": "object",
          "properties": {
            "departmentId": {
              "type": "string",
              "x-stoplight": {
                "id": "gj5tjxs2kpwvj"
              },
              "format": "uuid",
              "example": "824b4850-b24c-45ed-8d41-c740ad2618bf"
            },
            "botConversationId": {
              "type": "string",
              "x-stoplight": {
                "id": "n0wwmsdry1szx"
              },
              "format": "uuid",
              "example": "cf08810e-9a28-4bc3-a966-b3bc75b5bbf0"
            },
            "flowId": {
              "type": "string",
              "x-stoplight": {
                "id": "8ilqzx7whv46a"
              },
              "format": "uuid",
              "example": "b778d230-05f5-460d-bb85-da15b78d9c9d"
            },
            "flowVersion": {
              "type": "number",
              "x-stoplight": {
                "id": "udawged7sf0jk"
              },
              "format": "double",
              "example": 1.02
            },
            "flowName": {
              "type": "string",
              "x-stoplight": {
                "id": "by6uuagluvqvg"
              },
              "example": "New Customer"
            },
            "stepType": {
              "type": "string",
              "x-stoplight": {
                "id": "l1ri51o1fe9hj"
              },
              "example": "Card"
            },
            "uniqueCardId": {
              "type": "string",
              "x-stoplight": {
                "id": "uivrq1er25cp6"
              },
              "example": "396f876e-f6ec-4bad-ad8f-3115ec20310a",
              "format": "uuid"
            },
            "cardFriendlyName": {
              "type": "string",
              "x-stoplight": {
                "id": "xutylu33h0e1m"
              },
              "example": "Main"
            },
            "visitDatetime": {
              "type": "string",
              "x-stoplight": {
                "id": "1oe943lv9pwva"
              },
              "format": "date-time",
              "example": "2023-05-08T06:46:06.321Z"
            }
          }
        },
        "x-examples": {
          "Example 1": "MasterUser"
        }
      },
      "activityLog": {
        "title": "Ticket Activity Log",
        "type": "object",
        "description": "A log entry for a change to the ticket's state.",
        "x-examples": {
          "Example 1": {
            "state": "Closed",
            "changedOn": "2025-09-29T13:09:13Z",
            "initiatorUserId": "f4d56da7-f39f-4741-8c84-4b5b34e40ad3",
            "userId": "f4d56da7-f39f-4741-8c84-4b5b34e40ad3",
            "ticketType": "Regular",
            "totalActivityTimeSec": null,
            "totalActivityTimeSecNet": null
          }
        },
        "properties": {
          "state": {
            "enum": [
              "Open",
              "Pending",
              "Snoozed",
              "Closed"
            ],
            "example": "Open",
            "description": "The state the ticket was in as of this log entry."
          },
          "changedOn": {
            "type": "string",
            "format": "date-time",
            "description": "The timestamp of this change to the ticket's state.",
            "example": "2025-09-29T13:09:13Z"
          },
          "initiatorUserId": {
            "type": "string",
            "format": "uuid",
            "description": "The ID of the user who made this change to the ticket's state.",
            "example": "f4d56da7-f39f-4741-8c84-4b5b34e40ad3"
          },
          "userId": {
            "type": "string",
            "format": "uuid",
            "description": "The ID of the user who currently owns the ticket.",
            "example": "f4d56da7-f39f-4741-8c84-4b5b34e40ad3"
          },
          "ticketType": {
            "enum": [
              "Regular",
              "Bot",
              "GlassixBot",
              "NestedConversation"
            ],
            "example": "Regular",
            "description": "The type of the ticket at the time of this change to the ticket's state."
          },
          "totalActivityTimeSec": {
            "type": "string",
            "format": "time",
            "description": "The total time the ticket was in this state with this owner.",
            "example": "00:01:52"
          },
          "totalActivityTimeSecNet": {
            "type": "string",
            "format": "time",
            "description": "The total time the ticket was in this state with this owner, during the department's working hours only.",
            "example": "00:01:52"
          }
        }
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "oauth2",
        "description": "",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "",
            "tokenUrl": "",
            "refreshUrl": "",
            "scopes": {}
          }
        }
      }
    }
  }
}
```