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

# Get call pricing

> Get pricing/billing information for a specific call.

Requires API key authentication. Only returns pricing for calls owned by the authenticated user.




## OpenAPI

````yaml /openapi.yaml get /pricing/calls/{id}
openapi: 3.0.0
info:
  title: Omnia Voice API
  description: >
    The Omnia Voice API allows you to programmatically manage voice agents,
    tools, phone numbers, and call logs.


    ## Authentication

    All API requests require an API key to be passed in the `X-API-Key` header.


    ## Rate Limiting

    API requests are rate limited to 1000 requests per hour per API key.
  version: 1.0.0
  contact:
    email: support@omnia-voice.com
servers:
  - url: https://api.omnia-voice.com/api/v1
    description: Production
  - url: https://dashboard.omnia-voice.com/api/v1
    description: Production (alias — same service)
security:
  - ApiKeyAuth: []
tags:
  - name: Agents
    description: Manage voice agents
  - name: Tools
    description: Manage agent tools and actions
  - name: Phone Numbers
    description: Manage phone number assignments
  - name: Calls
    description: Create and manage voice calls
  - name: Call Logs
    description: View call history and details
  - name: Pricing
    description: Get pricing information and calculate call costs
  - name: Configuration
    description: Get configuration options (voices, languages)
paths:
  /pricing/calls/{id}:
    get:
      tags:
        - Pricing
      summary: Get call pricing
      description: >
        Get pricing/billing information for a specific call.


        Requires API key authentication. Only returns pricing for calls owned by
        the authenticated user.
      operationId: getCallPricing
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Call ID
      responses:
        '200':
          description: Call pricing information
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CallPricing'
              example:
                callId: call_abc123
                duration:
                  ms: 330000
                  seconds: 330
                  minutes: 5.5
                  billedMinutes: 6
                cost:
                  cents: 30
                  dollars: 0.3
                  estimated: false
                rate:
                  pricePerMinuteCents: 5
                  pricePerMinute: 0.05
                  currency: USD
                billedAt: '2024-01-15T10:30:00Z'
                status: ended
        '404':
          description: Call not found or not owned by user
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    CallPricing:
      type: object
      description: Pricing information for a specific call
      properties:
        callId:
          type: string
          description: The call ID
        duration:
          type: object
          properties:
            ms:
              type: integer
              description: Duration in milliseconds
            seconds:
              type: integer
              description: Duration in seconds
            minutes:
              type: number
              format: float
              description: Duration in minutes
            billedMinutes:
              type: integer
              description: Duration in minutes rounded up for billing
        cost:
          type: object
          properties:
            cents:
              type: integer
              description: Cost in cents
            dollars:
              type: number
              format: float
              description: Cost in dollars
            estimated:
              type: boolean
              description: Whether this is an estimated cost (true if not yet billed)
        rate:
          type: object
          properties:
            pricePerMinuteCents:
              type: integer
              description: Price per minute in cents
            pricePerMinute:
              type: number
              format: float
              description: Price per minute in dollars
            currency:
              type: string
              description: Currency code (USD)
        billedAt:
          type: string
          format: date-time
          nullable: true
          description: When the call was billed (null if not yet billed)
        status:
          type: string
          description: Call status/end reason
    Error:
      $ref: '#/components/schemas/ValidationError'
    ValidationError:
      type: object
      description: |
        Error envelope returned by tool CRUD endpoints (`/agent-tools`,
        `/agent-tools/{id}`). The `details` field carries Zod's
        flatten() output — `formErrors` for top-level issues,
        `fieldErrors` keyed by field path for per-field issues.
      properties:
        error:
          type: string
          description: Top-level human-readable error message.
          example: Invalid request body
        details:
          type: object
          description: Field-level validation issues from the schema.
          properties:
            formErrors:
              type: array
              items:
                type: string
              description: Errors that aren't tied to a specific field.
            fieldErrors:
              type: object
              additionalProperties:
                type: array
                items:
                  type: string
              description: |
                Map of field path → list of error messages for that
                field. Field paths use dot notation for nested fields
                (e.g. `staticParameters.account_id.location`).
              example:
                baseUrlPattern:
                  - Internal URLs are not allowed
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key for authentication

````