Get collections
Use this endpoint to retrieve a paginated list of Collections available to the calling Account. Use this when you want to render a collection browse experience - a homepage tile grid, a budget-filtered category page, or a swag store landing page.
####### Filtering options**
filter[location]- comma-separated ISO 3166-1 alpha-2 country codes (e.g.US,CA). Only Collections supporting all requested locations are returned. Thumbnails andpriceRangeuse the first location in the list. Defaults toUS.filter[maxPrice]- budget bucket selector that controls which thumbnail set is returned.filter[tag]- comma-separated collection tags. One or more ofgifts,swag,custom.filter[search]- free-text search on collection name (max 100 characters).
####### Pagination and sorting**
page[number]- 1-indexed page number (default1).page[size]- number of collections per page (max150, default100).sort-rank(default - curated display order),name,-name,createdAt, or-createdAt.
Field expansion
fields- comma-separated list of optional fields to include. One or more ofpriceRange,description,createdAt,updatedAt,createdBy,updatedBy,createdVia.
Required headers
Snappy-Account-Id- account scope.
Optional headers
Snappy-Company-Id- further scope to a specific Company within the Account.
Please note
- Uses page-number pagination, unlike
GET /v3/collections/{collectionId}/productswhich uses cursor pagination. The response includes a top-levellinksobject (first,next,prev) and ameta.totalcount of Collections matching the supplied filters. - Returns Collections by curated
rankby default - lower rank values surface first. - Returns
404if the suppliedSnappy-Account-Iddoes not match a known Account.
Permissions
- Requires:
collections:read
Authorizations
Company Level Authentication
Include your API key in the X-Api-Key header for every request:
X-Api-Key: YOUR_API_KEYHeaders
Account identifier.
"acc123456"
Optional company identifier.
"cmp123456"
Query Parameters
Comma-separated ISO 3166-1 alpha-2 country codes. Only collections supporting all locations are returned.
^([A-Z]{2})(,[A-Z]{2})*$"US,CA"
Budget bucket selector for thumbnails.
0 <= x <= 9999980
Comma-separated collection tags (gifts, swag, custom).
gifts, swag, custom ["gifts", "swag"]Free-text search on collection name (max 100 characters).
100"birthday"
Optional fields to include.
priceRange, description, createdAt, updatedAt, createdVia ["priceRange", "description"]Sort field. Prefix with - for descending. Defaults to rank.
rank, name, -name, createdAt, -createdAt "rank"
1-indexed page number.
x >= 11
Number of collections per page (max 150, default 100).
1 <= x <= 150100