Skip to main content

REST API: Recipe centers (final-dish books)

How to get the list of final dish books accessible to a user

List the final-dish books (recipe centers) the user has access to.

GET /recipeCenters

Before you start

Base URL: https://app.tspoonlab.com/recipes/api

Headers

  • rememberme · required — Session token returned by the login.

Each book's idRecipeCenter is the value you send in the recipe header on every other call (or all for every book). If you don't send it, the user's active book is used.

Login — Returns the token as plain text.

curl https://app.tspoonlab.com/recipes/api/login \
-d [email protected] \
-d password=XXXXXXX

Permissions — Permission to view centers.

Responses may include fields other than the documented ones. Use only the documented fields.


List final-dish books

Returns the user's books sorted by name.

GET /recipeCenters

Example

curl https://app.tspoonlab.com/recipes/api/recipeCenters \
-H "rememberme: $TOKEN"

Response

[
{
"id": "3515834441676562996102020201",
"idRecipeCenter": "3515834441676562996102020202",
"descr": "Summer menu",
"active": true
}
]
  • id string — Id of the user/book relationship.

  • idRecipeCenter string — Book id. This is the value of the recipe header.

  • descr string — Book name.

  • active boolean — Whether it is the user's active book.

Need help? Message us from the support chat in the bottom-right corner.

Did this answer your question?