In the API-First approach, you make sure the API is well designed with the help of a specification language like OpenAPI, even before the actual implementation starts.
It has the advantage that both, server and client sides, can start working on the implementation once the contract has been signed up,