added api endpoints for tags