I don't know what kind of api it is. I clearly hav...
# general-english
c
I don't know what kind of api it is. I clearly have lot of call logs. Close to 20. However this is the repsonse i get: Success: [ { name: 'Call Analytics', timeRange: { start: '2025-01-14T14:57:49.245Z', end: '2025-01-21T14:57:49.245Z', timezone: 'UTC' }, result: [] } ] This was the query I ran:
Copy code
queries: [
        {
            table: "call",
            groupBy: ["assistantId"],
            name: "Call Analytics",
            operations: [
                {
                    operation: "count",
                    column: "id",
                    alias: "call_count"
                },
                {
                    operation: "sum",
                    column: "cost",
                    alias: "total_cost"
                }
            ]
        }
    ]
This gives nothing. Additionally, I want to find the number of calls from a particular assistantId. The groupBy "assistantId" is a readonly value. That is I cannot filter it according to any particular assistantId.
2 Views