Hi Are there API's available in hubspot to get data for the following
1. to get details about who added how many contacts on a specified date 2. to get details about who created how many deals on a specified date 3. to get details about which deals were updated by whom and what was updated 4. to get the total pipeline $ worth per respective hubspot user 5. to get the total Pipeline value
This information can be indirectly retrieved or calculated from data which is accessible via the Contacts API and Deals API, but there are no dedicated endpoints for any of these metrics. Several if not many steps are involved for each.
It sounds like you're building an app focused on sales. Could you describe the "how many X on a specified date" use cases in more detail? I ask because I can already tell one significant roadblock will be historical changes. It will be much easier to create an app which keeps track of changes after it is installed but much more challenging to go back in time and attribute changes to users.
If you're using Contacts API endpoints like this, you'll have to append property=hubspot_owner_id to your request URL to get the values for that contact property, which are owner IDs.
For example, a request which fetches a batch of contacts with their first name, last name, and owner values would be:
Yes. This is most easily done by setting up deal.propertyChange subscriptions with the Webhooks API. If you don't use webhooks, though, this goal becomes much more challenging. You'll have to check every deal property and either compare it to historical values in your system or use the timestamp value as a reference for when the value was set.
No. At this time, you will have to loop through all deals returned by this endpoint and sort and calculate the deal values on your end. The CRM Search API which should be released to developer preview shortly should eliminate the need to loop through results. Subscribe to the HubSpot Developer Changelog to be notified when that API is released.
Yes. Notes are a type of engagement, so they can be retrieved through the Engagements API.
If you need to find the engagement IDs associated with a contact or company record, you can query the CRM Associations API.
For example, if you sent the following request to this endpoint, the results array would contain engagement IDs associated with contact 1234 (since the definitionId of 9 is the "contact to engagement" association):
GET
https://api.hubapi.com/crm-associations/v1/associations/1234/HUBSPOT_DEFINED/9