Skip to main content
POST
/
ticket-clustering
/
clusters
/
generate
Generate or retrieve ticket clusters based on filter conditions
curl --request POST \
  --url https://core.ravenna.ai/api/ticket-clustering/clusters/generate \
  --header 'Content-Type: application/json' \
  --header 'x-ravenna-api-token: <api-key>' \
  --data '{
  "filters": {
    "assigneeId": "<string>",
    "createdAt": "<string>",
    "openFilter": true,
    "priority": "URGENT",
    "queueId": "<string>",
    "search": "<string>",
    "searchFields": [
      "title"
    ],
    "slackMessageTs": "<string>",
    "starredBy": "<string>",
    "starredFilter": true,
    "statusId": "<string>",
    "textFilter": "<string>",
    "unassignedFilter": true,
    "excludeTicketIds": [
      "<string>"
    ],
    "agentParticipated": true,
    "agentId": "<string>",
    "workspaceId": "<string>",
    "filters": "<string>",
    "ravFilters": "<string>",
    "viewMode": "list",
    "responseType": "default",
    "skip": 2,
    "offset": 1,
    "cursor": "<string>",
    "limit": 5000.5,
    "set": "<string>",
    "sortBy": "<string>",
    "sortDirection": "asc",
    "groupBy": "<string>",
    "groupDirection": "asc"
  },
  "clusteringConfig": {
    "llmModel": "<string>",
    "temperature": 123,
    "minL1ClusterSizePct": 123,
    "minL0ClusterSizePct": 123,
    "outlierThreshold": 123,
    "noiseBatchSize": 123,
    "rebalanceThresholdPct": 123,
    "embeddingModel": "<string>"
  }
}'
{
  "status": "<string>",
  "workflowId": "<string>",
  "createdAt": "<string>"
}

Authorizations

x-ravenna-api-token
string
header
required

Body

application/json
filters
object
required
clusteringConfig
object

Response

Successful response

  • Option 1
  • Option 2
  • Option 3
status
string
required
Allowed value: "processing"
workflowId
string
required
createdAt
string
required