Get result of a goal

GET {{baseUrl}}/goals/:id/results?period.start=<date>&period.end=<date>

Gets the progress of a goal for the specified period.

Request Params

KeyDatatypeRequiredDescription
period.startstring(Required) The start date of the period for which to find the goal's progress. Format: YYYY-MM-DD. This date must be the same or after the goal duration start date.
period.endstring(Required) The end date of the period for which to find the goal's progress. Format: YYYY-MM-DD. This date must be the same or before the goal duration end date.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;success&quot;:true,&quot;statusCode&quot;:20000,&quot;statusText&quot;:&quot;OK&quot;,&quot;service&quot;:&quot;statistics-goals-api&quot;,&quot;data&quot;:{&quot;goal&quot;:{&quot;id&quot;:&quot;5665cef556ddff22606fc8f6c0004807&quot;,&quot;owner_id&quot;:987654,&quot;title&quot;:&quot;Some example goal&quot;,&quot;type&quot;:{&quot;name&quot;:&quot;Deals started&quot;,&quot;params&quot;:{&quot;pipeline_id&quot;:[5,2],&quot;activity_type_id&quot;:[9]}},&quot;assignee&quot;:{&quot;type&quot;:&quot;company&quot;,&quot;id&quot;:123456},&quot;interval&quot;:&quot;weekly&quot;,&quot;duration&quot;:{&quot;start&quot;:&quot;2019-11-01&quot;,&quot;end&quot;:&quot;2020-10-30&quot;},&quot;expected_outcome&quot;:{&quot;target&quot;:100,&quot;tracking_metric&quot;:&quot;quantity&quot;},&quot;is_active&quot;:false,&quot;report_ids&quot;:[&quot;f37bd66a2ab64d28ff6a9b6d2289813a&quot;]},&quot;progress&quot;:3}}