List standalone Calendar items
const url = 'https://example.com/api/v1/calendar/items?from=example&to=example&tz=example';const options = {method: 'GET', headers: {Authorization: 'Bearer <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 'https://example.com/api/v1/calendar/items?from=example&to=example&tz=example' \ --header 'Authorization: Bearer <token>'Requires a signed-in User. It returns a time-ordered page of standalone Files, Photos, Notes and bookmarks for a date range. The range can be up to 42 days. It accepts a page size and cursor. It returns 400 for invalid dates, time zones, limits or cursors. Route: /api/v1/calendar/items. Inputs: from, to, tz, cursor, limit. Safe reads can use bounded retries.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”First local date, inclusive.
Last local date, inclusive. At most 42 days after from.
IANA time-zone name for the local days and times.
Opaque cursor from the previous page’s next_cursor.
Page size, 1 to 1000. Default 500.
Responses
Section titled “Responses”Standalone files, photos, Notes and bookmarks in time order
object
One standalone item on the grid.
object
RFC 3339 time in the requested zone.
Local day in the requested zone.
Files item ID (/f/<id>, /p/<id>). Missing until Files adopts the file.
photo, file, note or bookmark.
File name, or the Note or bookmark title.
The Note’s calternal-id (/n/<id>) for Notes and bookmarks.
Home-relative path in the owner’s Home.
Files thumb route for supported media and documents. Document routes carry the renderer family from the Index, per #510/#547 and DESIGN §39. It can answer 404 until the thumbnail Job has run; clients keep the glyph then.
Local HH:MM in the requested zone.
taken when a photo sits at its capture time, else added.
Page address for a bookmark.
Pass as cursor to read the next page. None on the last page.
Example
{ "items": [ { "time_source": "taken" } ]}The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}