Cloudflare Worker + KV
Save and view a JSON payload under the key things
This page calls the same worker endpoints: /update and /view.
Controls
Client UI
Used as
X-Secret-Token for /update and as ?token= for /view.
Tip: the example includes
new Date(). Click “Fix example JSON” first to make it valid JSON.
Response
Idle
{ "message": "Ready" }
Endpoints
POST /update
Headers: X-Secret-Token: your-token
Body: valid JSON
GET /view?token=your-token
Returns { "things": ... } if stored, otherwise {}
Quick test payload
Creates a valid JSON sample and puts it into the textarea.