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

# Calculate Proposal

> Calculate proposal totals without saving.

**Required scope:** `read`

Supports all proposal types: technical, hour_bucket, tam, retainer,
staff_augmentation, milestone. Pass ``proposalType`` and type-specific
fields in ``settings`` (camelCase). For team-based types, include
``proposalTeam`` and optionally ``rateCards``.



## OpenAPI

````yaml /openapi/openapi-external.json post /proposals/calculate
openapi: 3.1.0
info:
  title: Quikly.ai External API
  version: 1.0.0
  description: >-
    REST API for external integrations with Quikly.ai. Authenticate using an API
    key passed in the X-API-Key header. Use these endpoints from n8n, Zapier,
    custom scripts, or any HTTP client.
servers: []
security:
  - ApiKeyAuth: []
tags:
  - name: Proposals
    description: Create, read, update, and manage client proposals.
  - name: Profile
    description: Read and update the authenticated user's profile.
  - name: Templates
    description: Manage reusable proposal templates.
  - name: AI Services
    description: >-
      AI-powered analysis: rate recommendations, brief analysis,
      differentiators.
  - name: Public API
  - name: Usage
    description: Query API usage and quota information.
  - name: Webhooks
    description: Manage webhook subscriptions for real-time events.
  - name: Agent
    description: Interact with the AI agent for automated workflows.
  - name: Lead Sessions
    description: Track and manage lead capture sessions.
paths:
  /proposals/calculate:
    post:
      tags:
        - Proposals
      summary: Calculate Proposal
      description: |-
        Calculate proposal totals without saving.

        **Required scope:** `read`

        Supports all proposal types: technical, hour_bucket, tam, retainer,
        staff_augmentation, milestone. Pass ``proposalType`` and type-specific
        fields in ``settings`` (camelCase). For team-based types, include
        ``proposalTeam`` and optionally ``rateCards``.
      operationId: calculate_proposal_api_external_v1_proposals_calculate_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CalculationRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CalculationResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    CalculationRequest:
      properties:
        requirements:
          items:
            type: object
          type: array
          title: Requirements
        hourlyRate:
          type: number
          title: Hourlyrate
        settings:
          type: object
          title: Settings
      type: object
      required:
        - requirements
        - hourlyRate
      title: CalculationRequest
      description: |-
        Request for proposal calculations.

        Accepts a ``settings`` dict with the same camelCase keys the frontend
        editor uses (``techStackFee``, ``urgency``, ``clientType``, etc.).
        Falls back to simple legacy fields when ``settings`` is not provided.
    CalculationResponse:
      properties:
        totalPoints:
          type: integer
          title: Totalpoints
        totalHours:
          type: number
          title: Totalhours
        estimatedDays:
          type: integer
          title: Estimateddays
        baseCost:
          type: number
          title: Basecost
        techStackSurcharge:
          type: number
          title: Techstacksurcharge
        urgencyModifier:
          type: number
          title: Urgencymodifier
        clientDiscount:
          type: number
          title: Clientdiscount
        customDiscount:
          type: number
          title: Customdiscount
        subtotal:
          type: number
          title: Subtotal
        tax:
          type: number
          title: Tax
        total:
          type: number
          title: Total
        maintenanceMonthly:
          type: number
          title: Maintenancemonthly
      type: object
      required:
        - totalPoints
        - totalHours
        - estimatedDays
        - baseCost
        - techStackSurcharge
        - urgencyModifier
        - clientDiscount
        - customDiscount
        - subtotal
        - tax
        - total
        - maintenanceMonthly
      title: CalculationResponse
      description: Response with calculated values.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key obtained from Quikly.ai Settings → API Keys.
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key

````