Skip to main content

Documentation Index

Fetch the complete documentation index at: https://www.plain.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Using TypeScript? Check out our GraphQL SDK for a fully typed client.
Snippet name is used to find the snippet when inserting it during a reply. The text field is the plain-text body that will be used in environments that don’t render markdown. If you also pass markdown, that version is preferred wherever rich text is supported. The optional path groups snippets in the Plain app. Only alphanumeric characters are allowed. This operation requires the following permissions:
  • snippet:create
Mutation
mutation createSnippet($input: CreateSnippetInput!) {
  createSnippet(input: $input) {
    snippet {
      id
      name
      text
      markdown
      path
    }
    error {
      message
      type
      code
      fields {
        field
        message
        type
      }
    }
  }
}
Variables
{
  "input": {
    "name": "Out of office",
    "text": "Thanks for getting in touch. The team is offline right now and will get back to you within one business day.",
    "markdown": "Thanks for getting in touch. The team is offline right now and will get back to you within **one business day**.",
    "path": "general"
  }
}