List blocks
List blocks with cursor-based pagination. Returns both shared project blocks and blocks saved by end-users; each user-saved block carries the userId it was saved under (null for shared blocks), so usage can be aggregated per end-user without enumerating user IDs. Returns blocks in descending order by creation.
Request
- Base URL: https://api.unlayer.com
- URL: https://api.unlayer.com/v3/blocks
- Auth: one of:
- HTTP bearer
- HTTP bearer
Query parameters
The project ID to list blocks for
Number of blocks to return (1-100)
Pagination cursor from previous response
Filter by display mode
Only blocks saved by this end-user (exact match on the user id your app passes to the editor)
Filter by block ownership: shared project blocks, end-user saved blocks, or both
Filter by category (case-insensitive search)
Include the block design JSON in each item. Pass false for lightweight sweeps (e.g. usage reports).
Response
Default Response
Changes
No recorded changes to this operation across all 2 revisions of this API.