GET /dashboard/tickets/{tid}

Get ticket details

Returns a ticket with all replies.

Parameters

NameTypeInDescription
tid*
stringpathThe ticket ID

Response

200
403
404
ticketobject
idinteger
tidstring
subjectstring
departmentstring
prioritystring
statusstring
created_atstring
lastReplystringnullable
repliesarray

Request

curl -X GET "https://api.royalehosting.net/dashboard/tickets/{tid}" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "x-organization-id: YOUR_ORG_ID"

Response

{
  "ticket": {
    "id": 1,
    "tid": "a1b2c3d4",
    "subject": "Server not responding",
    "department": "support",
    "priority": "medium",
    "status": "open",
    "created_at": "2024-01-15T10:30:00Z",
    "lastReply": "2024-01-15T10:30:00Z",
    "replies": [
      {
        "id": 1,
        "name": "John Doe",
        "email": "john@example.com",
        "adminName": "string",
        "adminRole": "string",
        "message": "<p>Thank you for contacting us...</p>",
        "created_at": "2024-01-15T10:30:00Z",
        "updated_at": "2024-01-15T10:30:00Z",
        "user": {
          "id": 0,
          "first_name": "string",
          "last_name": "string",
          "email": "string"
        },
        "attachments": [
          {
            "id": 0,
            "name": "screenshot.png"
          }
        ]
      }
    ]
  }
}