Merran documentation API & integrations
Say which page is open
PUT
/api/events/page
const url = 'http://localhost:3000/api/events/page';const options = { method: 'PUT', headers: { cookie: 'merran.session_token=<merran.session_token>', 'Content-Type': 'application/json' }, body: '{"client":"kyle-laptop","page":"list"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url http://localhost:3000/api/events/page \ --header 'Content-Type: application/json' \ --cookie merran.session_token=<merran.session_token> \ --data '{ "client": "kyle-laptop", "page": "list" }'Says which page this device has open, on its live stream that’s open already (the same client), so who’s on the list or the plan changes without connecting again. A device with no stream open says its page when it connects.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
client
required
This device’s id, as it connected with.
string
page
required
The page open, or null for any other.
string | null
Example
{ "client": "kyle-laptop", "page": "list"}Responses
Section titled “Responses”Noted.
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.