Skip to content

GET   /tickets/escalation-rules/{id}

Get escalation rule

Retrieve a specific escalation rule by ID

Required Parameters

id   path string

Try it out

Loading...

Output:

Responses

Description

Escalation rule retrieved successfully

{
"id": "string",
"name": "string",
"description": "string",
"enabled": false,
"priority": "string",
"conditions": [
{
"field": "string",
"operator": "string",
"value": null
}
],
"escalateAfterMinutes": 0,
"escalateTo": "string",
"escalateToUserId": "string",
"escalateToTeamId": "string",
"escalateToRotationId": "string",
"notificationChannels": [
"string"
],
"businessHoursOnly": false,
"addInternalNote": false,
"internalNoteTemplate": "string",
"createdBy": "string",
"createdAt": "string",
"updatedAt": "string",
"updatedBy": "string",
"statistics": {
"totalEscalations": 0,
"lastEscalatedAt": "string",
"averageEscalationTime": 0
}
}

References

#/components/schemas/EscalationCondition

type: object
required:
- field
- operator
- value
properties:
field:
type: string
description: Ticket field to evaluate
operator:
type: string
enum:
- equals
- not_equals
- contains
- not_contains
- greater_than
- less_than
- greater_than_or_equal
- less_than_or_equal
- in
- not_in
value:
description: Value to compare against

#/components/schemas/EscalationRule

type: object
properties:
id:
type: string
name:
type: string
description:
type: string
nullable: true
enabled:
type: boolean
priority:
type: string
enum:
- urgent
- high
- medium
- low
- all
conditions:
type: array
items:
$ref: "#/components/schemas/EscalationCondition"
escalateAfterMinutes:
type: integer
description: Time threshold in minutes
escalateTo:
type: string
enum:
- manager
- team
- specific_user
- rotation
escalateToUserId:
type: string
nullable: true
escalateToTeamId:
type: string
nullable: true
escalateToRotationId:
type: string
nullable: true
notificationChannels:
type: array
items:
type: string
enum:
- email
- sms
- slack
- in_app
businessHoursOnly:
type: boolean
addInternalNote:
type: boolean
internalNoteTemplate:
type: string
nullable: true
createdBy:
type: string
createdAt:
type: string
format: date-time
updatedAt:
type: string
format: date-time
updatedBy:
type: string
nullable: true

#/components/schemas/EscalationRuleDetailed

allOf:
- type: object
properties:
id:
type: string
name:
type: string
description:
type: string
nullable: true
enabled:
type: boolean
priority:
type: string
enum:
- urgent
- high
- medium
- low
- all
conditions:
type: array
items:
$ref: "#/components/schemas/EscalationCondition"
escalateAfterMinutes:
type: integer
description: Time threshold in minutes
escalateTo:
type: string
enum:
- manager
- team
- specific_user
- rotation
escalateToUserId:
type: string
nullable: true
escalateToTeamId:
type: string
nullable: true
escalateToRotationId:
type: string
nullable: true
notificationChannels:
type: array
items:
type: string
enum:
- email
- sms
- slack
- in_app
businessHoursOnly:
type: boolean
addInternalNote:
type: boolean
internalNoteTemplate:
type: string
nullable: true
createdBy:
type: string
createdAt:
type: string
format: date-time
updatedAt:
type: string
format: date-time
updatedBy:
type: string
nullable: true
fromRef: "#/components/schemas/EscalationRule"
- type: object
properties:
statistics:
type: object
properties:
totalEscalations:
type: integer
description: Total number of escalations triggered
lastEscalatedAt:
type: string
format: date-time
nullable: true
description: Last escalation timestamp
averageEscalationTime:
type: number
description: Average time to escalation in minutes

Route Source Code

Check out the source code for this route entrypoint here: /tickets/escalation-rules/[id]/route.ts

Or the swagger.yaml spec this documentation was generated from: /tickets/escalation-rules/swagger.yaml