# Service Ticket API

Create, read, update, delete and list Service Tickets, and query their types and statuses.

Type: reference · Mode: develop · Status: unverified

---
Service Tickets are issue-tracking records (support tickets or cases). These endpoints
create and manage Service Tickets, query their types and statuses, and record activities
on them (see the separate [Service Ticket Activities API](/reference/rest-api/service-ticket-activities/)
and [Service Ticket Tasks API](/reference/rest-api/service-ticket-tasks/)).

See [REST API reference](/reference/rest-api/) for the base URL and authentication header
every request below needs.

## GET /v1/service-ticket

**Get Service Tickets:** retrieve a filtered, sorted, paginated list of Service Tickets.

Query parameters (none mandatory):

<div class="sym-spec-table">

| Parameter | Type | Notes |
| --- | --- | --- |
| `searchText` | string | Free-text filter. |
| `displayName` | array of strings | Filter by display name. |
| `issueId` | array of strings | Filter by ticket ID. |
| `issueTypeId` | array of strings | Filter by ticket type ID. |
| `issueTypeStatusId` | array of strings | Filter by ticket type status. |
| `assignedTo` | array of strings | Filter by assignee. |
| `assignedBy` | array of strings | Filter by who assigned the ticket. |
| `createdBy` | array of strings | Filter by creator role: `PROCESS`, `USER`, `AGENT`. |
| `resolvedBy` | array of strings | Filter by resolver role: `PROCESS`, `USER`, `AGENT`. |
| `priority` | array of strings | Filter by priority: `HIGHEST`, `HIGH`, `MEDIUM`, `LOW`, `LOWEST`, `NONE`. |
| `parentIssueId` | array of strings | Filter by parent ticket ID. |
| `activityId` | array of strings | Filter by activity ID. |
| `createdAfter` / `createdBefore` | string (date-time) | Filter by creation date range. |
| `updatedAfter` / `updatedBefore` | string (date-time) | Filter by last-updated date range. |
| `dueAfter` / `dueBefore` | string (date-time) | Filter by due-date range. |
| `resolvedAfter` / `resolvedBefore` | string (date-time) | Filter by resolved-date range. |
| `returnParameters` | boolean | Include parameters in the response. Default `false`. |
| `returnAdditionalField` | boolean | Include additional fields. Default `false`. |
| `returnRelatedEntities` | boolean | Include related entities. Default `false`. |
| `returnActivities` | boolean | Include activities. Default `false`. |
| `additionalField` | array of strings | Which additional fields to return. |
| `relatedEntity` | array of strings (UUID) | Filter by related entity. |
| `sortOrder` | string | Field to sort by. Default `createdAt`. |
| `isAscending` | boolean | Sort direction. Default `false`. |
| `pageNumber` | integer | Page to retrieve. Default `0`. |
| `pageSize` | integer | Results per page. Default `25`. |

</div>

**Example request:**

```
curl --location 'https://app.symphona.ai/dashboard/api/v1/service-ticket?issueId=bd7fdf59-0fd1-43b5-8ee1-b4ebd1893ea5' \
--header 'apiKey: xxxxxx'
```

**Sample response (200 OK):**

```json
{
  "totalPages": 1,
  "totalElements": 1,
  "content": [
    {
      "id": "bd7fdf59-0fd1-43b5-8ee1-b4ebd1893ea5",
      "displayName": "Cannot log in to account",
      "description": "User reports being unable to log into the portal with correct credentials.",
      "category": "Service Ticket",
      "issueType": "Service Ticket",
      "status": "Unassigned",
      "createdAt": "2025-04-17T04:51:26.025207",
      "updatedAt": "2025-04-17T04:51:26.025211",
      "issueParameterGroup": [],
      "additionalFields": {},
      "relatedEntities": [],
      "createdBy": "USER",
      "priority": "HIGH"
    }
  ],
  "number": 0,
  "numberOfElements": 1,
  "empty": false
}
```

## GET /v1/service-ticket/{id}

**Get Service Ticket by ID:** retrieve one Service Ticket's full detail.

<div class="sym-spec-table">

| Parameter | Type | Need | Notes |
| --- | --- | --- | --- |
| `id` | string (UUID) | Required | The ticket's unique identifier. |

</div>

**Example request:**

```
curl --location 'https://app.symphona.ai/dashboard/api/v1/service-ticket/bd7fdf59-0fd1-43b5-8ee1-b4ebd1893ea5' \
--header 'apiKey: xxxxxx'
```

**Sample response (200 OK):** same shape as one `content[]` entry above.

## GET /v1/service-ticket/type

**Get Service Ticket Types:** list the Service Ticket types configured in the system.

<div class="sym-spec-table">

| Parameter | Type | Notes |
| --- | --- | --- |
| `searchText` | string | Free-text filter on type name. |
| `issueTypeId` | array of integers (int64) | Filter by specific type IDs. |

</div>

**Example request:**

```
curl --location 'https://app.symphona.ai/dashboard/api/v1/service-ticket/type' \
--header 'apiKey: xxxxxx'
```

**Sample response (200 OK):**

