Application Programming Interface (API)

Upload from the command line using our API

Our convenient API allows uploading images or files from your terminal window. For example:

curl --form meta='{"exposure": "public", "expiration": "auto"}' \
     --form 'file=@/home/foobar/images/beautiful_sunset.jpg' \
The above command will upload the image with the path /home/foobar/images/beautiful_sunset.jpg.

The response will be a JSON-formatted string like this:

From the above we can construct URLs: or