API logic for my new brainstorming application.