--- title: Response Templates API description: The Response Templates API provides endpoints to handle records in the Response Templates \[sn\_templated\_snip\_note\_template\] table.Returns records from the Response Templates \[sn\_templated\_snip\_note\_template\] table. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/api-reference/rest-apis/response-templates-api.html release: australia product: REST APIs classification: rest-apis topic_type: concept last_updated: "2026-03-12" reading_time_minutes: 5 breadcrumb: [REST API reference, API reference, API implementation and reference] --- # Response Templates API The Response Templates API provides endpoints to handle records in the Response Templates \[sn\_templated\_snip\_note\_template\] table. This script include requires the Templated Responses plugin \(com.sn\_templated\_snip\), which is activated by default, and runs within the `sn_templated_snip` namespace. For additional information on response templates, see [Response templates](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/servicenow-platform/response-templates-templated-snippets.md). **Parent Topic:**[REST API reference](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-apis/api-rest.md) ## Response Templates - POST /response\_templates/get\_templates Returns records from the Response Templates \[sn\_templated\_snip\_note\_template\] table. ### URL format Default URL: `/api/sn_templated_snip/response_templates/get_templates` ### Supported request parameters |Name|Description| |----|-----------| |None| | |Name|Description| |----|-----------| |None| |
| Name | Description |
|---|---|
| errorFormat | HTML formatting to use for errors. Data type: String Default: `"${%s}"` |
| includeEvaluatedBody | Flag that indicates whether to render the template variables.Valid values: - false: Do not render the template variables. The response contains the message variables. For example: ``` Please note that your case ${number} has been escalated to ${assignment_group}. ``` - true: Renders the template variables and returns **evaluated\_response** in the return results. For example: ``` Please note that your case INC100001 has been escalated to Facilities. ``` Data type: Boolean Default: false |
| limit | Maximum number of response templates to return.Data type: Number Default: 50 |
| offset | For pagination, the index at which to start the search.Data type: Number Default: 0 |
| opts | Parameters to pass to the sn\_templated\_snip.response\_template extension point. The format and content of these parameters are dependent on the implementation of the extension point. For additional information on extension points, see [Using extension points to extend application functionality](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/web-services/extension-points.md).Data type: Object |
| recordId | Required. Sys\_id of the record to use to render the variables in the response template.Data type: String |
| searchTerm | Text to use to filter the list of matching response templates.The endpoint performs a CONTAINS search of this text on the name and body fields and a STARTS WITH search on the short name field. For example, if the search term is "crash", the endpoint returns any response template that matches the query criteria and has crash in the name or body or the short name starts with crash. Response templates with exact matches on short name appear first in the return results. All other returned response templates are sorted by name. Data type: String Default: Return all matching response templates. |
| tableName | Required. Name of the table to use to search the Response Templates table to locate corresponding response templates. For example, "incident" or "sn\_hr\_core\_case".Data type: String |
| Name | Description |
|---|---|
| result | Array of objects that list all of the templates that match the specified search criteria. Data type: Array ``` "result": [ {Object} ] ``` |
| result.<object> | Response templates with exact matches on short name appear first in the return results. All other returned response templates are sorted by name. Data type: Object ``` { "evaluated_response": [Array], "name": "String", "short_name": "String", "short_name_match": Boolean, "sys_id": "String", "template_body": "String" } ``` |
| result.<object>.evaluated\_response | Array that lists the results of the template evaluation. Data type: Array ``` "elevated_response":[ "error": [Array], "evaluated_body": "String", "success": Boolean ] ``` |
| result.<object>.evaluated\_response.error | List of entries for each evaluation error that occurred. Data type: Array ``` "error":[ "inAccessibleVariables": "String", "message": "String", "unEvaluatedVariables": "String" ] ``` |
| result.<object>.evaluated\_response.error.inAccessibleVariables | Variables in the response template body that could not be resolved.Data type: String |
| result.<object>.evaluated\_response.error.message | Error message.Data type: String |
| result.<object>.evaluated\_response.error.unEvaluatedVariables | Variables in the response template body that were not evaluated.Data type: String |
| result.<object>.evaluated\_response.evaluated\_body | Evaluated response template body in HTML.Data type: String |
| result.<object>.evaluated\_response.success | Flag that indicates whether all of the variables rendered properly. Possible values: - true: All variables rendered properly. - false: Variables did not render properly. Data type: Boolean |
| result.<object>.name | Name of the response template.Data type: String |
| result.<object>.short\_name | Short name of the response template.Data type: String |
| result.<object>.short\_name\_match | Flag that indicates whether an exact match occurred on the short name of the response template. Possible values: - true: Search term is an exact match. - false: Search term is not an exact match. Data type: Boolean |
| result.<object>.sys\_id | Sys\_id of the response template.Data type: String |
| result.<object>.template\_body | Response template body in HTML.Data type: String |
Dear ${subject_person},<\/p>\n
Please note that your case ${number} has been escalated to ${assignment_group}. An agent will be assigned on your case and will keep you updated. If you have more questions please reach out to our team.<\/p>\n
Regards,<\/p>\n
${sys_updated_by}<\/p>" }, { "sys_id": "698388ec0b03320036e62c7885673ab5", "name": "Resolution Notes - Phone Inquiry", "short_name": "Resolution Notes - Phone Inquiry", "template_body": "
Thank you ${subject_person} for reaching out to the Global HR Services Team for your inquiry. As discussed over the phone, we have resolved your case ${number}.<\/p>\n
We are happy to help if you have more questions for our team. Please reach out and mention the case number ${number} on the call.<\/p>\n
Regards,<\/p>\n
${assigned_to}<\/p>" } ] } ```