---
title: "List Templates"
method: GET
path: "/v2/facts/{proj_id}/{env_id}/email_templates/"
tags: ["Email Templates"]
---

# List Templates

`GET /v2/facts/{proj_id}/{env_id}/email_templates/`

Lists all the email configurations defined within an environment.

## Path parameters

- `proj_id` string, required — Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").
- `env_id` string, required — Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").

## Query parameters

- `page` integer — Page number of the results to fetch, starting at 1.
- `per_page` integer — The number of results per page (max 100).

## Response `200`

Successful Response

- EmailTemplateRead[]
  - `template_type` 'approval_flows' | 'user_management' | 'test_email', required — An enumeration.
  - `id` string, uuid, required — Unique id of the EmailTemplate
  - `organization_id` string, uuid, required — Unique id of the organization that the EmailTemplate belongs to.
  - `project_id` string, uuid, required — Unique id of the project that the EmailTemplate belongs to.
  - `environment_id` string, uuid, required — Unique id of the environment that the EmailTemplate belongs to.
  - `from_address` string, email, required — The from address the mails will be sent from
  - `redirect_to` string, uri, required — The redirect url the user will be redirected to after clicking the link in the email
  - `url_ttl` string, required — The time to live of the url in the email, in seconds
  - `subject` string, required — The subject of the email template
  - `messages` EmailTemplateMessage[], required — The messages of the email template
    - `message_type` 'approval_flows_deny' | 'user_management_invite' | 'approval_flows_approve' | 'approval_flows_request' | 'test_email', required — An enumeration.
    - `message_content` string, required — The value of the message

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/permit/apis/permit-io-api.md) · [All operations](https://skmtc.dev/permit/apis/permit-io-api/llms.txt) · [OpenAPI document](https://skmtc.dev/permit/apis/permit-io-api/revisions/cc295662e9cb?raw)
