Liste Collections
This endpoint allows you to browse and search through multiple collections. It is commonly used to display a user's dashboard of "My Lists," search for public marketing campaigns, or filter specific types of collections (e.g., all active "Wishlists").
The response is paginated using a standard metadata envelope, making it ideal for building infinite scroll or paginated interfaces.
X-API-Key<token>
In: header
Query Parameters
filter?
limit?number
page?number
sort?string
populate?array<>
select?
skip?number
Response Body
application/json
curl -X GET "https://example.com/collections?sort=&populate="{ "type": "success", "code": "string", "status": 0, "message": "string", "data": { "docs": [ { "id": "string", "title": "string", "description": "string", "type": "cart", "privacy": "public", "owner": "string", "ownerModel": "User", "participants": [ { "profil": "string", "profilType": "Profil", "role": "owner", "joinedAt": "2019-08-24T14:15:22Z", "invitedByType": "Profil", "invitedBy": null, "permissions": { "canAddItems": false, "canRemoveItems": false, "canModifyItems": false, "canInviteOthers": false, "canModifyCollection": false } } ], "items": [ { "_id": "64f1a2b3c4d5e6f7g8h9i0j1", "item": { "_id": "64f1a2b3c4d5e6f7g8h9i0j2", "name": "Smartphone XYZ", "description": "Latest smartphone model", "productType": "electronics" }, "itemType": "Product", "itemId": "64f1a2b3c4d5e6f7g8h9i0j2", "collectionParent": { "_id": "64f1a2b3c4d5e6f7g8h9i0j3", "title": "My Wishlist", "type": "wishlist", "privacy": "private" }, "collectionId": "64f1a2b3c4d5e6f7g8h9i0j3", "owner": { "_id": "64f1a2b3c4d5e6f7g8h9i0j4", "firstName": "John", "lastName": "Doe", "email": "john.doe@example.com" }, "ownerModel": "Profil", "metadata": { "position": 1, "priority": "high", "rating": 5, "quantity": 1, "addedBy": { "_id": "64f1a2b3c4d5e6f7g8h9i0j4", "firstName": "John", "lastName": "Doe", "email": "john.doe@example.com" }, "addedByType": "Profil", "addedAt": "2024-01-15T10:30:00Z", "tags": [ "electronics", "wishlist" ], "notes": "Really want this phone!" }, "status": "active", "payload": {}, "createdAt": "2024-01-15T10:30:00Z", "updatedAt": "2024-01-15T10:30:00Z" } ], "settings": { "allowDuplicates": false, "maxItems": 1, "autoSort": false, "sortBy": "name", "sortOrder": "asc", "notifyOnItemAdded": true, "notifyOnParticipantJoin": true, "notifyOnChanges": false, "expiresAt": "2019-08-24T14:15:22Z", "autoCleanup": false }, "tags": [ "string" ], "category": "string", "isTemplate": false, "templateCategory": "string", "stats": { "totalItems": 0, "totalValue": 0, "lastActivity": "2019-08-24T14:15:22Z", "popularItems": [ null ], "activityCount": { "daily": 0, "weekly": 0, "monthly": 0 } }, "shareableLink": "http://example.com", "shareStats": { "views": 0, "shares": 0, "likes": 0 }, "payload": {}, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "lastActivityAt": "2019-08-24T14:15:22Z" } ], "totalDocs": 0, "limit": 0, "totalPages": 0, "page": 0, "pagingCounter": 0, "hasPrevPage": true, "hasNextPage": true, "prevPage": 0, "nextPage": 0 }}