/asset/:id

When an image is uploaded to the interact media manager, Interact automatically saves 8 versions of the image, at different scales to ensure images files are sized appropriately to the place they are being used.

As such, when requesting an asset from the API, one of the parameters is the size of the image to return. The available options are 1 to 8, which return the image sized as shown to the right:

Size parameterImage widthImage height
11616
23232
34040
47575
5256256
6original widthoriginal height
711541154
8512512
$.get('http://yoursite.com/test/' + id, function(data) {
    console.log(data);
});
Language
Authorization
Basic
base64
: