GET
/dashboard/tickets/{tid} Get ticket details
Returns a ticket with all replies.
Parameters
| Name | Type | In | Description |
|---|---|---|---|
tid* | string | path | The ticket ID |
Response
200
403
404
ticketobjectidintegertidstringsubjectstringdepartmentstringprioritystringstatusstringcreated_atstringlastReplystringnullablerepliesarrayRequest
curl -X GET "https://api.royalehosting.net/dashboard/tickets/{tid}" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "x-organization-id: YOUR_ORG_ID"Request
const response = await fetch("https://api.royalehosting.net/dashboard/tickets/{tid}", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"x-organization-id": "YOUR_ORG_ID",
},
});
const data = await response.json();Request
import requests
response = requests.get(
"https://api.royalehosting.net/dashboard/tickets/{tid}",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"x-organization-id": "YOUR_ORG_ID",
}
)
print(response.json())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"
}
]
}
]
}
}