Storage API

API Example

Upload File

curl -H "x-key: [YOUR-API-KEY]" "https://api.sitebot.com/api/v1/storage/put" -F file=@/tmp/foo.png -F name=dir/foo.png -F visibility=public

Download File

curl -H "x-key: [YOUR-API-KEY]" "https://api.sitebot.com/api/v1/storage/get?name=dir%2Ffoo.png"

Use File (visibility=public)

https://storage.sitebot.com/[WORKSPACE-ID]/dir/foo.png

Use File (visibility=secure)

https://storage.sitebot.com/[WORKSPACE-ID]/dir/foo.png?hash=[HASH]

Delete File

curl -H "x-key: [YOUR-API-KEY]" "https://api.sitebot.com/api/v1/storage/delete?name=dir%2Ffoo.png"