Templates
Status: Trusted Tester
Templates that can be used for emails and other messaging services.
AG-12345/type/email/template-id/TEM-12345Possible values: [reviewRequestTemplates]
reviewRequestTemplatesattributes object
A user friendly description for the template.
My Preferred Sites Review RequestemailMetadata object
Additional information about the template.
The subject line of the email.
Thank you for choosing us!The email address to which the customer should reply.
jondoe@mail.comsmsMetadata object
Additional information about the template.
The url that will customer will be sent to.
https://www.yoursite.com/reviews/customer-123The sms message prefix. {first_name} is an optional template variable that can be used within the greeting.
Hi {first_name}Generally a shortened version of the company name.
myListing: The link within the sms message will direct the customer to the my listing page.preferredReviewSites: The link within the sms message will direct the customer to the preferred review sites.custom: The link within the sms message will direct the customer to the custom url configured within the metadata.
Possible values: [myListing, preferredReviewSites, custom]
The content of the template.
Hi {{.customerName}},
<br>
<br>
Thank you for your business! We'd love to know more about your latest experience with us.
<br>
<br>
{{.buttonUrl}}
<br>
<br>
Thank you,
<br>
John DoeThe local language that the template was written in.
Note: We currently have a limited set of allowed languages but expect to support many more in the future. When the requested language is not supported US English will be used.
It should be a single BCP47/RFC5646 language tag. This is an ISO 639-1 Alpha-2 language code in lowercase and an ISO 3166-1 Alpha-2 country code in uppercase, separated by a dash.
Examples:
en-USEnglish (US)fr-FRFrench (France)
Possible values: Value must match regular expression ^[a-z]{2}-[A-Z]{2}$
en-USThe type of the template.
Possible values: [email, sms]
emailrelationships object
businessLocation object
data object
The ID of the business location the template belongs to.
Possible values: non-empty
Possible values: [businessLocation]
businessLocation{
"id": "AG-12345/type/email/template-id/TEM-12345",
"type": "reviewRequestTemplates",
"attributes": {
"name": "My Preferred Sites Review Request",
"emailMetadata": {
"subject": "Thank you for choosing us!",
"replyTo": "jondoe@mail.com"
},
"smsMetadata": {
"url": "https://www.yoursite.com/reviews/customer-123",
"greeting": "Hi {first_name}",
"prefix": "string",
"templateType": "myListing"
},
"content": "Hi {{.customerName}},\n<br>\n<br>\nThank you for your business! We'd love to know more about your latest experience with us.\n<br>\n<br>\n{{.buttonUrl}}\n<br>\n<br>\nThank you,\n<br>\nJohn Doe",
"languageLocaleCode": "en-US",
"templateType": "email"
},
"relationships": {
"businessLocation": {
"data": {
"id": "string",
"type": "businessLocation"
}
}
}
}