Skip to main content
POST
Needs snippets:create, and a role in the workspace that can create snippets: owners, managers, content managers and content creators can. See Permissions.
Saves text the team drops into posts from the composer: kind: "snippet" for any text, like a sign-off or a link, and kind: "hashtags" for a hashtag group. name is 1 to 80 characters and body 1 to 5,000, both counted after the spaces at the start and end are dropped. Names need not be unique. Every plan has snippets, Free included. A workspace keeps at most 500, both kinds together: one more is refused with 422 and the message This workspace has 500 saved snippets, the most it can keep. Delete one to save another. The workspace is checked first, then your role, then the body: a role that can’t create snippets gets 403 whatever the body says.

Errors

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
workspace_id
integer
required

The workspace. It must be one the key can reach.

kind
enum<string>
required

snippet for any saved text, hashtags for a hashtag group.

Available options:
snippet,
hashtags
name
string
required

A short name for the list. Spaces at the start and end are dropped before it is counted and saved. It need not be unique.

Required string length: 1 - 80
body
string
required

The text that goes into the post. Spaces at the start and end are dropped.

Required string length: 1 - 5000

Response

The snippet.

A saved snippet or hashtag group to drop into posts.

id
integer
required
workspace_id
integer
required
kind
enum<string>
required

snippet for any saved text, hashtags for a hashtag group.

Available options:
snippet,
hashtags
name
string
required
Maximum string length: 80
body
string
required
Maximum string length: 5000
created_by
integer | null
required

The user who saved it; null once that user is deleted.

created_at
string<date-time>
required
updated_at
string<date-time>
required