API code and testing area