Goals are used to create user-specific quotas for their sales and services teams based on templates provided by HubSpot. The goals endpoints allow you to sync this data between HubSpot and other systems.
GET
request to /crm/v3/objects/goal_targets
.GET
request to /crm/v3/objects/goal_targets/{goalTargetId}/
.POST
request to the search endpoint and include filters in the request body. Learn more about searching the CRM.44027423340
, the request URL would be the following:
https://api.hubapi.com/crm/v3/objects/goal_targets/44027423340/
The response will include a few default properties, including the create date, last modified date.
properties
query parameter in the request URL along with comma-separated property names. Learn more about user properties below.
For example, making a GET
request to the following URL would result in the response below:
crm/v3/objects/users?properties=hs_job_title,hs_additional_phone
GET
request to the Goals API, you can also request specific goal properties:
https://api.hubapi.com/crm/v3/objects/goal_targets/44027423340?properties=hs_goal_name,hs_target_amount,hs_start_datetime,hs_end_datetime,hs_created_by_user_id
The response may look similar to the JSON excerpt below: