JSON import and export
The same document shape is used by the import pages, the export page, and the API. Export writes mampio.json. Import creates new records for the signed-in user and ignores foreign ids.
Export
Open Export JSON in the account menu, or go to /export/. Select the lists and recipes to include, then download the file. The body is an object with lists and recipes arrays. Omit either key when that side is empty.
List JSON
Open Import JSON on the list overview, or POST the same document to /api/v1/shopping-lists/import_json/ with Authorization: Bearer <token>.
The body is either an object with a lists array or the array itself. Every list in the document is created for the signed-in user.
{
"lists": [
{
"title": "Weekend shop",
"date": "2026-11-01",
"items": [
{"name": "Oat milk", "quantity": "2 l"},
{"name": "Apples", "quantity": "1 kg", "checked": false}
]
}
]
}
Field |
Required |
Meaning |
|---|---|---|
|
yes |
List title |
|
yes |
Shopping date, |
|
no |
Items on that list. Omit it for an empty list. |
|
yes |
Item name |
|
no |
Quantity text, for example |
|
no |
|
|
no |
Order on the list, starting at |
id, created_at, and updated_at are returned by the API and ignored on import.
Recipe JSON
Open Import JSON on the recipe overview, or POST the same document to /api/v1/recipes/import_json/ with Authorization: Bearer <token>.
The body is either an object with a recipes array or the array itself. Every recipe in the document is created for the signed-in user.
{
"recipes": [
{
"title": "Pancakes",
"description": "Sunday breakfast",
"image_url": "https://example.com/pancakes.jpg",
"calories": 450,
"protein": 12,
"carbohydrates": 55,
"fat": 18,
"preparation_minutes": 25,
"servings": 2,
"ingredients": [
{"name": "flour", "quantity": "200 g"},
{"name": "eggs", "quantity": "2"}
],
"steps": [
{"text": "Mix the batter."},
{"text": "Fry until golden."}
]
}
]
}
Field |
Required |
Meaning |
|---|---|---|
|
yes |
Recipe title |
|
no |
Longer text. An empty string is allowed. |
|
no |
|
|
no |
Whole number of kilocalories. Omit it or send |
|
no |
Whole number of grams of protein. Omit it or send |
|
no |
Whole number of grams of carbohydrates. Omit it or send |
|
no |
Whole number of grams of fat. Omit it or send |
|
no |
Whole number of minutes. Omit it or send |
|
no |
Number of servings the quantities are for, 1 to 100. The recipe page and adding to a list can scale the quantities from it. Omit it or send |
|
no |
Ordered ingredients. Omit it for a recipe without ingredients. |
|
yes |
Ingredient name |
|
no |
Quantity text, for example |
|
no |
Order, starting at |
|
no |
Ordered cooking steps |
|
yes |
One step |
|
no |
Order, starting at |
Recipe responses expose only picture_url for images: the uploaded file address when one exists, otherwise the saved external URL, or an empty string. image_url is a write-only input for creation, editing and imports. id, picture_url, created_at, and updated_at are read-only response metadata and must be omitted from imports.