# Render a search template **POST /_render/template/{id}** **All methods and paths for this operation:**
GET /_render/template
POST /_render/template
GET /_render/template/{id}
POST /_render/template/{id}
Render a search template as a search request body. ## Required authorization * Index privileges: `read` ## Servers - http://api.example.com: http://api.example.com () ## Authentication methods - Api key auth - Basic auth - Bearer auth ## Parameters ### Path parameters - **id** (string) The ID of the search template to render. If no `source` is specified, this or the `id` request body parameter is required. ### Body: application/json (object) - **id** (string) The ID of the search template to render. If no `source` is specified, this or the `` request path parameter is required. If you specify both this parameter and the `` parameter, the API uses only ``. - **file** (string) - **params** (object) Key-value pairs used to replace Mustache variables in the template. The key is the variable name. The value is the variable value. - **source** (string | object) An inline search template. It supports the same parameters as the search API's request body. These parameters also support Mustache variables. If no `id` or `` is specified, this parameter is required. ## Responses ### 200 #### Body: application/json (object) - **template_output** (object) [Powered by Bump.sh](https://bump.sh)