Skip to content

GET   /tickets/templates

List ticket templates

Retrieve all ticket templates with optional filtering and pagination

Optional Parameters

Click here to view an exhaustive list of all available parameters
page   query integer

pageSize   query integer

search   query string

Search templates by name or content

sort   query string

Sort field (e.g., "name", "-createdAt")

Try it out

Loading...

Output:

Responses

Description

Templates retrieved successfully

{
"data": [
{
"id": "string",
"name": "string",
"content": "string",
"description": "string",
"category": "string",
"isPublic": false,
"variables": [
"string"
],
"createdBy": "string",
"createdAt": "string",
"updatedAt": "string",
"updatedBy": "string"
}
],
"page": 0,
"pageSize": 0,
"total": 0,
"totalPages": 0
}

References

#/components/schemas/Template

type: object
properties:
id:
type: string
name:
type: string
description: Template name
content:
type: string
description: Template content
description:
type: string
nullable: true
description: Template description
category:
type: string
nullable: true
description: Template category
isPublic:
type: boolean
description: Whether available to all users
variables:
type: array
items:
type: string
description: Available template variables
createdBy:
type: string
createdAt:
type: string
format: date-time
updatedAt:
type: string
format: date-time
updatedBy:
type: string
nullable: true

Route Source Code

Check out the source code for this route entrypoint here: /tickets/templates/route.ts

Or the swagger.yaml spec this documentation was generated from: /tickets/templates/swagger.yaml