Skip to content
merran
GitHubInstall

Merran documentation API & integrations

One of the household's imports

GET
/api/imports/{importId}
curl --request GET \
--url http://localhost:3000/api/imports/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--cookie merran.session_token=<merran.session_token>

How it’s going or went: its links in order, for several links or a collection, and the recipes it brought in, what was already there and what didn’t come in and why, 100 of each at a time. With an API key, it needs the imports: read permission.

importId
required
string format: uuid
cameIn

Where the recipes it brought in start: 100 for the next page.

integer | null

Where the recipes it brought in start: 100 for the next page.

alreadyHere

Where what was already here starts.

integer | null

Where what was already here starts.

didntComeIn

Where what didn’t come in starts.

integer | null

Where what didn’t come in starts.

The import.

Media typeapplication/json
object
id
required
string
kind
required

What brought recipes in: one link or a video that went on in the background, several links, a starter collection, Mealie, Paprika or a Merran export.

string
Allowed values: link video links collection mealie paprika merran
source
required

What it was: the link, Mealie’s address or the collection’s name. None for several links or a file.

string | null
tag
required

Added to every recipe it brought in, like “to try”.

string | null
listed
required

Whether the Imports page lists it. A single link is listed only once it goes on in the background; one that came in while someone waited isn’t.

boolean
status
required

How it’s going or went. Undone once Undo moved what it brought in to Recently deleted.

string
Allowed values: queued running done failed cancelled undone
total
required

How many links or recipes it has, once it knows.

integer
done
required

How many it’s dealt with: “Importing 12 of 52”.

integer
added
required
integer
already
required

Already in the household’s recipes, so not added again.

integer
failed
required

Didn’t come in.

integer
undone
required

How many recipes Undo moved to Recently deleted: fewer than came in when some were kept or deleted already. 0 when it isn’t undone.

integer
stopped
required

Never got to, once it was stopped or failed.

integer
error
required

Why the whole import stopped, when it failed.

string | null
startedBy
required

Who started it; none for Merran.

object
id
required
string
name
required
string
createdAt
required
string format: date-time
finishedAt
required
string | null format: date-time
undoneAt
required
string | null format: date-time
items
required

Several links’ or a collection’s links, in order, as it goes. Empty for other imports.

Array<object>
object
position
required
integer
label
required

The link.

string
state
required

Where the link has got to: waiting, being added, added, already in the recipes, failed (see error), or stopped before it was reached.

string
Allowed values: waiting adding added already failed stopped
recipe
required
object
id
required
string
slug
required
string
name
required
string
photo
required

Its card photo.

string | null
thumb
required

Its photo as a small square, for small tiles.

string | null
error
required
string | null
cameIn
required

The recipes it brought in, 100 at a time.

object
items
required
Array<object>
object
position
required
integer
recipe
required
object
id
required
string
slug
required
string
name
required
string
photo
required

Its card photo.

string | null
thumb
required

Its photo as a small square, for small tiles.

string | null
deleted
required

In Recently deleted.

boolean
changed
required

Changed since it came in.

boolean
planned
required

On the plan.

boolean
cooked
required

Cooked since it came in.

boolean
undone
required

Moved to Recently deleted by Undo.

boolean
more
required

Whether there are more: ask again from further on.

boolean
alreadyHere
required

What was already in the household’s recipes, 100 at a time.

object
items
required
Array<object>
object
position
required
integer
label
required
string
recipe
required

The recipe that’s there.

object
id
required
string
slug
required
string
name
required
string
photo
required

Its card photo.

string | null
thumb
required

Its photo as a small square, for small tiles.

string | null
more
required

Whether there are more: ask again from further on.

boolean
didntComeIn
required

What didn’t come in and why, 100 at a time.

object
items
required
Array<object>
object
position
required
integer
label
required

The link, or the recipe’s name.

string
error
required

Why it didn’t come in.

string
more
required

Whether there are more: ask again from further on.

boolean

Example

{
"id": "01a1e0f0-e739-758e-85c2-c9e3cd06ff15",
"kind": "links",
"source": null,
"tag": "to try",
"listed": true,
"status": "done",
"total": 3,
"done": 3,
"added": 2,
"already": 0,
"failed": 1,
"undone": 0,
"stopped": 0,
"error": null,
"startedBy": {
"id": "01a1e0f0-e730-7501-bbce-f5e6ead7106d",
"name": "Kyle"
},
"createdAt": "2026-11-15T18:02:11.000Z",
"finishedAt": "2026-11-15T18:02:40.000Z",
"undoneAt": null,
"items": [
{
"position": 0,
"label": "https://example.com/lemon-chicken",
"state": "added",
"recipe": {
"id": "01a1e0f0-e739-758e-85c2-c9e3cd06ff16",
"slug": "lemon-chicken",
"name": "Lemon Chicken",
"photo": null,
"thumb": null
},
"error": null
},
{
"position": 1,
"label": "https://example.com/broken",
"state": "failed",
"recipe": null,
"error": "Couldn't reach that site."
}
],
"cameIn": {
"items": [
{
"position": 0,
"recipe": {
"id": "01a1e0f0-e739-758e-85c2-c9e3cd06ff16",
"slug": "lemon-chicken",
"name": "Lemon Chicken",
"photo": null,
"thumb": null,
"deleted": false,
"changed": false,
"planned": true,
"cooked": false,
"undone": false
}
}
],
"more": false
},
"alreadyHere": {
"items": [],
"more": false
},
"didntComeIn": {
"items": [
{
"position": 1,
"label": "https://example.com/broken",
"error": "Couldn't reach that site."
}
],
"more": false
}
}

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."
}
}
}

No such import in this household.

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.