Introducing API checking to agent-server comms.