<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://docs.callproof.com/index.php?action=history&amp;feed=atom&amp;title=Get_SalesCoach_contact_stats</id>
	<title>Get SalesCoach contact stats - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://docs.callproof.com/index.php?action=history&amp;feed=atom&amp;title=Get_SalesCoach_contact_stats"/>
	<link rel="alternate" type="text/html" href="http://docs.callproof.com/index.php?title=Get_SalesCoach_contact_stats&amp;action=history"/>
	<updated>2026-07-24T07:20:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>http://docs.callproof.com/index.php?title=Get_SalesCoach_contact_stats&amp;diff=3099&amp;oldid=prev</id>
		<title>Ashley DeBon: /* Get Contact Statistics (AI Chat Bot) */</title>
		<link rel="alternate" type="text/html" href="http://docs.callproof.com/index.php?title=Get_SalesCoach_contact_stats&amp;diff=3099&amp;oldid=prev"/>
		<updated>2026-07-21T15:52:42Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Get Contact Statistics (AI Chat Bot)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 15:52, 21 July 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Get Contact Statistics (AI Chat Bot) ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[[Mobile_API]] &amp;amp;#187; &lt;/ins&gt;Get Contact Statistics (AI Chat Bot) ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Base URL ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Base URL ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ashley DeBon</name></author>
		
	</entry>
	<entry>
		<id>http://docs.callproof.com/index.php?title=Get_SalesCoach_contact_stats&amp;diff=3098&amp;oldid=prev</id>
		<title>Ashley DeBon: Created page with &quot;== Get Contact Statistics (AI Chat Bot) ==  === Base URL === https://apimobile.callproof.com  === Endpoint === /api/ai/chat-bot/contact/{id}/statistics  === Purpose === Retrie...&quot;</title>
		<link rel="alternate" type="text/html" href="http://docs.callproof.com/index.php?title=Get_SalesCoach_contact_stats&amp;diff=3098&amp;oldid=prev"/>
		<updated>2026-07-21T15:52:29Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Get Contact Statistics (AI Chat Bot) ==  === Base URL === https://apimobile.callproof.com  === Endpoint === /api/ai/chat-bot/contact/{id}/statistics  === Purpose === Retrie...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Get Contact Statistics (AI Chat Bot) ==&lt;br /&gt;
