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

# List usage logs

> Paginated usage logs for the organization tied to your API key. Each row is one provider charge (LLM, speech, filter, or platform). `cost` is the marked-up amount. Filter with optional query parameters. When using the internal server API key (`Authorization: Bearer` or `API-KEY` matching server config), you must send `organization_id` as a query parameter (UUID).



## OpenAPI

````yaml get /v1/usage-logs
openapi: 3.0.3
info:
  title: Vatel AI REST API
  description: >-
    Programmatic access for agents, documents, telephony, and session tokens.
    Send `Authorization: Bearer <organization API key>` on all requests unless
    noted. Most error responses return JSON with an `error` string message.
  version: 0.2.6
servers:
  - url: https://api.vatel.ai
    description: Production
security:
  - bearerAuth: []
tags:
  - name: organization
    description: Organization tied to your API key
  - name: llms
    description: LLM model identifiers
  - name: voices
    description: TTS voice catalog
  - name: agents
    description: Agents, outbound dial, agent versions, and graph versions
  - name: twilio
    description: Imported Twilio phone numbers
  - name: sip-trunks
    description: SIP trunk configuration
  - name: session
    description: Session tokens and voice WebSocket connections.
  - name: documents
    description: Organization knowledge documents and indexed chunks
  - name: calls
    description: Call history, recordings, and live eavesdrop for your organization
  - name: usage-logs
    description: Per-request usage rows for calls and chats
  - name: eavesdrop
    description: Listen to live calls and send supervisor commands over WebSocket.
paths:
  /v1/usage-logs:
    get:
      tags:
        - usage-logs
      summary: List usage logs
      description: >-
        Paginated usage logs for the organization tied to your API key. Each row
        is one provider charge (LLM, speech, filter, or platform). `cost` is the
        marked-up amount. Filter with optional query parameters. When using the
        internal server API key (`Authorization: Bearer` or `API-KEY` matching
        server config), you must send `organization_id` as a query parameter
        (UUID).
      operationId: listUsageLogs
      parameters:
        - name: organization_id
          in: query
          required: false
          description: >-
            Organization UUID. Required when the request is authenticated with
            the internal server API key; ignored for organization API keys.
          schema:
            type: string
            format: uuid
        - name: page
          in: query
          required: false
          description: Page number (1-based). Default 1.
          schema:
            type: integer
            minimum: 1
            default: 1
        - name: page_size
          in: query
          required: false
          description: Page size. Default 20, maximum 100.
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
        - name: agent_ids
          in: query
          required: false
          description: >-
            Comma-separated agent UUIDs. A row matches when its call or its chat
            belongs to one of these agents.
          schema:
            type: string
        - name: call_id
          in: query
          required: false
          schema:
            type: string
            format: uuid
        - name: chat_id
          in: query
          required: false
          schema:
            type: string
            format: uuid
        - name: provider
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/UsageProvider'
        - name: model
          in: query
          required: false
          description: Exact model id (max 128 characters).
          schema:
            type: string
        - name: usage_type
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/UsageType'
        - name: service_tier
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/UsageServiceTier'
        - name: date_from
          in: query
          required: false
          description: Filter logs with `created_at` on or after this instant (RFC3339).
          schema:
            type: string
            format: date-time
        - name: date_to
          in: query
          required: false
          description: Filter logs with `created_at` on or before this instant (RFC3339).
          schema:
            type: string
            format: date-time
        - name: tag
          in: query
          required: false
          description: Filter by tag (max 128 characters).
          schema:
            type: string
        - name: source
          in: query
          required: false
          description: >-
            `call` keeps rows attached to a call. `chat` keeps rows attached to
            a chat.
          schema:
            type: string
            enum:
              - call
              - chat
      responses:
        '200':
          description: Paginated usage logs
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedUsageLogsResponse'
        '400':
          description: Invalid query parameters (e.g. invalid UUIDs or filter enums)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    UsageProvider:
      type: string
      enum:
        - openai
        - openrouter
        - vercel
        - elevenlabs
        - deepgram
        - assemblyai
        - google-cloud
        - gladia
        - cartesia
        - hume
        - minimax
        - krisp
        - vatel
        - soniox
        - speechmatics
        - xai
        - fish
        - inworld
    UsageType:
      type: string
      enum:
        - response
        - input
        - token_tts
        - character_tts
        - stt
        - filter
        - platform
    UsageServiceTier:
      type: string
      enum:
        - default
        - priority
    PaginatedUsageLogsResponse:
      type: object
      required:
        - usage_logs
        - pagination
      properties:
        usage_logs:
          type: array
          items:
            $ref: '#/components/schemas/UsageLog'
        pagination:
          $ref: '#/components/schemas/PaginationInfo'
    ErrorResponse:
      type: object
      description: Standard error body for most non-2xx JSON responses on this API.
      required:
        - error
      properties:
        error:
          type: string
          description: Human-readable message; may include validation detail.
    UsageLog:
      type: object
      required:
        - id
        - provider
        - model
        - usage_type
        - data
        - tags
        - created_at
        - cost
      properties:
        id:
          type: string
          format: uuid
        call_id:
          type: string
          format: uuid
        chat_id:
          type: string
          format: uuid
        organization_id:
          type: string
          format: uuid
        provider:
          $ref: '#/components/schemas/UsageProvider'
        model:
          type: string
        service_tier:
          $ref: '#/components/schemas/UsageServiceTier'
        usage_type:
          $ref: '#/components/schemas/UsageType'
        data:
          $ref: '#/components/schemas/UsageLogData'
        tags:
          type: array
          items:
            type: string
        created_at:
          type: string
          description: RFC3339 timestamp
        cost:
          type: number
          description: Marked-up cost charged for this usage row.
    PaginationInfo:
      type: object
      required:
        - page
        - page_size
        - total
        - total_pages
        - has_next
        - has_prev
      properties:
        page:
          type: integer
        page_size:
          type: integer
        total:
          type: integer
        total_pages:
          type: integer
        has_next:
          type: boolean
        has_prev:
          type: boolean
    UsageLogData:
      type: object
      description: >-
        Usage payload. Always includes usageType plus type-specific fields such
        as token counts or duration_minutes.
      required:
        - usageType
      properties:
        usageType:
          $ref: '#/components/schemas/UsageType'
      additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: 'Send your organization API key as `Authorization: Bearer <key>`.'

````

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