Contextual routes

Some requests can be restricted to an arbitrary segment of the company. For example, one may be interested in analyzing the engagement data for all direct reports of a given manager, or the eNPS of a given department.

For illustration purposes, let’s say that the segment id for the Sales Department is 149. The engagement overview for this department can be obtained by the following request:
GET v1/engagement_contexts_segment_149/overview
At the moment, the easiest way to obtain the segment id is navigating on the Segments page.