---
updatedAt: 2026-10-29T08:22:22.000Z
agentTools:
  projectIndex: https://docs.yotpo.com/llms.txt
---

# Create collection

Creates a new collection within your product catalog.

<Callout icon="👍" theme="okay">
  ### How to use this endpoint

  * Required parameters are listed below. For the full list of properties, see [About collections](https://docs.yotpo.com/reference/collections).
  * To see an example request, click **Examples** in the payload on the right.
</Callout>

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Yotpo API V3",
    "description": "Yotpo API V3 endpoints on api.yotpo.com. Webhook events are defined separately, in webhooks.json.",
    "version": "3.0"
  },
  "servers": [
    {
      "url": "https://api.yotpo.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "X-Yotpo-Token": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Yotpo-Token",
        "description": "Your Yotpo account access token. See [Authentication](https://core-api.yotpo.com/reference/yotpo-authentication) to learn how to generate your access token."
      }
    },
    "responses": {
      "Unauthorized": {
        "description": "Unauthorized. The access token in `X-Yotpo-Token` is invalid or expired, and the body is plain text. Generate a new token with [Generate access token](ref:yotpo-authentication). If the request also has an `Authorization: Bearer` header, the API checks that header instead of `X-Yotpo-Token` and returns `Bad token; invalid JSON` as JSON. Remove the `Authorization` header and send the token in `X-Yotpo-Token` only.",
        "content": {
          "text/plain": {
            "schema": {
              "type": "string",
              "example": "unauthorized"
            }
          },
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string",
                  "description": "Error message.",
                  "example": "Bad token; invalid JSON"
                }
              }
            },
            "examples": {
              "Authorization header sent": {
                "value": "{\n  \"message\": \"Bad token; invalid JSON\"\n}"
              }
            }
          }
        }
      },
      "Forbidden": {
        "description": "Forbidden. The request has no `X-Yotpo-Token` header.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string",
                  "description": "Error message.",
                  "example": "Forbidden"
                }
              }
            },
            "examples": {
              "Missing token": {
                "value": "{\n  \"message\": \"Forbidden\"\n}"
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "X-Yotpo-Token": []
    }
  ],
  "paths": {
    "/core/v3/stores/{store_id}/collections": {
      "post": {
        "summary": "Create collection",
        "description": "Creates a new collection within your product catalog.",
        "operationId": "create-collection",
        "parameters": [
          {
            "name": "store_id",
            "in": "path",
            "description": "The store ID (app_key).",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "collection"
                ],
                "properties": {
                  "collection": {
                    "type": "object",
                    "properties": {
                      "external_id": {
                        "type": "string",
                        "default": "",
                        "description": "The merchant's unique ID for the collection."
                      },
                      "name": {
                        "type": "string",
                        "description": "The name of the product collection."
                      }
                    },
                    "required": [
                      "external_id",
                      "name"
                    ],
                    "description": "The collection to create."
                  }
                }
              },
              "examples": {
                "Create Collection": {
                  "value": {
                    "collection": {
                      "external_id": "A123nnjd88",
                      "name": "surfboards"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "201",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"collection\": {\n    \"yotpo_id\": 2\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "collection": {
                      "type": "object",
                      "properties": {
                        "yotpo_id": {
                          "type": "integer",
                          "example": 2,
                          "default": 0,
                          "description": "The Yotpo ID of the new collection. Use it as `yotpo_collection_id` in collection paths."
                        }
                      },
                      "description": "The created collection."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"errors\": [\n    {\n      \"message\": \"Collection name is invalid\"\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "message": {
                            "type": "string",
                            "example": "Collection name is invalid",
                            "description": "What's wrong with the request, usually naming the missing or invalid field. Meant for logs; the wording can change, so don't parse it."
                          }
                        }
                      },
                      "description": "The validation errors. Usually one item."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "description": "409",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"errors\": [\n    {\n      \"message\": \"Collection already exists\"\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "message": {
                            "type": "string",
                            "example": "Collection already exists",
                            "description": "Says that an object with the same identifier already exists."
                          }
                        }
                      },
                      "description": "The errors. Usually one item."
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "value": "application/json",
        "key": "Content-Type"
      }
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```

# Sibling pages

* [About products](https://docs.yotpo.com/reference/products.md)
* [Create product](https://docs.yotpo.com/reference/create-product.md)
* [Update product](https://docs.yotpo.com/reference/update-product.md)
* [Retrieve products](https://docs.yotpo.com/reference/retrieve-products.md)
* [Retrieve product by ID](https://docs.yotpo.com/reference/retrieve-product-by-id.md)
* [About product variants](https://docs.yotpo.com/reference/product-variants.md)
* [Create product variant](https://docs.yotpo.com/reference/create-product-variant.md)
* [Update product variant](https://docs.yotpo.com/reference/update-product-variant.md)
* [Retrieve product variants](https://docs.yotpo.com/reference/retrieve-product-variants.md)
* [Retrieve product variant by ID](https://docs.yotpo.com/reference/retrieve-product-variant-by-id.md)
* [About collections](https://docs.yotpo.com/reference/collections.md)
* [Update collection](https://docs.yotpo.com/reference/update-collection.md)
* [Retrieve collections](https://docs.yotpo.com/reference/retrieve-collections.md)
* [Add product to collection](https://docs.yotpo.com/reference/add-product-to-collection.md)
* [Retrieve products in collection](https://docs.yotpo.com/reference/retrieve-products-in-collection.md)
* [Remove product from collection](https://docs.yotpo.com/reference/remove-product-from-collection.md)
* [Retrieve list of collections for product](https://docs.yotpo.com/reference/retrieve-list-of-collections-for-product.md)