List, retrieve, create and delete recipes and dishes, and retrieve or update their detail (the products and recipes they are made of).
GET /listRecipesPaged
GET /listDishesPaged
GET /integration/recipe/{idRecipe}
GET /integration/dish/{idDish}
POST /recipe
POST /dish
DELETE /recipe/{idRecipe}
DELETE /dish/{idDish}
GET /component/{idComponent}/details
PUT /component/{idComponent}/details
Before you start
Base URL: https://app.tspoonlab.com/recipes/api
Headers
rememberme· required — Session token returned by the login.order· optional — Cost center id (Cost centers). Defaults to the user's active cost center.recipe· optional — Final-dish book id (Recipe centers), orallfor every book. Defaults to the user's active book.
Login — Returns the token as plain text.
curl https://app.tspoonlab.com/recipes/api/login \
-d [email protected] \
-d password=XXXXXXX
Permissions — Listing and retrieving require permission to view recipes or dishes; creating and deleting, permission to add or delete recipes or dishes; updating the detail, permission to edit them. Costs are only returned with permission to view costs, and allergens with permission to view allergens.
Responses may include fields other than the documented ones. Use only the documented fields.
List recipes and dishes
/listRecipesPaged lists recipes and /listDishesPaged lists the dishes in the book given in the recipe header.
GET /listRecipesPaged
GET /listDishesPaged
Query parameters
startinteger · required — Position of the first row, starting at 0.rowsinteger · required — Number of rows to return.filterstring · optional — Text to search in the name, alternative name or code. WithwithTypes=true, also in category names.typesarray · optional — Category ids; repeat the parameter for each one. Items must have all of them.markedboolean · optional —truereturns only marked items. Defaults tofalse.hiddenboolean · optional —truereturns only hidden items;false, only visible ones. Defaults tofalse.withTypesboolean · optional —trueincludes the categories. Defaults tofalse.withDetailboolean · optional —trueincludes the detail. Defaults tofalse.withQuantityUnitsboolean · optional —trueincludes the first quantity and unit. Defaults tofalse.withCostboolean · optional —trueincludes the cost. Defaults tofalse.
Example
curl "https://app.tspoonlab.com/recipes/api/listRecipesPaged?start=0&rows=50&withQuantityUnits=true&withCost=true" \
-H "rememberme: $TOKEN"
Response
[
{
"id": "3515834441676562996102030001",
"descr": "Tomato sauce",
"altDescr": null,
"codi": "EI-014",
"hasData": true,
"tag": null,
"tagComment": null,
"listComponentTypes": null,
"listComponentDetail": null,
"idUnit": "3515834441676562996102030002",
"unit": "kg",
"quantity": 2.5,
"cost": 4.85
}
]
idstring — Recipe or dish id.descrstring — Name.altDescrstring — Alternative name.codistring — Code in the cost center.hasDataboolean — Whether it is used in another recipe or dish.taginteger — Mark:1OK ·2more info needed ·3error.nullif not marked.tagCommentstring — Comment on the mark.listComponentTypesarray — Categories, each withidanddescr. Only withwithTypes.listComponentDetailarray — Detail, with the fields in Retrieve the detail of a recipe or dish. Only withwithDetail.idUnit,unitstring — Unit of the first quantity. Only withwithQuantityUnits.quantitynumber — First quantity. Only withwithQuantityUnits.costnumber — Cost of producing that quantity in the cost center. Only withwithCost.
Retrieve a recipe or dish
Returns the recipe or dish with its quantities, detail, process and allergens. /integration/dish also returns its final-dish books.
GET /integration/recipe/{idRecipe}
GET /integration/dish/{idDish}Path parameters
idRecipe/idDishstring · required — Recipe or dish id.
Example
curl https://app.tspoonlab.com/recipes/api/integration/dish/3515834441676562996102030010 \
-H "rememberme: $TOKEN"
Response
{
"id": "3515834441676562996102030010",
"descr": "Macaroni gratin",
"altDescr": null,
"cost": 1.92,
"process": "Boil the pasta.\nMix with the sauce and grill.",
"listComponentService": [
{
"id": "3515834441676562996102030011",
"idUnit": "3515834441676562996102030012",
"quantity": 1,
"unit": "portion"
}
],
"listComponentDetail": [
{
"id": "3515834441676562996102030013",
"idComponent": "3515834441676562996102030001",
"codeComponent": "EI-014",
"descr": "Tomato sauce",
"altDescr": null,
"quantity": 0.08,
"quantityGross": null,
"idUnit": "3515834441676562996102030002",
"unit": "kg",
"use": null,
"comment": null,
"cost": 0.16,
"type": 1
}
],
"listAllergies": [
{
"id": "3515834441676562996102030014",
"descr": "Gluten",
"idAllergy": "3515834441676562996102030015",
"codi": "GLU",
"calculated": true,
"traces": false
}
],
"listRecipeCenters": [
{
"id": "3515834441676562996102030016",
"idAux": "3515834441676562996102030017",
"descr": "Menu"
}
]
}idstring — Recipe or dish id.descr,altDescrstring — Name and alternative name.costnumber — Cost of producing the first quantity inlistComponentServicein the cost center.processstring — Preparation process, one step per line (\n).listComponentServicearray — Quantities the recipe or dish yields. If there are several, they are equivalent: the detail produces any one of them.listComponentDetailarray — Products and recipes it is made of.listAllergiesarray — Allergens present.listRecipeCentersarray — Final-dish books. Only in/integration/dish.
Each quantity:
idstring — Quantity id.idUnit,unitstring — Unit.quantitynumber — Quantity.
Each detail line:
idstring — Line id.idComponentstring — Product or recipe used.codeComponentstring — Its code.descr,altDescrstring — Its name and alternative name.quantitynumber — Quantity used (net).quantityGrossnumber — Gross quantity when a cut or breakdown applies. Can benull.idUnit,unitstring — Line unit; it may differ from the product's unit. On a "sufficient quantity" line,quantityandidUnitarenull.usestring — Cut or breakdown used.commentstring — Comment.costnumber — Line cost in the cost center.typeinteger —0product ·1recipe ·2tool ·3dish.
Each allergen:
idstring — Id of the link to the recipe or dish.descrstring — Allergen name.idAllergy,codistring — Allergen id and code.calculatedboolean — Whether it comes from the ingredients.tracesboolean — Whether it is a trace.
Each book:
idstring — Id of the link to the book.idAuxstring — Book id.descrstring — Book name.
Create a recipe or dish
Creates a recipe (/recipe) or a dish (/dish). Returns its id.
POST /recipe
POST /dish
Body
descrstring · required — Name.listComponentUnitsarray · required — Quantities the recipe or dish yields.listComponentTypesarray · required — Categories. Send[]if there are none.altDescrstring · optional — Alternative name.codistring · optional — Code in the active cost center.barcodestring · optional — Barcode in the active cost center.includeInOrderboolean · optional —trueincludes it in orders. Defaults tofalse.averageCostboolean · optional —true: cost type average of last month's purchases.fixedCostboolean · optional —true: fixed cost type.fromVendorboolean · optional —true: supplier cost type. If none of the three is sent, last purchase cost.minStock,maxStocknumber · optional — Minimum and maximum stock in the active cost center.minProductionnumber · optional — Minimum production.multProductionnumber · optional — Production multiple.listStoresarray · optional — Stores in the active cost center, each with itsid. Ignored without permission to edit stores.origenstring · optional — Where the recipe comes from.caducitynumber · optional — Shelf life in days.idPartidastring · optional — Station id in the active cost center.inLabelboolean · optional — Whether it is included on the label.inPlanningboolean · optional — Whether it is included in planning.typeConservationinteger · optional —0fridge ·1freezer ·2dry ·3hot.storageTemperaturenumber · optional — Storage temperature.storageTemperatureAuxnumber · optional — Second temperature, for type3(between).typeTemperatureinteger · optional —0equal to ·1less than ·2greater than ·3between.ivanumber · optional — VAT percentage. Ignored without permission to edit orders.listRecipeCentersarray · optional —/dishonly: final-dish books. Defaults to the book in therecipeheader or, withrecipe: all, every book of the user.
Each quantity:
quantitynumber · required — Quantity the recipe or dish yields.idUnitstring · required — Unit id.positioninteger · optional — Order. Defaults to the list order.
Each category:
idstring · required — Category id.
Each book:
idRecipeCenterstring · required — Book id.
Example
curl https://app.tspoonlab.com/recipes/api/dish \
-H "rememberme: $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"descr": "Macaroni gratin",
"codi": "EF-032",
"listComponentUnits": [
{ "quantity": 1, "idUnit": "3515834441676562996102030012" }
],
"listComponentTypes": [],
"listRecipeCenters": [
{ "idRecipeCenter": "3515834441676562996102030017" }
]
}'
Response
{ "id": "3515834441676562996102030010" }Delete a recipe or dish
Deletion is permanent.
DELETE /recipe/{idRecipe}
DELETE /dish/{idDish}Path parameters
idRecipe/idDishstring · required — Recipe or dish id.
Example
curl -X DELETE https://app.tspoonlab.com/recipes/api/dish/3515834441676562996102030010 \
-H "rememberme: $TOKEN"
Response — No content.
Retrieve the detail of a recipe or dish
Returns the products and recipes a recipe or dish is made of.
GET /component/{idComponent}/detailsPath parameters
idComponentstring · required — Recipe or dish id.
Example
curl https://app.tspoonlab.com/recipes/api/component/3515834441676562996102030010/details \
-H "rememberme: $TOKEN"
Response
[
{
"id": "3515834441676562996102030013",
"idComponent": "3515834441676562996102030001",
"codeComponent": "EI-014",
"descr": "Tomato sauce",
"altDescr": null,
"quantity": 0.08,
"quantityGross": null,
"idUnit": "3515834441676562996102030002",
"unit": "kg",
"idUse": null,
"use": null,
"comment": null,
"cost": 0.16,
"date": "Mon 10/12/2026 09:30",
"listAllergies": [
{
"id": "3515834441676562996102030020",
"descr": "Gluten",
"idAllergy": "3515834441676562996102030015",
"codi": "GLU",
"calculated": true,
"traces": false
}
]
}
]
idstring — Line id.idComponentstring — Product or recipe used.codeComponentstring — Its code.descr,altDescrstring — Its name and alternative name.quantitynumber — Quantity used (net).quantityGrossnumber — Gross quantity when a cut or breakdown applies. Can benull.idUnit,unitstring — Unit. On a "sufficient quantity" line,quantityandidUnitarenull.idUse,usestring — Cut or breakdown.commentstring — Comment.costnumber — Line cost in the cost center.datestring — Cost date, formatted for display.listAllergiesarray — Allergens of the product or recipe used, with the fields in Retrieve a recipe or dish.
Update the detail of a recipe or dish
Replaces the whole detail: existing lines not sent are deleted, lines with an id are updated and lines without one are created. Allergens and costs are then recalculated.
PUT /component/{idComponent}/detailsPath parameters
idComponentstring · required — Recipe or dish id.
Body
componentsarray · required — Detail lines. An empty array deletes them all.
Each line:
idComponentstring · required — Product or recipe used.idstring · optional — Id of an existing line, to update it. Omit it (do not send"") to create a line.quantitynumber · required unlessqs— Quantity.idUnitstring · required unlessqs— Unit id.qsboolean · optional —truemeans sufficient quantity:quantityandidUnitare not stored. Defaults tofalse.idUsestring · optional — Cut or breakdown id.commentstring · optional — Comment.positioninteger · optional — Order. Defaults to 0.
Example
curl -X PUT https://app.tspoonlab.com/recipes/api/component/3515834441676562996102030010/details \
-H "rememberme: $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"components": [
{ "id": "3515834441676562996102030013", "idComponent": "3515834441676562996102030001", "idUnit": "3515834441676562996102030002", "quantity": 0.1, "position": 0 },
{ "idComponent": "3515834441676562996102030021", "qs": true, "position": 1 }
]
}'
Response — No content.
Need help? Message us from the support chat in the bottom-right corner.
