List to-dos from documents
Changed onEvery checklist item (- [ ] text @who YYYY-MM-DD) in the Markdown documents of the caller's Library: their own and those shared into their workspaces. Reads never persist an index. Follow next_cursor with the same caller, credential scope, source and filters, including today, even after an empty filtered page. Each page inspects at most 100 candidates, reads at most 25 Markdown documents and 8 MiB of saved bytes and returns at most 1,000 matching items. A document exceeding the byte budget is unavailable (413 for an exact source). The documents are the record; this list is derived from their saved versions. mine is what is assigned to one of the caller's handles, plus what is unassigned in their own documents. @agent marks an item for an agent (forAgent).
Request
- Base URLhttps://api.agentsky.dev/v1
- URLhttps://api.agentsky.dev/v1/library/todos
- AuthHTTP bearer
Query parameters
The previous next_cursor with identical filters. 409 todo_page_changed means restart without a cursor.
Only this document's items (artifact id).
The caller's date, for overdue/today/week; UTC today when omitted.
Response
todos (id, text, done, assignee, forAgent, mine, due, overdue, line, source {id, name, owned, workspace}), sources (id, name, open, total), today, truncated, next_cursor (null when exhausted), sources_partial, unavailable_sources (currently authorized id/code), unavailable_source_count (also includes anonymous authority transport failures; revoked/unauthorized sources are omitted). Source counts are complete for each document read on this page within the requested mine/workspace scope; sources_partial means these are not full Library totals. A to-do id may be an opaque source/key locator; it grants no access and the same PATCH reauthorizes the current source.
Changes
- info
endpoint added
- info