API working correctly