Collections API
Retrieves a list of available collections. Optionally filter by catalog UUID.
API key required for authentication.
Optional UUID of the catalog to filter collections by.
a1b2c3d4-e5f6-4a5b-9c8d-1e2f3a4b5c6dOptional parameter to include collections from all catalogs. If false or omitted, only collections from the default catalog are returned. Set to true to fetch from all catalogs.
falseThe request must accept JSON responses.
API key required for authentication.
YOUR_API_KEY_HEREA list of collections retrieved successfully.
Bad request due to invalid input parameters.
Unauthorized request, invalid or missing API key.
Creates a new collection.
API key required for authentication.
The request must accept JSON responses.
API key required for authentication.
YOUR_API_KEY_HEREThe name of the collection to create.
My new collectionOptional UUID of the catalog to place this collection in. If not provided, uses the default catalog.
a1b2c3d4-e5f6-4a5b-9c8d-1e2f3a4b5c6dCollection created successfully.
Bad request due to invalid input parameters.
Unauthorized request, invalid or missing API key.
Export OpenAPI specification for Collections API
Example Use case
Let's say you need to render images for all tea mugs with your company logo on them, but there's a problem: you have more than 100 mug mockups, and you have mugs for coffee, tea, and oatmeal.
Without collections, you would need to hardcode more than 30 mockup UUIDs manually for each tea mug.
The best way to achieve flexibility and render only mugs that are designed for the tea is to create a collection of "Tea mugs", put all tea mug mockups inside that collection, and call Get Mockups API with an optional collection_uuid filter.
Now that you have all the tea mug mockups retrieved, you can easily call Render API for each tea mug mockup and render an image.
Last updated
Was this helpful?