Get Collection Details
Retrieve the full details of a specific collection, including its items, settings, and statistics.
This endpoint fetches all information related to a single Collection. Beyond basic metadata (title, description), it allows you to retrieve the list of items and participants associated with it.
To handle collections with a large number of items, this endpoint supports advanced query parameters for:
- Pagination: Control the number of items returned.
- Filtering: Narrow down items within the collection.
- Sorting: Order items by date added, price, or popularity.
- Population: Resolve references to get full objects instead of just IDs.
X-API-Key<token>
In: header
Path Parameters
id*string
Response Body
application/json
curl -X GET "https://example.com/collections/string"{ "type": "success", "code": "string", "status": 0, "message": "string", "data": { "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" }}