MessageTplmodels Method - GET

Description

This function list the different templates for the Mailjet campaign tool. You can list templates from all or just one category, and also the user's templates.

Request URL

api.mailjet.com/0.1/messageTplmodels

Code Sample

<?php
 
# Call
$response = $mj->messageTplModels();
 
# Result
$templates = $reponse->templates;
 
?>

Parameters

category (Integer, optional)
Description: Mailjet's template category ID
custom (Boolean, optional)
Description: If true, returns the user's templates
locale (String, optional)
Description: fr_FR, en_US, de_DE, etc ...

Return

status (String)
Description: Status of the response
templates (Array)
Description:
LabelTypeDescription
categoryString
footerString
footer_wysiwyg_typeInteger
header_filenameString
header_linkString
header_textString
header_urlString
idInteger
id_categoryInteger
is_customBoolean
nameString
permalinkString
permalink_wysiwyg_typeInteger