# Service Ticket Activities API

Read and add activity entries, comments and history, on a Service Ticket.

Type: reference · Mode: develop · Status: unverified

---
Service Ticket Activities are actions and comments recorded against a
[Service Ticket](/reference/rest-api/service-ticket/), the audit trail entries you'd see
on a ticket's activity feed in the product.

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

## GET /v1/service-ticket/activities

**Get Service Ticket Activities:** retrieve a filtered, sorted, paginated list of ticket
activities.

Query parameters (none mandatory):

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

| Parameter | Type | Notes |
| --- | --- | --- |
| `searchText` | string | Free-text filter. |
| `relatedIssueId` | string | Filter to activities on one Service Ticket. |
| `type` | string | Filter by activity type: `HISTORY` or `COMMENT`. |
| `sourceUserId` | string | Filter by the user who performed the activity. |
| `mentionedUserId` | array of strings | Filter by users mentioned in the activity. |
| `activityId` | array of strings | Filter by specific activity IDs. |
| `categoryId` | string | Filter by category. |
| `createdAfter` / `createdBefore` | string (date-time) | Filter by creation date range. |
| `sortOrder` | string | Default `createdDate`. |
| `isAscending` | boolean | Default `true`. |
| `taskHistory` | boolean | Include task history. Default `false`. |
| `ticketHistor` | boolean | Include ticket history. Default `false`. (Sic: this is the field name as documented, and it's missing a `y`.) |
| `ticketComment` | boolean | Include ticket comments. Default `false`. |
| `taskComment` | boolean | Include task comments. Default `false`. |
| `pageNumber` | integer (int32) | Default `0`. |
| `pageSize` | integer (int32) | Default `25`. |

</div>

**Example request:**

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

**Sample response (200 OK):**

```json
{
  "totalPages": 1,
  "totalElements": 1,
  "content": [
    {
      "activityId": "1789e95a-32c2-417f-92f8-cf8d2a8bf701",
      "relatedIssueId": "f72e728d-11ae-4eea-a6e2-d6ebba8120fa",
      "issue": {
        "id": "f72e728d-11ae-4eea-a6e2-d6ebba8120fa",
        "displayName": "AccountRequest",
        "status": "Unassigned",
        "createdBy": "PROCESS",
        "priority": "NONE"
      },
      "reason": "ACTION_PERFORMED"
    }
  ],
  "numberOfElements": 1,
  "empty": false
}
```

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

**Retrieve Ticket Activity:** get one activity's full detail by its ID.

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

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

</div>

**Example request:**

```
curl --location 'https://app.symphona.ai/dashboard/api/v1/service-ticket/activities/1789e95a-32c2-417f-92f8-cf8d2a8bf701' \
--header 'apiKey: xxxxxx'
```

**Sample response (200 OK):**

```json
{
  "activityId": "53ddaf15-02c7-481a-8db3-ba2dbad2256c",
  "relatedIssueId": "bd7fdf59-0fd1-43b5-8ee1-b4ebd1893ea5",
  "issue": {
    "id": "1789e95a-32c2-417f-92f8-cf8d2a8bf701",
    "displayName": "Cannot log in to account",
    "status": "Unassigned",
    "createdBy": "USER",
    "priority": "MEDIUM"
  },
  "reason": "COMMENT",
  "type": "COMMENT",
  "createdDate": "2025-05-09T19:22:42.615518162",
  "activityMessageDto": {
    "header": "Demo Header",
    "body": "Demo activity created"
  }
}
```

## POST /v1/service-ticket/activities

**Add Ticket Activity:** add a new activity (typically a comment) to a Service Ticket.

Request body (none mandatory):

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

| Field | Type | Notes |
| --- | --- | --- |
| `id` | string (UUID) | Unique identifier for the activity. |
| `relatedIssueId` | string | The Service Ticket this activity belongs to. |
| `type` | string | `HISTORY` or `COMMENT`. |
| `description` | string | Description of the activity. |
| `sourceUserId` | string | The user performing the activity. |
| `createdAt` | string (date-time) | Optional explicit timestamp. |

</div>

**Example request:**

```
curl --location 'https://app.symphona.ai/dashboard/api/v1/service-ticket/activities' \
--header 'apiKey: xxxxxx' \
--header 'Content-Type: application/json' \
--data '{
  "relatedIssueId": "bd7fdf59-0fd1-43b5-8ee1-b4ebd1893ea5",
  "reason": "COMMENT",
  "type": "COMMENT",
  "activityMessageDto": {
    "header": "Demo Header",
    "body": "Demo activity created"
  }
}'
```

**Sample response (200 OK):** the created activity, same shape as
`GET /v1/service-ticket/activities/{id}` above.