<?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_tasks</id>
	<title>Get SalesCoach account based tasks - 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_tasks"/>
	<link rel="alternate" type="text/html" href="http://docs.callproof.com/index.php?title=Get_SalesCoach_account_based_tasks&amp;action=history"/>
	<updated>2026-07-24T07:20:28Z</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_tasks&amp;diff=3110&amp;oldid=prev</id>
		<title>Ashley DeBon: /* Get Tasks By Contact (AI Chat Bot) */</title>
		<link rel="alternate" type="text/html" href="http://docs.callproof.com/index.php?title=Get_SalesCoach_account_based_tasks&amp;diff=3110&amp;oldid=prev"/>
		<updated>2026-07-21T16:02:31Z</updated>

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

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Get Tasks By Contact (AI Chat Bot) ==  === Base URL === https://apimobile.callproof.com  === Endpoint === /api/ai/chat-bot/contact/{id}/tasks  === Purpose === Retrieves a p...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Get Tasks 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}/tasks&lt;br /&gt;
&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
Retrieves a paginated list of tasks (follow-ups) for a specific contact, scoped to a user. Supports filters for status, type, priority, date range, and name search. Results include task schedule details and related contact information.&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 whose tasks to return. 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;
| search || string || No || Filters by contact first/last name (case-insensitive partial match)&lt;br /&gt;
|-&lt;br /&gt;
| task_status || integer || No || &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt; = incomplete/open tasks; any other value = completed tasks. When provided, page size is 5&lt;br /&gt;
|-&lt;br /&gt;
| task_type || string || No || Comma-separated task type IDs to filter by&lt;br /&gt;
|-&lt;br /&gt;
| task_priority || integer || No || Task priority ID to filter by&lt;br /&gt;
|-&lt;br /&gt;
| start_date || string || No || Start date filter for task schedule (&amp;lt;code&amp;gt;d-m-Y&amp;lt;/code&amp;gt;, for example &amp;lt;code&amp;gt;12-08-2025&amp;lt;/code&amp;gt;)&lt;br /&gt;
|-&lt;br /&gt;
| end_date || string || No || End date filter for task schedule (&amp;lt;code&amp;gt;d-m-Y&amp;lt;/code&amp;gt;)&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 tasks for the contact.&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 task records (see below)&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 (5 when &amp;lt;code&amp;gt;task_status&amp;lt;/code&amp;gt; is provided)&lt;br /&gt;
|-&lt;br /&gt;
| totalItemCount || integer || Total number of matching tasks&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;
| task_id || integer || Unique identifier of the task&lt;br /&gt;
|-&lt;br /&gt;
| task_type_id || integer/string || Task type identifier&lt;br /&gt;
|-&lt;br /&gt;
| task_type_name || string || Task type name&lt;br /&gt;
|-&lt;br /&gt;
| task_priority_id || integer || Task priority identifier&lt;br /&gt;
|-&lt;br /&gt;
| task_priority_name || string || Task priority name&lt;br /&gt;
|-&lt;br /&gt;
| task_date || string || Scheduled date in user timezone (&amp;lt;code&amp;gt;m-d-Y&amp;lt;/code&amp;gt;)&lt;br /&gt;
|-&lt;br /&gt;
| task_time || string || Scheduled time in user timezone&lt;br /&gt;
|-&lt;br /&gt;
| task_duration || integer/string || Task duration&lt;br /&gt;
|-&lt;br /&gt;
| task_notes || string || Task notes&lt;br /&gt;
|-&lt;br /&gt;
| task_schedule_time || string || Formatted schedule datetime&lt;br /&gt;
|-&lt;br /&gt;
| task_completed || boolean || Whether the task is completed&lt;br /&gt;
|-&lt;br /&gt;
| contact_id || integer/string || Contact identifier&lt;br /&gt;
|-&lt;br /&gt;
| contact_name || string || Contact/company name&lt;br /&gt;
|-&lt;br /&gt;
| contact_phone || string || Formatted contact phone&lt;br /&gt;
|-&lt;br /&gt;
| contact_people || string || People linked to the contact/task&lt;br /&gt;
|-&lt;br /&gt;
| contact_sales_rep || string || Sales rep associated with the contact/task&lt;br /&gt;
|-&lt;br /&gt;
| contact_contacted || string || Last contacted value&lt;br /&gt;
|-&lt;br /&gt;
| contact_address1 || string || Address line 1&lt;br /&gt;
|-&lt;br /&gt;
| contact_address2 || string || Address line 2&lt;br /&gt;
|-&lt;br /&gt;
| contact_latitude || string || Latitude&lt;br /&gt;
|-&lt;br /&gt;
| contact_longitude || string || Longitude&lt;br /&gt;
|-&lt;br /&gt;
| contact_datetime || integer || Scheduled datetime as Unix timestamp&lt;br /&gt;
|-&lt;br /&gt;
| is_appointment || boolean || &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when the record is represented as an appointment-style task&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 – tasks 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;), or another error while retrieving tasks (for example, &amp;quot;Error while retiving the Task details&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>