Skip to main content
GET
Get Snippet
The content is HTML as authored, with {{variables}} left raw.
A deleted snippet and another workspace’s snippet both answer 404 SNIPPET_NOT_FOUND.

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

snippetId
string
required

The unique identifier of the snippet, from GET /snippets

Response

The snippet

A snippet: an HTML fragment (a signature, a paragraph, a call-to-action) inserted inside a message. The content is HTML as authored: sanitize it before rendering.

_id
string

Snippet identifier (snt_)

name
string

Name shown on the Templates page

content
string

HTML content as authored, variables left as {{variable}}

createdBy
string

Creator user id (usr_), see GET /team/members

createdAt
string<date-time>

Creation date