wispfnDocs
REST API: storage

List, group and delete a project's key-value entries with the REST API.

GET    /api/projects/:id/storage/kv?prefix=todo:&limit=50&cursor=...
GET    /api/projects/:id/storage/kv/collections
DELETE /api/projects/:id/storage/kv?key=todo:42

#List entries

GET /storage/kv returns entries in key order:

{ "items": [{ "key": "todo:42", "value": { "title": "Ship it" }, "expiresAt": null }], "cursor": "..." }
QueryDescription
prefixOnly keys starting with it
limitEntries per page, default 50
cursorFrom the previous page

#Collections

GET /storage/kv/collections groups keys by their prefix (the part before the first : or /), with counts — the same grouping the console shows.

#Delete an entry

DELETE /storage/kv?key=… deletes one key. Scope: storage:write.

curl -X DELETE "https://wispfn.com/api/projects/$PROJECT/storage/kv?key=todo:42" \
  -H "Authorization: Bearer $WISP_API_KEY"

From your functions, use the kv SDK.