Messaging does not have its own API calls, and is instead used as an umbrella for the different APIs involved with your business' messaging services. These include the Email Categories and Email Templates APIs, where email categories act as the groups of templates available for use by your business' communications.
Email templates are each assigned a level of 0-5 that returns filled in the level property. Below is a table describing what each level signifies:
Level | Description |
---|
0 | Default template provided by the server-businessId property would be set to null |
1 | Default template in the category that has been edited by the business-businessId property is filled in with the business’s unique numeric ID (No services/classes or languages have been applied) |
2 | Template that has a language applied to it |
3 | Template that has one or more reasons/services/classes applied to it |
4 | Template that has both a language and one or more reasons/services/classes applied to it |
All email categories have a “Default Template” (level 0) that acts as a fallback if the appointment in question does not meet the specific reason/service/class and the client is not assigned to the language of another template in that category. The default template will always get returned (will be set to level 0 or 1 depending on if it has been edited by the business) in any GET emailTemplates/emailCategory/{emailCategoryId} calls.