Skip to contentDevelopersPrezly website
Snippets

List Snippets

List reusable content snippets belonging to the account.

Personal tokens are not supported for this endpoint. Use an integration API key. Your account must also have access to the requested data. Authentication

Returns an unpaginated snippets array ordered by title. Content is serialized document JSON in format 0.50.

Read the guide

GET
/snippets

Personal access tokens are not supported for this endpoint. Use an integration API key with the required permissions.

Authorization

API_key
headerAuthorizationBearer <token>

Bearer authentication using an integration API key, or a personal access token only where the operation explicitly supports it. Every listed personal-token scope is required; owner permissions and newsroom access still apply.

Response Body

OK

application/json
  1. response
snippets?array<>
Example Request
curl -X GET 'https://api.prezly.com/v2/snippets'
Example Response200
{  "snippets": [    {      "id": 0,      "uuid": "string",      "title": "string",      "content": "string",      "block_types": [        "string"      ],      "creator": {        "id": 0,        "email": "http://example.com",        "name": "string",        "display_name": "string",        "first_name": "string",        "last_name": "string",        "avatar_url": "http://example.com"      },      "last_modifying_user": {        "id": 0,        "email": "http://example.com",        "name": "string",        "display_name": "string",        "first_name": "string",        "last_name": "string",        "avatar_url": "http://example.com"      },      "created_at": "string",      "modified_at": "string"    }  ]}