Browse the docs

GET /kits/{id}/data

How much a Site Kit or App Kit has stored.

Details #

Returns {rows, readings}: the records the kit saved and the values in its readings' history. DELETE on the same path clears both (Reset Data); the kit's settings stay.

curl -s -H "Authorization: Bearer $TOKEN" http://127.0.0.1:48080/kits/mail/data

Parameters #

curl --unix-socket "$SWITCHBOARD_HOME/engine.sock" -X GET http://localhost/kits/{id}/data

How much a kit has stored: records and readings history. The Unix socket needs no token; loopback 127.0.0.1:48080 needs Authorization: Bearer <api-token>.

See also #