---
updatedAt: 2026-06-15T09:50:57.000Z
agentTools:
  projectIndex: https://developers.tidio.com/llms.txt
---

# Get ticket details

Ticket is a record of more complex conversations between operators and customers, which often require additional interactions or cannot be closed in a single chat conversation. It usually also consists of emails and internal messages. This endpoint allows you to retrieve all details of a single ticket with messages.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Tidio - Openapi",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.tidio.com/"
    }
  ],
  "tags": [
    {
      "name": "Tickets"
    }
  ],
  "security": [
    {
      "ClientId": [],
      "ClientSecret": []
    }
  ],
  "paths": {
    "/tickets/{ticketId}": {
      "get": {
        "tags": [
          "Tickets"
        ],
        "summary": "Get ticket details",
        "description": "Ticket is a record of more complex conversations between operators and customers, which often require additional interactions or cannot be closed in a single chat conversation. It usually also consists of emails and internal messages. This endpoint allows you to retrieve all details of a single ticket with messages.",
        "parameters": [
          {
            "$ref": "#/components/parameters/TicketId"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns ticket object on success",
            "content": {
              "application/json; version=1": {
                "schema": {
                  "$ref": "#/components/schemas/TicketWithMessages"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestResponse"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundResponse"
          }
        }
      }
    }
  },
  "components": {
    "parameters": {
      "TicketId": {
        "in": "path",
        "name": "ticketId",
        "required": true,
        "schema": {
          "allOf": [
            {
              "$ref": "#/components/schemas/TicketID"
            }
          ]
        }
      }
    },
    "schemas": {
      "Ticket": {
        "type": "object",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TicketID"
              }
            ]
          },
          "link": {
            "type": "string",
            "description": "URL to ticket",
            "format": "url",
            "example": "https://tidio.com/panel/inbox/tickets/10000"
          },
          "subject": {
            "type": "string",
            "description": "Ticket subject",
            "example": "Question about custom product"
          },
          "contact_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ContactID"
              }
            ]
          },
          "contact_email": {
            "type": "string",
            "format": "email",
            "nullable": true,
            "description": "Email of contact where ticket messages are sent",
            "example": "user@tidio.com"
          },
          "priority": {
            "type": "string",
            "description": "Ticket priority",
            "enum": [
              "low",
              "normal",
              "urgent"
            ],
            "example": "normal"
          },
          "status": {
            "type": "string",
            "description": "Ticket status",
            "enum": [
              "open",
              "pending",
              "solved"
            ],
            "example": "open"
          },
          "assigned_operator_id": {
            "type": "string",
            "format": "uuid",
            "nullable": true,
            "description": "ID of assigned Operator",
            "example": "fc07959a-5c03-4e8d-8ad7-93ec8bbf2e9f"
          },
          "assigned_department_id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of assigned Department",
            "example": "24f59f95-7c5e-434f-affe-b05a8772ef45"
          },
          "custom_channel_id": {
            "type": "string",
            "nullable": true,
            "description": "ID of custom channel attached to given ticket.",
            "example": "01K7PCM5YJHGH8G72MGFK36WKY"
          }
        }
      },
      "TicketWithMessages": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Ticket"
          },
          {
            "type": "object",
            "properties": {
              "messages": {
                "type": "array",
                "items": {
                  "properties": {
                    "message_id": {
                      "type": "string",
                      "description": "Message ID",
                      "format": "ulid",
                      "example": "01H6XZJ88T5PMRRQC3C54WY1EJ"
                    },
                    "created_at": {
                      "type": "string",
                      "description": "The date the message was created",
                      "format": "date-time",
                      "example": "2023-08-01T14:42:29+00:00"
                    },
                    "author_type": {
                      "type": "string",
                      "description": "Defines type of author",
                      "enum": [
                        "operator",
                        "contact"
                      ],
                      "example": "operator"
                    },
                    "author_id": {
                      "type": "string",
                      "description": "Author ID of the message. When \"author_type\" is \"operator\", the operator ID is returned. When \"author_type\" is contact, the contact ID is returned.",
                      "example": "3a7439a0-e939-4d8f-847c-be87197f2330"
                    },
                    "message_type": {
                      "type": "string",
                      "description": "Message type",
                      "enum": [
                        "internal",
                        "public"
                      ],
                      "example": "public"
                    },
                    "attachments": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "description": "Link to attachment",
                        "format": "url",
                        "example": "https://example.com"
                      }
                    }
                  }
                }
              }
            }
          }
        ]
      },
      "Error": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "example": "bad_request",
            "title": "Error code"
          },
          "message": {
            "type": "string",
            "title": "More specific description of the error",
            "example": "The request was invalid or cannot be served. "
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "ContactID": {
        "type": "string",
        "format": "uuid",
        "description": "ID of the contact",
        "example": "a1b4ca4c-1108-4432-b256-1e4cf2bf6f9e"
      },
      "TicketID": {
        "type": "integer",
        "description": "Ticket ID",
        "example": 10000
      }
    },
    "securitySchemes": {
      "ClientId": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Tidio-Openapi-Client-Id"
      },
      "ClientSecret": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Tidio-Openapi-Client-Secret"
      }
    },
    "responses": {
      "BadRequestResponse": {
        "description": "Bad Request",
        "content": {
          "application/json; version=1": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "example": {
              "errors": [
                {
                  "code": "not_valid",
                  "message": "Provide at least one property to update"
                }
              ]
            }
          }
        }
      },
      "NotFoundResponse": {
        "description": "Not Found",
        "content": {
          "application/json; version=1": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "example": {
              "errors": [
                {
                  "code": "not_found",
                  "message": "The resource cannot be found."
                }
              ]
            }
          }
        }
      }
    }
  }
}
```