Skip to main content
Snippets are reusable pieces of text, also known as canned responses, that users can drop into a reply with a few keystrokes. They’re useful for boilerplate openers, common troubleshooting steps, or any phrasing your team repeats.
For TypeScript, the GraphQL SDK gives you a fully typed client for these operations.
Each snippet has a name (used to search and identify it), a plain-text body, and an optional markdown body that’s preferred when sending into rich-text channels. Snippets can also be grouped under a path (an alphanumeric string). This is what’s used to organize snippets in folders in the Plain app. You can create, update and delete snippets in the Plain app, but for teams that maintain a shared library of canned responses in another system, the API is useful for keeping them in sync.