> ## Documentation Index
> Fetch the complete documentation index at: https://plain-docs-orca-916-agent-docs-restructure.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a snippet

> Create a snippet, with a name to find it by and optional dynamic variables.

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.

<Snippet file="graphql/sdk-note.mdx" />

The optional `path` groups snippets in the Plain app. Only alphanumeric characters are allowed.

This operation requires the following permissions:

* `snippet:create`

<Snippet file="graphql/create-snippet.mdx" />
