---
title: "Search Service Record Templates."
method: GET
path: "/templates"
tags: ["Templates"]
---

# Search Service Record Templates.

`GET /templates`

Allows to search service record templates by different criteria.

## Query parameters

- `limit` integer
- `offset` integer
- `defaultsFirst` boolean
- `excludeSubTypes` boolean
- `sortBy` 'id' | 'templateName' | 'srType' | 'createdBy' | 'updatedBy' | 'dateCreated' | 'dateUpdated' | 'coreSubType' | 'coreTemplate'
- `sortDir` 'asc' | 'desc'
- `templateName` string
- `srType` ServiceRecordType[]
- `createdBy` string[]
- `updatedBy` string[]
- `coreSubType` integer[]
- `coreTemplate` integer[]
- `dateCreatedFrom` string, date
- `dateCreatedTo` string, date
- `dateUpdatedFrom` string, date
- `dateUpdatedTo` string, date

## Response `200`

Service record templates list.

- PaginatedSrTemplatesList
  - `limit` integer — The number of items that are returned per page
  - `offset` integer — The offset used for pagination.
  - `total` integer — The total number of elements across all pages.
  - `templates` SrTemplate[]
    - `id` integer, required — Unique ID of the service record template.
    - `name` string, required — Service record template's name.
    - `srType` 'incident' | 'problem' | 'request' | 'change', required
    - `visibleInSelfServicePortal` boolean, required — Indicates whether the given template is visible in Serlf-Service Portal.
    - `fields` SrTemplateField[], required — A list of service record fields supported by the given template.
      - `id` integer, required — Id of the service record field.
      - `fieldName` string, required — Name of the service record field.
      - `required` boolean, required — Indicates whether the given field is required to be set when a service record creation.
      - `readOnly` boolean, required — Indicates whether the given field is read-only.
      - `customColumn` boolean, required — Indicates whether the given field represents a service record custom column field.

## Other responses

- `400` — The request was invalid or cannot be served
- `401` — Authentication information is missing or invalid

---

[API](https://skmtc.net/sysaid/apis/sysaid-public-api.md) · [All operations](https://skmtc.net/sysaid/apis/sysaid-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sysaid/sysaid-public-api/revisions/38a43a1b2981/schema)
