📂Collections API
Retrieves a list of available collections.
The 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.
GET /api/v1/collections HTTP/1.1
Host: app.dynamicmockups.com
x-api-key: text
Accept: application/json
{
"data": [
{
"uuid": "f63c0cfa-f106-463e-bbf9-5514b5164245",
"name": "Coffee Mugs collection",
"mockup_count": 2,
"created_at": "2024-08-28 13:11:05 UTC",
"updated_at": "2024-08-28 13:11:05 UTC",
"created_at_timestamp": 1724850665,
"updated_at_timestamp": 1724850665
}
],
"success": true,
"message": ""
}Creates a new collection.
The request must accept JSON responses.
API key required for authentication.
YOUR_API_KEY_HEREThe name of the collection to create.
My new collectionCollection created successfully.
Bad request due to invalid input parameters.
Unauthorized request, invalid or missing API key.
POST /api/v1/collections HTTP/1.1
Host: app.dynamicmockups.com
x-api-key: text
Accept: application/json
Content-Type: application/json
Content-Length: 28
{
"name": "My new collection"
}{
"data": {
"id": 43,
"uuid": "c55d2d7c-9517-43d9-b182-e16497dd37bb",
"workspace_id": 38,
"catalog_id": 1,
"name": "Test new collection upload",
"slug": "test-new-collection-upload",
"is_published": 1,
"created_at": "2025-10-23T12:40:42.000000Z",
"updated_at": "2025-10-23T12:40:42.000000Z"
},
"success": true,
"message": ""
}Export OpenAPI specification for Collections API
Use Collection UUID to filter Mockups
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 exactly you need.
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?