Merran documentation API & integrations
Start a timer, or give it more time
const url = 'http://localhost:3000/api/cooking/sessions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/timers/example';const options = { method: 'PUT', headers: { cookie: 'merran.session_token=<merran.session_token>', 'Content-Type': 'application/json' }, body: '{"label":"Simmer the sauce","seconds":600}'};
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/cooking/sessions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/timers/example \ --header 'Content-Type: application/json' \ --cookie merran.session_token=<merran.session_token> \ --data '{ "label": "Simmer the sauce", "seconds": 600 }'Cook view calls this when a timer starts, sending timer.started, and when it gets +1 minute, sending timer.extended, even after it’s gone off: it runs again. seconds is how many are left; the server works out when it ends and sends timer.finished then itself. A new timer needs the session to be open, but one it has can get more time after it ends, as timers keep ringing in the app after cook view is left. With an API key, it needs the plan: write permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The timer’s id, which cook view picks when it starts one.
The timer’s id, which cook view picks when it starts one.
Request Bodyrequired
Section titled “Request Bodyrequired”object
What it’s for, like “Simmer the sauce”.
How many seconds are left. The server works out when it ends, so a device whose clock is off doesn’t move it.
Example
{ "label": "Simmer the sauce", "seconds": 600}Responses
Section titled “Responses”The timer, with when it ends.
object
The timer’s id, which cook view picked when it started.
What it’s for, like “Simmer the sauce” or “10 minutes”.
How long it runs, in seconds: its length when started, with each minute added.
When it goes off, by the server’s clock: cook view says how many seconds are left, not when.
Example
{ "id": "t-4f2a", "label": "Simmer the sauce", "seconds": 600, "endsAt": "2026-10-15T18:40:00.000Z"}Not signed in.
object
object
object
Example
{ "error": { "code": "not_found", "message": "There's nothing here.", "fields": { "name": "Give it a name." } }}Not allowed.
object
object
object
Example
{ "error": { "code": "not_found", "message": "There's nothing here.", "fields": { "name": "Give it a name." } }}No such cooking session of yours, or, for a new timer, it’s ended.
object
object
object
Example
{ "error": { "code": "not_found", "message": "There's nothing here.", "fields": { "name": "Give it a name." } }}The session has 20 timers running already.
object
object
object
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.