Background information
Due to the file captions work it will be useful to have the entity id (M + pageid) in the media response so that it's available if the user wants to edit a caption.
How
"items": [
{
"section_id": 0,
"type": "image",
"showInGallery": true,
"wb_entity_id": "M2780533",
...
}
]