Add api method to retrieve the media public endpoint