Skip to main content
GET
/
ticket-clustering
/
clusters
/
l1
/
{workflowId}
/
tickets
Get tickets for a specific L1 cluster
curl --request GET \
  --url https://core.ravenna.ai/api/ticket-clustering/clusters/l1/{workflowId}/tickets \
  --header 'x-ravenna-api-token: <api-key>'
{
  "tickets": [
    {
      "id": "<string>",
      "publishedAt": "<string>",
      "assignedAt": "<string>",
      "closedAt": "<string>",
      "createdAt": "<string>",
      "updatedAt": "<string>",
      "requestType": {
        "id": "<string>",
        "name": "<string>",
        "isPrivate": true
      },
      "assigneeId": "<string>",
      "shortId": "<string>",
      "authorId": "<string>",
      "code": "<string>",
      "private": true,
      "description": "<string>",
      "dueAt": "<string>",
      "followers": [
        {
          "id": "<string>"
        }
      ],
      "approvers": [
        {
          "id": "<string>"
        }
      ],
      "approvedAt": "<string>",
      "declinedAt": "<string>",
      "number": 123,
      "priority": "URGENT",
      "shares": [
        {
          "id": "<string>",
          "queueId": "<string>",
          "queue": {
            "workspaceId": "<string>",
            "name": "<string>",
            "emoji": "<string>"
          },
          "ticketId": "<string>",
          "createdAt": "<string>",
          "updatedAt": "<string>"
        }
      ],
      "published": true,
      "queueId": "<string>",
      "requesterId": "<string>",
      "resolvedAt": "<string>",
      "assignedAIAgent": "<string>",
      "startAt": "<string>",
      "snoozeUntil": "<string>",
      "respondedAt": "<string>",
      "slackChannelId": "<string>",
      "archivedAt": "<string>",
      "lastAgentResponse": "<string>",
      "agentParticipated": true,
      "slackChannel": {
        "appId": "<string>",
        "channelId": "<string>",
        "channelName": "<string>"
      },
      "slackThreads": [
        {
          "id": "<string>",
          "type": "DM",
          "userId": "<string>",
          "appId": "<string>",
          "channelId": "<string>",
          "messageTs": "<string>",
          "mirrorTs": "<string>",
          "ticketId": "<string>",
          "createdAt": "<string>",
          "updatedAt": "<string>"
        }
      ],
      "source": "WEB",
      "statusId": "<string>",
      "status": {
        "id": "<string>",
        "label": "<string>",
        "order": 123,
        "system": true,
        "statusGroupId": "<string>",
        "statusGroup": {
          "id": "<string>",
          "label": "<string>",
          "workspaceId": "<string>"
        },
        "requestTypes": [
          {
            "id": "<string>",
            "requestTypeId": "<string>"
          }
        ],
        "createdAt": "<string>",
        "updatedAt": "<string>"
      },
      "tags": [
        {
          "id": "<string>",
          "name": "<string>",
          "color": "tomato",
          "aiGenerated": true,
          "workspaceId": "<string>",
          "description": "<string>",
          "createdAt": "<string>",
          "updatedAt": "<string>"
        }
      ],
      "stars": [
        {
          "userId": "<string>"
        }
      ],
      "queue": {
        "id": "<string>",
        "name": "<string>",
        "workspaceId": "<string>",
        "workspace": {
          "id": "<string>",
          "slug": "<string>"
        },
        "prefix": "<string>",
        "emoji": "<string>",
        "system": true,
        "settings": {
          "id": "<string>",
          "aiEnabled": true,
          "respondOnMessage": "<string>",
          "respondOnMention": true,
          "allowInboundEmails": true,
          "onlyRespondToRequests": true,
          "autoCreateTickets": true,
          "ignoreInternalMembers": true,
          "autoClassify": true,
          "autoTag": true,
          "autoTagCreateNew": true,
          "enableUserActions": true,
          "enableUserEmojis": true,
          "enableCSAT": true,
          "enableEmojiUpdates": true,
          "sendAllTicketToTriageChannel": true,
          "showInSlackAssistant": true,
          "enableGranularSlackNotifications": true,
          "negativeFeedbackAutoCreate": true,
          "allowGuestUsers": true,
          "silentMode": true,
          "whitelistedInboundEmails": [
            "<string>"
          ],
          "whitelistedInboundDomains": [
            "<string>"
          ],
          "emailSenderName": "<string>",
          "sendBouncedEmails": true,
          "showSlackPriority": true,
          "showSlackRequester": true,
          "showSlackAssignee": true,
          "showTicketEmojiOnChannel": true
        },
        "slackChannels": [
          {
            "id": "<string>"
          }
        ],
        "requestTypes": [
          {
            "id": "<string>",
            "name": "<string>",
            "emoji": "<string>",
            "color": "<string>",
            "description": "<string>",
            "icon": "<string>"
          }
        ],
        "agent": {
          "id": "<string>",
          "name": "<string>",
          "description": "<string>",
          "imageUrl": "<string>"
        },
        "autoAssignees": [
          {
            "id": "<string>"
          }
        ],
        "_count": {
          "tickets": 123
        },
        "createdAt": "<string>",
        "updatedAt": "<string>",
        "deletedAt": "<string>"
      },
      "originalQueueId": "<string>",
      "title": "<string>",
      "requestTypeId": "<string>",
      "csat": [
        {
          "id": "<string>",
          "score": 3,
          "feedback": "<string>",
          "userId": "<string>",
          "ticketId": "<string>",
          "createdAt": "<string>",
          "updatedAt": "<string>"
        }
      ],
      "disableAIResponse": true,
      "customFields": "<any>",
      "parentId": "<string>",
      "parent": {
        "id": "<string>",
        "number": 123,
        "queue": {
          "id": "<string>",
          "prefix": "<string>"
        }
      },
      "children": [
        {
          "id": "<string>",
          "title": "<string>",
          "queueId": "<string>",
          "number": 123,
          "statusId": "<string>",
          "assigneeId": "<string>",
          "priority": "URGENT",
          "queue": {
            "workspaceId": "<string>"
          }
        }
      ]
    }
  ],
  "totalCount": 123,
  "page": 123,
  "pageSize": 123,
  "hasMore": true
}

Authorizations

x-ravenna-api-token
string
header
required

Path Parameters

workflowId
string
required

Query Parameters

l1ClusterId
number
required
page
number
default:1
limit
number
default:20
Required range: 1 <= x <= 100

Response

tickets
object[]
required
totalCount
number
required
page
number
required
pageSize
number
required
hasMore
boolean
required