Search Templates

Search email templates based on specific filter criteria like template name.

๐Ÿ” Search Templates

Use this endpoint to search templates by name or other attributes. This is useful for dynamically retrieving matching templates.


๐Ÿ”น HTTP Request

GET API-URL/templates

๐Ÿงพ Query Parameters

Parameter
Type
Default
Required
Description

page

int

1

No

Current page to retrieve.

per_page

int

10

No

Number of items per page.

filters

array

โ€”

Yes

Indexed array of template attributes to filter by (e.g., name).


๐Ÿ” Authorization Header

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

๐Ÿ’ป PHP Example

// Search ALL ITEMS
$response = $endpoint->searchTemplates($pageNumber = 1, $perPage = 10, [
    'name' => 'summer_offer_template'
]);

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

๐Ÿ“ฆ Sample JSON Response