Creating templates via the API can be done in two ways. One way is to pass in back and front parameters. These will define the full size images to be used for the front and back of the piece. These will not contain any other text or images. The other way is to pass in the full HTML of the piece based on Postalytics template standards. Note that on either of these methods if you override the proofing process by sending is_proofed = true, Postalytics can take no responsibility for templates not created properly.
If is_full_html is set to true, the entire html is sent in as the html property. If set to false, full sized background images will be sent in as front and back properties
Indicates whether the template is considered proofed or not. Note that setting this to true bypasses all the guardrails in the web app for making sure templates are created properly. If set to true Postalytics takes no responsibility for pieces sent out with incorrect formatting
Name of the template.
Size of the template being created. Options are: 0 = letter, 1 = 4x6 postcard, 2 = 6x9 postcard, 3 = 6x11 postcard, 6 = 12x9 bifold, 7 = 6x18 bifold
The image url of the full sized background for the back or the back content of a letter. Refer to the help docs for proper image sizing.
The number of pages in the template if this is a letter.
The date and time when the template was created.
Font family to be used within template.
The image url of the full sized background for the front or the front content of a letter. Refer to the help docs for proper image sizing.
If is_full_html is set to true, the full HTML defined here will be used tp create the template. The HTML format is very specific and this feature should be used carefully. For detailed samples of specific HTML for the various formats, please contact support@postalytics.com
Indicates whether the template is double-sided if this is a letter.
The unique identifier of the template. This will be returned on a GET but is not required for a POST
Thumbnail path of the template front. This will be returned on a GET but is not required for a POST.
Thumbnail path of the template back. This will be returned on a GET but is not required for a POST.
The date and time when the template was created.
The unique id of the template.