```json
[
  {
    "id": 480,
    "orgId": "8117cd7a-8d74-47c0-951f-c56aaef1c2a3",
    "name": "Service Ticket",
    "icon": "SELL",
    "iconColour": "bluishCyan",
    "isDefault": true,
    "isVisible": true,
    "createdAt": "2025-02-12T20:42:22.048323",
    "updatedAt": "2025-02-12T20:42:22.048324",
    "relatedIssueCategoryId": 1,
    "relatedIssueCategoryName": "Service Ticket",
    "statuses": ["..."],
    "actions": [],
    "tabs": ["..."],
    "parameters": ["..."]
  }
]
```

The `icon` value of `SELL` on the default type is a legacy label left over from the
retired "Sell" component. See the [Glossary](/reference/glossary/) if it's unfamiliar.
It's a stored value, not something this reference invented.

## GET /v1/service-ticket/type/{typeId}/status

**Get Service Ticket Type Statuses:** list the statuses available for one ticket type.

<div class="sym-spec-table">

| Parameter | Type | Need | Notes |
| --- | --- | --- | --- |
| `typeId` | string (UUID) | Required (path) | The type's ID, from the `type` response above. |
| `searchText` | string | Optional | Free-text filter. |
| `sortOrder` | string | Optional | Default `createdAt`. |
| `isAscending` | boolean | Optional | Default `true`. |

</div>

**Example request:**

```
curl --location 'https://app.symphona.ai/dashboard/api/v1/service-ticket/type/480/status' \
--header 'apiKey: xxxxxx'
```

**Sample response (200 OK):**

```json
[
  { "name": "Assigned", "id": 1312 },
  { "name": "Unassigned", "id": 1313 },
  { "name": "Done", "id": 1314 }
]
```

## POST /v1/service-ticket

**Create Service Ticket:** create a new Service Ticket.

Request body (none mandatory, but a ticket needs at least a `displayName` to be
useful):

<div class="sym-spec-table">

| Field | Type | Notes |
| --- | --- | --- |
| `id` | string (UUID) | Unique identifier. |
| `parentId` | string (UUID) | Parent ticket identifier. |
| `organizationId` | string | Owning organization. |
| `displayName` | string | Ticket display name. |
| `processDisplayName` | string | Name of the associated Process, if any. |
| `description` | string | Ticket description. |
| `issueCategoryId` | integer | Category ID. |
| `issueTypeId` | integer | Type ID. |
| `issueStatusId` | integer | Status ID. |
| `createdBy` | string | `PROCESS`, `USER`, or `AGENT`. |
| `resolvedBy` | string | `PROCESS`, `USER`, or `AGENT`. |
| `priority` | string | `HIGHEST`, `HIGH`, `MEDIUM`, `LOW`, `LOWEST`, or `NONE`. |
| `assignedByUserId` | string | User who assigned the ticket. |
| `assignedToUserId` | string | User the ticket is assigned to. |
| `availableToUsers` | array of strings (UUID) | Users who can view the ticket. |
| `availableToUserGroups` | array of strings (UUID) | User Groups who can view the ticket. |
| `dueDate` | string (date-time) | Due date. |
| `resolvedAt` | string (date-time) | Resolved timestamp. |
| `additionalFields` | object | Custom fields on the ticket. |
| `parameterGroups` | array of objects | Parameter groups on the ticket. |
| `relatedEntities` | array of objects | Related tickets, workflows, etc. |
| `attachmentFiles` | array of strings | Attached file references. |

</div>

**Example request:**

```
curl --location 'https://app.symphona.ai/dashboard/api/v1/service-ticket' \
--header 'apiKey: xxxxxx' \
--header 'Content-Type: application/json' \
--data '{
  "displayName": "Cannot log in to account",
  "description": "User reports being unable to log into the portal with correct credentials.",
  "priority": "HIGH"
}'
```

**Sample response (200 OK):** the created ticket, same shape as the `GET` responses above.

## PUT /v1/service-ticket/{id}

**Update Service Ticket:** update an existing Service Ticket. Same body shape as
`POST /v1/service-ticket`, with `id` also required in the path.

**Example request:**

```
curl --location --request PUT 'https://app.symphona.ai/dashboard/api/v1/service-ticket/bd7fdf59-0fd1-43b5-8ee1-b4ebd1893ea5' \
--header 'apiKey: xxxxxx' \
--header 'Content-Type: application/json' \
--data '{
  "description": "User reports being unable to log into the portal with correct credentials. Changed to Medium priority.",
  "priority": "MEDIUM"
}'
```

**Sample response (200 OK):** the updated ticket.

## DELETE /v1/service-ticket/{id}

**Delete Service Ticket:** remove a Service Ticket from the system.

<div class="sym-spec-table">

| Parameter | Type | Need | Notes |
| --- | --- | --- | --- |
| `id` | string (UUID) | Required | The ticket's unique identifier. |

</div>

**Example request:**

```
curl --location --request DELETE 'https://app.symphona.ai/dashboard/api/v1/service-ticket/bd7fdf59-0fd1-43b5-8ee1-b4ebd1893ea5' \
--header 'apiKey: xxxxxx'
```

**Sample response:** `200 OK`, "Issues deleted successfully".