API for a Poll app