API reference
Collections
List, create, edit, and delete the collections that group the shop’s products.
List collections
/api/v1/collections
Every collection of the shop, drafts included, newest first. A manual collection lists its products; an automatic one holds rules, which the storefront resolves when it shows the page.
- Scope
- MCP tool
- collections_list
- Changes data
- No
Parameters
| Name | Type | Description |
|---|---|---|
limitquery · optional | integer | Results per page, 1-100 |
cursorquery · optional | string | The `next_cursor` from the previous page |
Request
curl "https://3commerce.com/api/v1/collections" \
-H "Authorization: Bearer 3c_live_…"Response
{
"data": [
{
"id": "2c4e6a8b-0d1f-4a3c-8e5b-7d9f1b3d5e70",
"title": "Winter knits",
"slug": "winter-knits",
"description": "Sweaters and beanies for the cold months.",
"cover_url": null,
"type": "automatic",
"product_ids": [],
"rules": [
{
"kind": "tag",
"value": "knitwear"
}
],
"match": "all",
"sort": "best-selling",
"published": true,
"seo_title": "",
"seo_description": "",
"focus_keyword": "",
"updated_at": "2026-11-20T12:00:00.000Z"
}
],
"next_cursor": null
}Get a collection
/api/v1/collections/{id}
One collection with its picks or rules.
- Scope
- MCP tool
- collections_get
- Changes data
- No
Parameters
| Name | Type | Description |
|---|---|---|
idpath · required | string (uuid) | The resource id |
Request
curl "https://3commerce.com/api/v1/collections/6f1c2a4e-8b3d-4c5e-9a7f-1d2e3f4a5b6c" \
-H "Authorization: Bearer 3c_live_…"Response
{
"id": "2c4e6a8b-0d1f-4a3c-8e5b-7d9f1b3d5e70",
"title": "Winter knits",
"slug": "winter-knits",
"description": "Sweaters and beanies for the cold months.",
"cover_url": null,
"type": "automatic",
"product_ids": [],
"rules": [
{
"kind": "tag",
"value": "knitwear"
}
],
"match": "all",
"sort": "best-selling",
"published": true,
"seo_title": "",
"seo_description": "",
"focus_keyword": "",
"updated_at": "2026-11-20T12:00:00.000Z"
}Create a collection
/api/v1/collections
Creates a manual collection from `product_ids`, or an automatic one from `rules`. It starts as a draft unless `published` is true. A slug another collection uses is 422 `invalid_input`.
- Scope
- MCP tool
- collections_create
- Changes data
- Yes
- Idempotency-Key
- Accepted
Parameters
| Name | Type | Description |
|---|---|---|
titlebody · required | string | The name shoppers see |
slugbody · required | string | Its URL, lowercase words joined by hyphens |
descriptionbody · optional | string | The intro on its page |
typebody · optional | enum | `manual` lists `product_ids`; `automatic` matches `rules` |
product_idsbody · optional | array of string (uuid) | A manual collection’s products, in order |
rulesbody · optional | array of object | An automatic collection’s conditions |
matchbody · optional | enum | Whether a product meets every rule or any of them |
sortbody · optional | enum | Product order on its page |
publishedbody · optional | boolean | Whether shoppers can see it |
seo_titlebody · optional | string | The search result title |
seo_descriptionbody · optional | string | The search result snippet |
focus_keywordbody · optional | string | The phrase it should rank for |
Request
curl -X POST "https://3commerce.com/api/v1/collections" \
-H "Authorization: Bearer 3c_live_…" \
-H "Content-Type: application/json" \
-d '{
"title": "Linen overshirt",
"slug": "linen-overshirt"
}'Response
{
"id": "2c4e6a8b-0d1f-4a3c-8e5b-7d9f1b3d5e70",
"title": "Winter knits",
"slug": "winter-knits",
"description": "Sweaters and beanies for the cold months.",
"cover_url": null,
"type": "automatic",
"product_ids": [],
"rules": [
{
"kind": "tag",
"value": "knitwear"
}
],
"match": "all",
"sort": "best-selling",
"published": true,
"seo_title": "",
"seo_description": "",
"focus_keyword": "",
"updated_at": "2026-11-20T12:00:00.000Z"
}Update a collection
/api/v1/collections/{id}
Changes the fields you send and keeps the rest. Changing `slug` leaves a 301 redirect from the old address.
- Scope
- MCP tool
- collections_update
- Changes data
- Yes
Parameters
| Name | Type | Description |
|---|---|---|
idpath · required | string (uuid) | The resource id |
titlebody · optional | string | The name shoppers see |
slugbody · optional | string | Its URL, lowercase words joined by hyphens |
descriptionbody · optional | string | The intro on its page |
typebody · optional | enum | `manual` lists `product_ids`; `automatic` matches `rules` |
product_idsbody · optional | array of string (uuid) | A manual collection’s products, in order |
rulesbody · optional | array of object | An automatic collection’s conditions |
matchbody · optional | enum | Whether a product meets every rule or any of them |
sortbody · optional | enum | Product order on its page |
publishedbody · optional | boolean | Whether shoppers can see it |
seo_titlebody · optional | string | The search result title |
seo_descriptionbody · optional | string | The search result snippet |
focus_keywordbody · optional | string | The phrase it should rank for |
Request
curl -X PATCH "https://3commerce.com/api/v1/collections/6f1c2a4e-8b3d-4c5e-9a7f-1d2e3f4a5b6c" \
-H "Authorization: Bearer 3c_live_…" \
-H "Content-Type: application/json" \
-d '{}'Response
{
"id": "2c4e6a8b-0d1f-4a3c-8e5b-7d9f1b3d5e70",
"title": "Winter knits",
"slug": "winter-knits",
"description": "Sweaters and beanies for the cold months.",
"cover_url": null,
"type": "automatic",
"product_ids": [],
"rules": [
{
"kind": "tag",
"value": "knitwear"
}
],
"match": "all",
"sort": "best-selling",
"published": true,
"seo_title": "",
"seo_description": "",
"focus_keyword": "",
"updated_at": "2026-11-20T12:00:00.000Z"
}Delete a collection
/api/v1/collections/{id}
Deletes a collection and its cover. Its products stay as they are.
- Scope
- MCP tool
- collections_delete
- Changes data
- Yes
Parameters
| Name | Type | Description |
|---|---|---|
idpath · required | string (uuid) | The resource id |
Request
curl -X DELETE "https://3commerce.com/api/v1/collections/6f1c2a4e-8b3d-4c5e-9a7f-1d2e3f4a5b6c" \
-H "Authorization: Bearer 3c_live_…"Response
{
"id": "2c4e6a8b-0d1f-4a3c-8e5b-7d9f1b3d5e70",
"deleted": true
}