Category List
Endpoint: GET /api/v6.1/ticket/categories
Description: This API is used to retrieve a list of ticket categories.
Request
Method: GET
Headers:
X-API-KEY: <your-api-key>
Response
Status: 200 OK
Content:
{
"data": [
{
"id": 1,
"cate_name": "System Error"
},
{
"id": 2,
"cate_name": "Feature Explanation"
},
{
"id": 3,
"cate_name": "Urgent Support Request"
},
{
"id": 4,
"cate_name": "Other"
}
],
"offset": 0,
"limited": false
}
Notes
- No query parameters are required.
- The response includes an array of category objects.
- The
offset
andlimited
fields are for pagination if applicable.
cURL Example
curl --location 'https://<your-domain>/api/v6.1/ticket/categories' \
--header 'X-API-KEY: <your-api-key>' \
--header 'Cookie: <session-cookie-of-yours>'
Error Handling
| Error Code | Description |\n|--------|----------------------------------|\n| 401 | Unauthorized – Invalid API key or session |\n| 403 | Access Denied |\n| 500 | Internal System Error |\n