Templates

Create a snippet

name is the literal identifier templates include with {{> name}}: it must start with a letter and contain only letters, digits, hyphen or underscore, and it is unique within the project.

Requires the templates:write scope — Create, edit, and delete your email templates.

post/api/snippets

Request

  • Base URL: https://api.sendly.now
  • URL: https://api.sendly.now/api/snippets
  • Auth: one of:
    • HTTP bearer
    • API key in cookie better-auth.session_token
    • OAuth 2 (authorization code, authorization URL https://app.sendly.now/api/auth/oauth2/authorize, token URL https://app.sendly.now/api/auth/oauth2/token, scopes: templates:write)

Request body

bodystring required
descriptionstring nullable
namestring required

Response

Snippet created

successtrue required

Changes

No recorded changes to this operation across all 1 revision of this API.