All websites had all incentives to be api-first for 2 decades now.
They aren't API first not because they can't - but because customers will use whatever GUI website supports to use it.
Unless your product has no value - users will fill out those forms manually if you don't provide API if they need your product.
Agents don't change this.