Skip to content

API reference

Collections

List, create, edit, and delete the collections that group the shop’s products.

List collections

GET/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
collections:read
MCP tool
collections_list
Changes data
No

Parameters

NameTypeDescription
limitquery · optionalintegerResults per page, 1-1001-100default 25
cursorquery · optionalstringThe `next_cursor` from the previous page

Request

curl "https://3commerce.com/api/v1/collections" \
  -H "Authorization: Bearer 3c_live_…"

Response

200 OK
{
  "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

GET/api/v1/collections/{id}

One collection with its picks or rules.

Scope
collections:read
MCP tool
collections_get
Changes data
No

Parameters

NameTypeDescription
idpath · requiredstring (uuid)The resource id

Request

curl "https://3commerce.com/api/v1/collections/6f1c2a4e-8b3d-4c5e-9a7f-1d2e3f4a5b6c" \
  -H "Authorization: Bearer 3c_live_…"

Response

200 OK
{
  "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

POST/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
collections:write
MCP tool
collections_create
Changes data
Yes
Idempotency-Key
Accepted

Parameters

NameTypeDescription
titlebody · requiredstringThe name shoppers see1-80 chars
slugbody · requiredstringIts URL, lowercase words joined by hyphens1-60 chars
descriptionbody · optionalstringThe intro on its pagemax 1500 charsdefault ""
typebody · optionalenum`manual` lists `product_ids`; `automatic` matches `rules`one of manual, automaticdefault "manual"
product_idsbody · optionalarray of string (uuid)A manual collection’s products, in ordermax 250 itemsdefault []
rulesbody · optionalarray of objectAn automatic collection’s conditionsmax 10 itemsdefault []
matchbody · optionalenumWhether a product meets every rule or any of themone of all, anydefault "all"
sortbody · optionalenumProduct order on its pageone of manual, best-selling, newest, price-asc, price-descdefault "manual"
publishedbody · optionalbooleanWhether shoppers can see itdefault false
seo_titlebody · optionalstringThe search result titlemax 70 charsdefault ""
seo_descriptionbody · optionalstringThe search result snippetmax 160 charsdefault ""
focus_keywordbody · optionalstringThe phrase it should rank formax 60 charsdefault ""

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

201 Created
{
  "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

PATCH/api/v1/collections/{id}

Changes the fields you send and keeps the rest. Changing `slug` leaves a 301 redirect from the old address.

Scope
collections:write
MCP tool
collections_update
Changes data
Yes

Parameters

NameTypeDescription
idpath · requiredstring (uuid)The resource id
titlebody · optionalstringThe name shoppers seemax 80 chars
slugbody · optionalstringIts URL, lowercase words joined by hyphensmax 60 chars
descriptionbody · optionalstringThe intro on its pagemax 1500 chars
typebody · optionalenum`manual` lists `product_ids`; `automatic` matches `rules`one of manual, automatic
product_idsbody · optionalarray of string (uuid)A manual collection’s products, in ordermax 250 items
rulesbody · optionalarray of objectAn automatic collection’s conditionsmax 10 items
matchbody · optionalenumWhether a product meets every rule or any of themone of all, any
sortbody · optionalenumProduct order on its pageone of manual, best-selling, newest, price-asc, price-desc
publishedbody · optionalbooleanWhether shoppers can see it
seo_titlebody · optionalstringThe search result titlemax 70 chars
seo_descriptionbody · optionalstringThe search result snippetmax 160 chars
focus_keywordbody · optionalstringThe phrase it should rank formax 60 chars

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

200 OK
{
  "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

DELETE/api/v1/collections/{id}

Deletes a collection and its cover. Its products stay as they are.

Scope
collections:write
MCP tool
collections_delete
Changes data
Yes

Parameters

NameTypeDescription
idpath · requiredstring (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

200 OK
{
  "id": "2c4e6a8b-0d1f-4a3c-8e5b-7d9f1b3d5e70",
  "deleted": true
}