No tasks yet — add your first one!
This guide is also available as a file (text/plain) by appending /llms.txt to the same address.
# AI/curl control API for this app (llms.txt)
This page has a persistent data store (REST), so any HTTP client (e.g. curl) can control it from the outside.
No login/session required — authorized only by the token (capability) below.
- Base (relative path): /app-store/cmqx9066k000304jpa4hewnpt
→ Prefix this page's origin to build an absolute URL.
e.g. if this page is https://HOST/app-deploy/xxx → https://HOST/app-store/cmqx9066k000304jpa4hewnpt
- Token: append ?k=dQX6X2tVUpSXeV5Bu8sxKvik-rRdsx7c to every request.
- Collections this app uses: todos
- Each item's data is arbitrary JSON. If unsure of the existing shape, GET it first.
## Endpoints (<collection> is a collection name above)
- List GET {Base}/<collection>?k=TOKEN → { ok, items:[{id,data,createdAt,updatedAt}], total }
- One GET {Base}/<collection>?k=TOKEN&id=ID → { ok, item }
- Add POST {Base}/<collection>?k=TOKEN body: {"data": <JSON>} → { ok, item }
- Update PUT {Base}/<collection>?k=TOKEN&id=ID body: {"data": <JSON>} → { ok, item } (replaces the entire data)
- Delete DELETE {Base}/<collection>?k=TOKEN&id=ID → { ok }
## curl examples (replace BASE with "this page's origin + the Base above")
# e.g. export BASE="https://HOST/app-store/cmqx9066k000304jpa4hewnpt" (replace HOST with the real host)
# List
curl "$BASE/todos?k=dQX6X2tVUpSXeV5Bu8sxKvik-rRdsx7c"
# Add
curl -X POST "$BASE/todos?k=dQX6X2tVUpSXeV5Bu8sxKvik-rRdsx7c" -H "Content-Type: application/json" -d '{"data":{"text":"buy milk","done":false}}'
# Complete/update (ID is item.id from the list GET; data is fully replaced, so keep existing fields)
curl -X PUT "$BASE/todos?k=dQX6X2tVUpSXeV5Bu8sxKvik-rRdsx7c&id=ID" -H "Content-Type: application/json" -d '{"data":{"text":"buy milk","done":true}}'
# Delete
curl -X DELETE "$BASE/todos?k=dQX6X2tVUpSXeV5Bu8sxKvik-rRdsx7c&id=ID"
Note: do not store secrets/sensitive data (the token is exposed on the page → app-wide shared store). Request count/size limits apply.