Field projection

If you’re not interested in getting all properties of the objects you’re retrieving via the REST API, you can define just the ones you need. This is another best practice, which makes the response much lighter and your code faster. To use field projections with the Gtmhub REST API, list the properties you want to include in your response (separated with a comma) and assign them to a fields query parameter.

When an endpoint support field projection, this will be indicated in its documentation.

Example: To get a list of Objectives with just the name and attainment properties use https://app.(us.)gtmhub.com/api/v1/goals?fields={name,attainment}