Skip to main content

Create a Support Ticket

Endpoint​

POST https://api.verifik.co/v2/support-tickets

This endpoint allows you to create a new support ticket for customer support and issue tracking.

headers​

NameValue
Content-Typeapplication/json
AuthorizationBearer {YOUR_ACCESS_TOKEN}

body parameters​

title​

Type: string
Required: Yes

The title or subject of the support ticket.

description​

Type: string
Required: Yes

Detailed description of the issue or request.

priority​

Type: string
Required: Yes

Priority level: low, medium, high, urgent

category​

Type: string
Required: Yes

Category: technical, billing, account, feature_request, general

tags​

Type: array of string
Required: No

Array of tags for categorizing the ticket.

attachments​

Type: array of object
Required: No

Array of file attachments.

Request Example​

const axios = require("axios");

const config = {
method: "post",
url: "https://api.verifik.co/v2/support-tickets",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
data: {
title: "API Integration Issue",
description: "Having trouble integrating the biometric validation API. Getting 401 errors when trying to authenticate.",
priority: "high",
category: "technical",
tags: ["api", "authentication", "biometric"],
attachments: [
{
filename: "error_logs.txt",
url: "https://storage.verifik.co/attachments/error_logs.txt",
size: 1024,
type: "text/plain"
}
]
}
};

axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});

Response Example​

{
"success": true,
"data": {
"_id": "support_ticket_123456789",
"title": "API Integration Issue",
"description": "Having trouble integrating the biometric validation API. Getting 401 errors when trying to authenticate.",
"status": "open",
"priority": "high",
"category": "technical",
"client": "client_123456789",
"assignedTo": null,
"threads": [
{
"author": "client_123456789",
"message": "Having trouble integrating the biometric validation API. Getting 401 errors when trying to authenticate.",
"timestamp": "2024-01-15T10:30:00Z",
"type": "user"
}
],
"attachments": [
{
"filename": "error_logs.txt",
"url": "https://storage.verifik.co/attachments/error_logs.txt",
"size": 1024,
"type": "text/plain"
}
],
"tags": ["api", "authentication", "biometric"],
"resolution": null,
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z",
"resolvedAt": null
}
}