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

# Create a product



## OpenAPI

````yaml https://app.paperlink.online/api/v1/openapi.json post /products
openapi: 3.1.0
info:
  title: PaperLink API
  version: 1.0.0
  description: PaperLink Public REST API for managing products and documents.
  contact:
    name: PaperLink Support
    url: https://paperlink.online
servers:
  - url: https://app.paperlink.online/api/v1
    description: Production
security:
  - BearerAuth: []
paths:
  /products:
    post:
      tags:
        - Products
      summary: Create a product
      operationId: createProduct
      parameters:
        - name: Idempotency-Key
          in: header
          schema:
            type: string
          description: Unique key for idempotent requests
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateProductRequest'
      responses:
        '201':
          description: Product created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProductResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '409':
          description: Duplicate SKU
        '422':
          $ref: '#/components/responses/ValidationError'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  schemas:
    CreateProductRequest:
      type: object
      required:
        - name
        - unitPrice
        - currency
      properties:
        name:
          type: string
          maxLength: 255
        unitPrice:
          type: number
          minimum: 0
        currency:
          type: string
          minLength: 3
          maxLength: 3
        description:
          type: string
          maxLength: 2000
        sku:
          type: string
          maxLength: 100
        taxRate:
          type: number
          minimum: 0
          maximum: 100
        type:
          type: string
          maxLength: 50
        unitOfMeasure:
          type: string
          maxLength: 50
    ProductResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/Product'
    Product:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        unitPrice:
          type: number
        currency:
          type: string
        description:
          type: string
          nullable: true
        sku:
          type: string
          nullable: true
        taxRate:
          type: number
          nullable: true
        type:
          type: string
        unitOfMeasure:
          type: string
        status:
          type: string
          enum:
            - active
            - archived
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          required:
            - type
            - code
            - message
            - request_id
          properties:
            type:
              type: string
            code:
              type: string
            message:
              type: string
            details: {}
            request_id:
              type: string
  responses:
    Unauthorized:
      description: Authentication failed
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    ValidationError:
      description: Validation failed
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    RateLimited:
      description: Rate limit exceeded
      headers:
        Retry-After:
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: API key from Settings > Integrations > API Keys

````