---
title: "View email templates"
method: POST
path: "/template/search"
tags: ["TEMPLATES"]
---

# View email templates

`POST /template/search`

Search your collection of email templates. Returns any templates that match your search criteria.

## Request body

- object
  - `fuzzy_search` boolean — If provided, will determine whether search terms are matched exactly or using wildcards. Default: false
  - `search_terms` string[] — If provided, will return email templates containing any of the strings provided in name, tag, id or subject fields.
  - `tags` string[] — If provided, will return email templates containing any of the tags provided
  - `sort_direction` string — If provided, will sort the returned email templates in ascending or descending order. Default: asc<br><br><strong>Values:</strong> asc or desc
  - `page_size` integer — If provided, will limit the number of email templates returned. Default 100
  - `continue_token` string — If provided, will fetch the next page of results, following on from the previous page of results from which this continue token was returned

## Response `200`

Matching templates

- object
  - `request_id` string
  - `data` object
    - `continue_token` unknown
    - `templates` object[]
      - `id` string, required
      - `name` string — This parameter is only returned in 'search' response
      - `template_name` string — This parameter is not present in 'search' response
      - `subject` string, required
      - `tags` string[], required
      - `last_updated` string — A timestamp indicating when this template was last updated

## Other responses

- `400` — 400

---

[API](https://skmtc.net/smtp2go/apis/smtp2go-api-v3-0-4.md) · [All operations](https://skmtc.net/smtp2go/apis/smtp2go-api-v3-0-4/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smtp2go/smtp2go-api-v3-0-4/versions/1ba6b25eebb9/schema)
