API working with forms