Skip to content
merran
GitHubInstall

Merran documentation API & integrations

Share a recipe by link

POST
/api/recipes/{recipe}/share
curl --request POST \
--url http://localhost:3000/api/recipes/lemon-chicken/share \
--cookie merran.session_token=<merran.session_token>

Returns the recipe’s link, making one if it has none. Anyone with the link can see and cook the recipe, but not change it. With an API key, it needs the recipes: write permission.

recipe
required

The recipe’s id, or its slug.

string

Example

lemon-chicken

The recipe’s id, or its slug.

The recipe’s link.

Media typeapplication/json
object
url
required

The link anyone can open to see and cook the recipe. Null while MERRAN_PUBLIC_URL isn’t set, because links are built from it.

string | null
createdAt
required
string

Example

{
"url": "https://merran.example.com/r/q1w2e3r4t5y6u7i8o9p0a1s2d3f4g5h6j7k8l9z0x1c",
"createdAt": "2026-11-08T17:30:00.000Z"
}

No public URL is configured.

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 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: the household has turned off sharing by link.

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 recipe.

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.