Merran documentation API & integrations
One-off meal times for a date range
GET
/api/plan/calendar/slots
const url = 'http://localhost:3000/api/plan/calendar/slots?from=2026-10-19&to=2026-10-25';const options = { method: 'GET', headers: {cookie: 'merran.session_token=<merran.session_token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'http://localhost:3000/api/plan/calendar/slots?from=2026-10-19&to=2026-10-25' \ --cookie merran.session_token=<merran.session_token>With an API key, it needs the plan: read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”from
required
string format: date
Example
2026-10-19to
required
string format: date
Example
2026-10-25Responses
Section titled “Responses”Overrides.
Media typeapplication/json
object
slots
required
Array<object>
object
date
required
string format: date
meal
required
string
start
required
string
minutes
required
integer
Example
{ "slots": [ { "date": "2026-10-19", "meal": "dinner", "start": "19:30", "minutes": 60 } ]}Invalid range.
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.