Open
Description
Overview
Add support to the SDK for managing Email Templates in Mailtrap, based on the official API documentation and OpenAPI specification (see below).
References
- Mailtrap API Docs - Email Templates
- Mailtrap Help - Email Templates
- OpenAPI specs provided in this issue for API structure and endpoints.
Requirements
- Implement client methods for the following endpoints:
- Get all email templates
- Create a new email template
- Get a template by ID
- Update a template by ID
- Delete a template by ID
- Ensure full request/response models are covered per OpenAPI spec.
- Add basic input validation and error handling for API responses (401, 403, 404, 422, 500).
- Provide usage examples and documentation for the Email Templates functionality.
OpenAPI Excerpt
openapi: 3.1.0
info:
description: API for Mailtrap.io Email Templates functionality
version: 2.0-oas3
title: Email Templates API
...
Please reach out in this issue if clarification is needed on API behavior or edge cases.