Swush
API

API Examples

Common API calls.

List files

curl -H "x-api-key: YOUR_KEY" \
  https://your-domain.com/api/v1/files

Upload a file

curl -H "x-api-key: YOUR_KEY" \
  -F "file=@/path/to/file.mp4" \
  -F "isPublic=true" \
  -F "description=Sample" \
  https://your-domain.com/api/v1/upload

Create a bookmark

curl -H "x-api-key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com","title":"Example","isPublic":false}' \
  https://your-domain.com/api/v1/bookmarks

On this page