Contentful logo

Contentful Community

Image API inconsistency

The documentation here says that when you get an image from the asset api you get a url like
// which matches the API base url

But when I connect to the API to fetch an asset, it comes back as //…

I was trying to do image manipulation and couldn’t figure out why it wasn’t working until I noticed the URL difference: image manipulation doesn’t work on ‘downloads’. Is there a reason for this discrepancy? I can of course replace ‘downloads’ with ‘images’ in the URL but this is obviously not ideal because if you ever change the url in the future this can break.