Collections API

Get Collections

get

Retrieves a list of available collections. Optionally filter by catalog UUID.

Authorizations
x-api-keystringRequired

API key required for authentication.

Query parameters
catalog_uuidstringOptional

Optional UUID of the catalog to filter collections by.

Example: a1b2c3d4-e5f6-4a5b-9c8d-1e2f3a4b5c6d
include_all_catalogsbooleanOptional

Optional 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.

Example: false
Header parameters
Acceptstring ยท enumRequired

The request must accept JSON responses.

Possible values:
x-api-keystringRequired

API key required for authentication.

Example: YOUR_API_KEY_HERE
Responses
200

A list of collections retrieved successfully.

application/json
get
/collections

Create Collection

post

Creates a new collection.

Authorizations
x-api-keystringRequired

API key required for authentication.

Header parameters
Acceptstring ยท enumRequired

The request must accept JSON responses.

Possible values:
x-api-keystringRequired

API key required for authentication.

Example: YOUR_API_KEY_HERE
Body
namestringRequired

The name of the collection to create.

Example: My new collection
catalog_uuidstring | nullableOptional

Optional UUID of the catalog to place this collection in. If not provided, uses the default catalog.

Example: a1b2c3d4-e5f6-4a5b-9c8d-1e2f3a4b5c6d
Responses
200

Collection created successfully.

application/json
post
/collections

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?