Create a saved reply
POST
/saved-repliesSaves a reply for people to use again.
Needs the permissiontemplates:create
Body
namestringrequired- How people find it.
bodyHtmlstringrequired- The text, as HTML.
descriptionstringoptional- A line about when to use it.
subjectstringoptional- A subject it sets.
mailboxIdstringoptional- Only for this mailbox.
teamIdstringoptional- Only for this team.
Returns
idstring- The saved reply.
namestring- How people find it.
descriptionstring or null- A line about when to use it.
subjectstring or null- A subject it sets, if any.
bodyHtmlstring- The text.
mailboxIdstring or null- The one mailbox it’s for, if it’s limited to one.
teamIdstring or null- The one team it’s for, if it’s limited to one.
Errors
400invalid_template- There’s no
nameor nobodyHtml, or something else is wrong. The message says what. 401invalid_key- The key is wrong, expired or revoked. With no Authorization header at all, the code is
missing_credentials. 403missing_scope- The key doesn’t have
templates:create. TheX-Required-Scopeheader names what’s missing. 409template_exists- There’s already one with that name.
429rate_limited- More than 120 requests a minute from this key. Wait for
Retry-Afterseconds.