GET /recipes
Read the Recipes used in Calculations. A Recipe can contain Ingredients or other Recipes. The list provides summaries; use a Recipe ID to read its full composition. API tokens can read, but cannot create or change, Recipes through these endpoints.
List Recipes
GET /recipes returns total matching Recipes and an entries array. Optional query parameters:
search_term: Search by Recipe name.group: Recipe Group ID from GET /recipe-groups.type:reusableorfinal.status:activeorinactive.division: Division ID to filter Recipes for a location; find IDs with GET /divisions.offset,limit: Page offset and size; defaults are0and25.
Each list entry includes id, group, name, ingredients, dependencies, dependents and a summary. The list's ingredients are references, not expanded Ingredient details.
Use GET /recipes/{id} to read one Recipe. Its ingredients array contains each component's size and either a detailed ingredient or a summary of a nested recipe. Request that nested Recipe by its ID if you need its own components. The detail response also includes the Recipe's summary and any optional pricing or serving fields.
Use GET /recipes/{id}/divisions for { "divisions": [...] }, a list of associated division IDs. Use GET /divisions to resolve their names. An empty array does not confirm that the Recipe exists or describe its availability in every location; read the Recipe detail first.
A list request can return 202 with empty entries, total: 0 and cache_status while the search index is being prepared. Retry after a short delay; this is not an empty Recipe collection.
Status codes
200on success, including an empty list or division array.202while the list index is being prepared.404ifGET /recipes/{id}requests a Recipe that does not exist. The divisions route can return an empty array for an unknown ID.
Example
curl 'https://app.yourbarmate.com/api/recipes?status=active&limit=25' \
--header 'accept: application/json' \
--header 'authorization: token YOUR_API_TOKEN'