Template Schema
Last updated
Was this helpful?
Last updated
Was this helpful?
This section discusses what the /simple-to-full-json
endpoint is and how you can use it for AI-driven designs. This endpoint accepts as the body of the POST
request, and returns the full Beefree SDK template JSON, which can then be loaded in the Beefree SDK editor for an end user to view and edit accordingly. There are many creative ways to use and implement this endpoint, because it provides a pathway to programmatically creating full Beefree SDK-compatible templates completely outside of the Beefree SDK builder.
Reference the for more information.
The API call accepts a template
object, which is required to successfully perform the /simple-to-full-json
API call. The following table describes this required object.
template
JSON
Yes
The following code snippet shows the template object as the body of the POST
request.
The following table lists and describes both required and optional object parameters nested within the mandatory template
object. This template
object is the body of the POST
request for the API call.
type
String
✅ Yes
Specifies the template type. Possible values include: email
, page
, popup
.
rows
Array
✅ Yes
settings
Object
❌ No
metadata
Object
❌ No
The following code snippet shows the optional settings
object nested within the template
object in the body of the POST
request.
The following table lists and describes optional object parameters nested within the settings
object. The settings object is nested within the mandatory template
object.
linkColor
String
❌ No
The default color of the links within the template.
backgroundColor
String
❌ No
The background color of the template.
contentAreaBackgroundColor
String
❌ No
The background color of the content area.
width
integer
❌ No
Important: The width of the template must be between 320 and 1440 pixels.
The following code snippet shows the optional metadata
object nested within the template
object in the body of the POST
request.
The following table lists and describes optional object parameters nested within the metadata
object. The metadata
object is nested within the mandatory template
object.
lang
string
❌ No
The language code of the template (for example, "en"
, "fr"
).
title
string
❌ No
The title of the template.
description
string
❌ No
A short description of the template.
subject
string
❌ No
The subject line of the email (if applicable).
preheader
string
❌ No
The preheader text for the email (if applicable).
The following JSON Schema is related to the request parameters for this endpoint, as mentioned in the above table we accept only a template
object, which is mandatory. The following JSON Schema describes the request parameters as well as the template object structure, going in depth on the possible properties of the template object.
A Beefree SDK template in simple JSON format ().
Array containing at least one row. Reference the .
Configuration settings. Reference the section for more information.
Metadata information. Reference the for more information.