List All Support Tickets
Endpointβ
GET https://api.verifik.co/v2/support-tickets
Retrieve a list of support tickets with optional filtering and pagination.
headersβ
| Name | Value |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer <token> |
query parametersβ
pageβ
Type: number
Required: No
Page number for pagination.
limitβ
Type: number
Required: No
Number of items per page.
statusβ
Type: string
Required: No
Filter by ticket status.
categoryβ
Type: string
Required: No
Filter by ticket category.
priorityβ
Type: string
Required: No
Filter by ticket priority.
countByStatusβ
Type: boolean
Required: No
Include status counts in response.
Request Exampleβ
- Node.js
const axios = require("axios");
const config = {
method: "get",
url: "https://api.verifik.co/v2/support-tickets",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
params: {
page: 1,
limit: 10,
status: "open",
category: "technical",
priority: "high",
countByStatus: true
}
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
Response Exampleβ
- 200 OK
- Error
{
"success": true,
"data": [
{
"_id": "support_ticket_123456789",
"title": "API Integration Issue",
"description": "Having trouble integrating the biometric validation API...",
"status": "open",
"priority": "high",
"category": "technical",
"client": "client_123456789",
"assignedTo": null,
"tags": ["api", "authentication", "biometric"],
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z"
}
],
"pagination": {
"page": 1,
"limit": 10,
"total": 1,
"pages": 1
},
"counts": {
"open": 5,
"pending": 3,
"in_progress": 2,
"resolved": 10,
"closed": 8
}
}
{
"success": false,
"error": "Invalid query parameters",
"code": "INVALID_PARAMETERS"
}