<?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_account_based_Appointment_details</id>
	<title>Get SalesCoach account based Appointment details - 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_account_based_Appointment_details"/>
	<link rel="alternate" type="text/html" href="http://docs.callproof.com/index.php?title=Get_SalesCoach_account_based_Appointment_details&amp;action=history"/>
	<updated>2026-07-24T07:55:26Z</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_account_based_Appointment_details&amp;diff=3106&amp;oldid=prev</id>
		<title>Ashley DeBon: /* Get Appointments By Contact (AI Chat Bot) */</title>
		<link rel="alternate" type="text/html" href="http://docs.callproof.com/index.php?title=Get_SalesCoach_account_based_Appointment_details&amp;diff=3106&amp;oldid=prev"/>
		<updated>2026-07-21T15:58:40Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Get Appointments By Contact (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:58, 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 Appointments By Contact (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 Appointments By Contact (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_account_based_Appointment_details&amp;diff=3105&amp;oldid=prev</id>
		<title>Ashley DeBon: Created page with &quot;== Get Appointments By Contact (AI Chat Bot) ==  === Base URL === https://apimobile.callproof.com  === Endpoint === /api/ai/chat-bot/contact/{id}/appointments  === Purpose ===...&quot;</title>
		<link rel="alternate" type="text/html" href="http://docs.callproof.com/index.php?title=Get_SalesCoach_account_based_Appointment_details&amp;diff=3105&amp;oldid=prev"/>
		<updated>2026-07-21T15:58:28Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Get Appointments By Contact (AI Chat Bot) ==  === Base URL === https://apimobile.callproof.com  === Endpoint === /api/ai/chat-bot/contact/{id}/appointments  === Purpose ===...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Get Appointments By Contact (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}/appointments&lt;br /&gt;
&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
Retrieves a paginated list of appointments for a specific contact, for use by the AI Chat Bot. Results can be filtered by date range and by completed vs. incomplete status.&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;
| email || No || User email used to resolve company context. If omitted, the authenticated user’s email is used&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 || string (date) || No || Start date filter (&amp;lt;code&amp;gt;YYYY-MM-DD&amp;lt;/code&amp;gt;). When provided, filters appointments by &amp;lt;code&amp;gt;start&amp;lt;/code&amp;gt; date range&lt;br /&gt;
|-&lt;br /&gt;
| end || string (date) || No || End date filter (&amp;lt;code&amp;gt;YYYY-MM-DD&amp;lt;/code&amp;gt;). Used with &amp;lt;code&amp;gt;start&amp;lt;/code&amp;gt;; if omitted when &amp;lt;code&amp;gt;start&amp;lt;/code&amp;gt; is provided, defaults to today (end of day)&lt;br /&gt;
|-&lt;br /&gt;
| completed || boolean || No || When &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt;, returns completed appointments. When &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;/omitted, returns incomplete appointments&lt;br /&gt;
|-&lt;br /&gt;
| limit || integer || No || Page size for pagination (default: 10)&lt;br /&gt;
|-&lt;br /&gt;
| page || integer || No || Page number for pagination (default: 1)&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 a paginated list of appointments for the contact (newest first).&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 || array || List of appointment records&lt;br /&gt;
|-&lt;br /&gt;
| firstItemOnPage || integer || Index of the first item on the current page&lt;br /&gt;
|-&lt;br /&gt;
| lastItemOnPage || integer || Index of the last item on the current page&lt;br /&gt;
|-&lt;br /&gt;
| hasNextPage || boolean || Whether a next page is available&lt;br /&gt;
|-&lt;br /&gt;
| hasPreviousPage || boolean || Whether a previous page is available&lt;br /&gt;
|-&lt;br /&gt;
| isFirstPage || boolean || Whether the current page is the first page&lt;br /&gt;
|-&lt;br /&gt;
| isLastPage || boolean || Whether the current page is the last page&lt;br /&gt;
|-&lt;br /&gt;
| next_page_url || string/null || URL of the next page, when available&lt;br /&gt;
|-&lt;br /&gt;
| prev_page_url || string/null || URL of the previous page, when available&lt;br /&gt;
|-&lt;br /&gt;
| first_page_url || string || URL of the first page&lt;br /&gt;
|-&lt;br /&gt;
| last_page_url || string || URL of the last page&lt;br /&gt;
|-&lt;br /&gt;
| pageCount || integer || Total number of pages&lt;br /&gt;
|-&lt;br /&gt;
| pageNumber || integer || Current page number&lt;br /&gt;
|-&lt;br /&gt;
| pageSize || integer || Number of items per page&lt;br /&gt;
|-&lt;br /&gt;
| totalItemCount || integer || Total number of matching appointments&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;
| id || integer || Unique identifier of the appointment&lt;br /&gt;
|-&lt;br /&gt;
| duration || integer/number || Appointment duration&lt;br /&gt;
|-&lt;br /&gt;
| notes || string || Appointment notes&lt;br /&gt;
|-&lt;br /&gt;
| event_form_id || integer || Linked event form identifier, when available&lt;br /&gt;
|-&lt;br /&gt;
| start || string/datetime || Appointment start date/time&lt;br /&gt;
|-&lt;br /&gt;
| start_latitude || number/string || Start location latitude&lt;br /&gt;
|-&lt;br /&gt;
| start_longitude || number/string || Start location longitude&lt;br /&gt;
|-&lt;br /&gt;
| end_latitude || number/string || End location latitude&lt;br /&gt;
|-&lt;br /&gt;
| end_longitude || number/string || End location longitude&lt;br /&gt;
|-&lt;br /&gt;
| title || string || Appointment title&lt;br /&gt;
|-&lt;br /&gt;
| address || string || Appointment address&lt;br /&gt;
|-&lt;br /&gt;
| scheduled || boolean/datetime || Scheduled indicator/value for the appointment&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 – appointments 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; – Invalid user email (&amp;quot;Invalid user email&amp;quot;), no matching appointments (&amp;quot;No appointment found&amp;quot;), or another retrieval error (for example, &amp;quot;Error fetching contact-based appointments&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>