Speaking Bots/GET

Get Bot Usage

What the bot has consumed so far on speech-to-text, text-to-speech and the LLM.

Live while the bot is in the call, final once it has left. key_sources says per provider whether the bot ran on the server's key (billed by Meeting BaaS) or on one the request brought. Only the API key that created the bot may read it.

GET
/bots/{bot_id}/usage

Authorization

ApiKeyAuth
x-meeting-baas-api-key<token>

MeetingBaas API key for authentication

In: header

Path Parameters

bot_id*string

Response Body

application/json

application/json

curl -X GET "https://speaking.meetingbaas.com/bots/string/usage"
{
  "bot_id": "string",
  "duration_seconds": 0,
  "ended_at": 0,
  "key_sources": {
    "property1": "string",
    "property2": "string"
  },
  "llm_cached_prompt_tokens": 0,
  "llm_completion_tokens": 0,
  "llm_model": "string",
  "llm_prompt_tokens": 0,
  "llm_provider": "string",
  "llm_total_tokens": 0,
  "llm_turns": 0,
  "meetingbaas_bot_id": "string",
  "started_at": 0,
  "stt_audio_seconds": 0,
  "stt_provider": "string",
  "tts_characters": 0,
  "tts_provider": "string",
  "tts_requests": 0
}
Empty
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}