Skip to content

REST API

KitchenOwl provides a REST API to interact with recipes, shopping lists, households, meal plans, expenses, and items.

The complete OpenAPI specification is available at https://app.kitchenowl.org/api/openapi, or on your own instance at https://<your-kitchenowl-instance>/api/openapi.

Authentication

Most endpoints require a JWT bearer access token obtained via POST /api/auth:

curl -s -X POST https://your-kitchenowl.example.org/api/auth \
  -H "Content-Type: application/json" \
  -d '{"username": "alice", "password": "secret"}' | jq

The response includes both an access_token (valid for 15 minutes) and a refresh_token (valid for JWT_REFRESH_TOKEN_EXPIRES days, default 30).

Include the access token in the Authorization header of subsequent requests:

Authorization: Bearer <access_token>

Refreshing tokens

When an access token expires, obtain a new access token using GET /api/auth/refresh with your refresh token as the bearer token:

curl -s -X GET https://your-kitchenowl.example.org/api/auth/refresh \
  -H "Authorization: Bearer <refresh_token>" | jq

AI Assistants & MCP

If you want to connect an AI assistant (Claude, ChatGPT, Cursor, Open WebUI, …) to KitchenOwl, consider using the built-in MCP Server instead of calling REST endpoints manually.