ghl_email_template_list
Retrieve a paginated list of email templates for a given location, with optional search, sorting, and filtering by folder or archived status.
Instructions
List templates Get list of templates by location Endpoint: GET /emails/locations/{locationId}/templates (Version header: v3; source: v3/emails-v3.json) OAuth scopes: emails/templates.readonly Pagination params: limit, offset — pass them to page through full result sets.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of templates to return | |
| offset | No | Number of templates to skip | |
| search | No | Search by template name | |
| sortBy | No | Field to sort by | updatedAt |
| include | No | Whether to include templates, folders, or both in the response. `templates` will return only templates, `folders` will return only folders, and `all` will return both. | all |
| archived | No | Return archived templates | |
| folderId | No | Folder to list templates from. Use 'root' for top-level listing. | |
| sortOrder | No | Sort direction | desc |
| locationId | Yes | Location ID |