Ticket API

Manage support tickets programmatically

Overview

The Ticket API allows you to retrieve information about support tickets. Tickets represent support requests, issues, or communications between customers and support staff.

GET List Tickets

Retrieve a list of tickets with optional filtering, pagination, and sorting.

Request

GET https://api.rackcorp.net/api/rest/v2.9/json.php?cmd=ticket.getall&resStart=0&resWindow=50&keyword=search%20term&subject=Issue&status=OPEN&awaiting=Customer
Authorization: Bearer YOUR_JWT_TOKEN

Parameters

Parameter Type Required Description
cmd string Yes Must be "ticket.getall"
resStart integer No Pagination start offset (default: 0)
resWindow integer No Number of results per page (default: 20, minimum: 20)
allfields string No Search term to filter results across all fields (maps from keyword)
keyword string No Search term (maps to allfields)
fromCustomerName string No Filter by customer name (maps from stdname)
stdname string No Filter by customer standard name (maps to fromCustomerName)
subject string No Filter by ticket subject
id integer No Filter by ticket ID
status string No Filter by ticket status (e.g., "OPEN", "CLOSED")
awaiting string No Filter by who the ticket is awaiting (e.g., "Customer", "Support")
sort array No Array of sort objects with field and direction (max 3 sorts)

Response

{
  "code": "OK",
  "count": 25,
  "tickets": [
    {
      "id": 12345,
      "subject": "Server Issue",
      "fromCustomerName": "Example Corp",
      "status": "OPEN",
      "awaiting": "Support",
      "dateCreated": 1699123456,
      "dateModified": 1699123500
    }
  ]
}

Error Responses

If an error occurs, the API will return a response with code: "FAULT":

{
  "code": "FAULT",
  "message": "Error message",
  "error": {
    "field1": "Error message 1",
    "field2": "Error message 2"
  }
}