Skip to main content

Support Tickets API

The Support Tickets API allows users to create and manage support tickets with role context, categories, and file attachments.

Get All Support Tickets

curl -X GET https://api.kinconecta.com/api/support-tickets \
  -H "Content-Type: application/json"

Response

id
long
required
Unique identifier for the support ticket
roleContext
string
required
User role context when ticket was created
fullName
string
required
Full name of the person submitting the ticket
email
string
required
Contact email address
subject
string
required
Ticket subject line
category
string
required
Ticket category for classification
message
string
required
Detailed message describing the issue
status
string
required
Current ticket status
createdAt
string
required
Timestamp when ticket was created
updatedAt
string
required
Timestamp when ticket was last updated
attachments
array
List of file attachments associated with the ticket

Get Support Ticket by ID

curl -X GET https://api.kinconecta.com/api/support-tickets/{id} \
  -H "Content-Type: application/json"

Path Parameters

id
long
required
The support ticket ID

Response

Returns a single support ticket object with all details and attachments.

Create Support Ticket

curl -X POST https://api.kinconecta.com/api/support-tickets \
  -H "Content-Type: application/json" \
  -d '{
    "roleContext": "tourist",
    "fullName": "Ana Martinez",
    "email": "[email protected]",
    "subject": "Question about tour cancellation",
    "category": "General Inquiry",
    "message": "What is your cancellation policy for tours booked less than 24 hours in advance?",
    "status": "open",
    "createdAt": "2026-03-10T11:00:00Z",
    "updatedAt": "2026-03-10T11:00:00Z"
  }'

Request Body

roleContext
string
required
User role when creating the ticket (e.g., “tourist”, “guide”)
fullName
string
required
Full name of the person submitting the ticket
email
string
required
Contact email address for ticket updates
subject
string
required
Brief subject line describing the issue
category
string
required
Category for ticket classification (e.g., “Technical Issue”, “Billing”, “General Inquiry”)
message
string
required
Detailed description of the issue or question
status
string
required
Initial ticket status (typically “open”)
createdAt
string
required
Timestamp when ticket is created (ISO 8601 format)
updatedAt
string
required
Timestamp when ticket is last updated (ISO 8601 format)
attachments
array
Optional array of file attachments

Response

Returns the created support ticket object with assigned ID.

Support Ticket Workflow

Support tickets follow a standard workflow:
  1. Created - Ticket is submitted by user
  2. Open - Ticket is pending review
  3. In Progress - Support team is working on the issue
  4. Resolved - Issue has been addressed
  5. Closed - Ticket is closed after resolution confirmation

Attachment Management

Support tickets can include file attachments (screenshots, documents, etc.) through the attachments relationship. The SupportTicketsAttachment model is linked via a one-to-many relationship, allowing multiple files per ticket.
When creating tickets with attachments, you may need to use multipart/form-data encoding and upload files separately, then associate them with the ticket ID.

Build docs developers (and LLMs) love