The figures of a period for your subaccount or one of its agents. The period is made of calendar days in Europe/Madrid, both included, up to today and at most 92 days; without from and to, the last 7 days. leads follows the leads that came in during the period and how far each one got, as Analysis does in the dashboard; the other figures count what happened in those days. Filter by text_agent_id or voice_agent_id, not both. When you filter by text_agent_id, new_leads_by_channel, conversations, calls and call_minutes also include the activity of the voice agents that share that text agent’s leads, while leads and median_first_response_seconds do not. Figures can be a few minutes old.
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.
Show child attributes
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.
Show child attributes
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.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"NewLead Docs","description":"Create leads, send messages and templates, place calls and receive events from your NewLead agents.","colors":{"primary":"#156BF4","light":"#7BACF9","dark":"#2036B3"},"logo":{"light":"https://mintcdn.com/new-lead-ai/oUfHFD6pLX3jKc5E/logo/light.svg?fit=max\u0026auto=format\u0026n=oUfHFD6pLX3jKc5E\u0026q=85\u0026s=cae14c2394d62b965d2df543cdeace3a","dark":"https://mintcdn.com/new-lead-ai/oUfHFD6pLX3jKc5E/logo/dark.svg?fit=max\u0026auto=format\u0026n=oUfHFD6pLX3jKc5E\u0026q=85\u0026s=f88cb9ce54c5511a562e4f5aa0ed6768","href":"https://newlead.ai"},"favicon":"https://mintcdn.com/new-lead-ai/oUfHFD6pLX3jKc5E/favicon.svg?fit=max\u0026auto=format\u0026n=oUfHFD6pLX3jKc5E\u0026q=85\u0026s=cdb495864fabc9852bd0068666182995","api":{"playground":{"display":"interactive","proxy":false},"examples":{"defaults":"required","languages":["bash","javascript","python"]}},"footer":{"socials":{"website":"https://newlead.ai"}},"errors":{"404":{"redirect":true,"title":"Page not found","description":"This page does not exist. Start from the [NewLead API overview](/)."}},"contextual":{"options":["copy","view"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"new-lead-ai","hasAudioNarration":false,"actualSubdomain":"new-lead-ai","customDomains":["docs.newlead.ai"],"gitSource":{"type":"github","owner":"newlead-labs","repo":"rest-newlead","deployBranch":"main","contentDirectory":"developers","isPrivate":true,"mountPath":"","label":"","_id":"6afdec75feb073e9d12d9abc"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b0b195e5f1d1d769dc9b0ae","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"default","tag":"Platform guide","count":72},{"language":"default","tag":"API reference","count":36},{"language":"default","tag":"Developers","count":18},{"language":"default","tag":"Getting started","count":12},{"language":"default","tag":"Agents","count":10},{"language":"default","tag":"Conversations","count":10},{"language":"default","tag":"Webhooks","count":10},{"language":"default","tag":"Channels","count":9},{"language":"default","tag":"Billing","count":8},{"language":"default","tag":"Agent behaviour","count":7}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/metrics/get-metrics","slug":"/api-reference/metrics/get-metrics","pageMetadata":{"title":"Get metrics","description":"The figures of a period for your subaccount or one of its agents. The period is made of calendar days in Europe/Madrid, both included, up to today and at most 92 days; without from and to, the last 7 days. leads follows the leads that came in during the period and how far each one got, as Analysis does in the dashboard; the other figures count what happened in those days. Filter by text_agent_id or voice_agent_id, not both. When you filter by text_agent_id, new_leads_by_channel, conversations, calls and call_minutes also include the activity of the voice agents that share that text agent's leads, while leads and median_first_response_seconds do not. Figures can be a few minutes old.","deprecated":null,"version":null,"openapi":"/openapi.yaml get /metrics","href":"/api-reference/metrics/get-metrics","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"The figures of a period for your subaccount or one of its agents. The period is made of calendar days in Europe/Madrid, both included, up to today and at most 92 days; without from and to, the last 7 days. leads follows the leads that came in during the period and how far each one got, as Analysis does in the dashboard; the other figures count what happened in those days. Filter by text_agent_id or voice_agent_id, not both. When you filter by text_agent_id, new_leads_by_channel, conversations, calls and call_minutes also include the activity of the voice agents that share that text agent’s leads, while leads and median_first_response_seconds do not. Figures can be a few minutes old.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Get metrics","description":"The figures of a period for your subaccount or one of its agents. The period is made of calendar days in Europe/Madrid, both included, up to today and at most 92 days; without from and to, the last 7 days. leads follows the leads that came in during the period and how far each one got, as Analysis does in the dashboard; the other figures count what happened in those days. Filter by text_agent_id or voice_agent_id, not both. When you filter by text_agent_id, new_leads_by_channel, conversations, calls and call_minutes also include the activity of the voice agents that share that text agent's leads, while leads and median_first_response_seconds do not. Figures can be a few minutes old.","deprecated":null,"version":null,"openapi":"/openapi.yaml get /metrics","href":"/api-reference/metrics/get-metrics","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"getMetrics","tags":["Metrics"],"summary":"Get metrics","description":"The figures of a period for your subaccount or one of its agents. The period is made of calendar days in Europe/Madrid, both included, up to today and at most 92 days; without from and to, the last 7 days. leads follows the leads that came in during the period and how far each one got, as Analysis does in the dashboard; the other figures count what happened in those days. Filter by text_agent_id or voice_agent_id, not both. When you filter by text_agent_id, new_leads_by_channel, conversations, calls and call_minutes also include the activity of the voice agents that share that text agent's leads, while leads and median_first_response_seconds do not. Figures can be a few minutes old.","parameters":["4a4b3e86-5e16-49c2-b008-2fb5ebc4d9ae","9978bd2f-7586-451c-a085-5db33979fad3","09f9dc67-b664-417c-8a34-46f86e9e50d6","f91f14cc-ce9d-4237-962d-44dacbe17593"],"responses":{"200":"a228c246-822a-4fdb-a6ab-9f11ff21d21c","429":"0b5614ab-c8bf-44da-b2cf-c6ca09dc6c55","4XX":"0fe432b2-da7b-4ddc-949c-df60f1f409e4","5XX":"16854bf9-a3ad-43d6-a33a-c511bad71f71"},"method":"get","type":"path","servers":["d04296b8-ca6e-4135-be09-bce4a1d0609b"],"security":["ded4a396-a0c1-4f51-b036-48f859a7b1a8","480c93bd-a746-4de7-b29a-4f3f07a61a4a"],"path":"/metrics","baseUrlOptions":["https://rest.newlead.ai/v1"],"title":"Get metrics","codeSamples":[],"requestExampleLanguages":["bash","javascript","python"],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated","disableProxy":true},"dependencies":{"parameters":{"4a4b3e86-5e16-49c2-b008-2fb5ebc4d9ae":{"name":"from","in":"query","required":false,"description":"First day, YYYY-MM-DD. Defaults to 6 days before to.","schema":{"type":"string","format":"date","isRequired":false,"description":"First day, YYYY-MM-DD. Defaults to 6 days before to.","uniqueKey":"","typeLabel":"string\u003cdate>"}},"9978bd2f-7586-451c-a085-5db33979fad3":{"name":"to","in":"query","required":false,"description":"Last day, YYYY-MM-DD, no later than today in Europe/Madrid. Defaults to today.","schema":{"type":"string","format":"date","isRequired":false,"description":"Last day, YYYY-MM-DD, no later than today in Europe/Madrid. Defaults to today.","uniqueKey":"","typeLabel":"string\u003cdate>"}},"09f9dc67-b664-417c-8a34-46f86e9e50d6":{"name":"text_agent_id","in":"query","required":false,"description":"Only this text agent. Its calls are those of the voice agents that share its leads.","schema":{"type":"string","format":"uuid","isRequired":false,"description":"Only this text agent. Its calls are those of the voice agents that share its leads.","uniqueKey":"","typeLabel":"string\u003cuuid>"}},"f91f14cc-ce9d-4237-962d-44dacbe17593":{"name":"voice_agent_id","in":"query","required":false,"description":"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.","schema":{"type":"string","format":"uuid","isRequired":false,"description":"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.","uniqueKey":"","typeLabel":"string\u003cuuid>"}}},"responses":{"a228c246-822a-4fdb-a6ab-9f11ff21d21c":{"description":"The figures.","headers":{"X-Request-ID":{"description":"The id of this request. Quote it when you contact support.","schema":{"type":"string"}},"RateLimit-Limit":{"description":"Requests allowed per minute for this API key.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current minute.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the counter resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["object","from","to","timezone","text_agent_id","voice_agent_id","leads","median_first_response_seconds","new_leads_by_channel","conversations","calls","call_minutes"],"properties":{"object":{"type":"string","const":"metrics","isRequired":true,"uniqueKey":"object","typeLabel":"string"},"from":{"type":"string","format":"date","description":"First day of the period, included.","isRequired":true,"uniqueKey":"from","typeLabel":"string\u003cdate>"},"to":{"type":"string","format":"date","description":"Last day of the period, included.","isRequired":true,"uniqueKey":"to","typeLabel":"string\u003cdate>"},"timezone":{"type":"string","const":"Europe/Madrid","description":"The days are calendar days in this time zone, as in the dashboard.","isRequired":true,"uniqueKey":"timezone","typeLabel":"string"},"text_agent_id":{"oneOf":[{"type":"string","format":"uuid","description":"The text agent the figures are filtered by, or null.","isRequired":true,"uniqueKey":"text_agent_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"The text agent the figures are filtered by, or null.","isRequired":true,"uniqueKey":"text_agent_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"text_agent_id","typeLabel":"string\u003cuuid> | null"},"voice_agent_id":{"oneOf":[{"type":"string","format":"uuid","description":"The voice agent the figures are filtered by, or null.","isRequired":true,"uniqueKey":"voice_agent_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"The voice agent the figures are filtered by, or null.","isRequired":true,"uniqueKey":"voice_agent_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"voice_agent_id","typeLabel":"string\u003cuuid> | null"},"leads":{"type":"object","additionalProperties":false,"required":["new","contacted","replied","qualified","with_appointment"],"description":"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.","properties":{"new":{"type":"integer","description":"Leads that came in.","isRequired":true,"uniqueKey":"leads.new","typeLabel":"integer"},"contacted":{"type":"integer","description":"Of those, the ones that got a first message or a call from the agent.","isRequired":true,"uniqueKey":"leads.contacted","typeLabel":"integer"},"replied":{"type":"integer","description":"Of the contacted, the ones that answered.","isRequired":true,"uniqueKey":"leads.replied","typeLabel":"integer"},"qualified":{"oneOf":[{"type":"integer","description":"Of those who replied, the ones that completed the qualification or booked an appointment. null when no agent with leads in the period requires the qualification before booking.","isRequired":true,"uniqueKey":"leads.qualified.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Of those who replied, the ones that completed the qualification or booked an appointment. null when no agent with leads in the period requires the qualification before booking.","isRequired":true,"uniqueKey":"leads.qualified.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"leads.qualified","typeLabel":"integer | null"},"with_appointment":{"type":"integer","description":"Of those who replied, the ones with at least one appointment booked by the agent.","isRequired":true,"uniqueKey":"leads.with_appointment","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"leads","typeLabel":"object"},"median_first_response_seconds":{"oneOf":[{"type":"integer","description":"Median seconds from a lead coming in to the agent's first message or call, over the contacted leads. null with none.","isRequired":true,"uniqueKey":"median_first_response_seconds.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Median seconds from a lead coming in to the agent's first message or call, over the contacted leads. null with none.","isRequired":true,"uniqueKey":"median_first_response_seconds.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"median_first_response_seconds","typeLabel":"integer | null"},"new_leads_by_channel":{"oneOf":[{"type":"array","description":"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.","items":{"type":"object","additionalProperties":false,"required":["channel","count"],"properties":{"channel":{"type":"string","enum":["whatsapp","instagram","webchat","meta_lead_form","gmail","outlook","manual","other"],"isRequired":true,"uniqueKey":"new_leads_by_channel.oneOf.0.items.[INDEX].channel","typeLabel":"enum\u003cstring>"},"count":{"type":"integer","isRequired":true,"uniqueKey":"new_leads_by_channel.oneOf.0.items.[INDEX].count","typeLabel":"integer"}},"uniqueKey":"new_leads_by_channel.oneOf.0.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"new_leads_by_channel.oneOf.0","typeLabel":"object[]"},{"type":"null","description":"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.","items":{"type":"object","additionalProperties":false,"required":["channel","count"],"properties":{"channel":{"type":"string","enum":["whatsapp","instagram","webchat","meta_lead_form","gmail","outlook","manual","other"]},"count":{"type":"integer"}}},"isRequired":true,"uniqueKey":"new_leads_by_channel.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"new_leads_by_channel","typeLabel":"object[] | null"},"conversations":{"oneOf":[{"type":"integer","description":"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.","isRequired":true,"uniqueKey":"conversations.oneOf.0","typeLabel":"integer"},{"type":"null","description":"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.","isRequired":true,"uniqueKey":"conversations.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"conversations","typeLabel":"integer | null"},"calls":{"oneOf":[{"type":"integer","description":"Calls that started in the period, inbound and outbound, answered or not. null in the same cases as conversations.","isRequired":true,"uniqueKey":"calls.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Calls that started in the period, inbound and outbound, answered or not. null in the same cases as conversations.","isRequired":true,"uniqueKey":"calls.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"calls","typeLabel":"integer | null"},"call_minutes":{"oneOf":[{"type":"number","description":"Minutes of those calls. null in the same cases as conversations.","isRequired":true,"uniqueKey":"call_minutes.oneOf.0","typeLabel":"number"},{"type":"null","description":"Minutes of those calls. null in the same cases as conversations.","isRequired":true,"uniqueKey":"call_minutes.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"call_minutes","typeLabel":"number | null"}},"examples":[{"object":"metrics","from":"2026-11-21","to":"2026-11-27","timezone":"Europe/Madrid","text_agent_id":null,"voice_agent_id":null,"leads":{"new":120,"contacted":112,"replied":64,"qualified":31,"with_appointment":12},"median_first_response_seconds":38,"new_leads_by_channel":[{"channel":"whatsapp","count":80},{"channel":"meta_lead_form","count":40}],"conversations":97,"calls":14,"call_minutes":52.5}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"object":"metrics","from":"2026-11-21","to":"2026-11-27","timezone":"Europe/Madrid","text_agent_id":null,"voice_agent_id":null,"leads":{"new":120,"contacted":112,"replied":64,"qualified":31,"with_appointment":12},"median_first_response_seconds":38,"new_leads_by_channel":[{"channel":"whatsapp","count":80},{"channel":"meta_lead_form","count":40}],"conversations":97,"calls":14,"call_minutes":52.5}}},"exampleType":"generated"}},"exampleType":"generated"},"0b5614ab-c8bf-44da-b2cf-c6ca09dc6c55":{"description":"Too many requests for this API key. Wait for Retry-After and repeat.","headers":{"X-Request-ID":{"description":"The id of this request. Quote it when you contact support.","schema":{"type":"string"}},"RateLimit-Limit":{"description":"Requests allowed per minute for this API key.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current minute.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the counter resets.","schema":{"type":"integer"}},"Retry-After":{"description":"Seconds to wait before repeating the request.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["error"],"properties":{"error":{"type":"object","additionalProperties":false,"required":["type","code","message","param","request_id","doc_url"],"properties":{"type":{"type":"string","enum":["invalid_request_error","authentication_error","billing_error","permission_error","not_found_error","conflict_error","rate_limit_error","api_error","provider_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"The closed list of error causes. The table is at https://docs.newlead.ai/errors.","enum":["parameter_missing","parameter_invalid","parameter_unknown","body_invalid_json","recipient_invalid","api_key_missing","api_key_invalid","insufficient_balance","subscription_inactive","api_key_forbidden","feature_disabled","resource_not_found","route_not_found","agent_not_ready","lead_do_not_contact","lead_ai_paused","messaging_window_closed","template_not_approved","outside_initiation_hours","voice_number_missing","webhook_endpoint_limit_reached","webhook_endpoint_disabled","idempotency_key_reused","idempotency_key_in_use","rate_limit_exceeded","internal_error","provider_unavailable","media_unavailable","send_outcome_unknown"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"A human-readable explanation. It can change: never match on it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"The offending field, dot-separated (variables.city), or null.","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"The offending field, dot-separated (variables.city), or null.","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"request_id":{"type":"string","description":"The same value as the x-request-id header.","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"doc_url":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"error.doc_url","typeLabel":"string\u003curi>"},"details":{"type":"object","additionalProperties":true,"description":"On agent_not_ready, carries blockers. On send_outcome_unknown from POST /calls, carries call_id if the call is known.","uniqueKey":"error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"examples":[{"error":{"type":"invalid_request_error","code":"parameter_invalid","message":"phone must match pattern \"^\\+[1-9]\\d{6,14}$\".","param":"phone","request_id":"req_m3k2a9_4f1c2b7e","doc_url":"https://docs.newlead.ai/errors#parameter_invalid"}}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"type":"invalid_request_error","code":"parameter_invalid","message":"phone must match pattern \"^\\+[1-9]\\d{6,14}$\".","param":"phone","request_id":"req_m3k2a9_4f1c2b7e","doc_url":"https://docs.newlead.ai/errors#parameter_invalid"}}}},"exampleType":"generated"}},"exampleType":"generated"},"0fe432b2-da7b-4ddc-949c-df60f1f409e4":{"description":"An error. type is the family and code is the cause.","headers":{"X-Request-ID":{"description":"The id of this request. Quote it when you contact support.","schema":{"type":"string"}},"RateLimit-Limit":{"description":"Requests allowed per minute for this API key.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current minute.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the counter resets.","schema":{"type":"integer"}},"Retry-After":{"description":"Seconds to wait before repeating the request.","schema":{"type":"integer"}},"Idempotent-Replayed":{"description":"true when the response is the stored one for a repeated Idempotency-Key.","schema":{"type":"string","const":"true"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["error"],"properties":{"error":{"type":"object","additionalProperties":false,"required":["type","code","message","param","request_id","doc_url"],"properties":{"type":{"type":"string","enum":["invalid_request_error","authentication_error","billing_error","permission_error","not_found_error","conflict_error","rate_limit_error","api_error","provider_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"The closed list of error causes. The table is at https://docs.newlead.ai/errors.","enum":["parameter_missing","parameter_invalid","parameter_unknown","body_invalid_json","recipient_invalid","api_key_missing","api_key_invalid","insufficient_balance","subscription_inactive","api_key_forbidden","feature_disabled","resource_not_found","route_not_found","agent_not_ready","lead_do_not_contact","lead_ai_paused","messaging_window_closed","template_not_approved","outside_initiation_hours","voice_number_missing","webhook_endpoint_limit_reached","webhook_endpoint_disabled","idempotency_key_reused","idempotency_key_in_use","rate_limit_exceeded","internal_error","provider_unavailable","media_unavailable","send_outcome_unknown"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"A human-readable explanation. It can change: never match on it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"The offending field, dot-separated (variables.city), or null.","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"The offending field, dot-separated (variables.city), or null.","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"request_id":{"type":"string","description":"The same value as the x-request-id header.","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"doc_url":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"error.doc_url","typeLabel":"string\u003curi>"},"details":{"type":"object","additionalProperties":true,"description":"On agent_not_ready, carries blockers. On send_outcome_unknown from POST /calls, carries call_id if the call is known.","uniqueKey":"error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"examples":[{"error":{"type":"invalid_request_error","code":"parameter_invalid","message":"phone must match pattern \"^\\+[1-9]\\d{6,14}$\".","param":"phone","request_id":"req_m3k2a9_4f1c2b7e","doc_url":"https://docs.newlead.ai/errors#parameter_invalid"}}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"type":"invalid_request_error","code":"parameter_invalid","message":"phone must match pattern \"^\\+[1-9]\\d{6,14}$\".","param":"phone","request_id":"req_m3k2a9_4f1c2b7e","doc_url":"https://docs.newlead.ai/errors#parameter_invalid"}}}},"exampleType":"generated"}},"exampleType":"generated"},"16854bf9-a3ad-43d6-a33a-c511bad71f71":{"description":"An error. type is the family and code is the cause.","headers":{"X-Request-ID":{"description":"The id of this request. Quote it when you contact support.","schema":{"type":"string"}},"RateLimit-Limit":{"description":"Requests allowed per minute for this API key.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current minute.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the counter resets.","schema":{"type":"integer"}},"Retry-After":{"description":"Seconds to wait before repeating the request.","schema":{"type":"integer"}},"Idempotent-Replayed":{"description":"true when the response is the stored one for a repeated Idempotency-Key.","schema":{"type":"string","const":"true"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["error"],"properties":{"error":{"type":"object","additionalProperties":false,"required":["type","code","message","param","request_id","doc_url"],"properties":{"type":{"type":"string","enum":["invalid_request_error","authentication_error","billing_error","permission_error","not_found_error","conflict_error","rate_limit_error","api_error","provider_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"The closed list of error causes. The table is at https://docs.newlead.ai/errors.","enum":["parameter_missing","parameter_invalid","parameter_unknown","body_invalid_json","recipient_invalid","api_key_missing","api_key_invalid","insufficient_balance","subscription_inactive","api_key_forbidden","feature_disabled","resource_not_found","route_not_found","agent_not_ready","lead_do_not_contact","lead_ai_paused","messaging_window_closed","template_not_approved","outside_initiation_hours","voice_number_missing","webhook_endpoint_limit_reached","webhook_endpoint_disabled","idempotency_key_reused","idempotency_key_in_use","rate_limit_exceeded","internal_error","provider_unavailable","media_unavailable","send_outcome_unknown"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"A human-readable explanation. It can change: never match on it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"The offending field, dot-separated (variables.city), or null.","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"The offending field, dot-separated (variables.city), or null.","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"request_id":{"type":"string","description":"The same value as the x-request-id header.","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"doc_url":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"error.doc_url","typeLabel":"string\u003curi>"},"details":{"type":"object","additionalProperties":true,"description":"On agent_not_ready, carries blockers. On send_outcome_unknown from POST /calls, carries call_id if the call is known.","uniqueKey":"error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"examples":[{"error":{"type":"invalid_request_error","code":"parameter_invalid","message":"phone must match pattern \"^\\+[1-9]\\d{6,14}$\".","param":"phone","request_id":"req_m3k2a9_4f1c2b7e","doc_url":"https://docs.newlead.ai/errors#parameter_invalid"}}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"type":"invalid_request_error","code":"parameter_invalid","message":"phone must match pattern \"^\\+[1-9]\\d{6,14}$\".","param":"phone","request_id":"req_m3k2a9_4f1c2b7e","doc_url":"https://docs.newlead.ai/errors#parameter_invalid"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"ded4a396-a0c1-4f51-b036-48f859a7b1a8":{"BearerAuth":{"type":"http","scheme":"bearer","description":"The API key, created in Settings › API keys, in the header Authorization: Bearer \u003ckey>. The default.","scopes":[],"schemeName":"BearerAuth"}},"480c93bd-a746-4de7-b29a-4f3f07a61a4a":{"ApiKeyHeader":{"type":"apiKey","in":"header","name":"x-api-key","description":"The same key, in the x-api-key header. Still accepted.","scopes":[],"schemeName":"ApiKeyHeader"}}},"servers":{"d04296b8-ca6e-4135-be09-bce4a1d0609b":{"url":"https://rest.newlead.ai/v1"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"The API key, created in Settings › API keys, in the header Authorization: Bearer \u003ckey>. The default.","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"The API key, created in Settings › API keys, in the header Authorization: Bearer \u003ckey>. The default.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"},{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","description":"The same key, in the x-api-key header. Still accepted.","scopes":[],"schemeName":"ApiKeyHeader"},"schema":{"title":"x-api-key","type":"string","description":"The same key, in the x-api-key header. Still accepted.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyHeader","name":"x-api-key"}],"title":"ApiKeyHeader"}]},"originalFileLocation":"openapi.yaml"},"subdomain":"new-lead-ai","siteName":"NewLead Docs","title":"Get metrics - NewLead Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-28T18:11:47.018Z","originalFileLocation":"api-reference/metrics/get-metrics.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"The figures of a period for your subaccount or one of its agents. The period is made of calendar days in Europe/Madrid, both included, up to today and at most 92 days; without from and to, the last 7 days. leads follows the leads that came in during the period and how far each one got, as Analysis does in the dashboard; the other figures count what happened in those days. Filter by text_agent_id or voice_agent_id, not both. When you filter by text_agent_id, new_leads_by_channel, conversations, calls and call_minutes also include the activity of the voice agents that share that text agent\u0026#x27;s leads, while leads and median_first_response_seconds do not. Figures can be a few minutes old.\">\u003cmeta data-mint-head name=\"application-name\" content=\"NewLead Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/new-lead-ai/6m7g1gWhk69mugOX/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/new-lead-ai/6m7g1gWhk69mugOX/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/new-lead-ai/6m7g1gWhk69mugOX/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/new-lead-ai/6m7g1gWhk69mugOX/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/new-lead-ai/6m7g1gWhk69mugOX/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/new-lead-ai/6m7g1gWhk69mugOX/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/new-lead-ai/6m7g1gWhk69mugOX/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/new-lead-ai/6m7g1gWhk69mugOX/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/new-lead-ai/6m7g1gWhk69mugOX/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get metrics - NewLead Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"The figures of a period for your subaccount or one of its agents. The period is made of calendar days in Europe/Madrid, both included, up to today and at most 92 days; without from and to, the last 7 days. leads follows the leads that came in during the period and how far each one got, as Analysis does in the dashboard; the other figures count what happened in those days. Filter by text_agent_id or voice_agent_id, not both. When you filter by text_agent_id, new_leads_by_channel, conversations, calls and call_minutes also include the activity of the voice agents that share that text agent\u0026#x27;s leads, while leads and median_first_response_seconds do not. Figures can be a few minutes old.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"NewLead Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.newlead.ai/api-reference/metrics/get-metrics\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://new-lead-ai.mintlify.site/_mintlify/api/og/v2?division=Metrics\u0026amp;title=Get+metrics\u0026amp;description=The+figures+of+a+period+for+your+subaccount+or+one+of+its+agents.+The+period+is+made+of+calendar+days+in+Europe%2FMadrid%2C+both+included%2C+up+to+today+and+at+most+9\u0026amp;theme=b77720ba947287b24e37a311\u0026amp;signature=4391d1821339f2fb8ac501d5545adfa67913f3fbe318651d7de7ff896f402432\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Get metrics - NewLead Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"The figures of a period for your subaccount or one of its agents. The period is made of calendar days in Europe/Madrid, both included, up to today and at most 92 days; without from and to, the last 7 days. leads follows the leads that came in during the period and how far each one got, as Analysis does in the dashboard; the other figures count what happened in those days. Filter by text_agent_id or voice_agent_id, not both. When you filter by text_agent_id, new_leads_by_channel, conversations, calls and call_minutes also include the activity of the voice agents that share that text agent\u0026#x27;s leads, while leads and median_first_response_seconds do not. Figures can be a few minutes old.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://new-lead-ai.mintlify.site/_mintlify/api/og/v2?division=Metrics\u0026amp;title=Get+metrics\u0026amp;description=The+figures+of+a+period+for+your+subaccount+or+one+of+its+agents.+The+period+is+made+of+calendar+days+in+Europe%2FMadrid%2C+both+included%2C+up+to+today+and+at+most+9\u0026amp;theme=b77720ba947287b24e37a311\u0026amp;signature=4391d1821339f2fb8ac501d5545adfa67913f3fbe318651d7de7ff896f402432\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/new-lead-ai/6m7g1gWhk69mugOX/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"NewLead Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#156BF4\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.newlead.ai/api-reference/metrics/get-metrics\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/metrics/get-metrics.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.newlead.ai/#organization\",\"name\":\"NewLead Docs\",\"url\":\"https://docs.newlead.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/new-lead-ai/oUfHFD6pLX3jKc5E/logo/light.svg?fit=max\u0026auto=format\u0026n=oUfHFD6pLX3jKc5E\u0026q=85\u0026s=cae14c2394d62b965d2df543cdeace3a\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.newlead.ai#website\",\"name\":\"NewLead Docs\",\"url\":\"https://docs.newlead.ai\",\"publisher\":{\"@id\":\"https://docs.newlead.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.newlead.ai/api-reference/metrics/get-metrics#webpage\",\"url\":\"https://docs.newlead.ai/api-reference/metrics/get-metrics\",\"name\":\"Get metrics\",\"description\":\"The figures of a period for your subaccount or one of its agents. The period is made of calendar days in Europe/Madrid, both included, up to today and at most 92 days; without from and to, the last 7 days. leads follows the leads that came in during the period and how far each one got, as Analysis does in the dashboard; the other figures count what happened in those days. Filter by text_agent_id or voice_agent_id, not both. When you filter by text_agent_id, new_leads_by_channel, conversations, calls and call_minutes also include the activity of the voice agents that share that text agent's leads, while leads and median_first_response_seconds do not. Figures can be a few minutes old.\",\"dateModified\":\"2026-11-28T18:11:47.018Z\",\"isPartOf\":{\"@id\":\"https://docs.newlead.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.newlead.ai/api-reference/metrics/get-metrics#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.newlead.ai/api-reference/metrics/get-metrics#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"NewLead Docs\",\"item\":\"https://docs.newlead.ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get metrics\",\"item\":\"https://docs.newlead.ai/api-reference/metrics/get-metrics\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.newlead.ai/api-reference/metrics/get-metrics#apireference\",\"headline\":\"Get metrics\",\"name\":\"Get metrics\",\"description\":\"The figures of a period for your subaccount or one of its agents. The period is made of calendar days in Europe/Madrid, both included, up to today and at most 92 days; without from and to, the last 7 days. leads follows the leads that came in during the period and how far each one got, as Analysis does in the dashboard; the other figures count what happened in those days. Filter by text_agent_id or voice_agent_id, not both. When you filter by text_agent_id, new_leads_by_channel, conversations, calls and call_minutes also include the activity of the voice agents that share that text agent's leads, while leads and median_first_response_seconds do not. Figures can be a few minutes old.\",\"url\":\"https://docs.newlead.ai/api-reference/metrics/get-metrics\",\"mainEntityOfPage\":{\"@id\":\"https://docs.newlead.ai/api-reference/metrics/get-metrics#webpage\"},\"dateModified\":\"2026-11-28T18:11:47.018Z\",\"publisher\":{\"@id\":\"https://docs.newlead.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.newlead.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"NewLead Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"NewLead Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/metrics/get-metrics.md","siteName":"NewLead Docs","nav":{"global":null,"tabs":[{"tab":"Platform guide","pages":[{"title":"Platform guide","href":"/guide"}]},{"tab":"Developers","pages":[{"title":"Developers","href":""}]},{"tab":"API reference","groups":[{"group":"Account","pages":[{"title":"Get the API key's account","deprecated":null,"version":null,"openapi":"/openapi.yaml get /me","href":"/api-reference/account/get-the-api-keys-account"},{"title":"Get the wallet balance","description":"The subaccount's prepaid balance, as its Subaccount Owner sees it in the dashboard. In automatic billing the subaccount pays its usage from its own wallet; in manual billing its agency pays it, and the response is mode manual with wallet null. A key whose role cannot see the balance in the dashboard gets 404 resource_not_found.","deprecated":null,"version":null,"openapi":"/openapi.yaml get /balance","href":"/api-reference/account/get-the-wallet-balance"}]},{"group":"Metrics","pages":[{"title":"Get metrics","deprecated":null,"version":null,"openapi":"/openapi.yaml get /metrics","href":"/api-reference/metrics/get-metrics"}]},{"group":"Text agents","pages":[{"title":"List text agents","description":"Text agents in your subaccount, newest first.","deprecated":null,"version":null,"openapi":"/openapi.yaml get /text_agents","href":"/api-reference/text-agents/list-text-agents"},{"title":"Retrieve a text agent","deprecated":null,"version":null,"openapi":"/openapi.yaml get /text_agents/{text_agent_id}","href":"/api-reference/text-agents/retrieve-a-text-agent"},{"title":"List lead fields","deprecated":null,"version":null,"openapi":"/openapi.yaml get /text_agents/{text_agent_id}/lead_fields","href":"/api-reference/text-agents/list-lead-fields"},{"title":"List templates","deprecated":null,"version":null,"openapi":"/openapi.yaml get /text_agents/{text_agent_id}/templates","href":"/api-reference/text-agents/list-templates"},{"title":"Get qualification questions","deprecated":null,"version":null,"openapi":"/openapi.yaml get /text_agents/{text_agent_id}/qualification","href":"/api-reference/text-agents/get-qualification-questions"}]},{"group":"Leads","pages":[{"title":"List leads","deprecated":null,"version":null,"openapi":"/openapi.yaml get /leads","href":"/api-reference/leads/list-leads"},{"title":"Create or update a lead","deprecated":null,"version":null,"openapi":"/openapi.yaml post /leads","href":"/api-reference/leads/create-or-update-a-lead"},{"title":"Retrieve a lead","deprecated":null,"version":null,"openapi":"/openapi.yaml get /leads/{lead_id}","href":"/api-reference/leads/retrieve-a-lead"},{"title":"Delete a lead","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /leads/{lead_id}","href":"/api-reference/leads/delete-a-lead"},{"title":"Update a lead","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /leads/{lead_id}","href":"/api-reference/leads/update-a-lead"},{"title":"Pause the AI for a lead","deprecated":null,"version":null,"openapi":"/openapi.yaml post /leads/{lead_id}/pause_ai","href":"/api-reference/leads/pause-the-ai-for-a-lead"},{"title":"Resume the AI for a lead","deprecated":null,"version":null,"openapi":"/openapi.yaml post /leads/{lead_id}/resume_ai","href":"/api-reference/leads/resume-the-ai-for-a-lead"}]},{"group":"Messages","pages":[{"title":"List messages","deprecated":null,"version":null,"openapi":"/openapi.yaml get /leads/{lead_id}/messages","href":"/api-reference/messages/list-messages"},{"title":"Retrieve a message","deprecated":null,"version":null,"openapi":"/openapi.yaml get /messages/{message_id}","href":"/api-reference/messages/retrieve-a-message"},{"title":"Download a message attachment","deprecated":null,"version":null,"openapi":"/openapi.yaml get /messages/{message_id}/attachments/{attachment_id}/file","href":"/api-reference/messages/download-a-message-attachment"},{"title":"Send a message","deprecated":null,"version":null,"openapi":"/openapi.yaml post /messages","href":"/api-reference/messages/send-a-message"}]},{"group":"Voice agents","pages":[{"title":"List voice agents","deprecated":null,"version":null,"openapi":"/openapi.yaml get /voice_agents","href":"/api-reference/voice-agents/list-voice-agents"},{"title":"Retrieve a voice agent","deprecated":null,"version":null,"openapi":"/openapi.yaml get /voice_agents/{voice_agent_id}","href":"/api-reference/voice-agents/retrieve-a-voice-agent"}]},{"group":"Calls","pages":[{"title":"List calls","deprecated":null,"version":null,"openapi":"/openapi.yaml get /calls","href":"/api-reference/calls/list-calls"},{"title":"Create a call","deprecated":null,"version":null,"openapi":"/openapi.yaml post /calls","href":"/api-reference/calls/create-a-call"},{"title":"Retrieve a call","deprecated":null,"version":null,"openapi":"/openapi.yaml get /calls/{call_id}","href":"/api-reference/calls/retrieve-a-call"},{"title":"Retrieve a call recording","deprecated":null,"version":null,"openapi":"/openapi.yaml get /calls/{call_id}/recording","href":"/api-reference/calls/retrieve-a-call-recording"}]},{"group":"Webhooks","pages":[{"title":"List webhook endpoints","deprecated":null,"version":null,"openapi":"/openapi.yaml get /webhook_endpoints","href":"/api-reference/webhooks/list-webhook-endpoints"},{"title":"Create a webhook endpoint","deprecated":null,"version":null,"openapi":"/openapi.yaml post /webhook_endpoints","href":"/api-reference/webhooks/create-a-webhook-endpoint"},{"title":"Retrieve a webhook endpoint","deprecated":null,"version":null,"openapi":"/openapi.yaml get /webhook_endpoints/{webhook_endpoint_id}","href":"/api-reference/webhooks/retrieve-a-webhook-endpoint"},{"title":"Delete a webhook endpoint","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /webhook_endpoints/{webhook_endpoint_id}","href":"/api-reference/webhooks/delete-a-webhook-endpoint"},{"title":"Update a webhook endpoint","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /webhook_endpoints/{webhook_endpoint_id}","href":"/api-reference/webhooks/update-a-webhook-endpoint"},{"title":"Send a test delivery","deprecated":null,"version":null,"openapi":"/openapi.yaml post /webhook_endpoints/{webhook_endpoint_id}/test","href":"/api-reference/webhooks/send-a-test-delivery"},{"title":"List webhook deliveries","deprecated":null,"version":null,"openapi":"/openapi.yaml get /webhook_endpoints/{webhook_endpoint_id}/deliveries","href":"/api-reference/webhooks/list-webhook-deliveries"}]},{"group":"Properties","pages":[{"title":"List properties","deprecated":null,"version":null,"openapi":"/openapi.yaml get /properties","href":"/api-reference/properties/list-properties"},{"title":"Create or replace a property","deprecated":null,"version":null,"openapi":"/openapi.yaml put /properties/{reference}","href":"/api-reference/properties/create-or-replace-a-property"},{"title":"Delete a property","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /properties/{reference}","href":"/api-reference/properties/delete-a-property"}]},{"group":"Specification","pages":[{"title":"Get the API specification","deprecated":null,"version":null,"openapi":"/openapi.yaml get /openapi.json","href":"/api-reference/specification/get-the-api-specification"}]}]}]},"basePath":"","title":"Get metrics - NewLead Docs","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BMn8tSe3.js","snippetPresets-Dl5ZrD9W.js","utils-CddEzDcs.js","style-to-object-BY3JEAdk.js","utils-Dym31Pnf.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-ZiqR8hPK.js","conditional-requirements-CFM0id0Q.js","cloneDeep-D3fPbylz.js","_Uint8Array-BcNtDki0.js","isObject-FP1Yky1u.js","ApiExamples-4Sf3CFhl.js","usePlaygroundInputsStore-Ck91l6q0.js","shallow-DapBSR9G.js","isEqual-Clu_sGzx.js","CodeSnippets-DAVHdSX2.js","CodeSnippet-Be6AcO_D.js","use-playground-group-access-CteWws2O.js","Page-_aL_PM_2.js","api-description-markdown-BPoPkVJQ.js","DynamicMarkdown-QJ7LkRm3.js","SectionHeading-DyxPTJti.js","MethodPill-CGjK-dNY.js","getPastedJson-C4YIGTOJ.js","Check2Icon-B7COpIZE.js","axios-CsQoIw0U.js","Markdown-Bquzb4Gw.js","AssistantPageLink-wSgGy_i5.js","dist-Bg48sGSz.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}