# Get template

Retrieve all email templates for your environment.
To retrieve a specific template, pass its `type` as a query parameter.
A valid environment token is required to call this endpoint. You can obtain it from the environment authentication route.

Endpoint: GET /resources/mail/v1/configs/templates
Version: 1.0
Security: bearer

## Security:

  - `bearer` (unknown)
    http bearer JWT

## Query parameters:

  - `type` (string)

## Response 200 fields (application/json):

  - `htmlTemplate` (string, required)

  - `senderEmail` (string, required)

  - `redirectURL` (string, required)

  - `successRedirectUrl` (string, required)

  - `subject` (string, required)

  - `fromName` (string, required)

  - `active` (boolean, required)

  - `type` (object, required)

  - `redirectURLPattern` (string)

  - `successRedirectUrlPattern` (string)