&lt;br /&gt;
=== Base URL ===&lt;br /&gt;
https://apimobile.callproof.com&lt;br /&gt;
&lt;br /&gt;
=== Endpoint ===&lt;br /&gt;
/api/ai/chat-bot/contact/{id}/statistics&lt;br /&gt;
&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
Retrieves recent activity statistics for a contact for AI Chat Bot / Sales Coach use. Returns limited lists of appointments, opportunities, notes, and event form submissions within an optional date range.&lt;br /&gt;
&lt;br /&gt;
=== HTTP Method ===&lt;br /&gt;
GET&lt;br /&gt;
&lt;br /&gt;
=== Headers ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Header !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| Authorization || Yes || Bearer access token&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Security ===&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Yes&amp;#039;&amp;#039;&amp;#039; – Requires Bearer Token authentication.&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== Path Parameters ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Parameter !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| id || integer || Yes || Unique identifier of the contact&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Query Parameters ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Parameter !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| start_date || string || No || Start date filter (&amp;lt;code&amp;gt;YYYY-MM-DD&amp;lt;/code&amp;gt;). If omitted with &amp;lt;code&amp;gt;end_date&amp;lt;/code&amp;gt;, defaults to today&lt;br /&gt;
|-&lt;br /&gt;
| end_date || string || No || End date filter (&amp;lt;code&amp;gt;YYYY-MM-DD&amp;lt;/code&amp;gt;). If omitted with &amp;lt;code&amp;gt;start_date&amp;lt;/code&amp;gt;, defaults to today&lt;br /&gt;
|-&lt;br /&gt;
| limit || integer || No || Maximum number of records to return per section (default: 3)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Request Body ====&lt;br /&gt;
None.&lt;br /&gt;
&lt;br /&gt;
=== Successful Response (200) ===&lt;br /&gt;
Returns contact activity grouped by type.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Field !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| clientStatusCode || integer || Status indicator for the client (for example, 200)&lt;br /&gt;
|-&lt;br /&gt;
| user_id || integer || Identifier of the authenticated user&lt;br /&gt;
|-&lt;br /&gt;
| company_id || integer || Identifier of the authenticated user’s company&lt;br /&gt;
|-&lt;br /&gt;
| data || object || Contact statistics payload&lt;br /&gt;
|-&lt;br /&gt;
| uri || string || Requested resource URI&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== data ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Field !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| appointments || array || Recent appointments for the contact&lt;br /&gt;
|-&lt;br /&gt;
| opportunities || array || Recent opportunities for the contact&lt;br /&gt;
|-&lt;br /&gt;
| notes || array || Recent contact notes&lt;br /&gt;
|-&lt;br /&gt;
| event_form || array || Recent event form submissions for the contact&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== data.appointments[] ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Field !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| id || integer || Appointment identifier&lt;br /&gt;
|-&lt;br /&gt;
| title || string || Appointment title&lt;br /&gt;
|-&lt;br /&gt;
| start || string || Start date/time in the user’s timezone (ISO-8601 / Atom)&lt;br /&gt;
|-&lt;br /&gt;
| duration || integer || Appointment duration&lt;br /&gt;
|-&lt;br /&gt;
| latitude || string || Start latitude&lt;br /&gt;
|-&lt;br /&gt;
| end_latitude || string || End latitude&lt;br /&gt;
|-&lt;br /&gt;
| longitude || string || Start longitude&lt;br /&gt;
|-&lt;br /&gt;
| end_longitude || string || End longitude&lt;br /&gt;
|-&lt;br /&gt;
| notes || string || Appointment notes&lt;br /&gt;
|-&lt;br /&gt;
| completed || boolean || &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when duration is greater than 0&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== data.opportunities[] ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Field !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| id || integer || Opportunity identifier&lt;br /&gt;
|-&lt;br /&gt;
| contact || string || Contact/company name&lt;br /&gt;
|-&lt;br /&gt;
| title || string || Opportunity name&lt;br /&gt;
|-&lt;br /&gt;
| contactpersons || string || Linked people names (comma-separated)&lt;br /&gt;
|-&lt;br /&gt;
| type || string || Opportunity type&lt;br /&gt;
|-&lt;br /&gt;
| stage || string || Opportunity stage&lt;br /&gt;
|-&lt;br /&gt;
| close_date || string || Close date in the user’s timezone (ISO-8601 / Atom)&lt;br /&gt;
|-&lt;br /&gt;
| probability || number || Win probability&lt;br /&gt;
|-&lt;br /&gt;
| amount || number || Opportunity value/amount&lt;br /&gt;
|-&lt;br /&gt;
| notes || string || Opportunity notes&lt;br /&gt;
|-&lt;br /&gt;
| created || string || Created date/time in the user’s timezone (ISO-8601 / Atom)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== data.notes[] ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Field !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| id || integer || Note identifier&lt;br /&gt;
|-&lt;br /&gt;
| note || string || Note text&lt;br /&gt;
|-&lt;br /&gt;
| created || string || Created date/time in the user’s timezone (ISO-8601 / Atom)&lt;br /&gt;
|-&lt;br /&gt;
| source_type || string || Note source type name, or &amp;lt;code&amp;gt;N/A&amp;lt;/code&amp;gt; when unavailable&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== data.event_form[] ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Field !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| id || integer || Event form identifier&lt;br /&gt;
|-&lt;br /&gt;
| contact || string || Contact/company name&lt;br /&gt;
|-&lt;br /&gt;
| title || string || Event form name&lt;br /&gt;
|-&lt;br /&gt;
| completed || boolean || Whether the submission is completed&lt;br /&gt;
|-&lt;br /&gt;
| completed_date || string || Completed date/time in the user’s timezone (ISO-8601 / Atom), empty when not set&lt;br /&gt;
|-&lt;br /&gt;
| created || string || Created date/time in the user’s timezone (ISO-8601 / Atom)&lt;br /&gt;
|-&lt;br /&gt;
| creater || string || Full name of the user who submitted the form&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Error Responses ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Status Code !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| 400 || Bad Request – contact statistics could not be retrieved&lt;br /&gt;
|-&lt;br /&gt;
| 401 || Unauthorized – missing, invalid, or expired Bearer token&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;400&amp;#039;&amp;#039;&amp;#039; – An error occurred while loading contact statistics (for example, &amp;quot;We&amp;#039;re sorry, but there was an issue accessing the AI Sales Coach module. Our team has been notified and is working to resolve it.&amp;quot;).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;401&amp;#039;&amp;#039;&amp;#039; – Authentication failed or the access token is missing/expired.&lt;/div&gt;</summary>
		<author><name>Ashley DeBon</name></author>
		
	</entry>
</feed>