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

# Voice calling availability and pricing for this organization



## OpenAPI

````yaml /openapi.json get /api/v1/voice-calls/config
openapi: 3.0.0
info:
  title: Payable API
  description: >-
    REST API for integrating with Payable programmatically. Authenticate with
    Clerk JWT (web app) or API keys (`esk_live_` / `esk_test_`). Test keys
    operate in sandbox mode without wallet charges or real WhatsApp. Request
    bodies and query parameters are documented from class-validator /
    class-transformer DTOs. Every error is RFC 9457 `application/problem+json`;
    branch on `code`, not `detail`.
  version: '1.0'
  contact: {}
servers:
  - url: https://api.payable.run
    description: Production
  - url: https://localhost:3000
    description: Local
security: []
tags: []
paths:
  /api/v1/voice-calls/config:
    get:
      tags:
        - voice-calls
      summary: Voice calling availability and pricing for this organization
      operationId: VoiceController_getConfig
      parameters: []
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VoiceConfigResponseDto'
        default:
          description: RFC 9457 problem details. Inspect `code` for programmatic handling.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      security:
        - bearer: []
components:
  schemas:
    VoiceConfigResponseDto:
      type: object
      properties:
        enabled:
          type: boolean
        provider:
          type: string
          example: retell
        mediums:
          $ref: '#/components/schemas/VoiceMediumsDto'
        pricePerMinuteCents:
          type: number
          description: Price per started minute, BRL cents
        attemptPriceCents:
          type: number
          description: Price of an unanswered attempt, BRL cents
        estimatedCallCents:
          type: number
          description: Estimated cost reserved per call, BRL cents
        maxCallMinutes:
          type: number
        defaultFlowSettings:
          $ref: '#/components/schemas/VoiceFlowSettingsDto'
      required:
        - enabled
        - provider
        - mediums
        - pricePerMinuteCents
        - attemptPriceCents
        - estimatedCallCents
        - maxCallMinutes
        - defaultFlowSettings
    ProblemDetails:
      type: object
      required:
        - type
        - title
        - status
        - detail
        - instance
        - code
        - requestId
      properties:
        type:
          type: string
          format: uri
          example: https://docs.payable.run/errors/validation_error
        title:
          type: string
          example: Bad Request
        status:
          type: integer
          example: 400
        detail:
          type: string
          example: One or more request fields are invalid.
        instance:
          type: string
          example: /api/v1/clients
        code:
          type: string
          example: VALIDATION_ERROR
        requestId:
          type: string
          format: uuid
        errors:
          type: array
          items:
            type: object
            required:
              - message
            properties:
              field:
                type: string
              message:
                type: string
    VoiceMediumsDto:
      type: object
      properties:
        pstn:
          type: boolean
        whatsapp:
          type: boolean
      required:
        - pstn
        - whatsapp
    VoiceFlowSettingsDto:
      type: object
      properties:
        voiceEnabled:
          type: boolean
        voiceMedium:
          type: string
          enum:
            - pstn
            - whatsapp
        voiceWindowStart:
          type: number
        voiceWindowEnd:
          type: number
        voiceDaysOfWeek:
          type: array
          items:
            type: number
        voiceMaxAttemptsPerDay:
          type: number
        voiceMaxAttemptsPerStep:
          type: number
        voiceRetryBackoffMinutes:
          type: number
        voiceVoiceId:
          type: object
          nullable: true
        voiceTransferPhone:
          type: object
          nullable: true
        voiceAllowTransfer:
          type: boolean
      required:
        - voiceEnabled
        - voiceMedium
        - voiceWindowStart
        - voiceWindowEnd
        - voiceDaysOfWeek
        - voiceMaxAttemptsPerDay
        - voiceMaxAttemptsPerStep
        - voiceRetryBackoffMinutes
        - voiceAllowTransfer
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: API Key or JWT
      type: http
      description: >-
        Use `Authorization: Bearer esk_live_...` or `esk_test_...` for API
        access

````

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