<?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_opportunity_list</id>
	<title>Get SalesCoach account based opportunity list - 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_opportunity_list"/>
	<link rel="alternate" type="text/html" href="http://docs.callproof.com/index.php?title=Get_SalesCoach_account_based_opportunity_list&amp;action=history"/>
	<updated>2026-07-24T07:13:16Z</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_opportunity_list&amp;diff=3101&amp;oldid=prev</id>
		<title>Ashley DeBon: /* Get Contact Opportunities (AI Chat Bot) */</title>
		<link rel="alternate" type="text/html" href="http://docs.callproof.com/index.php?title=Get_SalesCoach_account_based_opportunity_list&amp;diff=3101&amp;oldid=prev"/>
		<updated>2026-07-21T15:54:22Z</updated>

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

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Get Contact Opportunities (AI Chat Bot) ==  === Base URL === https://apimobile.callproof.com  === Endpoint === /api/ai/chat-bot/contact/{id}/opportunities  === Purpose ===...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Get Contact Opportunities (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}/opportunities&lt;br /&gt;
&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
Retrieves a paginated list of opportunities for a specific contact, for use by the AI chat bot. Supports search and sort. The user is resolved from the &amp;lt;code&amp;gt;email&amp;lt;/code&amp;gt; request header when provided; otherwise the authenticated user’s email is used.&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 which user’s company context to load. 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 || Search text to filter opportunities&lt;br /&gt;
|-&lt;br /&gt;
| sort_by || integer || No || Sort order: &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt; = created date ascending, &amp;lt;code&amp;gt;2&amp;lt;/code&amp;gt; = created date descending; default sorts by close date ascending&lt;br /&gt;
|-&lt;br /&gt;
| page || integer || No || Page number for pagination (default: 1). Page size is 10&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 opportunities 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 || object || Opportunities payload&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 (10)&lt;br /&gt;
|-&lt;br /&gt;
| totalItemCount || integer || Total number of matching opportunities&lt;br /&gt;
|-&lt;br /&gt;
| uri || string || Requested resource URI&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;
| opportunity_id || integer || Unique identifier of the opportunity&lt;br /&gt;
|-&lt;br /&gt;
| contact_id || integer || Associated contact identifier&lt;br /&gt;
|-&lt;br /&gt;
| associated_account_name || string || Account/company name for the contact&lt;br /&gt;
|-&lt;br /&gt;
| contact_type_id || integer/string || Contact type identifier&lt;br /&gt;
|-&lt;br /&gt;
| contact_type || string || Contact type name&lt;br /&gt;
|-&lt;br /&gt;
| name || string || Opportunity name&lt;br /&gt;
|-&lt;br /&gt;
| stage || string || Opportunity stage name&lt;br /&gt;
|-&lt;br /&gt;
| stage_id || integer || Opportunity stage identifier&lt;br /&gt;
|-&lt;br /&gt;
| closing || string || Close date (format: &amp;lt;code&amp;gt;m-d-Y&amp;lt;/code&amp;gt;)&lt;br /&gt;
|-&lt;br /&gt;
| opportunity_type || string || Opportunity type name&lt;br /&gt;
|-&lt;br /&gt;
| opportunity_type_id || integer || Opportunity type identifier&lt;br /&gt;
|-&lt;br /&gt;
| opportunity_sign || string || Currency/sign used for opportunity value&lt;br /&gt;
|-&lt;br /&gt;
| value || number || Opportunity value&lt;br /&gt;
|-&lt;br /&gt;
| prob || number || Probability percentage&lt;br /&gt;
|-&lt;br /&gt;
| derived || number || Derived value (value × probability / 100)&lt;br /&gt;
|-&lt;br /&gt;
| owner || string || Opportunity owner name&lt;br /&gt;
|-&lt;br /&gt;
| owner_id || integer || Opportunity owner user ID&lt;br /&gt;
|-&lt;br /&gt;
| latitude || string/number || Contact latitude&lt;br /&gt;
|-&lt;br /&gt;
| longitude || string/number || Contact longitude&lt;br /&gt;
|-&lt;br /&gt;
| linked_contacts || array || Linked people (id, name)&lt;br /&gt;
|-&lt;br /&gt;
| linked_accounts || array || Linked accounts (id, name)&lt;br /&gt;
|-&lt;br /&gt;
| custom_fields || array || Opportunity custom fields and values&lt;br /&gt;
|-&lt;br /&gt;
| note || string || Opportunity notes&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 – invalid user email&lt;br /&gt;
|-&lt;br /&gt;
| 401 || Unauthorized / failed to retrieve opportunities – missing/invalid token, or opportunities could not be loaded&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;400&amp;#039;&amp;#039;&amp;#039; – The &amp;lt;code&amp;gt;email&amp;lt;/code&amp;gt; header / authenticated email could not be resolved to a user (&amp;quot;Invalid user email&amp;quot;).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;401&amp;#039;&amp;#039;&amp;#039; – Authentication failed, or an error occurred while retrieving opportunities (for example, &amp;quot;Error while retrieving the Contact Opportunities&amp;quot;).&lt;/div&gt;</summary>
		<author><name>Ashley DeBon</name></author>
		
	</entry>
</feed>