Use api 'body' rather than flask requests