From 2f023e9f4a8a49ef678fc0b360591ef283213035 Mon Sep 17 00:00:00 2001 From: Shubham Naik Date: Wed, 17 Dec 2025 11:37:37 -0800 Subject: [PATCH] Shub/let 6581 add endpoint for showing current balances [LET-6581] (#7208) * feat: add endpoint for showing current balance * feat: add endpoint for showing current balance * chore: update endpoints --------- Co-authored-by: Shubham Naik --- fern/openapi.json | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/fern/openapi.json b/fern/openapi.json index da7d6854..9ac5079f 100644 --- a/fern/openapi.json +++ b/fern/openapi.json @@ -19638,6 +19638,47 @@ } } }, + "/v1/usage/balances": { + "get": { + "description": "Retrieve the current usage balances for the organization.", + "summary": "Retrieve Current Balances", + "tags": ["usage"], + "parameters": [], + "operationId": "usage.retrieveCurrentBalances", + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "total_balance": { + "type": "number" + }, + "monthly_credit_balance": { + "type": "number" + }, + "purchased_credit_balance": { + "type": "number" + }, + "billing_tier": { + "type": "string" + } + }, + "required": [ + "total_balance", + "monthly_credit_balance", + "purchased_credit_balance", + "billing_tier" + ] + } + } + } + } + } + } + }, "/v1/scheduled-messages/{scheduled_message_id}": { "delete": { "description": "Delete a scheduled message by its ID for a specific agent.",