PrintCart Rest API (1.0.0)
Download OpenAPI specification:Download
PrintCart REST API Doc.
PrintCart offers two forms of authentication:
- Basic Auth
- UnAuthToken
UnAuthToken
- Some Printcart API endpoints don't need your username and password to authenticate. Those endpoints only interact with your public data so the code can be shared publicly.
- To request to those endpoints, you only need to send
UnAuthTokenin theX-PrintCart-Unauth-Tokenheader
X-PrintCart-Unauth-TokenCreate Account
Request Body schema: application/json
| name required | string Customer name |
| email required | string <email> The email address for the customer. |
| password required | string
|
Responses
Request samples
- Payload
{- "name": "admin",
- "email": "admin@example.com",
- "password": "Password1234@"
}Response samples
- 201
- 400
- 500
{- "data": {
- "user": {
- "id": "013f00061-edacd12-455e-b407-aa6aa80ec862",
- "name": "admin",
- "email": "admin@example.com",
- "email_verified_at": "2022-11-23T03:33:58.000000Z",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "token_type": "bearer",
- "access_token": "eyJ0eXiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjgwMDEvdjEvYWNjb3VudCIsImlhdCI6MTY2MTMzMDk0OSwibmJmIjoxNjYxMzMwOTQ5LCJqdGkiOiJkbFI4ZG1iMnNqMlpLUjlwIiwic3ViIjoiMSIsInBydiI6IjIzYmQ1Yzg5NDlmNjAwYWRiMzllNzAxYzQwMDg3MmRiN2E1OTc2ZjcifQ.ev6XeAuuQ8wz0pSyWcoqP71pzpWEp8rjZ11FyxdyPEk"
}, - "message": "Created successfully"
}Response samples
- 200
- 401
- 404
- 500
{- "data": {
- "id": "013f00061-edacd12-455e-b407-aa6aa80ec862",
- "name": "admin",
- "email": "admin@example.com",
- "email_verified_at": "2022-11-23T03:33:58.000000Z",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "message": "Retrieved successfully"
}Update Account Details
Authorizations:
Request Body schema: application/json
| name | string Customer name. |
string <email> The email address for the customer. |
Responses
Request samples
- Payload
{- "name": "admin",
- "email": "admin@example.com"
}Response samples
- 200
- 400
- 401
- 404
- 500
{- "data": {
- "id": "013f00061-edacd12-455e-b407-aa6aa80ec862",
- "name": "admin",
- "email": "admin@gmail.com",
- "email_verified_at": "2022-11-23T03:33:58.000000Z",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-18T08:26:30.000000Z"
}, - "message": "Updated successfully"
}Create Store
Authorizations:
Request Body schema: application/json
| store_name required | string Customer store name |
| google_font_api | string API Key Google Font |
| unsplash | string API Key Unsplash |
| pixabay | string API Key Pixabay |
| pexels | string API Key Pexels |
Responses
Request samples
- Payload
{- "store_name": "Store Example",
- "google_font_api": "string",
- "unsplash": "string",
- "pixabay": "string",
- "pexels": "string"
}Response samples
- 201
- 400
- 401
- 500
{- "data": {
- "id": "a2ba0785-7f53-3eea-a020-bac895d31234",
- "name": "printcart store",
- "sid": "pcsia_xxxxx6fa332b74bdd0exxxxx3b361aca0c2f7b9bbfe68343xxxx",
- "secret": "pcsup_xxxxx225e8ddb1ff446c6xxxxx94902ab2f193fcd5bfc2xxxx",
- "unauth_token": "xxxxx13e142d5202aedaxxxxx5ce0a82bbf6c05711af3a2xxxx",
- "google_font_api": "string",
- "shop_url": "string",
- "view_store_url": "string",
- "integration_type": "null",
- "is_integrated": false,
- "unsplash_key": "string",
- "pixabay_key": "string",
- "pexels_key": "string",
- "timezone": "string",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "message": "Created successfully"
}Get Store Info
Authorizations:
query Parameters
| limit | integer Default: 20 The numbers of items to return |
| sort | string Default: "desc" Enum: "desc" "asc" |
| sortBy | string Default: "id" |
Responses
Response samples
- 200
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "a2ba0785-7f53-3eea-a020-bac895d31234",
- "name": "printcart store",
- "sid": "pcsia_xxxxx6fa332b74bdd0exxxxx3b361aca0c2f7b9bbfe68343xxxx",
- "secret": "pcsup_xxxxx225e8ddb1ff446c6xxxxx94902ab2f193fcd5bfc2xxxx",
- "unauth_token": "xxxxx13e142d5202aedaxxxxx5ce0a82bbf6c05711af3a2xxxx",
- "google_font_api": "string",
- "shop_url": "string",
- "view_store_url": "string",
- "integration_type": "null",
- "is_integrated": false,
- "unsplash_key": "string",
- "pixabay_key": "string",
- "pexels_key": "string",
- "timezone": "string",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}
], - "links": {
- "first": null,
- "last": null,
}, - "message": "Retrieved successfully"
}Update Store Details
Authorizations:
Request Body schema: application/json
| store_name | string Customer store name |
| google_font_api | string API Key Google Font |
| unsplash | string API Key Unsplash |
| pixabay | string API Key Pixabay |
| pexels | string API Key Pexels |
Responses
Request samples
- Payload
{- "store_name": "Store Example",
- "google_font_api": "string",
- "unsplash": "string",
- "pixabay": "string",
- "pexels": "string"
}Response samples
- 200
- 400
- 401
- 404
- 500
{- "data": {
- "id": "a2ba0785-7f53-3eea-a020-bac895d31234",
- "name": "printcart store",
- "sid": "pcsia_xxxxx6fa332b74bdd0exxxxx3b361aca0c2f7b9bbfe68343xxxx",
- "secret": "pcsup_xxxxx225e8ddb1ff446c6xxxxx94902ab2f193fcd5bfc2xxxx",
- "unauth_token": "xxxxx13e142d5202aedaxxxxx5ce0a82bbf6c05711af3a2xxxx",
- "google_font_api": "string",
- "shop_url": "string",
- "view_store_url": "string",
- "integration_type": "null",
- "is_integrated": false,
- "unsplash_key": "string",
- "pixabay_key": "string",
- "pexels_key": "string",
- "timezone": "string",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "message": "Updated successfully"
}Response samples
- 200
- 401
- 404
- 500
{- "data": {
- "id": "a2ba0785-7f53-3eea-a020-bac895d31234",
- "name": "printcart store",
- "sid": "pcsia_xxxxx6fa332b74bdd0exxxxx3b361aca0c2f7b9bbfe68343xxxx",
- "secret": "pcsup_xxxxx225e8ddb1ff446c6xxxxx94902ab2f193fcd5bfc2xxxx",
- "unauth_token": "xxxxx13e142d5202aedaxxxxx5ce0a82bbf6c05711af3a2xxxx",
- "google_font_api": "string",
- "shop_url": "string",
- "view_store_url": "string",
- "integration_type": "null",
- "is_integrated": false,
- "unsplash_key": "string",
- "pixabay_key": "string",
- "pexels_key": "string",
- "timezone": "string",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "message": "Retrieved successfully"
}Create Product
Authorizations:
Request Body schema: application/json
| name required | string The name given to a product |
| dynamic_side | boolean |
| viewport_width | number <float> |
| viewport_height | number <float> |
| scale | number <float> |
| dpi | integer <int64> Default: 72 |
| dimension_unit | string Default: "cm" Enum: "inch" "cm" |
| status | string Default: "publish" Enum: "publish" "draft" "trashed" Product status |
| allowed_file_types | Array of strings Items Enum: "jpg" "png" "ai" "pdf" "svg" "ps" |
| enable_design | boolean |
| enable_upload | boolean |
| enable_pod | boolean Default: false True if you want the product to be published on our POD page |
| product_image_id | string Image ID. |
| max_file_upload | integer <int64> Default: 1 |
| min_jpg_dpi | integer <int64> Default: 0 |
| type_id | string Enum: "simple" "variant" "variant_option" |
| description | string Product description |
| category_ids | Array of strings Category ID (Storage ID) |
| parent_id | string Product ID |
| upload_max_filesize | integer Limit file upload size |
| metadata | Array of arrays |
Responses
Request samples
- Payload
{- "name": "Product Example",
- "dynamic_side": true,
- "viewport_width": 50.5,
- "viewport_height": 50.5,
- "scale": 50.5,
- "dpi": 72,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "enable_design": false,
- "enable_upload": false,
- "enable_pod": false,
- "product_image_id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "type_id": "simple",
- "description": null,
- "category_ids": [
- "string"
], - "parent_id": null,
- "upload_max_filesize": null,
- "metadata": [
- null
]
}Response samples
- 201
- 400
- 401
- 404
- 500
{- "data": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "message": "Created successfully"
}Get a list of products
Authorizations:
query Parameters
| limit | integer Default: 20 The numbers of items to return |
| sort | string Default: "desc" Enum: "desc" "asc" |
| sortBy | string Default: "id" |
| status | string Default: "publish" Enum: "publish" "draft" "trashed" Product status |
Responses
Response samples
- 200
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}
], - "links": {
- "first": null,
- "last": null,
}, - "message": "Retrieved successfully"
}Get Product Details
Authorizations:
path Parameters
| productId required | string Product ID |
Responses
Response samples
- 200
- 401
- 404
- 500
{- "data": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "message": "Retrieved successfully"
}Update Product Details
Authorizations:
path Parameters
| productId required | string Product ID |
Request Body schema: application/json
| name | string Updated name of the product |
| dynamic_side | boolean |
| viewport_width | number <float> |
| viewport_height | number <float> |
| scale | number <float> |
| dpi | integer <int64> |
| dimension_unit | string Enum: "inch" "cm" |
| status | string Enum: "publish" "draft" "trashed" Product status |
| allowed_file_types | Array of strings Items Enum: "jpg" "png" "ai" "pdf" "ps" |
| max_file_upload | integer <int64> |
| min_jpg_dpi | integer <int64> |
| enable_design | boolean |
| enable_upload | boolean |
| enable_pod | boolean True if you want the product to be published on our POD page |
| product_image_id | string Image ID. |
| description | string Product description |
| category_ids | Array of strings Category ID (Storage ID) |
| upload_max_filesize | integer Limit file upload size |
| metadata | Array of arrays |
Responses
Request samples
- Payload
{- "name": "product example update",
- "dynamic_side": true,
- "viewport_width": 50.5,
- "viewport_height": 50.5,
- "scale": 50.5,
- "dpi": 100,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": false,
- "enable_pod": false,
- "product_image_id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "description": null,
- "category_ids": [
- "string"
], - "upload_max_filesize": null,
- "metadata": [
- null
]
}Response samples
- 200
- 400
- 401
- 404
- 500
{- "data": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "message": "Updated successfully"
}Create batch products
Authorizations:
Request Body schema: application/json
Array of objects (Product) | |||||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||||
Responses
Request samples
- Payload
{- "products": [
- {
- "name": "Product Example",
- "dynamic_side": true,
- "viewport_width": 50.5,
- "viewport_height": 50.5,
- "scale": 50.5,
- "dpi": 72,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "enable_design": false,
- "enable_upload": false,
- "enable_pod": false,
- "product_image_id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "type_id": "simple",
- "description": null,
- "category_ids": [
- "string"
], - "parent_id": null,
- "upload_max_filesize": null,
- "metadata": [
- null
]
}
]
}Response samples
- 201
- 400
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}
], - "message": "Created successfully"
}Update batch products
Authorizations:
Request Body schema: application/json
Array of objects | |||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||
Responses
Request samples
- Payload
{- "products": [
- {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example update",
- "dynamic_side": true,
- "viewport_width": 50.5,
- "viewport_height": 50.5,
- "scale": 50.5,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": false,
- "enable_pod": false,
- "product_image_id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "description": null,
- "upload_max_filesize": null,
- "metadata": [
- null
]
}
]
}Response samples
- 200
- 400
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}
], - "message": "Updated successfully"
}Delete batch products
Authorizations:
Request Body schema: application/json
Array of objects | |||
Array
| |||
Responses
Request samples
- Payload
{- "products": [
- {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958"
}
]
}Response samples
- 200
- 400
- 401
- 404
- 413
- 500
{- "message": "Deleted successfully"
}Get a list of designs by product
Authorizations:
path Parameters
| productId required | string Product ID |
query Parameters
| limit | integer Default: 20 The numbers of items to return |
| sort | string Default: "desc" Enum: "desc" "asc" |
| sortBy | string Default: "id" |
| status | string Default: "publish" Enum: "publish" "draft" "trashed" Product status |
Responses
Response samples
- 200
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "cce4dc71-6757-4a1c-a259-6b66a4304c14",
- "note": "Design example note",
- "status": "processing",
- "side": {
- "type": null,
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "name": "Side Example",
- "ratio": 72,
- "dimension_unit": "cm",
- "status": "publish",
- "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50.5,
- "y": 50.5
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50.5,
- "y": 50.5
}, - "side_image_size": {
- "width": 50,
- "height": 50
}, - "side_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "product": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "project": {
- "id": "4419934f-8e1b-4cf0-b432-01ef9258a812",
- "name": "project example",
- "status": "processing",
- "note": "project example note",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "preview_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "design_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "original_side": {
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "name": "Side Example",
- "scale": 72,
- "dimension_unit": "cm",
- "status": "publish",
- "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50.5,
- "y": 50.5
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50.5,
- "y": 50.5
}, - "side_image_size": {
- "width": 50,
- "height": 50
}, - "side_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "product": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "original_output_options": {
- "dpi": 500,
- "dimension_unit": "inch"
}, - "viewport": {
- "width": 50.5,
- "height": 50.5
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}
], - "links": {
- "first": null,
- "last": null,
}, - "message": "Retrieved successfully"
}Get a list of sides by product
Authorizations:
path Parameters
| productId required | string Product ID |
query Parameters
| limit | integer The numbers of items to return |
| sort | string Default: "desc" Enum: "desc" "asc" |
| sortBy | string Default: "id" |
Responses
Response samples
- 200
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "name": "Side Example",
- "scale": 72,
- "dimension_unit": "cm",
- "status": "publish",
- "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50.5,
- "y": 50.5
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50.5,
- "y": 50.5
}, - "side_image_size": {
- "width": 50,
- "height": 50
}, - "side_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "product": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}
], - "links": {
- "first": null,
- "last": null,
}, - "message": "Retrieved successfully"
}Create new product side
Authorizations:
Request Body schema: application/json
| product_id required | string Product ID |
| name required | string The name given to a side |
| bg_type | string Default: "image" Enum: "color" "image" "transparent" |
| bg_color_value | string |
| img_overlay_id | string |
| scale required | number <double> |
| background_included | boolean |
| show_overlay | boolean |
| include_overlay | boolean |
object | |
object | |
| show_cut_line | boolean |
object | |
| show_safe_zone | boolean |
object | |
| side_image_id required | string |
| status | string Default: "publish" Enum: "publish" "draft" "trashed" Side status |
Responses
Request samples
- Payload
{- "product_id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "Side Example",
- "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay_id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "scale": 100,
- "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "side_image_size": {
- "width": 50,
- "height": 50
}, - "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50,
- "y": 50
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50,
- "y": 50
}, - "side_image_id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "status": "publish"
}Response samples
- 201
- 400
- 401
- 404
- 500
{- "data": {
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "name": "Side Example",
- "scale": 72,
- "dimension_unit": "cm",
- "status": "publish",
- "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50.5,
- "y": 50.5
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50.5,
- "y": 50.5
}, - "side_image_size": {
- "width": 50,
- "height": 50
}, - "side_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "product": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "message": "Created successfully"
}Get a list of product sides
Authorizations:
query Parameters
| limit | integer Default: 20 The numbers of items to return |
| sort | string Default: "desc" Enum: "desc" "asc" |
| sortBy | string Default: "id" |
| status | string Default: "publish" Enum: "publish" "draft" "trashed" Side status |
Responses
Response samples
- 200
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "name": "Side Example",
- "scale": 72,
- "dimension_unit": "cm",
- "status": "publish",
- "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50.5,
- "y": 50.5
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50.5,
- "y": 50.5
}, - "side_image_size": {
- "width": 50,
- "height": 50
}, - "side_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "product": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}
], - "links": {
- "first": null,
- "last": null,
}, - "message": "Retrieved successfully"
}Get product side details
Authorizations:
path Parameters
| sideId required | string Side ID |
Responses
Response samples
- 200
- 401
- 404
- 500
{- "data": {
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "name": "Side Example",
- "scale": 72,
- "dimension_unit": "cm",
- "status": "publish",
- "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50.5,
- "y": 50.5
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50.5,
- "y": 50.5
}, - "side_image_size": {
- "width": 50,
- "height": 50
}, - "side_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "product": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "message": "Retrieved successfully"
}Update a product side details
Authorizations:
path Parameters
| sideId required | string Side ID |
Request Body schema: application/json
| product_id | string Product ID |
| name | string The name given to a side |
| bg_type | string Default: "image" Enum: "color" "image" "transparent" |
| bg_color_value | string |
| img_overlay_id | string |
| scale | number <double> |
| background_included | boolean |
| show_overlay | boolean |
| include_overlay | boolean |
object | |
object | |
| show_cut_line | boolean |
object | |
| show_safe_zone | boolean |
object | |
| side_image_id | string |
| status | string Default: "publish" Enum: "publish" "draft" "trashed" Side status |
Responses
Request samples
- Payload
{- "product_id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "Side Example",
- "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay_id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "scale": 100,
- "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "side_image_size": {
- "width": 50,
- "height": 50
}, - "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50,
- "y": 50
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50,
- "y": 50
}, - "side_image_id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "status": "publish"
}Response samples
- 200
- 400
- 401
- 404
- 500
{- "data": {
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "name": "Side Example",
- "scale": 72,
- "dimension_unit": "cm",
- "status": "publish",
- "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50.5,
- "y": 50.5
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50.5,
- "y": 50.5
}, - "side_image_size": {
- "width": 50,
- "height": 50
}, - "side_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "product": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "message": "Updated successfully"
}Create batch sides
Authorizations:
Request Body schema: application/json
Array of objects (Side) | |||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||
Responses
Request samples
- Payload
{- "sides": [
- {
- "product_id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "Side Example",
- "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay_id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "scale": 100,
- "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "side_image_size": {
- "width": 50,
- "height": 50
}, - "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50,
- "y": 50
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50,
- "y": 50
}, - "side_image_id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "status": "publish"
}
]
}Response samples
- 201
- 400
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "name": "Side Example",
- "scale": 72,
- "dimension_unit": "cm",
- "status": "publish",
- "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50.5,
- "y": 50.5
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50.5,
- "y": 50.5
}, - "side_image_size": {
- "width": 50,
- "height": 50
}, - "side_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "product": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}
], - "message": "Created successfully"
}Update batch sides
Authorizations:
Request Body schema: application/json
Array of objects | |||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||
Responses
Request samples
- Payload
{- "sides": [
- {
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "name": "Side Example",
- "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay_id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "scale": 100,
- "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "side_image_size": {
- "width": 50,
- "height": 50
}, - "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50,
- "y": 50
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50,
- "y": 50
}, - "side_image_id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "status": "publish"
}
]
}Response samples
- 200
- 400
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "name": "Side Example",
- "scale": 72,
- "dimension_unit": "cm",
- "status": "publish",
- "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50.5,
- "y": 50.5
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50.5,
- "y": 50.5
}, - "side_image_size": {
- "width": 50,
- "height": 50
}, - "side_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "product": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}
], - "message": "Updated successfully"
}Delete batch sides
Authorizations:
Request Body schema: application/json
Array of objects | |||
Array
| |||
Responses
Request samples
- Payload
{- "sides": [
- {
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b"
}
]
}Response samples
- 200
- 400
- 401
- 404
- 413
- 500
{- "message": "Deleted successfully"
}Get a list of templates by side
Authorizations:
path Parameters
| sideId required | string Side ID |
query Parameters
| limit | integer Default: 20 The numbers of items to return |
| sort | string Default: "desc" Enum: "desc" "asc" |
| sortBy | string Default: "id" |
Responses
Response samples
- 200
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "cce4dc71-6757-4a1c-a259-6b66a4304c14",
- "note": "Template example note",
- "side": {
- "type": null,
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "name": "Side Example",
- "ratio": 72,
- "dimension_unit": "cm",
- "status": "publish",
- "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50.5,
- "y": 50.5
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50.5,
- "y": 50.5
}, - "side_image_size": {
- "width": 50,
- "height": 50
}, - "side_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "product": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "project": {
- "id": "4419934f-8e1b-4cf0-b432-01ef9258a812",
- "name": "project example",
- "status": "processing",
- "note": "project example note",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "preview_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "template_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "original_side": {
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "name": "Side Example",
- "scale": 72,
- "dimension_unit": "cm",
- "status": "publish",
- "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50.5,
- "y": 50.5
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50.5,
- "y": 50.5
}, - "side_image_size": {
- "width": 50,
- "height": 50
}, - "side_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "product": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "original_output_options": {
- "dpi": 500,
- "dimension_unit": "inch"
}, - "viewport": {
- "width": 50.5,
- "height": 50.5
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}
], - "links": {
- "first": null,
- "last": null,
}, - "message": "Retrieved successfully"
}Add new image
Authorizations:
Request Body schema: multipart/form-data
| file | string <binary> Image to upload |
| type | string Default: null Enum: null "cliparts" "designs" |
| custom_width | integer <int64> Custom width thumbnail image |
Responses
Response samples
- 201
- 400
- 401
- 415
- 500
{- "data": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "message": "File successfully uploaded"
}Get a list of images
Authorizations:
query Parameters
| limit | integer The numbers of items to return |
| sort | string Default: "desc" Enum: "desc" "asc" |
| sortBy | string Default: "id" |
Responses
Response samples
- 200
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}
], - "links": {
- "first": null,
- "last": null,
}, - "message": "Retrieved successfully"
}Response samples
- 200
- 401
- 404
- 500
{- "data": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "message": "Retrieved successfully"
}Add new batch images
Authorizations:
Request Body schema: multipart/form-data
| files[] | string <binary> Multiple File Images Upload |
| type | string Default: null Enum: null "cliparts" "designs" |
Responses
Response samples
- 201
- 400
- 401
- 415
- 500
{- "data": [
- {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}
], - "message": "File successfully uploaded"
}Add new Clipart
Authorizations:
Request Body schema: multipart/form-data
| file | string <binary> Clipart to upload |
Responses
Response samples
- 201
- 400
- 401
- 415
- 500
{- "data": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Clipart example",
- "thumbnails": {
}, - "alt": "Clipart example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "message": "File successfully uploaded"
}Get a list of cliparts
Authorizations:
query Parameters
| limit | integer The numbers of items to return |
| sort | string Default: "desc" Enum: "desc" "asc" |
| sortBy | string Default: "id" |
Responses
Response samples
- 200
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Clipart example",
- "thumbnails": {
}, - "alt": "Clipart example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}
], - "links": {
- "first": null,
- "last": null,
}, - "message": "Retrieved successfully"
}Get a list of cliparts default
Authorizations:
query Parameters
| limit | integer The numbers of items to return |
| sort | string Default: "desc" Enum: "desc" "asc" |
| sortBy | string Default: "id" |
Responses
Response samples
- 200
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Clipart example",
- "thumbnails": {
}, - "alt": "Clipart example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}
], - "links": {
- "first": null,
- "last": null,
}, - "message": "Retrieved successfully"
}Get clipart details
Authorizations:
path Parameters
| clipartId required | string Clipart ID |
Responses
Response samples
- 200
- 401
- 404
- 500
{- "data": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Clipart example",
- "thumbnails": {
}, - "alt": "Clipart example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "message": "Retrieved successfully"
}Update clipart details
Authorizations:
path Parameters
| clipartId required | string Clipart ID |
Request Body schema: application/json
| storages | Array of arrays Storage ID |
Responses
Request samples
- Payload
{- "storages": [
- "e8304b84-a015-3bd4-a7d3-7a978f463a6v",
- "e5610b84-a015-3bd4-a7d3-7a978f465df2"
]
}Response samples
- 200
- 400
- 401
- 404
- 500
{- "data": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Clipart example",
- "thumbnails": {
}, - "alt": "Clipart example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "message": "Update successfully"
}Add new batch clipart
Authorizations:
Request Body schema: multipart/form-data
| files[] | string <binary> ultiple File Cliparts Upload |
Responses
Response samples
- 201
- 400
- 401
- 415
- 500
{- "data": [
- {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Clipart example",
- "thumbnails": {
}, - "alt": "Clipart example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}
], - "message": "File successfully uploaded"
}Create new design
Authorizations:
Request Body schema: application/json
| project_id | string Project ID |
| side_id required | string Side ID |
| preview_image_id | string Image ID |
| design_image_id | string Image ID |
| note | string |
| is_uploader | boolean Default: false |
| layers | Array of objects Lorem ipsum... |
| status | string Default: "processing" Enum: "accepted" "processing" "declined" "trashed" Design status |
| viewport_width | number <float> |
| viewport_height | number <float> |
Responses
Request samples
- Payload
{- "project_id": "4419934f-8e1b-4cf0-b432-01ef9258a812",
- "side_id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "preview_image_id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "design_image_id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "note": "Design Example",
- "is_uploader": false,
- "layers": {
- "top": 183.5025,
- "left": 195.79,
- "text": "Blackbird",
- "width": 68.33984375,
- "height": 22.6,
- "originX": "left",
- "originY": "top",
- "fontSize": 20,
- "fontStyle": "normal",
- "textAlign": "left",
- "fontFamily": "Yellowtail",
- "fontWeight": "normal"
}, - "status": "accepted",
- "viewport_width": 50.5,
- "viewport_height": 50.5
}Response samples
- 201
- 400
- 401
- 404
- 500
{- "data": {
- "id": "cce4dc71-6757-4a1c-a259-6b66a4304c14",
- "note": "Design example note",
- "status": "processing",
- "side": {
- "type": null,
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "name": "Side Example",
- "ratio": 72,
- "dimension_unit": "cm",
- "status": "publish",
- "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50.5,
- "y": 50.5
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50.5,
- "y": 50.5
}, - "side_image_size": {
- "width": 50,
- "height": 50
}, - "side_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "product": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "project": {
- "id": "4419934f-8e1b-4cf0-b432-01ef9258a812",
- "name": "project example",
- "status": "processing",
- "note": "project example note",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "preview_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "design_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "original_side": {
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "name": "Side Example",
- "scale": 72,
- "dimension_unit": "cm",
- "status": "publish",
- "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50.5,
- "y": 50.5
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50.5,
- "y": 50.5
}, - "side_image_size": {
- "width": 50,
- "height": 50
}, - "side_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "product": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "original_output_options": {
- "dpi": 500,
- "dimension_unit": "inch"
}, - "viewport": {
- "width": 50.5,
- "height": 50.5
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "layers": [
- {
- "top": 38.9832354205,
- "left": 329.6631024663,
- "text": "Heading",
- "width": 158,
- "height": 47.46,
- "originX": "left",
- "originY": "top",
- "fontSize": 42,
- "minWidth": 20,
- "fontStyle": "normal",
- "textAlign": "left",
- "underline": "false,",
- "fontFamily": "Roboto",
- "fontWeight": "normal"
}
]
}, - "message": "Created successfully"
}Get a list of designs
Authorizations:
query Parameters
| limit | integer The numbers of items to return |
| sort | string Default: "desc" Enum: "desc" "asc" |
| sortBy | string Default: "id" |
| status | string Enum: "accepted" "processing" "declined" "trashed" Design status |
Responses
Response samples
- 200
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "cce4dc71-6757-4a1c-a259-6b66a4304c14",
- "note": "Design example note",
- "status": "processing",
- "side": {
- "type": null,
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "name": "Side Example",
- "ratio": 72,
- "dimension_unit": "cm",
- "status": "publish",
- "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50.5,
- "y": 50.5
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50.5,
- "y": 50.5
}, - "side_image_size": {
- "width": 50,
- "height": 50
}, - "side_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "product": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "project": {
- "id": "4419934f-8e1b-4cf0-b432-01ef9258a812",
- "name": "project example",
- "status": "processing",
- "note": "project example note",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "preview_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "design_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "original_side": {
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "name": "Side Example",
- "scale": 72,
- "dimension_unit": "cm",
- "status": "publish",
- "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50.5,
- "y": 50.5
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50.5,
- "y": 50.5
}, - "side_image_size": {
- "width": 50,
- "height": 50
}, - "side_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "product": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "original_output_options": {
- "dpi": 500,
- "dimension_unit": "inch"
}, - "viewport": {
- "width": 50.5,
- "height": 50.5
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}
], - "links": {
- "first": null,
- "last": null,
}, - "message": "Retrieved successfully"
}Get design details
Authorizations:
path Parameters
| designId required | string Design ID |
Responses
Response samples
- 200
- 401
- 404
- 500
{- "data": {
- "id": "cce4dc71-6757-4a1c-a259-6b66a4304c14",
- "note": "Design example note",
- "status": "processing",
- "side": {
- "type": null,
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "name": "Side Example",
- "ratio": 72,
- "dimension_unit": "cm",
- "status": "publish",
- "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50.5,
- "y": 50.5
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50.5,
- "y": 50.5
}, - "side_image_size": {
- "width": 50,
- "height": 50
}, - "side_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "product": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "project": {
- "id": "4419934f-8e1b-4cf0-b432-01ef9258a812",
- "name": "project example",
- "status": "processing",
- "note": "project example note",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "preview_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "design_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "original_side": {
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "name": "Side Example",
- "scale": 72,
- "dimension_unit": "cm",
- "status": "publish",
- "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50.5,
- "y": 50.5
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50.5,
- "y": 50.5
}, - "side_image_size": {
- "width": 50,
- "height": 50
}, - "side_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "product": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "original_output_options": {
- "dpi": 500,
- "dimension_unit": "inch"
}, - "viewport": {
- "width": 50.5,
- "height": 50.5
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "layers": [
- {
- "top": 38.9832354205,
- "left": 329.6631024663,
- "text": "Heading",
- "width": 158,
- "height": 47.46,
- "originX": "left",
- "originY": "top",
- "fontSize": 42,
- "minWidth": 20,
- "fontStyle": "normal",
- "textAlign": "left",
- "underline": "false,",
- "fontFamily": "Roboto",
- "fontWeight": "normal"
}
]
}, - "message": "Retrieved successfully"
}Update design details
Authorizations:
path Parameters
| designId required | string Design ID |
Request Body schema: application/json
| project_id | string Project ID |
| side_id | string Side ID |
| preview_image_id | string Image ID |
| design_image_id | string Image ID |
| note | string |
| is_uploader | boolean Default: false |
| layers | Array of objects Lorem ipsum... |
| status | string Default: "processing" Enum: "accepted" "processing" "declined" "trashed" Design status |
| viewport_width | number <float> |
| viewport_height | number <float> |
Responses
Request samples
- Payload
{- "project_id": "4419934f-8e1b-4cf0-b432-01ef9258a812",
- "side_id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "preview_image_id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "design_image_id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "note": "Design Example",
- "is_uploader": false,
- "layers": {
- "top": 183.5025,
- "left": 195.79,
- "text": "Blackbird",
- "width": 68.33984375,
- "height": 22.6,
- "originX": "left",
- "originY": "top",
- "fontSize": 20,
- "fontStyle": "normal",
- "textAlign": "left",
- "fontFamily": "Yellowtail",
- "fontWeight": "normal"
}, - "status": "accepted",
- "viewport_width": 50.5,
- "viewport_height": 50.5
}Response samples
- 200
- 400
- 401
- 404
- 500
{- "data": {
- "id": "cce4dc71-6757-4a1c-a259-6b66a4304c14",
- "note": "Design example note",
- "status": "processing",
- "side": {
- "type": null,
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "name": "Side Example",
- "ratio": 72,
- "dimension_unit": "cm",
- "status": "publish",
- "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50.5,
- "y": 50.5
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50.5,
- "y": 50.5
}, - "side_image_size": {
- "width": 50,
- "height": 50
}, - "side_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "product": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "project": {
- "id": "4419934f-8e1b-4cf0-b432-01ef9258a812",
- "name": "project example",
- "status": "processing",
- "note": "project example note",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "preview_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "design_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "original_side": {
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "name": "Side Example",
- "scale": 72,
- "dimension_unit": "cm",
- "status": "publish",
- "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50.5,
- "y": 50.5
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50.5,
- "y": 50.5
}, - "side_image_size": {
- "width": 50,
- "height": 50
}, - "side_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "product": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "original_output_options": {
- "dpi": 500,
- "dimension_unit": "inch"
}, - "viewport": {
- "width": 50.5,
- "height": 50.5
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "layers": [
- {
- "top": 38.9832354205,
- "left": 329.6631024663,
- "text": "Heading",
- "width": 158,
- "height": 47.46,
- "originX": "left",
- "originY": "top",
- "fontSize": 42,
- "minWidth": 20,
- "fontStyle": "normal",
- "textAlign": "left",
- "underline": "false,",
- "fontFamily": "Roboto",
- "fontWeight": "normal"
}
]
}, - "message": "Updated successfully"
}Create batch designs
Authorizations:
Request Body schema: application/json
Array of objects (DesignJson) | |||||||||||||||||||||
Array
| |||||||||||||||||||||
Responses
Request samples
- Payload
{- "designs": [
- {
- "project_id": "4419934f-8e1b-4cf0-b432-01ef9258a812",
- "side_id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "preview_image_id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "design_image_id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "note": "Design Example",
- "is_uploader": false,
- "layers": {
- "top": 183.5025,
- "left": 195.79,
- "text": "Blackbird",
- "width": 68.33984375,
- "height": 22.6,
- "originX": "left",
- "originY": "top",
- "fontSize": 20,
- "fontStyle": "normal",
- "textAlign": "left",
- "fontFamily": "Yellowtail",
- "fontWeight": "normal"
}, - "status": "accepted",
- "viewport_width": 50.5,
- "viewport_height": 50.5
}
]
}Response samples
- 201
- 400
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "cce4dc71-6757-4a1c-a259-6b66a4304c14",
- "note": "Design example note",
- "status": "processing",
- "side": {
- "type": null,
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "name": "Side Example",
- "ratio": 72,
- "dimension_unit": "cm",
- "status": "publish",
- "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50.5,
- "y": 50.5
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50.5,
- "y": 50.5
}, - "side_image_size": {
- "width": 50,
- "height": 50
}, - "side_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "product": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "project": {
- "id": "4419934f-8e1b-4cf0-b432-01ef9258a812",
- "name": "project example",
- "status": "processing",
- "note": "project example note",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "preview_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "design_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "original_side": {
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "name": "Side Example",
- "scale": 72,
- "dimension_unit": "cm",
- "status": "publish",
- "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50.5,
- "y": 50.5
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50.5,
- "y": 50.5
}, - "side_image_size": {
- "width": 50,
- "height": 50
}, - "side_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "product": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "original_output_options": {
- "dpi": 500,
- "dimension_unit": "inch"
}, - "viewport": {
- "width": 50.5,
- "height": 50.5
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}
], - "message": "Created successfully"
}Update batch designs
Authorizations:
Request Body schema: application/json
Array of objects | |||||||||||||||||||||||
Array
| |||||||||||||||||||||||
Responses
Request samples
- Payload
{- "designs": [
- {
- "id": "cce4dc71-6757-4a1c-a259-6b66a4304c14",
- "project_id": "4419934f-8e1b-4cf0-b432-01ef9258a812",
- "side_id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "preview_image_id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "design_image_id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "note": "Design Example",
- "is_uploader": false,
- "layers": [
- {
- "top": 183.5025,
- "left": 195.79,
- "text": "Blackbird",
- "width": 68.33984375,
- "height": 22.6,
- "originX": "left",
- "originY": "top",
- "fontSize": 20,
- "fontStyle": "normal",
- "textAlign": "left",
- "fontFamily": "Yellowtail",
- "fontWeight": "normal"
}
], - "status": "accepted",
- "viewport_width": 50.5,
- "viewport_height": 50.5
}
]
}Response samples
- 200
- 400
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "cce4dc71-6757-4a1c-a259-6b66a4304c14",
- "note": "Design example note",
- "status": "processing",
- "side": {
- "type": null,
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "name": "Side Example",
- "ratio": 72,
- "dimension_unit": "cm",
- "status": "publish",
- "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50.5,
- "y": 50.5
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50.5,
- "y": 50.5
}, - "side_image_size": {
- "width": 50,
- "height": 50
}, - "side_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "product": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "project": {
- "id": "4419934f-8e1b-4cf0-b432-01ef9258a812",
- "name": "project example",
- "status": "processing",
- "note": "project example note",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "preview_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "design_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "original_side": {
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "name": "Side Example",
- "scale": 72,
- "dimension_unit": "cm",
- "status": "publish",
- "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50.5,
- "y": 50.5
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50.5,
- "y": 50.5
}, - "side_image_size": {
- "width": 50,
- "height": 50
}, - "side_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "product": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "original_output_options": {
- "dpi": 500,
- "dimension_unit": "inch"
}, - "viewport": {
- "width": 50.5,
- "height": 50.5
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}
], - "message": "Updated successfully"
}Delete batch designs
Authorizations:
Request Body schema: application/json
Array of objects | |||
Array
| |||
Responses
Request samples
- Payload
{- "designs": [
- {
- "id": "cce4dc71-6757-4a1c-a259-6b66a4304c14"
}
]
}Response samples
- 200
- 400
- 401
- 404
- 413
- 500
{- "message": "Deleted successfully"
}Get list fonts layer by design
Authorizations:
path Parameters
| designId required | string Design ID |
Responses
Response samples
- 200
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "bff22494-79c3-312b-ba7e-6d6f6d57401c",
- "name": "font example",
- "alias": "font example",
- "type": "font example",
- "subset": "font example",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}
], - "message": "Retrieved successfully"
}Get a list images design
Authorizations:
query Parameters
| limit | integer Default: 20 The numbers of items to return |
| sort | string Default: "desc" Enum: "desc" "asc" |
| sortBy | string Default: "id" |
Responses
Response samples
- 200
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}
], - "links": {
- "first": null,
- "last": null,
}, - "message": "Retrieved successfully"
}Create new template
Authorizations:
Request Body schema: application/json
| project_id | string Project ID |
| side_id required | string Side ID |
| preview_image_id | string Image ID |
| template_image_id | string Image ID |
| note | string |
| layers | Array of objects Lorem ipsum... |
| viewport_width | number <float> |
| viewport_height | number <float> |
Responses
Request samples
- Payload
{- "project_id": "4419934f-8e1b-4cf0-b432-01ef9258a812",
- "side_id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "preview_image_id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "template_image_id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "note": "Template example note",
- "layers": [
- {
- "top": 183.5025,
- "left": 195.79,
- "text": "Blackbird",
- "width": 68.33984375,
- "height": 22.6,
- "originX": "left",
- "originY": "top",
- "fontSize": 20,
- "fontStyle": "normal",
- "textAlign": "left",
- "fontFamily": "Yellowtail",
- "fontWeight": "normal"
}
], - "viewport_width": 50.5,
- "viewport_height": 50.5
}Response samples
- 201
- 400
- 401
- 404
- 500
{- "data": {
- "id": "cce4dc71-6757-4a1c-a259-6b66a4304c14",
- "note": "Template example note",
- "side": {
- "type": null,
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "name": "Side Example",
- "ratio": 72,
- "dimension_unit": "cm",
- "status": "publish",
- "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50.5,
- "y": 50.5
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50.5,
- "y": 50.5
}, - "side_image_size": {
- "width": 50,
- "height": 50
}, - "side_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "product": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "project": {
- "id": "4419934f-8e1b-4cf0-b432-01ef9258a812",
- "name": "project example",
- "status": "processing",
- "note": "project example note",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "preview_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "template_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "original_side": {
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "name": "Side Example",
- "scale": 72,
- "dimension_unit": "cm",
- "status": "publish",
- "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50.5,
- "y": 50.5
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50.5,
- "y": 50.5
}, - "side_image_size": {
- "width": 50,
- "height": 50
}, - "side_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "product": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "original_output_options": {
- "dpi": 500,
- "dimension_unit": "inch"
}, - "viewport": {
- "width": 50.5,
- "height": 50.5
}, - "layers": [
- {
- "top": 38.9832354205,
- "left": 329.6631024663,
- "text": "Heading",
- "width": 158,
- "height": 47.46,
- "originX": "left",
- "originY": "top",
- "fontSize": 42,
- "minWidth": 20,
- "fontStyle": "normal",
- "textAlign": "left",
- "underline": "false,",
- "fontFamily": "Roboto",
- "fontWeight": "normal"
}
], - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "message": "Created successfully"
}Get a list of templates
Authorizations:
query Parameters
| limit | integer Default: 20 The numbers of items to return |
| sort | string Default: "desc" Enum: "desc" "asc" |
| sortBy | string Default: "id" |
Responses
Response samples
- 200
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "cce4dc71-6757-4a1c-a259-6b66a4304c14",
- "note": "Template example note",
- "side": {
- "type": null,
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "name": "Side Example",
- "ratio": 72,
- "dimension_unit": "cm",
- "status": "publish",
- "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50.5,
- "y": 50.5
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50.5,
- "y": 50.5
}, - "side_image_size": {
- "width": 50,
- "height": 50
}, - "side_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "product": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "project": {
- "id": "4419934f-8e1b-4cf0-b432-01ef9258a812",
- "name": "project example",
- "status": "processing",
- "note": "project example note",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "preview_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "template_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "original_side": {
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "name": "Side Example",
- "scale": 72,
- "dimension_unit": "cm",
- "status": "publish",
- "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50.5,
- "y": 50.5
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50.5,
- "y": 50.5
}, - "side_image_size": {
- "width": 50,
- "height": 50
}, - "side_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "product": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "original_output_options": {
- "dpi": 500,
- "dimension_unit": "inch"
}, - "viewport": {
- "width": 50.5,
- "height": 50.5
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}
], - "links": {
- "first": null,
- "last": null,
}, - "message": "Retrieved successfully"
}Get a list of templates default
Authorizations:
query Parameters
| limit | integer Default: 20 The numbers of items to return |
| sort | string Default: "desc" Enum: "desc" "asc" |
| sortBy | string Default: "id" |
Responses
Response samples
- 200
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "cce4dc71-6757-4a1c-a259-6b66a4304c14",
- "note": "Template example note",
- "side": {
- "type": null,
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "name": "Side Example",
- "ratio": 72,
- "dimension_unit": "cm",
- "status": "publish",
- "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50.5,
- "y": 50.5
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50.5,
- "y": 50.5
}, - "side_image_size": {
- "width": 50,
- "height": 50
}, - "side_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "product": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "project": {
- "id": "4419934f-8e1b-4cf0-b432-01ef9258a812",
- "name": "project example",
- "status": "processing",
- "note": "project example note",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "preview_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "template_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "original_side": {
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "name": "Side Example",
- "scale": 72,
- "dimension_unit": "cm",
- "status": "publish",
- "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50.5,
- "y": 50.5
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50.5,
- "y": 50.5
}, - "side_image_size": {
- "width": 50,
- "height": 50
}, - "side_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "product": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "original_output_options": {
- "dpi": 500,
- "dimension_unit": "inch"
}, - "viewport": {
- "width": 50.5,
- "height": 50.5
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}
], - "links": {
- "first": null,
- "last": null,
}, - "message": "Retrieved successfully"
}Get template details
Authorizations:
path Parameters
| templateId required | string Template ID |
Responses
Response samples
- 200
- 401
- 404
- 500
{- "data": {
- "id": "cce4dc71-6757-4a1c-a259-6b66a4304c14",
- "note": "Template example note",
- "side": {
- "type": null,
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "name": "Side Example",
- "ratio": 72,
- "dimension_unit": "cm",
- "status": "publish",
- "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50.5,
- "y": 50.5
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50.5,
- "y": 50.5
}, - "side_image_size": {
- "width": 50,
- "height": 50
}, - "side_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "product": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "project": {
- "id": "4419934f-8e1b-4cf0-b432-01ef9258a812",
- "name": "project example",
- "status": "processing",
- "note": "project example note",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "preview_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "template_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "original_side": {
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "name": "Side Example",
- "scale": 72,
- "dimension_unit": "cm",
- "status": "publish",
- "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50.5,
- "y": 50.5
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50.5,
- "y": 50.5
}, - "side_image_size": {
- "width": 50,
- "height": 50
}, - "side_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "product": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "original_output_options": {
- "dpi": 500,
- "dimension_unit": "inch"
}, - "viewport": {
- "width": 50.5,
- "height": 50.5
}, - "layers": [
- {
- "top": 38.9832354205,
- "left": 329.6631024663,
- "text": "Heading",
- "width": 158,
- "height": 47.46,
- "originX": "left",
- "originY": "top",
- "fontSize": 42,
- "minWidth": 20,
- "fontStyle": "normal",
- "textAlign": "left",
- "underline": "false,",
- "fontFamily": "Roboto",
- "fontWeight": "normal"
}
], - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "message": "Retrieved successfully"
}Update template details
Authorizations:
path Parameters
| templateId required | string Template ID |
Request Body schema: application/json
| project_id | string Project ID |
| side_id | string Side ID |
| preview_image_id | string Image ID |
| template_image_id | string Image ID |
| note | string |
| layers | Array of objects Lorem ipsum... |
| viewport_width | number <float> |
| viewport_height | number <float> |
Responses
Request samples
- Payload
{- "project_id": "4419934f-8e1b-4cf0-b432-01ef9258a812",
- "side_id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "preview_image_id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "template_image_id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "note": "printcart",
- "layers": {
- "top": 183.5025,
- "left": 195.79,
- "text": "Blackbird",
- "width": 68.33984375,
- "height": 22.6,
- "originX": "left",
- "originY": "top",
- "fontSize": 20,
- "fontStyle": "normal",
- "textAlign": "left",
- "fontFamily": "Yellowtail",
- "fontWeight": "normal"
}, - "viewport_width": 50.5,
- "viewport_height": 50.5
}Response samples
- 200
- 400
- 401
- 404
- 500
{- "data": {
- "id": "cce4dc71-6757-4a1c-a259-6b66a4304c14",
- "note": "Template example note",
- "side": {
- "type": null,
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "name": "Side Example",
- "ratio": 72,
- "dimension_unit": "cm",
- "status": "publish",
- "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50.5,
- "y": 50.5
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50.5,
- "y": 50.5
}, - "side_image_size": {
- "width": 50,
- "height": 50
}, - "side_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "product": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "project": {
- "id": "4419934f-8e1b-4cf0-b432-01ef9258a812",
- "name": "project example",
- "status": "processing",
- "note": "project example note",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "preview_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "template_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "original_side": {
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "name": "Side Example",
- "scale": 72,
- "dimension_unit": "cm",
- "status": "publish",
- "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50.5,
- "y": 50.5
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50.5,
- "y": 50.5
}, - "side_image_size": {
- "width": 50,
- "height": 50
}, - "side_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "product": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "original_output_options": {
- "dpi": 500,
- "dimension_unit": "inch"
}, - "viewport": {
- "width": 50.5,
- "height": 50.5
}, - "layers": [
- {
- "top": 38.9832354205,
- "left": 329.6631024663,
- "text": "Heading",
- "width": 158,
- "height": 47.46,
- "originX": "left",
- "originY": "top",
- "fontSize": 42,
- "minWidth": 20,
- "fontStyle": "normal",
- "textAlign": "left",
- "underline": "false,",
- "fontFamily": "Roboto",
- "fontWeight": "normal"
}
], - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "message": "Updated successfully"
}Create batch templates
Authorizations:
Request Body schema: application/json
Array of objects (TemplateJson) | |||||||||||||||||
Array
| |||||||||||||||||
Responses
Request samples
- Payload
{- "templates": [
- {
- "project_id": "4419934f-8e1b-4cf0-b432-01ef9258a812",
- "side_id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "preview_image_id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "template_image_id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "note": "Template example note",
- "layers": [
- {
- "top": 183.5025,
- "left": 195.79,
- "text": "Blackbird",
- "width": 68.33984375,
- "height": 22.6,
- "originX": "left",
- "originY": "top",
- "fontSize": 20,
- "fontStyle": "normal",
- "textAlign": "left",
- "fontFamily": "Yellowtail",
- "fontWeight": "normal"
}
], - "viewport_width": 50.5,
- "viewport_height": 50.5
}
]
}Response samples
- 201
- 400
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "cce4dc71-6757-4a1c-a259-6b66a4304c14",
- "note": "Template example note",
- "side": {
- "type": null,
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "name": "Side Example",
- "ratio": 72,
- "dimension_unit": "cm",
- "status": "publish",
- "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50.5,
- "y": 50.5
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50.5,
- "y": 50.5
}, - "side_image_size": {
- "width": 50,
- "height": 50
}, - "side_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "product": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "project": {
- "id": "4419934f-8e1b-4cf0-b432-01ef9258a812",
- "name": "project example",
- "status": "processing",
- "note": "project example note",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "preview_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "template_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "original_side": {
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "name": "Side Example",
- "scale": 72,
- "dimension_unit": "cm",
- "status": "publish",
- "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50.5,
- "y": 50.5
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50.5,
- "y": 50.5
}, - "side_image_size": {
- "width": 50,
- "height": 50
}, - "side_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "product": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "original_output_options": {
- "dpi": 500,
- "dimension_unit": "inch"
}, - "viewport": {
- "width": 50.5,
- "height": 50.5
}, - "layers": [
- {
- "top": 38.9832354205,
- "left": 329.6631024663,
- "text": "Heading",
- "width": 158,
- "height": 47.46,
- "originX": "left",
- "originY": "top",
- "fontSize": 42,
- "minWidth": 20,
- "fontStyle": "normal",
- "textAlign": "left",
- "underline": "false,",
- "fontFamily": "Roboto",
- "fontWeight": "normal"
}
], - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}
], - "message": "Created successfully"
}Update batch templates
Authorizations:
Request Body schema: application/json
Array of objects | |||||||||||||||||||
Array
| |||||||||||||||||||
Responses
Request samples
- Payload
{- "templates": [
- {
- "id": "cce4dc71-6757-4a1c-a259-6b66a4304c14",
- "project_id": "4419934f-8e1b-4cf0-b432-01ef9258a812",
- "side_id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "preview_image_id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "template_image_id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "note": "printcart",
- "layers": {
- "top": 183.5025,
- "left": 195.79,
- "text": "Blackbird",
- "width": 68.33984375,
- "height": 22.6,
- "originX": "left",
- "originY": "top",
- "fontSize": 20,
- "fontStyle": "normal",
- "textAlign": "left",
- "fontFamily": "Yellowtail",
- "fontWeight": "normal"
}, - "viewport_width": 50.5,
- "viewport_height": 50.5
}
]
}Response samples
- 200
- 400
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "cce4dc71-6757-4a1c-a259-6b66a4304c14",
- "note": "Template example note",
- "side": {
- "type": null,
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "name": "Side Example",
- "ratio": 72,
- "dimension_unit": "cm",
- "status": "publish",
- "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50.5,
- "y": 50.5
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50.5,
- "y": 50.5
}, - "side_image_size": {
- "width": 50,
- "height": 50
}, - "side_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "product": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "project": {
- "id": "4419934f-8e1b-4cf0-b432-01ef9258a812",
- "name": "project example",
- "status": "processing",
- "note": "project example note",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "preview_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "template_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "original_side": {
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "name": "Side Example",
- "scale": 72,
- "dimension_unit": "cm",
- "status": "publish",
- "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50.5,
- "y": 50.5
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50.5,
- "y": 50.5
}, - "side_image_size": {
- "width": 50,
- "height": 50
}, - "side_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "product": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "original_output_options": {
- "dpi": 500,
- "dimension_unit": "inch"
}, - "viewport": {
- "width": 50.5,
- "height": 50.5
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}
], - "message": "Updated successfully"
}Delete batch templates
Authorizations:
Request Body schema: application/json
Array of objects | |||
Array
| |||
Responses
Request samples
- Payload
{- "templates": [
- {
- "id": "cce4dc71-6757-4a1c-a259-6b66a4304c14"
}
]
}Response samples
- 200
- 400
- 401
- 404
- 413
- 500
{- "message": "Deleted successfully"
}Get list fonts layer by template
Authorizations:
path Parameters
| templateId required | string Template ID |
Responses
Response samples
- 200
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "bff22494-79c3-312b-ba7e-6d6f6d57401c",
- "name": "font example",
- "alias": "font example",
- "type": "font example",
- "subset": "font example",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}
], - "message": "Retrieved successfully"
}Create new project
Authorizations:
Request Body schema: application/json
| name required | string The name given to a project |
| status | string Default: "processing" Enum: "processing" "reviewing" "accepted" "trashed" Project status |
| note | string |
Responses
Request samples
- Payload
{- "name": "Project example",
- "status": "processing",
- "note": "project example note"
}Response samples
- 201
- 400
- 401
- 500
{- "data": {
- "id": "4419934f-8e1b-4cf0-b432-01ef9258a812",
- "name": "project example",
- "status": "processing",
- "note": "project example note",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "message": "Created successfully"
}Get a list of projects
Authorizations:
query Parameters
| limit | integer Default: 20 The numbers of items to return |
| sort | string Default: "desc" Enum: "desc" "asc" |
| sortBy | string Default: "id" |
| status | string Enum: "processing" "reviewing" "accepted" "trashed" Project status |
| s | string Search List Project By Name |
Responses
Response samples
- 200
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "4419934f-8e1b-4cf0-b432-01ef9258a812",
- "name": "project example",
- "status": "processing",
- "note": "project example note",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}
], - "links": {
- "first": null,
- "last": null,
}, - "message": "Retrieved successfully"
}Get project details
Authorizations:
path Parameters
| projectId required | string Project ID |
Responses
Response samples
- 200
- 401
- 404
- 500
{- "data": {
- "id": "4419934f-8e1b-4cf0-b432-01ef9258a812",
- "name": "project example",
- "status": "processing",
- "note": "project example note",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "message": "Retrieved successfully"
}Update project details
Authorizations:
path Parameters
| projectId required | string Project ID |
Request Body schema: application/json
| name | string The name given to a project |
| status | string Default: "processing" Enum: "processing" "reviewing" "accepted" "trashed" Project status |
| note | string |
Responses
Request samples
- Payload
{- "name": "Project example update",
- "status": "processing",
- "note": "Project example update note"
}Response samples
- 200
- 400
- 401
- 404
- 500
{- "data": {
- "id": "4419934f-8e1b-4cf0-b432-01ef9258a812",
- "name": "project example",
- "status": "processing",
- "note": "project example note",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "message": "Updated successfully"
}Create batch projects
Authorizations:
Request Body schema: application/json
object (Project) | |||||||
| |||||||
Responses
Request samples
- Payload
{- "projects": {
- "name": "Project example",
- "status": "processing",
- "note": "project example note"
}
}Response samples
- 201
- 400
- 401
- 413
- 500
{- "data": [
- {
- "id": "4419934f-8e1b-4cf0-b432-01ef9258a812",
- "name": "project example",
- "status": "processing",
- "note": "project example note",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}
], - "message": "Created successfully"
}Update batch projects
Authorizations:
Request Body schema: application/json
Array of objects | |||||||||
Array
| |||||||||
Responses
Request samples
- Payload
{- "projects": [
- {
- "id": "4419934f-8e1b-4cf0-b432-01ef9258a812",
- "name": "Project example batch update",
- "status": "processing",
- "note": "Project example batch update note"
}
]
}Response samples
- 200
- 400
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "4419934f-8e1b-4cf0-b432-01ef9258a812",
- "name": "project example",
- "status": "processing",
- "note": "project example note",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}
], - "message": "Updated successfully"
}Delete batch projects
Authorizations:
Request Body schema: application/json
Array of objects | |||
Array
| |||
Responses
Request samples
- Payload
{- "projects": [
- {
- "id": "4419934f-8e1b-4cf0-b432-01ef9258a812"
}
]
}Response samples
- 200
- 400
- 401
- 404
- 413
- 500
{- "message": "Deleted successfully"
}Get a list of designs by project
Authorizations:
path Parameters
| projectId required | string Project ID |
query Parameters
| limit | integer Default: 20 The numbers of items to return |
| sort | string Default: "desc" Enum: "desc" "asc" |
| sortBy | string Default: "id" |
| status | string Enum: "accepted" "processing" "declined" "trashed" Design status |
Responses
Response samples
- 200
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "cce4dc71-6757-4a1c-a259-6b66a4304c14",
- "note": "Design example note",
- "status": "processing",
- "side": {
- "type": null,
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "name": "Side Example",
- "ratio": 72,
- "dimension_unit": "cm",
- "status": "publish",
- "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50.5,
- "y": 50.5
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50.5,
- "y": 50.5
}, - "side_image_size": {
- "width": 50,
- "height": 50
}, - "side_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "product": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "project": {
- "id": "4419934f-8e1b-4cf0-b432-01ef9258a812",
- "name": "project example",
- "status": "processing",
- "note": "project example note",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "preview_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "design_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "original_side": {
- "id": "c5661a1e-8147-4dc3-8600-00fdc81ed14b",
- "name": "Side Example",
- "scale": 72,
- "dimension_unit": "cm",
- "status": "publish",
- "design_area": {
- "width": 50,
- "height": 50,
- "top": 50,
- "left": 50
}, - "show_cut_line": true,
- "cut_line_margin": {
- "x": 50.5,
- "y": 50.5
}, - "show_safe_zone": true,
- "safe_zone_margin": {
- "x": 50.5,
- "y": 50.5
}, - "side_image_size": {
- "width": 50,
- "height": 50
}, - "side_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "product": {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}, - "bg_type": "image",
- "bg_color_value": "red",
- "img_overlay": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "background_included": true,
- "show_overlay": true,
- "include_overlay": true,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "original_output_options": {
- "dpi": 500,
- "dimension_unit": "inch"
}, - "viewport": {
- "width": 50.5,
- "height": 50.5
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}
], - "links": {
- "first": null,
- "last": null,
}, - "message": "Retrieved successfully"
}Get a list of products by project
Authorizations:
path Parameters
| projectId required | string Project ID |
query Parameters
| limit | integer Default: 20 The numbers of items to return |
| sort | string Default: "desc" Enum: "desc" "asc" |
| sortBy | string Default: "id" |
| status | string Default: "publish" Enum: "publish" "draft" "trashed" Product status |
Responses
Response samples
- 200
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "962af342-a2c9-4665-bb5d-cb208258d958",
- "name": "product example",
- "dynamic_side": 500,
- "viewport_width": 500,
- "viewport_height": 500,
- "scale": 500,
- "dpi": 500,
- "dimension_unit": "inch",
- "status": "publish",
- "allowed_file_types": [
- "jpg",
- "png",
- "ai",
- "pdf"
], - "max_file_upload": 500,
- "min_jpg_dpi": 500,
- "enable_design": false,
- "enable_upload": true,
- "enable_pod": false,
- "upload_max_filesize": null,
- "integration_product_id": null,
- "product_image": {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z",
- "metadata": null
}
], - "links": {
- "first": null,
- "last": null,
}, - "message": "Retrieved successfully"
}Create new storage
Authorizations:
Request Body schema: application/json
| name required | string The name given to a storage |
| parent_id | string Storage ID |
Responses
Request samples
- Payload
{- "name": "storage example",
- "parent_id": null
}Response samples
- 201
- 400
- 401
- 404
- 500
{- "data": {
- "id": "57eea14b-4e8d-4b7b-b864-b31cb8e6ac62",
- "name": "storage example",
- "parent_storage_id": null,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "message": "Created successfully"
}Get a list of storages
Authorizations:
query Parameters
| limit | integer Default: 20 The numbers of items to return |
| sort | string Default: "desc" Enum: "desc" "asc" |
| sortBy | string Default: "id" |
Responses
Response samples
- 200
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "57eea14b-4e8d-4b7b-b864-b31cb8e6ac62",
- "name": "storage example",
- "parent_storage_id": null,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}
], - "links": {
- "first": null,
- "last": null,
}, - "message": "Retrieved successfully"
}Get a list of storages default
Authorizations:
query Parameters
| limit | integer Default: 20 The numbers of items to return |
| sort | string Default: "desc" Enum: "desc" "asc" |
| sortBy | string Default: "id" |
Responses
Response samples
- 200
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "57eea14b-4e8d-4b7b-b864-b31cb8e6ac62",
- "name": "storage example",
- "parent_storage_id": null,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}
], - "links": {
- "first": null,
- "last": null,
}, - "message": "Retrieved successfully"
}Get Storage details
Authorizations:
path Parameters
| storageId required | string Storage ID |
Responses
Response samples
- 200
- 401
- 404
- 500
{- "data": {
- "id": "57eea14b-4e8d-4b7b-b864-b31cb8e6ac62",
- "name": "storage example",
- "parent_storage_id": null,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "message": "Retrieved successfully"
}Update Storage details
Authorizations:
path Parameters
| storageId required | string Storage ID |
Request Body schema: application/json
| name | string Updated name of the storage |
| parent_id | string Storage ID |
Responses
Request samples
- Payload
{- "name": "storage example update",
- "parent_id": null
}Response samples
- 200
- 400
- 401
- 404
- 500
{- "data": {
- "id": "57eea14b-4e8d-4b7b-b864-b31cb8e6ac62",
- "name": "storage example",
- "parent_storage_id": null,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "message": "Updated successfully"
}Add new font
Authorizations:
Request Body schema: application/json
| name required | string The name given to a font |
| alias required | string |
| url | string <url> |
| type | string |
| subset required | string |
Responses
Request samples
- Payload
{- "name": "font example",
- "alias": "font example",
- "type": "font example",
- "subset": "font example"
}Response samples
- 201
- 400
- 401
- 500
{- "data": {
- "id": "bff22494-79c3-312b-ba7e-6d6f6d57401c",
- "name": "font example",
- "alias": "font example",
- "type": "font example",
- "subset": "font example",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "message": "Created successfully"
}Get a list of fonts
Authorizations:
query Parameters
| limit | integer Default: 20 The numbers of items to return |
| sort | string Default: "desc" Enum: "desc" "asc" |
| sortBy | string Default: "id" |
Responses
Response samples
- 200
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "bff22494-79c3-312b-ba7e-6d6f6d57401c",
- "name": "font example",
- "alias": "font example",
- "type": "font example",
- "subset": "font example",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}
], - "links": {
- "first": null,
- "last": null,
}, - "message": "Retrieved successfully"
}Get a list of fonts default
Authorizations:
query Parameters
| limit | integer Default: 20 The numbers of items to return |
| sort | string Default: "desc" Enum: "desc" "asc" |
| sortBy | string Default: "id" |
Responses
Response samples
- 200
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "bff22494-79c3-312b-ba7e-6d6f6d57401c",
- "name": "font example",
- "alias": "font example",
- "type": "font example",
- "subset": "font example",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}
], - "links": {
- "first": null,
- "last": null,
}, - "message": "Retrieved successfully"
}Get font details
Authorizations:
path Parameters
| fontId required | string Font ID |
Responses
Response samples
- 200
- 401
- 404
- 500
{- "data": {
- "id": "bff22494-79c3-312b-ba7e-6d6f6d57401c",
- "name": "font example",
- "alias": "font example",
- "type": "font example",
- "subset": "font example",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "message": "Retrieved successfully"
}Update font details
Authorizations:
path Parameters
| fontId required | string Font ID |
Request Body schema: application/json
| name | string Updated name of the font |
| alias | string |
| url | string <url> |
| type | string |
| subset | string |
Responses
Request samples
- Payload
{- "name": "font example",
- "alias": "font example",
- "type": "font example",
- "subset": "font example"
}Response samples
- 200
- 400
- 401
- 404
- 500
{- "data": {
- "id": "bff22494-79c3-312b-ba7e-6d6f6d57401c",
- "name": "font example",
- "alias": "font example",
- "type": "font example",
- "subset": "font example",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "message": "Update successfully"
}Create new webhook
Authorizations:
Request Body schema: application/json
| event required | string Default: "POST" Enum: "POST" "PUT" "DELETE" "POST BATCH" "PUT BATCH" "DELETE BATCH" Event that triggers the webhook. |
| callback_url required | string <url> |
| topic required | string Enum: "projects" "products" "designs" "templates" "sides" |
Responses
Request samples
- Payload
{- "event": "POST",
- "topic": "projects"
}Response samples
- 201
- 400
- 401
- 500
{- "data": {
- "id": "ad8d432f-4c7d-459d-9f2f-4a6821666102",
- "event": "POST",
- "topic": "projects",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "message": "Created successfully"
}Get a list of webhooks
Authorizations:
query Parameters
| limit | integer Default: 20 The numbers of items to return |
| sort | string Default: "desc" Enum: "desc" "asc" |
| sortBy | string Default: "id" |
Responses
Response samples
- 200
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "ad8d432f-4c7d-459d-9f2f-4a6821666102",
- "event": "POST",
- "topic": "projects",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}
], - "links": {
- "first": null,
- "last": null,
}, - "message": "Retrieved successfully"
}Get webhook details
Authorizations:
path Parameters
| webhookId required | string Webhook ID |
Responses
Response samples
- 200
- 401
- 404
- 500
{- "data": {
- "id": "ad8d432f-4c7d-459d-9f2f-4a6821666102",
- "event": "POST",
- "topic": "projects",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "message": "Retrieved successfully"
}Update webhook details
Authorizations:
path Parameters
| webhookId required | string Webhook ID |
Request Body schema: application/json
| event | string Enum: "POST" "PUT" "DELETE" "POST BATCH" "PUT BATCH" "DELETE BATCH" Event that triggers the webhook. |
| callback_url | string <url> |
| topic | string Enum: "projects" "products" "designs" "templates" "sides" |
Responses
Request samples
- Payload
{- "event": "POST",
- "topic": "projects"
}Response samples
- 200
- 400
- 401
- 404
- 500
{- "data": {
- "id": "ad8d432f-4c7d-459d-9f2f-4a6821666102",
- "event": "POST",
- "topic": "projects",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "message": "Updated successfully"
}Create new Clipart - Storage
Authorizations:
Request Body schema: application/json
| name required | string The name given to a clipart - storage |
| parent_id | string Storage ID |
Responses
Request samples
- Payload
{- "name": "Clipart - Storage example",
- "parent_id": null
}Response samples
- 201
- 400
- 401
- 404
- 500
{- "data": {
- "id": "57eea14b-4e8d-4b7b-b864-b31cb8e6ac62",
- "name": "storage example",
- "parent_storage_id": null,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "message": "Created successfully"
}Get a list of Cliparts - Storages
Authorizations:
query Parameters
| limit | integer Default: 20 The numbers of items to return |
| sort | string Default: "desc" Enum: "desc" "asc" |
| sortBy | string Default: "id" |
Responses
Response samples
- 200
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "57eea14b-4e8d-4b7b-b864-b31cb8e6ac62",
- "name": "storage example",
- "parent_storage_id": null,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}
], - "links": {
- "first": null,
- "last": null,
}, - "message": "Retrieved successfully"
}Get a list of Cliparts - Storages default
Authorizations:
query Parameters
| limit | integer Default: 20 The numbers of items to return |
| sort | string Default: "desc" Enum: "desc" "asc" |
| sortBy | string Default: "id" |
Responses
Response samples
- 200
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "57eea14b-4e8d-4b7b-b864-b31cb8e6ac62",
- "name": "storage example",
- "parent_storage_id": null,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}
], - "links": {
- "first": null,
- "last": null,
}, - "message": "Retrieved successfully"
}Get a list of Cliparts by Storage
Authorizations:
path Parameters
| storageId required | string Storage ID |
query Parameters
| limit | integer Default: 20 The numbers of items to return |
| sort | string Default: "desc" Enum: "desc" "asc" |
| sortBy | string Default: "id" |
Responses
Response samples
- 200
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}
], - "links": {
- "first": null,
- "last": null,
}, - "message": "Retrieved successfully"
}Get a list of Cliparts by Storage default
Authorizations:
path Parameters
| storageId required | string Storage ID |
query Parameters
| limit | integer Default: 20 The numbers of items to return |
| sort | string Default: "desc" Enum: "desc" "asc" |
| sortBy | string Default: "id" |
Responses
Response samples
- 200
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "e8304b84-a015-3bd4-a7d3-7a978f465df2",
- "name": "Image example",
- "thumbnails": {
}, - "alt": "Image example",
- "width": 500,
- "height": 500,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}
], - "links": {
- "first": null,
- "last": null,
}, - "message": "Retrieved successfully"
}Get a list of Storages by Clipart
Authorizations:
path Parameters
| clipartId required | string Clipart ID |
query Parameters
| limit | integer Default: 20 The numbers of items to return |
| sort | string Default: "desc" Enum: "desc" "asc" |
| sortBy | string Default: "id" |
Responses
Response samples
- 200
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "57eea14b-4e8d-4b7b-b864-b31cb8e6ac62",
- "name": "storage example",
- "parent_storage_id": null,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}
], - "links": {
- "first": null,
- "last": null,
}, - "message": "Retrieved successfully"
}Get a list of Storages by Clipart default
Authorizations:
path Parameters
| clipartId required | string Clipart ID |
query Parameters
| limit | integer Default: 20 The numbers of items to return |
| sort | string Default: "desc" Enum: "desc" "asc" |
| sortBy | string Default: "id" |
Responses
Response samples
- 200
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "57eea14b-4e8d-4b7b-b864-b31cb8e6ac62",
- "name": "storage example",
- "parent_storage_id": null,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}
], - "links": {
- "first": null,
- "last": null,
}, - "message": "Retrieved successfully"
}Create new Project Folder
Authorizations:
Request Body schema: application/json
| category_id required | string Storage ID |
| project_id | string Project ID |
Responses
Request samples
- Payload
{- "category_id": "57eea14b-4e8d-4b7b-b864-b31cb8e6ac62",
- "project_id": "e8304b84-a015-3bd4-a7d3-7a978fxxxxxx"
}Response samples
- 201
- 400
- 401
- 404
- 500
{- "data": {
- "id": "57eea14b-4e8d-4b7b-b864-b31cb8e6ac62",
- "name": "storage example",
- "parent_storage_id": null,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}, - "message": "Created successfully"
}Get a list of Projects Folders
Authorizations:
query Parameters
| limit | integer Default: 20 The numbers of items to return |
| sort | string Default: "desc" Enum: "desc" "asc" |
| sortBy | string Default: "id" |
Responses
Response samples
- 200
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "57eea14b-4e8d-4b7b-b864-b31cb8e6ac62",
- "name": "storage example",
- "parent_storage_id": null,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}
], - "links": {
- "first": null,
- "last": null,
}, - "message": "Retrieved successfully"
}Get a list of Projects by Folder
Authorizations:
path Parameters
| storageId required | string Storage ID |
query Parameters
| limit | integer Default: 20 The numbers of items to return |
| sort | string Default: "desc" Enum: "desc" "asc" |
| sortBy | string Default: "id" |
Responses
Response samples
- 200
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "4419934f-8e1b-4cf0-b432-01ef9258a812",
- "name": "project example",
- "status": "processing",
- "note": "project example note",
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}
], - "links": {
- "first": null,
- "last": null,
}, - "message": "Retrieved successfully"
}Get a list of Folders by Project
Authorizations:
path Parameters
| projectId required | string Project ID |
query Parameters
| limit | integer Default: 20 The numbers of items to return |
| sort | string Default: "desc" Enum: "desc" "asc" |
| sortBy | string Default: "id" |
Responses
Response samples
- 200
- 401
- 404
- 413
- 500
{- "data": [
- {
- "id": "57eea14b-4e8d-4b7b-b864-b31cb8e6ac62",
- "name": "storage example",
- "parent_storage_id": null,
- "created_at": "2021-11-16T08:26:30.000000Z",
- "updated_at": "2021-11-16T08:26:30.000000Z"
}
], - "links": {
- "first": null,
- "last": null,
}, - "message": "Retrieved successfully"
}Get product 3D preview config
Returns the 3D preview configuration for a product: whether 3D preview is enabled, the render profile, and per-side print geometry needed by the render widget. Intended for the embedded designer / storefront SDK.
Authorizations:
path Parameters
| productId required | string Product ID |
Responses
Response samples
- 200
- 401
- 404
- 500
{- "data": {
- "product_id": "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
- "enabled": true,
- "mode": "edge_preview",
- "profile": {
- "id": "9a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d",
- "mode": "edge_preview",
- "enabled": true,
- "edge_style_default": "wrap",
- "edge_depth": 1.5,
- "edge_depth_unit": "cm",
- "config_version": 3
}, - "model": null,
- "sides": [
- {
- "side_id": "2b3c4d5e-6f7a-8b9c-0d1e-2f3a4b5c6d7e",
- "name": "Front",
- "side_image_size": {
- "width": 40,
- "height": 30
}, - "design_area": {
- "width": 36,
- "height": 26,
- "top": 2,
- "left": 2
}, - "cut_line_margin": {
- "x": 1,
- "y": 1
}, - "safe_zone_margin": {
- "x": 0.5,
- "y": 0.5
}, - "mapping": {
- "surface_type": "front",
- "mesh_name": null
}
}
]
}
}Create product 3D profile
Enables and configures 3D edge preview for a product. One profile per product.
Authorizations:
path Parameters
| productId required | string Product ID |
Request Body schema: application/json
| mode | string Enum: "edge_preview" "model_preview" "hybrid" Render mode. Only edge_preview is available currently. |
| enabled | boolean Enable/disable 3D preview for the product |
| edge_style_default | string Enum: "wrap" "mirror" "blur" "solid_color" "blurred_mirror" Default edge fill style |
| edge_depth | number Physical depth of the product edge (0-50) |
| edge_depth_unit | string Enum: "mm" "cm" "in" |
Responses
Request samples
- Payload
{- "mode": "edge_preview",
- "enabled": true,
- "edge_style_default": "wrap",
- "edge_depth": 1.5,
- "edge_depth_unit": "cm"
}Response samples
- 200
- 400
- 401
- 404
- 500
{- "data": {
- "id": "9a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d",
- "mode": "edge_preview",
- "enabled": true,
- "edge_style_default": "wrap",
- "edge_depth": 1.5,
- "edge_depth_unit": "cm",
- "config_version": 3
}
}Update product 3D profile
Updates the 3D preview profile. Changing a render-affecting field (mode, edge style, edge depth, edge depth unit) bumps config_version so cached renders invalidate.
Authorizations:
path Parameters
| productId required | string Product ID |
| profileId required | string 3D Profile ID |
Request Body schema: application/json
| mode | string Enum: "edge_preview" "model_preview" "hybrid" Render mode. Only edge_preview is available currently. |
| enabled | boolean Enable/disable 3D preview for the product |
| edge_style_default | string Enum: "wrap" "mirror" "blur" "solid_color" "blurred_mirror" Default edge fill style |
| edge_depth | number Physical depth of the product edge (0-50) |
| edge_depth_unit | string Enum: "mm" "cm" "in" |
Responses
Request samples
- Payload
{- "mode": "edge_preview",
- "enabled": true,
- "edge_style_default": "wrap",
- "edge_depth": 1.5,
- "edge_depth_unit": "cm"
}Response samples
- 200
- 400
- 401
- 404
- 500
{- "data": {
- "id": "9a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d",
- "mode": "edge_preview",
- "enabled": true,
- "edge_style_default": "wrap",
- "edge_depth": 1.5,
- "edge_depth_unit": "cm",
- "config_version": 3
}
}Delete product 3D profile
Disables 3D preview for the product (soft delete). Re-creating the profile later restores it with a bumped config_version.
Authorizations:
path Parameters
| productId required | string Product ID |
| profileId required | string 3D Profile ID |
Responses
Response samples
- 401
- 404
- 500
{- "error": {
- "message": "Unauthenticated"
}
}Render a 3D edge preview
Renders a 2D artwork into a procedural 3D edge preview image (canvas / wall-art style). Requires the product to have an enabled 3D profile and a Pro plan or higher.
Artwork resolution order: design_id preview image → artwork_url (must be a Printcart CDN URL) → the side background image.
Results are cached by content hash — identical requests return cache_hit: true without re-rendering. Send reset: true to force a re-render.
Rate limited to 10 renders per minute per store.
Authorizations:
Request Body schema: application/json
| product_id required | string Product ID (must have an enabled 3D profile) |
| side_id required | string Side ID providing the print geometry |
| design_id | string or null Optional design whose preview image is used as artwork |
| artwork_url | string or null Optional artwork URL. Must be an https URL on the Printcart CDN. |
| edge_style | string Enum: "wrap" "mirror" "blur" "solid_color" "blurred_mirror" Overrides the profile's default edge style |
| edge_color | string or null Hex color, used with edge_style solid_color |
object | |
| reset | boolean Force a re-render, bypassing the cached result |
Responses
Request samples
- Payload
{- "product_id": "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
- "side_id": "2b3c4d5e-6f7a-8b9c-0d1e-2f3a4b5c6d7e",
- "design_id": "string",
- "edge_style": "wrap",
- "edge_color": "#ffffff",
- "output": {
- "format": "webp",
- "width": 1200,
- "height": 900
}, - "reset": false
}Response samples
- 200
- 400
- 401
- 404
- 500
{- "data": {
- "status": "ready",
- "name": "a1b2c3.webp",
- "cache_hit": false,
- "input_hash": "9f2c1e...64-char sha256"
}
}Generate 3D preview for a saved design
Generates a 3D edge preview for an already-saved design. Print geometry is read from the
design's original_side snapshot (captured when the design was saved), so later product
edits never change the proof of an existing customer design.
Requires the design's product to have an enabled 3D profile and a Pro plan or higher.
Results are cached — send reset: true in the body to force a re-render.
Rate limited to 10 renders per minute per store.
Authorizations:
path Parameters
| designId required | string Design ID |
Request Body schema: application/json
| reset | boolean Force a re-render, bypassing the cached result |
Responses
Request samples
- Payload
{- "reset": false
}Response samples
- 200
- 400
- 401
- 404
- 500
{- "data": {
- "status": "ready",
- "name": "a1b2c3.webp",
- "cache_hit": false,
- "input_hash": "9f2c1e...64-char sha256"
}
}Get a list of 3D models
Lists the store's uploaded 3D models (GLB assets). Cursor paginated.
Authorizations:
query Parameters
| limit | integer [ 1 .. 100 ] Default: 24 Items per page (1–100, default 24) |
| status | string Enum: "uploaded" "queued" "validating" "active" "failed" Filter by lifecycle status |
| search | string Filter by model name (substring match) |
Responses
Response samples
- 200
- 401
{- "data": [
- {
- "id": "7c8d9e0f-1a2b-3c4d-5e6f-7a8b9c0d1e2f",
- "name": "Coffee Mug 350ml",
- "file_name": "coffee-mug.glb",
- "file_extension": "glb",
- "file_size": 4194304,
- "status": "active",
- "validation_report": { },
- "validation_error": "string",
- "validator_version": "glb-core-v1",
- "metadata": { },
- "preview_image": { },
- "validated_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "links": {
- "first": "string",
- "last": "string",
- "prev": "string",
- "next": "string"
}
}Register a new 3D model
Registers a previously uploaded GLB file (via the multipart upload flow) as a 3D model.
The referenced image must be a .glb file under the images/ prefix and no larger than 25MB.
The model starts in uploaded status; call the validate endpoint to run async GLB validation.
Authorizations:
Request Body schema: application/json
| name required | string <= 255 characters |
| source_image_id required | string <uuid> UUID of the uploaded GLB image (must be a .glb under images/) |
| metadata | object or null Optional arbitrary metadata |
Responses
Request samples
- Payload
{- "name": "Coffee Mug 350ml",
- "source_image_id": "3f2a1b0c-9d8e-7f6a-5b4c-3d2e1f0a9b8c",
- "metadata": { }
}Response samples
- 201
- 400
- 401
- 404
{- "data": {
- "id": "7c8d9e0f-1a2b-3c4d-5e6f-7a8b9c0d1e2f",
- "name": "Coffee Mug 350ml",
- "file_name": "coffee-mug.glb",
- "file_extension": "glb",
- "file_size": 4194304,
- "status": "active",
- "validation_report": { },
- "validation_error": "string",
- "validator_version": "glb-core-v1",
- "metadata": { },
- "preview_image": { },
- "validated_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}Get 3D model details
Authorizations:
path Parameters
| modelId required | string 3D model ID |
Responses
Response samples
- 200
- 401
- 404
{- "data": {
- "id": "7c8d9e0f-1a2b-3c4d-5e6f-7a8b9c0d1e2f",
- "name": "Coffee Mug 350ml",
- "file_name": "coffee-mug.glb",
- "file_extension": "glb",
- "file_size": 4194304,
- "status": "active",
- "validation_report": { },
- "validation_error": "string",
- "validator_version": "glb-core-v1",
- "metadata": { },
- "preview_image": { },
- "validated_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}Update 3D model details
Updates editable metadata (name, metadata). Does not change the uploaded file.
Authorizations:
path Parameters
| modelId required | string 3D model ID |
Request Body schema: application/json
| name | string <= 255 characters |
| metadata | object or null |
Responses
Request samples
- Payload
{- "name": "Coffee Mug (updated)",
- "metadata": { }
}Response samples
- 200
- 400
- 401
- 404
{- "data": {
- "id": "7c8d9e0f-1a2b-3c4d-5e6f-7a8b9c0d1e2f",
- "name": "Coffee Mug 350ml",
- "file_name": "coffee-mug.glb",
- "file_extension": "glb",
- "file_size": 4194304,
- "status": "active",
- "validation_report": { },
- "validation_error": "string",
- "validator_version": "glb-core-v1",
- "metadata": { },
- "preview_image": { },
- "validated_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}Validate a 3D model
Queues async validation of the model's GLB file (geometry, textures ≤ 4096px, no external
dependencies). Returns 202 with the model in queued status while validation runs; on
success the model becomes active. If the model is already active, returns 200 without
re-queuing unless reset: true is sent. Rate limited to 10 requests per minute per store.
Authorizations:
path Parameters
| modelId required | string 3D model ID |
Request Body schema: application/json
| reset | boolean Re-run validation even if the model is already active |
Responses
Request samples
- Payload
{- "reset": false
}Response samples
- 200
- 202
- 401
- 404
{- "data": {
- "id": "7c8d9e0f-1a2b-3c4d-5e6f-7a8b9c0d1e2f",
- "name": "Coffee Mug 350ml",
- "file_name": "coffee-mug.glb",
- "file_extension": "glb",
- "file_size": 4194304,
- "status": "active",
- "validation_report": { },
- "validation_error": "string",
- "validator_version": "glb-core-v1",
- "metadata": { },
- "preview_image": { },
- "validated_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}Get a side's 3D model mapping
Returns the 3D model mapping bound to a product side, if any.
Authorizations:
path Parameters
| sideId required | string Side ID |
Responses
Response samples
- 200
- 401
- 404
{- "data": {
- "id": "5b4c3d2e-1f0a-9b8c-7d6e-5f4a3b2c1d0e",
- "side_id": "2b3c4d5e-6f7a-8b9c-0d1e-2f3a4b5c6d7e",
- "model": {
- "id": "7c8d9e0f-1a2b-3c4d-5e6f-7a8b9c0d1e2f",
- "name": "Coffee Mug 350ml",
- "file_name": "coffee-mug.glb",
- "file_extension": "glb",
- "file_size": 4194304,
- "status": "active",
- "validation_report": { },
- "validation_error": "string",
- "validator_version": "glb-core-v1",
- "metadata": { },
- "preview_image": { },
- "validated_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "surface_name": "front_panel",
- "material_name": "body",
- "mapping": { },
- "transform": { },
- "camera": { },
- "enabled": true,
- "config_version": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}Create or update a side's 3D model mapping
Binds an active 3D model to a product side and sets its surface/material mapping and
transform. Creating or changing the mapping bumps its config_version.
Authorizations:
path Parameters
| sideId required | string Side ID |
Request Body schema: application/json
| model_id required | string <uuid> UUID of an active 3D model to bind to this side |
| surface_name | string or null <= 255 characters |
| material_name | string or null <= 255 characters |
| mapping | object or null |
| transform | object or null |
| camera | object or null |
| enabled | boolean or null |
Responses
Request samples
- Payload
{- "model_id": "7c8d9e0f-1a2b-3c4d-5e6f-7a8b9c0d1e2f",
- "surface_name": "front_panel",
- "material_name": "body",
- "mapping": { },
- "transform": { },
- "camera": { },
- "enabled": true
}Response samples
- 200
- 400
- 401
- 404
{- "data": {
- "id": "5b4c3d2e-1f0a-9b8c-7d6e-5f4a3b2c1d0e",
- "side_id": "2b3c4d5e-6f7a-8b9c-0d1e-2f3a4b5c6d7e",
- "model": {
- "id": "7c8d9e0f-1a2b-3c4d-5e6f-7a8b9c0d1e2f",
- "name": "Coffee Mug 350ml",
- "file_name": "coffee-mug.glb",
- "file_extension": "glb",
- "file_size": 4194304,
- "status": "active",
- "validation_report": { },
- "validation_error": "string",
- "validator_version": "glb-core-v1",
- "metadata": { },
- "preview_image": { },
- "validated_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "surface_name": "front_panel",
- "material_name": "body",
- "mapping": { },
- "transform": { },
- "camera": { },
- "enabled": true,
- "config_version": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}