Calendar frames API
Frames are the synced entity frame, personal like a rule: recurring background windows on the Day and Week grid such as "Deep work" on weekdays from 09:00 to 11:00.
Implementation notes
Frames (OpenSpec calendar-frames; guide: frames.md) are the synced entity frame, personal like a rule: recurring background windows on the Day and Week grid such as "Deep work" on weekdays from 09:00 to 11:00. Fields: title (content, encrypted for an encrypted account), weekdays (ISO weekdays as a sorted comma list, "1,2,3,4,5"; 1 is Monday, 7 Sunday), start and end (floating wall times HH:MM, end after start), color (hex), source (the planning source: "", project:<id>, label:<id> or view:<id>), from_date and until_date (optional first and last day, YYYY-MM-DD), position, created_at, deleted_at. Occurrences are derived on the device and never stored. Devices write frames through /api/v1/sync; the REST routes below add the checks.
- GET
/api/v1/frames - POST
/api/v1/frames - GET
/api/v1/frames/{id} - PATCH
/api/v1/frames/{id} - DELETE
/api/v1/frames/{id}
GET /api/v1/frames
List frames · Token or session
{frames: [{id, title, weekdays, start, end, color, source, from_date, until_date, position, created_at, encrypted}]} in their order; encrypted is true when the title is ciphertext
| Field | Type | Description |
|---|---|---|
frames required | array of object |
POST /api/v1/frames
Create a frame · Token or session
{title, weekdays, start?, end?, color?, source?, from_date?, until_date?, position?} → 201 frame (defaults 09:00 to 10:00, #64748b, no source); a 51st live frame answers 422 limit_reached
| Field | Type | Description |
|---|---|---|
color required | string | |
end required | string | |
from_date required | string | |
position required | string | |
source required | string | |
start required | string | |
title required | string | |
until_date required | string | |
weekdays required | string |
| Field | Type | Description |
|---|---|---|
encrypted | boolean | |
id required | string |
GET /api/v1/frames/{id}
Get a frame · Token or session
PATCH takes the same fields, checked against the merged frame → 200 frame; DELETE → 204 (a tombstone); an unknown or deleted id answers 404 not_found
| Field | Type | Description |
|---|---|---|
id required | string | path |
| Field | Type | Description |
|---|---|---|
encrypted | boolean | |
id required | string |
PATCH /api/v1/frames/{id}
Update a frame · Token or session
PATCH takes the same fields, checked against the merged frame → 200 frame; DELETE → 204 (a tombstone); an unknown or deleted id answers 404 not_found
| Field | Type | Description |
|---|---|---|
id required | string | path |
| Field | Type | Description |
|---|---|---|
color required | string | |
end required | string | |
from_date required | string | |
position required | string | |
source required | string | |
start required | string | |
title required | string | |
until_date required | string | |
weekdays required | string |
| Field | Type | Description |
|---|---|---|
encrypted | boolean | |
id required | string |
DELETE /api/v1/frames/{id}
Delete a frame · Token or session
PATCH takes the same fields, checked against the merged frame → 200 frame; DELETE → 204 (a tombstone); an unknown or deleted id answers 404 not_found
| Field | Type | Description |
|---|---|---|
id required | string | path |