Read Ingredient Groups

GET /ingredient-groups

Read the Ingredient Groups shown in Calculations. Use a group's id as the group filter in GET /ingredients. API tokens cannot change Ingredient Groups through this endpoint.

The response is { "groups": [...] }. Each saved group has an id and name. Add ?expand=counts to include count for each group. When unassigned Ingredients exist, the expanded response can include an additional group named – for them; this is not a saved group.

With expand=counts, the request can return 202 with groups and cache_status while the Ingredient index is being prepared. Retry after a short delay before using the counts. Without counts, an empty group list is a normal 200 response.

Example

GET /ingredient-groups?expand=counts