Back to API List This API provides a summary of the billing usage specific to an account or bot for a given period. Billing sessions are tracked at the individual app or bot level. In dynamic routing scenarios, the Parent app functions as a standalone app with its own billing sessions. When the Parent app routes a user query to a linked app, that billing session is attributed to the linked app, not the Parent app. When you select the Parent app in the Admin Console or pass its ID via the API, the system returns only the Parent app’s direct sessions; it doesn’t include sessions routed from the Parent app to linked apps.Documentation Index
Fetch the complete documentation index at: https://koreai.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
| Field | Value |
|---|---|
| Method | POST and GET |
| Endpoint | POST: For Dialog Builder: https://{{host}}/api/public/bot/{{BotID}}/billingsessionsummary For BAC: https://{{host}}/api/public/billingsessionsummary Important: First, use the POST method to set filters, then use the following GET method to retrieve the billing session summary. GET: For Dialog Builder: https://{{host}}/api/public/bot/{{BotID}}/billingsessionsummary/status?type=summary For BAC: https://{{host}}/api/public/billingsessionsummary/status?type=summary |
| Content Type | application/json |
| Authorization | auth: {{JWT}} See How to generate the JWT Token. |
| API Scope | Dialog Builder: Billing Sessions; Admin Console: Billing > Usage > Billing Sessions |
Query Parameters
| Parameter | Description |
|---|---|
host | Environment URL, for example, https://platform.kore.ai. |
BotID (when using with Dialog Builder scope) | Bot ID or Stream ID. You can access it from the App Settings page. |
Sample Request
Sample POST Method Request for the App Builder API Scope
Use the POST method to set filters, then use the following GET method to retrieve the billing session summary.
Sample GET Method Request for the App Builder API Scope
Sample POST Method Request for the Admin API (BAC) scope
Sample GET Method Request for the BAC API Scope
Body Parameters for the POST Request
| Parameter | Required/Optional | Description |
|---|---|---|
fromDate | date, required | Accepts the date in yyyy-mm-dd format or yyyy-mm-ddThh:mm:ss.msZ. Max: 90 days. |
toDate | date, required | Accepts the date in yyyy-mm-dd format or yyyy-mm-ddThh:mm:ss.msZ. Max: 90 days. |
unitType | string, required | The unit type of the billing session. Possible values: session, request, alert, proactive, conversations. |
groupByApp | string, required | Groups billing sessions by Apps. Use yes for BAC scope with stream ID, no for Dialog Builder scope without stream ID. |
groupByPeriod | string, required | Retrieve conversation session data on a Monthly, Daily, or Hourly basis. Possible values: date_day_hour, date_day, date_month. |