Skip to content
merran
GitHubInstall

Merran documentation API & integrations

Say which page is open

PUT
/api/events/page
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.

Media typeapplication/json
object
client
required

This device’s id, as it connected with.

string
>= 1 characters <= 64 characters
page
required

The page open, or null for any other.

string | null
Allowed values: list plan

Example

{
"client": "kyle-laptop",
"page": "list"
}

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.