API for plans