In 2024, GHL added these endpoints to create/update email templates dynamically.
POST /emails/builder (create a template)
POST /emails/builder/data (update a template)
While both endpoints work fine to create a template and its body (text or HTML), they do not allows to create the template settings: sender name, sender email address, subject line and preview text (the parameters in the right column in the GUI).
According to the documentation, the /data endpoint allows to pass a templateSettings object in the body, as an attribute of the dnd object.
However, after several hours of testing and then contacting the support, it appears that this feature has not been developed in the backend.
The GUI uses a specific /meta endpoint to send the data to the backend with the following object
{
"fromName": "xxx",
"subjectLine": "xxx",
"fromAddress": "xxx",
"previewText": "xxx"
}
The /emails/builder/data endpoint contains a templateSettings object in dnd object. However, any attempt at passing these variables fails silently
Can you either:
  • allow to pass a templateSettings object in the /data endpoint to update these variables
  • create a /meta endpoint similar to the one used in the GUI