GET /recipe-groups
Read the Recipe Groups shown in Calculations. Use a group's id as the group filter in GET /recipes. API tokens cannot change Recipe 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 Recipes exist, the expanded response can include an additional group named – for them; this is not a saved group.
For counts in one location, add division=DIVISION_ID together with expand=counts. The returned groups remain account groups; only their counts are filtered by division.
With expand=counts, the request can return 202 with groups and cache_status while the Recipe 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 /recipe-groups?expand=counts&division=DIVISION_ID