API code checked for client