backend API for chatterbox