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

# Get conversation costs

> Review conversation costs and usage for your account or a single agent.

Use `agent_id` to scope the report to an agent you own. You can also filter by `conversation_type` and choose a named period or an explicit date range.

```bash theme={null}
curl --get 'https://api.eigi.ai/v1/public/analytics/conversations/cost-breakdown' \
  -H "X-API-Key: $EIGI_API_KEY" \
  --data-urlencode 'period=week' \
  --data-urlencode 'conversation_type=TELEPHONY'
```

Inspect `data.range`, `data.total_conversations`, and `data.costed_conversations` before interpreting the costs. A conversation with missing costing contributes to the conversation count. For the broader account total, use [account cost breakdown](https://docs.eigi.ai/api-reference/public/cost-breakdown.md).


## OpenAPI

````yaml api-reference/openapi.json GET /v1/public/analytics/conversations/cost-breakdown
openapi: 3.0.0
info:
  title: eigi.ai API
  description: REST API for managing AI voice agents and conversations
  version: 1.0.0
  contact:
    email: buddy@eigi.ai
    url: https://eigi.ai
servers:
  - url: https://api.eigi.ai
    description: Production server
security:
  - ApiKeyAuth: []
  - OAuthAccessToken: []
paths:
  /v1/public/analytics/conversations/cost-breakdown:
    get:
      tags:
        - Analytics
      summary: Get conversation costs
      description: Review conversation costs and usage for your account or a single agent.
      operationId: conversationCostBreakdown
      parameters:
        - name: period
          in: query
          required: false
          description: Named window, overridden by an explicit date bound.
          schema:
            type: string
            enum:
              - day
              - week
              - month
              - previous_month
              - all_time
            default: month
        - name: from_date
          in: query
          required: false
          description: Inclusive range start.
          schema:
            type: string
            format: date-time
        - name: to_date
          in: query
          required: false
          description: Inclusive range end.
          schema:
            type: string
            format: date-time
        - name: timezone_offset
          in: query
          required: false
          description: Minutes from UTC for calendar ranges.
          schema:
            type: integer
            default: 330
        - name: agent_id
          in: query
          required: false
          description: Limit to one of your agents.
          schema:
            type: string
        - name: conversation_type
          in: query
          required: false
          description: Filter conversations, for example TELEPHONY or CHAT.
          schema:
            type: string
      responses:
        '200':
          description: Successful request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationCostReport'
        '401':
          description: Missing or invalid credentials.
components:
  schemas:
    ConversationCostReport:
      type: object
      required:
        - status
        - message
        - data
      properties:
        status:
          type: string
        message:
          type: string
        data:
          type: object
          properties:
            range:
              type: object
              properties:
                period:
                  type: string
                  nullable: true
                from_date:
                  type: string
                  format: date-time
                  nullable: true
                to_date:
                  type: string
                  format: date-time
                  nullable: true
                timezone_offset:
                  type: integer
            total_conversations:
              type: integer
            costed_conversations:
              type: integer
            missing_costing_conversations:
              type: integer
            total_cost_inr:
              type: number
            total_cost_usd:
              type: number
            conversation_metadata:
              type: object
              additionalProperties: true
            by_day:
              type: array
              items:
                type: object
                additionalProperties: true
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Studio API key for server-side requests.
    OAuthAccessToken:
      type: http
      scheme: bearer
      description: OAuth access token issued to an authorized Eigi integration.

````

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