Merran documentation API & integrations
Stop a link import
POST
/api/recipes/import/links/{importId}/stop
const url = 'http://localhost:3000/api/recipes/import/links/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/stop';const options = { method: 'POST', headers: {cookie: 'merran.session_token=<merran.session_token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3000/api/recipes/import/links/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/stop \ --cookie merran.session_token=<merran.session_token>The recipes it added stay. The link it’s on finishes first, so the answer may still say it’s running. With an API key, it needs the imports: write permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”importId
required
string format: uuid
Responses
Section titled “Responses”Stopped, or stopping.
Media typeapplication/json
object
id
required
The import’s job.
string
status
required
string
tag
required
string | null
total
required
integer
done
required
integer
added
required
integer
already
required
integer
failed
required
integer
stopped
required
integer
items
required
Array<object>
object
url
required
string
state
required
Where the link has got to: added, already in the library, failed (see error), or stopped before it was reached.
string
recipe
required
The recipe it made, or was already.
object
id
required
string
slug
required
string
name
required
string
photo
required
string | null
error
required
string | null
createdAt
required
string format: date-time
finishedAt
required
string | null format: date-time
Example
{ "id": "0199e8b0-5a10-7a01-8b00-00000000000b", "status": "running", "tag": "to try", "total": 2, "done": 1, "added": 1, "already": 0, "failed": 0, "stopped": 0, "items": [ { "url": "https://example.com/garlic-rice", "state": "added", "recipe": { "id": "0199e8b0-5a10-7a01-8b00-000000000007", "slug": "garlic-rice", "name": "Garlic Rice", "photo": null }, "error": null }, { "url": "https://example.com/lemon-chicken", "state": "adding", "recipe": null, "error": null } ], "createdAt": "2026-10-15T18:30:00.000Z", "finishedAt": 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." } }}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." } }}It has already finished.
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.