create subscription map inside api