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

# Estimate Fax Cost

> Pre-send cost estimate using the tenant's PER_FAX_MINUTE rate.

Mirrors ``/blasts/estimate-cost`` — read the rate, apply a page-count
heuristic, return cents. Actual billing still happens off
``completed_at - sent_at`` via the monthly usage cron.



## OpenAPI

````yaml post /faxes/estimate-cost
openapi: 3.1.0
info:
  title: Decoda API
  description: External API documentation for the Decoda Health platform.
  version: '1.0'
servers: []
security: []
paths:
  /faxes/estimate-cost:
    post:
      tags:
        - Faxes
      summary: Estimate Fax Cost
      description: |-
        Pre-send cost estimate using the tenant's PER_FAX_MINUTE rate.

        Mirrors ``/blasts/estimate-cost`` — read the rate, apply a page-count
        heuristic, return cents. Actual billing still happens off
        ``completed_at - sent_at`` via the monthly usage cron.
      operationId: estimate_fax_cost_faxes_estimate_cost_post
      parameters:
        - name: TENANT
          in: header
          required: true
          schema:
            type: string
            title: Tenant
          description: The tenant you are making this request on behalf of
        - name: API-KEY
          in: header
          required: true
          schema:
            type: string
            title: Api-Key
          description: Your api key
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FaxCostEstimateRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FaxCostEstimateResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    FaxCostEstimateRequest:
      properties:
        gcsPaths:
          items:
            type: string
            maxLength: 500
            minLength: 1
          type: array
          minItems: 1
          title: Gcspaths
        coverSheet:
          anyOf:
            - $ref: '#/components/schemas/CoverSheetInput'
            - type: 'null'
      type: object
      required:
        - gcsPaths
      title: FaxCostEstimateRequest
      description: >-
        Inputs for a pre-send cost estimate.


        Takes ``gcs_paths`` directly (mirroring ``SendFaxRequest``) because the

        compose dialog hasn't persisted ``FaxAttachment`` rows yet at estimate
        time.
    FaxCostEstimateResponse:
      properties:
        numPages:
          type: integer
          title: Numpages
        estimatedMinutes:
          type: number
          title: Estimatedminutes
        ratePerMinuteCents:
          type: integer
          title: Rateperminutecents
        estimatedCostCents:
          type: integer
          title: Estimatedcostcents
      type: object
      required:
        - numPages
        - estimatedMinutes
        - ratePerMinuteCents
        - estimatedCostCents
      title: FaxCostEstimateResponse
      description: Pre-send cost estimate using the tenant's PER_FAX_MINUTE rate.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CoverSheetInput:
      properties:
        re:
          anyOf:
            - type: string
              maxLength: 255
            - type: 'null'
          title: Re
        message:
          anyOf:
            - type: string
              maxLength: 800
            - type: 'null'
          title: Message
      type: object
      title: CoverSheetInput
      description: >-
        Composer-supplied cover-sheet content prepended to the merged fax.


        The 800-char ``message`` cap guarantees the cover always fits on one
        page,

        which in turn keeps the rendered "Pages to follow" line correct without

        a second pass.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````