Email Templates

Retrieve saved email templates configured inside your customer account.
GET /templates

Retrieves a paginated list of all custom email templates saved in your customer account.

Query Parameters

Parameter Type Status Description
per_page Integer Optional Number of records per page (Default: 15).
page Integer Optional The page number of results to fetch (Default: 1).

cURL Example

curl -X GET "https://api.hotsol.net/api/v1/templates?per_page=2" \
     -H "Authorization: Bearer hk_sec_your_secret_key_here" \
     -H "Accept: application/json"

Response Example

{
    "success": true,
    "message": "Email templates retrieved successfully.",
    "data": [
        {
            "id": 1,
            "template_id": "tpl_9c8f9db04fdc4a3b9a84",
            "customer_id": 1,
            "template_name": "Summer Discount Layout",
            "html_content": "<html><body>...",
            "created_at": "2026-08-15T12:00:00.000000Z",
            "updated_at": "2026-08-22T08:00:00.000000Z"
        }
    ],
    "meta": {
        "current_page": 1,
        "last_page": 1,
        "per_page": 15,
        "total": 1
    }
}