---
updatedAt: 2025-10-30T22:11:25.000Z
agentTools:
  projectIndex: https://developer-ecom.superagi.com/llms.txt
---

# Create Product

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "product-api",
    "version": "2.0"
  },
  "servers": [
    {
      "url": "https://callback-service.contlo.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "query",
        "name": "X-API-KEY"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/api/product/create": {
      "post": {
        "summary": "Create Product",
        "description": "",
        "operationId": "create-product",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "product_id",
                  "title",
                  "variants"
                ],
                "properties": {
                  "product_id": {
                    "type": "string",
                    "description": "Profile email addres"
                  },
                  "title": {
                    "type": "string",
                    "description": "Event Name"
                  },
                  "description": {
                    "type": "string",
                    "description": "Profile phone number"
                  },
                  "product_url": {
                    "type": "string",
                    "description": "Properties sent with events"
                  },
                  "image_url": {
                    "type": "string",
                    "description": "Profile properties sent along with events",
                    "default": "https://www.example.com/images/products/pb123.png"
                  },
                  "vendor": {
                    "type": "string",
                    "description": "Product vendor",
                    "default": "Cello"
                  },
                  "status": {
                    "type": "string",
                    "description": "Values: ACTIVE, ARCHIVED",
                    "default": "Active"
                  },
                  "tags": {
                    "type": "array",
                    "default": [
                      "High selling"
                    ],
                    "items": {
                      "type": "string"
                    }
                  },
                  "collection_ids": {
                    "type": "array",
                    "description": "Array of categories ID's. Pass all categories ID's, including all parent categories ID's, to which product belongs.",
                    "items": {
                      "type": "string"
                    }
                  },
                  "track_inventory": {
                    "type": "boolean",
                    "description": "If you want to use inventory numbers for your use cases, send this as true.",
                    "default": true
                  },
                  "variants": {
                    "type": "array",
                    "description": "Array with product variants. Product must have at least one variant. If your product doesn't have variants, use the product's info as the variant (example: variantID = productID, title=variants.title, etc.)",
                    "items": {
                      "properties": {
                        "variant_id": {
                          "type": "string",
                          "description": "Product variant identificator",
                          "default": "pb123"
                        },
                        "title": {
                          "type": "string",
                          "description": "Variant title",
                          "default": "Pink Bucket"
                        },
                        "price": {
                          "type": "integer",
                          "description": "Product price.",
                          "default": 100,
                          "format": "int32"
                        },
                        "currency_code": {
                          "type": "string",
                          "default": "INR"
                        },
                        "inventory_quantity": {
                          "type": "integer",
                          "default": 10,
                          "format": "int32"
                        },
                        "old_price": {
                          "type": "integer",
                          "description": "Product's old price.",
                          "default": 99,
                          "format": "int32"
                        },
                        "sku": {
                          "type": "string",
                          "description": "Variant's stock keeping unit",
                          "default": "ABC123"
                        }
                      },
                      "required": [
                        "variant_id",
                        "title"
                      ],
                      "type": "object"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{success: true}"
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{success: false, error: \"<error>\"}"
                  }
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```