The famous case Google vs Oracle may need to be re-evaluated in the light of Agents making API implementation trivial.
https://en.wikipedia.org/wiki/Google_LLC_v._Oracle_America,_....