Skip to content

Share and search notes

This example uses the demo disk and a project API key from the quickstart. Each authenticated client can address the same files.

Terminal window
curl --fail-with-body --no-buffer \
"https://api.wabe.sh/v1/disks/demo/exec?kind=bash" \
-H "Authorization: Bearer YOUR_PROJECT_API_KEY" \
--data-binary @- <<'WABE'
mkdir -p /notes
put /notes/release.txt <<'TEXT'
Release checklist
TODO: verify the API example
TODO: publish the release notes
TEXT
put /notes/review.txt <<'TEXT'
Reviewed the KV example.
TEXT
WABE
Terminal window
curl --fail-with-body --no-buffer \
"https://api.wabe.sh/v1/disks/demo/exec?kind=bash" \
-H "Authorization: Bearer YOUR_PROJECT_API_KEY" \
--data-binary "rg -n -F 'TODO' /notes"

The stdout records contain the two matching lines, with file paths and line numbers. Use the stream decoder to print raw command output.

Terminal window
curl --fail-with-body "https://api.wabe.sh/v1/disks/demo/files/notes/release.txt" \
-H "Authorization: Bearer YOUR_PROJECT_API_KEY" \
--output ./release.txt

Concurrent clients can read complete file versions. Updating the same path uses last-published-writer semantics. This example does not implement edit merging or conflict detection.