Merran documentation API & integrations
Choose the language Merran shows
PATCH
/api/auth/me/language
const url = 'http://localhost:3000/api/auth/me/language';const options = { method: 'PATCH', headers: { cookie: 'merran.session_token=<merran.session_token>', 'Content-Type': 'application/json' }, body: '{"language":"en"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url http://localhost:3000/api/auth/me/language \ --header 'Content-Type: application/json' \ --cookie merran.session_token=<merran.session_token> \ --data '{ "language": "en" }'The language the person sees Merran in, on every device. Null follows their browser.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
language
required
A code from Merran’s languages, such as “en”, or null to follow the browser.
string | null
Example
{ "language": "en"}Responses
Section titled “Responses”Chosen.
Media typeapplication/json
object
id
required
string
name
required
string
email
required
string
username
required
string | null
serverAdmin
required
boolean
twoFactorEnabled
required
boolean
requiresTwoFactor
required
boolean
households
required
Array<object>
object
id
required
string
name
required
string
role
required
string
activeHouseholdId
required
string | null
language
required
The language the person chose, as a code such as “en”; null to follow their browser.
string | null
Example
{ "twoFactorEnabled": false, "requiresTwoFactor": false, "id": "0199e8b0-5a10-7a01-8b00-000000000001", "name": "Sam Rivera", "email": "sam@example.com", "username": "sam", "serverAdmin": true, "households": [ { "id": "0199e8b0-5a10-7a01-8b00-000000000003", "name": "The Riveras", "role": "owner" } ], "activeHouseholdId": "0199e8b0-5a10-7a01-8b00-000000000003", "language": null}That isn’t one of Merran’s languages.
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.
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.