> ## 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 account cost breakdown

> See combined costs for conversations, personal Eigi usage, and transaction debits.

Use `period` for a named window, or send ISO timestamps in `from_date` and `to_date` for an explicit range. A supplied date bound takes precedence over `period`.

```bash theme={null}
curl 'https://api.eigi.ai/v1/public/analytics/cost-breakdown?period=previous_month' \
  -H "X-API-Key: $EIGI_API_KEY"
```

Read `data.range` for the resolved dates and `data.totals` for totals in INR and USD. `data.totals.source_breakdown` splits the costs by source. Use the [conversation cost report](https://docs.eigi.ai/api-reference/public/conversation-cost-breakdown.md) to filter by voice agent or conversation type.


## OpenAPI

````yaml api-reference/openapi.json GET /v1/public/analytics/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/cost-breakdown:
    get:
      tags:
        - Analytics
      summary: Get account cost breakdown
      description: >-
        See combined costs for conversations, personal Eigi usage, and
        transaction debits.
      operationId: costBreakdown
      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
      responses:
        '200':
          description: Successful request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountCostReport'
        '401':
          description: Missing or invalid credentials.
components:
  schemas:
    AccountCostReport:
      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
            totals:
              type: object
              properties:
                total_cost_inr:
                  type: number
                total_cost_usd:
                  type: number
                source_breakdown:
                  type: object
                  additionalProperties: true
            conversations:
              type: object
              additionalProperties: true
            personalized_eigi:
              type: object
              additionalProperties: true
            transaction_debits:
              type: object
              additionalProperties: true
            field_descriptions:
              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.