Overview
ACollection is a user-owned, hierarchical folder used to save and organize entities. Every user has a single root collection created automatically on first access. Users can create any number of sub-collections nested under the root or under other sub-collections.
Collections are private — each collection belongs to one user and is not visible to others.
Fields
Display name of the collection, at most 255 characters. The root collection is always named
"root".Number of entities directly saved in this collection (not counting sub-collections) that the collection’s owner can see in it: entities that are deleted, removed by moderation or turned back into drafts aren’t counted, and neither are entities in a space the owner can’t read (see who can read content) or entities whose author has blocked the owner. Computed on every response, by the same rule as
totalItems on Fetch Collection Entities, so the two always match. See entityCount.entityCount
A collection’sentityCount is worked out when it’s returned, from the entities the owner can see in it. Saving or removing an entity returns the count after that change. An entity the owner can no longer see stays saved but isn’t counted or listed: one in a space they lost read access to (for example after leaving a members-only space), or one whose author blocked them after they saved it. It comes back if they regain access, or the author unblocks them. An entity whose author the owner blocked is still listed and counted. Such an entity can still be removed from the collection.
Notes
- The root collection is created lazily on the first call to
GET /v8/:projectId/collections/root. - The root collection cannot be renamed or deleted.
- Sub-collections can be nested to any depth.
- Entities are linked to collections via a junction table — the same entity can be saved in multiple collections.

