/snippets (aka Templates)

Lists templates or snippets that you have access to (including those shared with you)

Query Params
string
Defaults to no search

(Optional) See table below.

boolean
Defaults to false

(Optional) True to ONLY return snippets that you do not own (i.e. shared with you)

boolean
Defaults to false

(Optional) returns snippet marked for deleted

string
Defaults to no sort

(Optional) field to sort by

boolean
Defaults to false

(Optional) true to sort ascending

string

(Optional) Separate multiple expand queries using comma (ex: expand=analytics,userId). Pass expand=analytics to return analytics for each snippet. Pass expand=userId on the querystring to expand this to include the email of the owner. Pass expand=snippetId to retrieve your snippets' snippet tag IDs - set as an object on the snippet's _id field like { _id: { _id: <snippet ID>, tagId: <snippet tag ID> }, ... <other snippet document fields> }.

boolean

(Optional) False to only return templates and true to only return snippets (they don't include subject lines and can't be sent individually).

Response

Language
Credentials
Header
Request
Response
Choose an example:
application/json
Psst... like working with APIs? Come join us!