> ## Documentation Index
> Fetch the complete documentation index at: https://docs.evolutionfoundation.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Product

> Creates a new product in the catalog. Requires `products.create`.



## OpenAPI

````yaml /api-reference/openapi/EvoAI-CRM-Service/products.yaml post /api/v1/products
openapi: 3.0.4
info:
  title: Evolution Foundation - CRM Service - Products
  description: >
    Product catalog management with variants, agent attach, and pipeline sales
    tracking.


    Available starting `v1.0.0-rc3`.


    **Note:** This OpenAPI spec was generated from the controller as part of the
    rc3 release. Schemas reflect the controller surface but request/response
    examples may need refinement based on real payloads.
  version: 1.0.0
servers:
  - url: https://api.evoai.app
    description: Production server
  - url: http://localhost:3000
    description: Development server
  - url: '{customUrl}'
    description: Custom server
    variables:
      customUrl:
        default: https://your-instance.com
        description: Enter your server URL
security: []
paths:
  /api/v1/products:
    post:
      summary: Create Product
      description: Creates a new product in the catalog. Requires `products.create`.
      operationId: create-product
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - product
              properties:
                product:
                  $ref: '#/components/schemas/ProductInput'
                labels:
                  type: array
                  items:
                    type: string
                  description: Optional list of label slugs to attach
      responses:
        '201':
          description: Product created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProductResponse'
        '422':
          $ref: '#/components/responses/ValidationError'
      security:
        - userApiKey: []
components:
  schemas:
    ProductInput:
      type: object
      properties:
        name:
          type: string
          example: Plano Pro
        slug:
          type: string
          example: plano-pro
        kind:
          type: string
          example: subscription
        description:
          type: string
        sku:
          type: string
        default_price:
          type: number
          format: float
          example: 199.9
        currency:
          type: string
          example: BRL
        purchase_url:
          type: string
          format: uri
        status:
          type: string
          enum:
            - active
            - inactive
        stock_quantity:
          type: integer
        metadata:
          type: object
          additionalProperties: true
        variants_attributes:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                format: uuid
              _destroy:
                type: boolean
              name:
                type: string
              sku:
                type: string
              price_override:
                type: number
                format: float
              stock_quantity:
                type: integer
              position:
                type: integer
              attributes_data:
                type: object
                additionalProperties: true
    ProductResponse:
      type: object
      required:
        - success
        - data
        - meta
        - message
      properties:
        success:
          type: boolean
          example: true
        data:
          $ref: '#/components/schemas/Product'
        meta:
          type: object
          properties:
            timestamp:
              type: string
              format: date-time
        message:
          type: string
    Product:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        slug:
          type: string
        kind:
          type: string
        description:
          type: string
        sku:
          type: string
        default_price:
          type: number
          format: float
        currency:
          type: string
        status:
          type: string
          enum:
            - active
            - inactive
        stock_quantity:
          type: integer
        metadata:
          type: object
          additionalProperties: true
        labels:
          type: array
          items:
            type: string
        variants:
          type: array
          items:
            $ref: '#/components/schemas/Variant'
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    Variant:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        sku:
          type: string
        price_override:
          type: number
          format: float
        stock_quantity:
          type: integer
        position:
          type: integer
        attributes_data:
          type: object
          additionalProperties: true
  responses:
    ValidationError:
      description: Validation failed
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
                example: false
              message:
                type: string
              details:
                type: array
                items:
                  type: string
  securitySchemes:
    userApiKey:
      type: apiKey
      in: header
      name: api_access_token

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.