Skip to main content
GET
Get metrics

Authorizations

Authorization
string
header
required

The API key, created in Settings › API keys, in the header Authorization: Bearer . The default.

Query Parameters

from
string<date>

First day, YYYY-MM-DD. Defaults to 6 days before to.

to
string<date>

Last day, YYYY-MM-DD, no later than today in Europe/Madrid. Defaults to today.

text_agent_id
string<uuid>

Only this text agent. Its calls are those of the voice agents that share its leads.

voice_agent_id
string<uuid>

Only this voice agent. If it shares its leads with a text agent, new_leads_by_channel, conversations, calls and call_minutes are null: filter by that text agent for them.

Response

The figures.

object
string
required
Allowed value: "metrics"
from
string<date>
required

First day of the period, included.

to
string<date>
required

Last day of the period, included.

timezone
string
required

The days are calendar days in this time zone, as in the dashboard.

Allowed value: "Europe/Madrid"
text_agent_id
string<uuid> | null
required

The text agent the figures are filtered by, or null.

voice_agent_id
string<uuid> | null
required

The voice agent the figures are filtered by, or null.

leads
object
required

The leads that came in during the period and how far each one got, at any time up to now, as in Analysis in the dashboard. Deleted and test leads are left out.

median_first_response_seconds
integer | null
required

Median seconds from a lead coming in to the agent's first message or call, over the contacted leads. null with none.

new_leads_by_channel
object[] | null
required

Every lead created in the period by where it came from, most first, as in the agency's client results. Unlike leads.new it also counts leads deleted later. null when the figures are filtered by a voice agent that shares its leads with a text agent.

conversations
integer | null
required

Billable conversations that started in the period: one per lead and text agent in each billing period, as usage counts them. null before measurement began or when filtered by a voice agent that shares its leads with a text agent.

calls
integer | null
required

Calls that started in the period, inbound and outbound, answered or not. null in the same cases as conversations.

call_minutes
number | null
required

Minutes of those calls. null in the same cases as conversations.