Skip to main content
GET
/
api
/
v1
/
analytics
/
calls
Aggregated call metrics for a time window (authoritative call count)
curl --request GET \
  --url https://{subdomain}.mihu.ai/api/v1/analytics/calls \
  --header 'Authorization: Bearer <token>'
{
  "meta": {},
  "totals": {
    "calls": 123,
    "inbound": 123,
    "outbound": 123,
    "answered": 123,
    "missed": 123,
    "failed": 123,
    "ai_handled": 123,
    "human_handled": 123
  },
  "duration_sec": {},
  "buckets": {},
  "outcome": {},
  "cost": {},
  "previous": {}
}

Documentation Index

Fetch the complete documentation index at: https://developers.mindhunters.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Use a Bearer token to access these API endpoints. Example: "Bearer {your-token}"

Query Parameters

from
string<date-time>
required

Inclusive ISO-8601 start with offset (e.g. 2026-04-01T00:00:00+03:00)

to
string<date-time>
required

Exclusive ISO-8601 end with offset

compare_prev
boolean
default:false

Include previous block for the immediately prior window of equal length

granularity
enum<string>
default:total

Only total is currently supported

Available options:
total
channel
string

Comma-separated channel tokens

Example:

"call,whatsapp_call"

agent_uuid
string<uuid>
campaign_uuid
string<uuid>

Response

OK

meta
object
totals
object
duration_sec
object
buckets
object
outcome
object
cost
object
previous
object