Imagizer Storage

If you set up your source with Imagizer storage you should now have your auth token ready. If not you can get one here.

Example: upload an image to Imagizer

POST /api/v1/images HTTP/1.1
Authorization: Bearer {auth_token}
Content-Type: multipart/form-data;

file=@in-image.jpg
curl -X POST \
    -H "Authorization: Bearer {auth_token}" \
    -F file=@in-image.jpg \
    https://{source}.cloud.imagizer.com/api/v1/images"

Example: response

{
   "url":"http:\/\/{source}.cloud.imagizer.com\/{filename}",
   "width":{width},
   "height":{height}
}

TIP

You will need the image URL to delete it.

Example: delete an image from Imagizer

DELETE {image_url} HTTP/1.1
Authorization: Bearer {auth_token}
curl -X DELETE \
    -H "Authorization: Bearer {auth_token}" \
    {image_url}