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

# Create a website product

> Creates a product and its initial price in the website's connected Stripe account.



## OpenAPI

````yaml https://api.lindo.ai/openapi.json post /v1/workspace/website/{website_id}/products/create
openapi: 3.1.0
info:
  title: Lindo Unified API
  version: 1.0.0
  description: >-
    Unified API for Lindo.ai - Includes workspace management, websites, pages,
    blogs, workflows, credits, and analytics
servers:
  - url: https://api.lindo.ai
    description: Lindo API Server
security:
  - bearerAuth: []
tags:
  - name: Client Management
    description: Manage workspace clients
  - name: Website Management
    description: Manage websites
  - name: Page Management
    description: Manage website pages
  - name: Blog Management
    description: Manage website blogs
  - name: Workspace Management
    description: Workspace settings and team management
  - name: Workflows
    description: AI workflow management
  - name: Credits
    description: Credit balance and usage
  - name: Analytics
    description: Website and workspace analytics
paths:
  /v1/workspace/website/{website_id}/products/create:
    post:
      tags:
        - Product Management
      summary: Create a website product
      description: >-
        Creates a product and its initial price in the website's connected
        Stripe account.
      parameters:
        - schema:
            type: string
            description: Unique identifier of the website
            example: webAbc1234567890123
          required: true
          name: website_id
          in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProductCreateRequest'
            example:
              name: Website audit
              description: A detailed website performance and SEO audit
              type: fixed
              price: 49.99
              currency: USD
              interval: month
              link_url: https://example.com/thank-you
              file_url: ''
              instruction: We will contact you within one business day.
              trial: 0
              features:
                - discount
                - phone
                - address
                - quantity
              client_limit: 0
      responses:
        '201':
          description: Product created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProductResponse'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '404':
          description: Website or product not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '409':
          description: Stripe is not configured for this website
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    ProductCreateRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 250
          example: Website audit
        description:
          type: string
          maxLength: 5000
          default: ''
          example: A detailed website performance and SEO audit
        type:
          type: string
          enum:
            - fixed
            - subscription
            - free
          description: Product billing type
          example: fixed
        price:
          type: number
          minimum: 0
          default: 0
          description: Price in major currency units (for example, 49.99)
          example: 49.99
        currency:
          type: string
          minLength: 3
          maxLength: 3
          default: USD
          example: USD
        interval:
          type: string
          enum:
            - month
            - week
            - year
          default: month
          description: Billing interval for subscription products
          example: month
        link_url:
          anyOf:
            - type: string
              format: uri
            - type: string
              enum:
                - ''
          default: ''
          description: Optional URL to open after purchase
          example: https://example.com/thank-you
        file_url:
          anyOf:
            - type: string
              format: uri
            - type: string
              enum:
                - ''
          default: ''
          description: Optional downloadable file URL
          example: https://cdn.example.com/audit.pdf
        instruction:
          type: string
          maxLength: 5000
          default: ''
          description: Post-purchase instructions
          example: We will contact you within one business day.
        trial:
          type: integer
          minimum: 0
          default: 0
          description: Trial length in days for a subscription
          example: 7
        features:
          type: array
          items:
            type: string
            enum:
              - discount
              - phone
              - address
              - quantity
            description: >-
              Checkout option: discount allows promotion codes; phone collects a
              phone number; address collects a shipping address; quantity lets
              the customer adjust quantity.
            example: quantity
          maxItems: 4
          default: []
          description: Checkout options enabled for this product
          example:
            - discount
            - phone
            - address
            - quantity
        client_limit:
          type: integer
          minimum: 0
          default: 0
          example: 0
      required:
        - name
        - type
    ProductResponse:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - true
        result:
          $ref: '#/components/schemas/WebsiteProduct'
      required:
        - success
        - result
    ApiErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - false
          description: Indicates the operation failed
          example: false
        errors:
          type: array
          items:
            type: string
          description: Array of error messages
          example:
            - Client already exists
        message:
          type: string
          description: Optional error message
          example: Validation failed
      required:
        - success
        - errors
    WebsiteProduct:
      type: object
      properties:
        id:
          type: string
          example: prod_abc123
        name:
          type: string
        description:
          type:
            - string
            - 'null'
        active:
          type: boolean
        default_price:
          $ref: '#/components/schemas/ProductPrice'
        metadata:
          type: object
          additionalProperties:
            type: string
        images:
          type: array
          items:
            type: string
        created:
          type: number
      required:
        - id
        - name
        - description
        - active
        - default_price
        - metadata
    ProductPrice:
      type:
        - object
        - 'null'
      properties:
        id:
          type: string
        currency:
          type: string
        unit_amount:
          type:
            - number
            - 'null'
        recurring:
          type:
            - object
            - 'null'
          properties:
            interval:
              type: string
            interval_count:
              type: number
          required:
            - interval
            - interval_count
      required:
        - id
        - currency
        - unit_amount
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Enter your API key (starts with lindo_sk_)

````

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