InfiVoice Credits API

Monitor your credit balance and usage history. Credits are consumed during calls at a rate of 1 credit per minute. **Understanding Credits:** - Credits are deducted in real-time during calls - Partial minutes are rounded up - Campaigns pause automatically when credits run low - View historical usage for budgeting

GitHub OpenAPI

Operations 2

GET /credits/balance Get Credit Balance #
GET /credits/usage Get Credit Usage #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/infivoice:infivoice-credits-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

infivoice-credits-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: InfiVoice REST Credits API
  description: Welcome to the InfiVoice REST API documentation. This API enables you to programmatically automate AI-powered voice communications at scale.
  version: 1.0.0
servers:
- url: /api/v1
  description: API v1
security:
- ApiKeyAuth: []
- BearerAuth: []
tags:
- name: Credits
  description: 'Monitor your credit balance and usage history. Credits are consumed during calls at a rate of 1 credit per minute.


    **Understanding Credits:**

    - Credits are deducted in real-time during calls

    - Partial minutes are rounded up

    - Campaigns pause automatically when credits run low

    - View historical usage for budgeting'
paths:
  /credits/balance:
    get:
      summary: Get Credit Balance
      description: 'Check your current credit balance. Use this to verify you have sufficient credits before starting campaigns.


        **Credit System:**

        - 1 credit = 1 minute of call time

        - Partial minutes are rounded up

        - Balance updates in real-time during calls


        **Required Scope:** `credits:read`'
      operationId: getCreditBalance
      tags:
      - Credits
      responses:
        '200':
          description: Current credit balance
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreditBalanceResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
  /credits/usage:
    get:
      summary: Get Credit Usage
      description: 'Retrieve credit usage history for budgeting and analysis. Shows daily usage breakdown.


        **Use Cases:**

        - Track spending over time

        - Identify high-usage periods

        - Plan credit purchases

        - Generate billing reports


        **Required Scope:** `credits:read`'
      operationId: getCreditUsage
      tags:
      - Credits
      parameters:
      - name: days
        in: query
        description: Number of days to include in the report (default 30, max 90)
        schema:
          type: integer
          default: 30
          minimum: 1
          maximum: 90
      responses:
        '200':
          description: Daily credit usage breakdown
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreditUsageResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    Meta:
      type: object
      properties:
        requestId:
          type: string
          format: uuid
        timestamp:
          type: string
          format: date-time
    CreditBalanceResponse:
      type: object
      properties:
        success:
          type: boolean
        data:
          type: object
          properties:
            available:
              type: number
            reserved:
              type: number
            total:
              type: number
            currency:
              type: string
              example: credits
        meta:
          $ref: '#/components/schemas/Meta'
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: object
          properties:
            code:
              type: string
              example: VALIDATION_ERROR
            message:
              type: string
              example: Invalid request parameters
            details:
              type: object
        meta:
          $ref: '#/components/schemas/Meta'
    CreditUsageResponse:
      type: object
      properties:
        success:
          type: boolean
        data:
          type: object
          properties:
            period:
              type: object
              properties:
                start:
                  type: string
                  format: date-time
                end:
                  type: string
                  format: date-time
            usage:
              type: array
              items:
                type: object
                properties:
                  date:
                    type: string
                    format: date
                  calls:
                    type: integer
                  minutes:
                    type: integer
                  credits:
                    type: number
            total:
              type: object
              properties:
                calls:
                  type: integer
                minutes:
                  type: integer
                credits:
                  type: number
        meta:
          $ref: '#/components/schemas/Meta'
  responses:
    Unauthorized:
      description: Authentication required or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key for authentication
    BearerAuth:
      type: http
      scheme: bearer
      description: Bearer token (API key)