AgenticUniverse - Previously Formi
  1. Agent Utilisation
AgenticUniverse - Previously Formi
  • Our Technical Note
    • Why Open AI is not Enough
    • How business Outcomes would Change Radically with AgenticUniverse
    • Our Research
      • STT - Nuances and Insights
      • Solving for STT Constraints
  • Generate Token
    • Login/Generate Token
      POST
  • Agent Configuration
    • Model Configuration
      • Configuration Helpers
        • Supported Providers
        • Supported Models
        • Supported Parameters
      • Get Model Configuration
      • Set Model Configuration
    • State Machine
      • Edge
        • Legacy
          • Create Edge
          • Edge Details
          • Update Edge
          • Delete Edge
        • Update edge properties
        • Get edge details
        • Delete an edge
        • Create an edge (transition) between two states
      • State
        • Create State from Template
        • Get State Information
        • Update State
        • Delete State
      • Get State Machine Structure
    • Prompt Templates
      • Get All Templates
      • Render Template
    • Tools
      • Get Tools List
      • Add Tool
      • Update Tool
      • Delete Tool
    • Get All Agents
      GET
    • Single Agent Details
      GET
    • Create Agent
      POST
    • Update Agent Details
      PUT
    • Enable Dashboard For An Outlet
      POST
    • Disable Dashboard For An Outlet
      POST
    • Get Call queue Sheet ID
      GET
  • Interactions
    • Pre-Interaction Context
      • Schedule an Interaction
      • Update an Interaction Id
      • Delete an Interaction Id
      • Clear all interactions
      • Get Summarized Interaction Info
    • Interaction Modalities
      • Video
        • Generation
          • Generate Welcome Video
      • Text
        • Start Interaction
        • Create Response
        • End Interaction
      • Voice
        • Connection Configuration
          • Quickstart
          • Connecting Twilio
          • Connecting Exotel
          • Formi WebSocket Configuration Guide
          • Create a New Connection Vendor
          • Get All Connection Vendors
          • Update a Connection Vendor
          • Delete a Connection Vendor
          • Get Agent's Connection Config
          • Add or Update Agent's Connection Config
    • Post Interaction Configuration
      • Email Destination Configuration
      • Variables CRUD
        • Get all required variables for the outlet with map
        • Modify variable definition for outlet
        • Add a new variable for the outlet
        • DELETE variable for outlet
        • Connect Variable to a destination
      • Destinations CRUD
        • Get all destinations for the outlet
        • Modify Destination for outlet
        • Add a new Destination for the outlet
        • DELETE Destinations for outlet
    • Get Interaction Summary
      GET
    • Resolve an Escalated Interaction
      POST
    • Get the Interaction list
      GET
    • Get Information regarding Single Interaction
      GET
  • Agent Utilisation
    • Get Credits Available
      GET
    • Interaction Utilisation
      GET
    • Model Utilisation
      GET
  • Webhooks
    • Get webhook URL
    • Update webhook URL
    • Get webhook metadata
    • Modify webhook metadata
    • Get reservation ingestion metadata
  • Untitled Endpoint
    POST
  1. Agent Utilisation

Get Credits Available

Developing
Staging Env
https://staging-api.formi.co.in
Staging Env
https://staging-api.formi.co.in
GET
https://staging-api.formi.co.in
/v2/usage/credits
Last modified:2025-07-01 10:40:51
Maintainer:Not configured
Retrieves credit usage and balance information for all agents associated with an outlet over a specified date range.

Request

Query Params

Header Params

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://staging-api.formi.co.in/v2/usage/credits?start_date=2025-06-02&end_date=2025-06-02' \
--header 'token: abc-test-1234'

Responses

🟢200Success
application/json
Body

Example

Example Response:

{
  "success": true,
  "message": "Credits fetched successfully",
  "payload": {
    "agents": [
      {
        "agent_id": 101,
        "credits_type": "MINUTE_BASED",
        "filtered_credit_usage": {
          "from_date": "2023-11-01",
          "to_date": "2023-11-30",
          "credit_usage": 450.75
        },
        "available_credits": 549.25,
        "total_recharge": 2000.0,
        "total_usage": 1450.75
      }
    ]
  }
}
Field Descriptions:

agent_id (integer): The unique ID of the agent.

credits_type (string): The billing method for this agent. See definitions below.

filtered_credit_usage (object): An object detailing usage within the requested date range.

available_credits (float): The current remaining credit balance for the agent.

total_recharge (float): The sum of all credit refills for the agent in the specified period.

total_usage (float): The sum of all credit transactions for the agent.

Modified at 2025-07-01 10:40:51
Previous
Agent Utilisation
Next
Interaction Utilisation
Built with