Retrieve the JSON description or the binary of the requested image.
Use the Accept
header to specify the response format. If you use application/json
, the JSON representation of the resource will be returned. Otherwise, the image as a binary will be returned (if the MIME type matches with the stored image).
{
"id": "XcXx",
"src": "https://api.typeform.com/images/{image_id}/background/{size}",
"file_name": "newimage.gif",
"width": 100,
"height": 100,
"media_type": "image/gif",
"has_alpha": true,
"avg_color": "ff00ff"
}