Get Collections API
Last updated
Was this helpful?
Last updated
Was this helpful?
Export OpenAPI specification for Get Collections API
Collections are powerful and give you more flexibility and organization in your project.
Use Collection UUID as collection_uuid
an optional query parameter in Get Mockups API to list mockups that belong to the provided collection UUID.
This way you can communicate with all mockups inside a collection instead of getting them all without knowing which one you exactly need.
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.
Retrieves a list of available collections.
/collections
The request must accept JSON responses.
application/json
API key required for authentication.
YOUR_API_KEY_HERE