List text templates

list_site_message_templates

Lists a site's text templates, built-in and its own, with each one's text and review state.

Every site starts with the built-in templates, and custom marks the ones it added of its own. Each has its key, label, category (UTILITY for an update, MARKETING for a promotion, AUTHENTICATION for the verification code), text with {{placeholders}}, its fields with examples, and its state: initial (not sent for review yet), pending (in review), approved (it can send real texts), rejected, paused or disabled. reason carries why the review rejected or paused it, or why sending it for review failed. retrying true means the review could not start for a reason outside the template, such as the site's texting account not being ready yet, and it is sent for review again on its own, so it needs nothing more. canEdit, canSubmit and canDelete say what can be done with it now. See Templates.

Inputs

Input Type Required Description
projectId string Yes The site id.