Vapi Support Bot
04/27/2025, 1:51 PMcosts
field is an array of objects, with each object containing fields like type
(string), cost
(number), and minutes
(number). According to [Vapi API Reference](https://docs.vapi.ai/api-reference/), these are floating-point numbers.
- The duration
field can be either a floating-point number (e.g., 8730.0009765625) or an integer (e.g., 6200) and represents call duration in seconds.
Could you share a snippet of your Golang code that's attempting to extract these fields? This would help me identify the specific type mismatch issue you're encountering.
Sources:
- [Vapi API Reference](https://docs.vapi.ai/api-reference/)
- [Discord Channel](https://discord.com/channels/1211482211119796234/1336644455582928906)Behzad
04/27/2025, 2:17 PMVapi Support Bot
04/27/2025, 2:56 PMVapi Support Bot
04/27/2025, 3:03 PMKyle
04/28/2025, 1:26 AM