Create Message Template
Create a message template for the authenticated user using the public v2 request shape.
Authorizations
Bearer token authentication using your thanks.io API key
Body
Type of the message template
postcard, postcard6x11, letter, windowlessletter, notecard, giftcard, magnacard "notecard"
Name of the message template
"Thank You Message"
Handwriting style ID for the message template
4
Handwriting color to use
"rgba(31,0,113,0.80)"
Set to true to enable the realism effect for AI fonts.
true
Template body content.
"Hey %FIRST_NAME%!,\n\nTHANK YOU for allowing us the opportunity to HELP you with your plan!"
ID of the sub-account to associate with this template.
7
URL to additional pages to include with the cover letter. Only valid for letter templates.
"https://example.com/additional-pages.pdf"
URL to PDF file to use for entire mailer. If this is specified, no cover letter is generated. Valid for letter templates only. Providing this URL automatically sets skip_creative_generation to true.
"https://example.com/mailer.pdf"
URL of a custom background image for the template. Only valid for postcard backs and the interior background of notecards and giftcards.
"https://example.com/background.png"
URL of the QR code image to use for the template.
"https://www.thanks.io"
List of email addresses to CC when a QR code is scanned
Brand code of the gift card. Required when type is giftcard.
"amazonus"
Amount of the gift card in cents. Required when type is giftcard. Use this field for public v2 requests instead of giftcard_amount_in_cents.
5000
URL of the gated landing page (also known as a gating URL). Recipients must visit this page before they can redeem the gift card, letting you gate redemption behind an action such as booking a demo or completing a form. Only valid for giftcards.
"https://example.com/landing"
Response
Created
2
2
ID of the handwriting style used in the message template
18
Font size used in the message template. Only valid for AI fonts
auto, large, medium, small Font color used in the message template.
"#000000"
Handwriting realism level used in the message template. Only valid for AI fonts
"Thank You Message"
"Hey %FIRST_NAME%!,\n\nTHANK YOU for allowing us the opportunity to HELP you with your plan!"
URL to additional pages to include with the cover letter. Only valid for letter templates.
Flag to skip creative generation. Set when message template is PDF file only.
0
URL of the custom background image for the message template. Only valid for postcard backs and the interior background of notecards and giftcards.
"https://example.com/background.png"
URL of the QR code image for the message template
"https://www.thanks.io"
List of email addresses to be CC'd on when a QR code is scanned
"2018-08-08T02:56:59.000000Z"
"2025-02-12T05:13:15.000000Z"
Type of the message template
postcard, postcard6x11, letter, windowlessletter, notecard, giftcard, magnacard "notecard"
Brand code of the gift card
"amazonus"
Image URL of the gift card brand
"https://cdn.thanks.io/giftcards/amazonus.png"
Amount of the gift card in cents
5000
URL of the gated landing page (also known as a gating URL). Recipients must visit this page before they can redeem the gift card, letting you gate redemption behind an action such as booking a demo or completing a form. Only valid for giftcards.
"5J5N-QAD3-6LLL-LSZZ"