Get All Templates

Retrieve a paginated list of email templates available for the authenticated customer account.

🖼️ Get All Templates

Use this endpoint to get all templates created or imported under your SenderWiz account.


🔹 HTTP Request

GET API-URL/templates

🧾 Query Parameters

Parameter
Default
Description

page

1

Current page to retrieve.

per_page

10

Items per page to retrieve.


🔐 Authorization Header

X-API-KEY: your-api-key-here

💻 PHP Example

// GET ALL ITEMS
$response = $endpoint->getTemplates($pageNumber = 1, $perPage = 10);

// DISPLAY RESPONSE
echo '<pre>';
print_r($response->body);
echo '</pre>';

📦 Sample JSON Response

{
  "status": "success",
  "data": {
    "records": [
      {
        "template_uid": "tpl9847xyz123",
        "name": "summer_campaign_template",
        "screenshot": "https:\/\/demo.com\/frontend\/assets\/gallery\/tpl9847xyz123\/img_preview.png"
      }
    ]
  }
}

Last updated