Skip to content
merran
GitHubInstall

Merran documentation API & integrations

Check a file from another app

POST
/api/households/current/import/files
curl --request POST \
--url http://localhost:3000/api/households/current/import/files \
--header 'Content-Type: application/zip' \
--cookie merran.session_token=<merran.session_token> \
--data binary

Household admins only. The body is the file: a Mealie backup, recipes exported from Mealie, or a Paprika export. It’s kept, and read in the background: follow its check at /households/current/import/files/{fileId} until it says what’s in it, then start its import at /households/current/import/files/{fileId}/start. A small file is often checked by the time this answers. A file not started is cleared away after a week.

string format: binary

Kept, and being checked.

Media typeapplication/json
object
id
required

The file: follow its check at /households/current/import/files/{fileId}.

string
status
required

Checking while Merran reads it, then ready with what’s in it, or failed with why it can’t be imported.

string
Allowed values: checking ready failed
file
required

What’s in it, once it’s ready.

object
id
required

Start its import at /households/current/import/files/{fileId}/start.

string
app
required
string
Allowed values: mealie paprika
what
required

A whole backup, or recipes exported from the app.

string
Allowed values: backup recipes
recipes
required
integer
alreadyHere
required

Of those, how many an earlier import brought in. They’re skipped.

integer
groups
required

A Mealie backup’s groups, when there’s more than one to choose from.

Array<object>
object
id
required
string
name
required
string
recipes
required
integer
error
required

Why it can’t be imported, once it failed.

object
code
required
string
message
required
string

Example

{
"id": "0199e8b0-5a10-7a01-8b00-000000000018",
"status": "checking",
"file": null,
"error": null
}

Not signed in.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
fields
object
key
additional properties
string

Example

{
"error": {
"code": "not_found",
"message": "There's nothing here.",
"fields": {
"name": "Give it a name."
}
}
}

Not allowed.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
fields
object
key
additional properties
string

Example

{
"error": {
"code": "not_found",
"message": "There's nothing here.",
"fields": {
"name": "Give it a name."
}
}
}

The file is too big.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
fields
object
key
additional properties
string

Example

{
"error": {
"code": "not_found",
"message": "There's nothing here.",
"fields": {
"name": "Give it a name."
}
}
}

© 2026 Kyle Johnson. Documentation: CC BY 4.0. Merran: AGPL-3.0-or-later.