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

# Criar produto

> Cria um novo produto no workspace.

<Accordion title="Escopo necessário">
`products:write`
</Accordion>



## OpenAPI

````yaml /pt/api-reference/openapi.json post /v1/products
openapi: 3.1.0
info:
  title: OAuth 2.1
  description: Endpoints para registrar aplicativos e gerenciar tokens OAuth 2.1.
  version: 1.0.0
  contact:
    name: Suporte Vendaze
    email: suporte@vendaze.com
servers:
  - url: https://api.vendaze.com
    description: Produção
security:
  - bearerAuth: []
tags:
  - name: OAuth
  - name: Pessoas
  - name: Empresas
  - name: Negócios
  - name: Pipelines
  - name: Tarefas
  - name: Tipos de Tarefas
  - name: Produtos
  - name: Tags
  - name: Listas
  - name: Campos Adicionais
  - name: Webhooks
paths:
  /v1/products:
    post:
      tags:
        - Produtos
      summary: Criar produto
      description: |-
        Cria um novo produto no workspace.

        <Accordion title="Escopo necessário">
        `products:write`
        </Accordion>
      operationId: createProduct
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateProductRequest'
      responses:
        '201':
          description: Produto criado com sucesso.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProductResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/InsufficientScope'
        '409':
          $ref: '#/components/responses/Conflict'
        '422':
          $ref: '#/components/responses/ValidationError'
        '429':
          $ref: '#/components/responses/RateLimitExceeded'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  schemas:
    CreateProductRequest:
      type: object
      required:
        - name
        - currency
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 80
          description: Nome do produto.
          example: Plano Empresarial
        currency:
          $ref: '#/components/schemas/CurrencyCode'
        price_cts:
          type: integer
          minimum: 0
          maximum: 1000000000000000
          description: 'Preço em centavos. Padrão: `0`.'
          example: 99900
        description:
          type: string
          maxLength: 1000
          description: Descrição do produto.
          example: Plano completo para grandes equipes.
        code:
          type: string
          maxLength: 60
          description: Código interno ou SKU.
          example: PLANO-EMP
        is_active:
          type: boolean
          description: 'Se o produto está ativo. Padrão: `true`.'
          example: true
        billing_cycle:
          type: string
          enum:
            - one_time
            - monthly
            - quarterly
            - annually
          description: 'Ciclo de cobrança. Padrão: `one_time`.'
          example: monthly
        image:
          type: string
          description: >-
            Imagem do produto. Aceita URL HTTPS pública, Base64 puro ou data URI
            completo (`data:image/png;base64,...`). Máximo 2 MB.
          example: https://exemplo.com/produto.png
    ProductResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/Product'
    CurrencyCode:
      type: string
      description: Código ISO 4217 de moeda suportado pela Vendaze.
      enum:
        - AED
        - ARS
        - AUD
        - BRL
        - CAD
        - CHF
        - CLP
        - CNY
        - COP
        - DKK
        - EGP
        - EUR
        - GBP
        - HKD
        - ILS
        - INR
        - JPY
        - KWD
        - MAD
        - MXN
        - MYR
        - NGN
        - NOK
        - NZD
        - PEN
        - QAR
        - SAR
        - SEK
        - SGD
        - TRY
        - USD
        - UYU
        - ZAR
      example: BRL
    Product:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Identificador único.
        name:
          type: string
          maxLength: 80
          description: Nome do produto.
          example: Plano Empresarial
        price_cts:
          type: integer
          description: >-
            Preço em centavos da menor unidade monetária. Ex: `99900` = R$
            999,00.
          example: 99900
        currency:
          $ref: '#/components/schemas/CurrencyCode'
        description:
          type: string
          nullable: true
          maxLength: 1000
          description: Descrição opcional do produto.
          example: Plano completo para grandes equipes.
        image_url:
          type: string
          nullable: true
          description: URL pública da imagem do produto, ou `null` se não houver.
          example: >-
            https://storage.vendaze.com/client/workspaces/abc/products/xyz/image/avatar_Ab1Cd2Ef3G.webp
        code:
          type: string
          nullable: true
          maxLength: 60
          description: Código interno ou SKU do produto.
          example: PLANO-EMP
        is_active:
          type: boolean
          description: Se o produto está ativo.
          example: true
        billing_cycle:
          type: string
          enum:
            - one_time
            - monthly
            - quarterly
            - annually
          description: Ciclo de cobrança do produto.
          example: monthly
        created_at:
          type: string
          format: date-time
          description: Data de criação em ISO 8601 UTC.
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            request_id:
              type: string
              format: uuid
    ValidationErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: validation_error
            message:
              type: string
              example: Validation failed.
            fields:
              type: object
              additionalProperties:
                type: string
            request_id:
              type: string
              format: uuid
  responses:
    BadRequest:
      description: 'Body malformado ou PATCH sem campos. Código de erro: `bad_request`.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: bad_request
              message: Request body must be valid JSON.
              request_id: 550e8400-e29b-41d4-a716-446655440000
    Unauthorized:
      description: >-
        Token ausente, inválido ou expirado. Códigos possíveis: `unauthorized`,
        `token_expired`.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: unauthorized
              message: Missing or invalid Authorization header.
              request_id: 550e8400-e29b-41d4-a716-446655440000
    InsufficientScope:
      description: 'Token sem o escopo necessário. Código de erro: `insufficient_scope`.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: insufficient_scope
              message: This endpoint requires the 'webhooks:read' scope.
              request_id: 550e8400-e29b-41d4-a716-446655440000
    Conflict:
      description: >-
        Já existe um campo com a mesma `key` no workspace. Código de erro:
        `conflict`.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: conflict
              message: A record with this value already exists.
              fields:
                key: Value already in use.
              request_id: 550e8400-e29b-41d4-a716-446655440000
    ValidationError:
      description: >-
        Validação de entrada falhou. Código: `validation_error`. O objeto
        `fields` mapeia cada campo inválido para uma descrição do problema.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ValidationErrorResponse'
          example:
            error:
              code: validation_error
              message: Validation failed.
              fields:
                url: url must use HTTPS.
                events: At least one event is required.
              request_id: 550e8400-e29b-41d4-a716-446655440000
    RateLimitExceeded:
      description: 'Rate limit excedido. Código: `rate_limit_exceeded`.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: rate_limit_exceeded
              message: Rate limit exceeded. Try again in 60 seconds.
              request_id: 550e8400-e29b-41d4-a716-446655440000
    InternalError:
      description: 'Erro interno inesperado. Código: `internal_error`.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: internal_error
              message: An unexpected error occurred.
              request_id: 550e8400-e29b-41d4-a716-446655440000
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Access token OAuth 2.1.

````