An API sits between people who use a product and the systems that make it work. Small choices at that boundary can make future changes calm or surprisingly expensive.
Start with the shape of the task
Model endpoints around a clear piece of work. Keep request and response fields explicit, use predictable names, and return errors that explain what a caller can do next. A client should not need to know how a database table is arranged just to complete a product task.
Make change visible
Validate input at the boundary and keep that validation close to the route. When a field is optional, document what happens when it is missing. When a response changes, update the API description and the callers together. These habits reduce guesswork for the next person who touches the feature.
Keep the first version simple
Not every endpoint needs a generic framework or a long list of options. A small, consistent API is easier to understand and easier to extend when real requirements arrive. Add abstraction after repeated needs become clear, rather than guessing at every future use case in advance.
The goal is not to prevent change. It is to make the next change unsurprising.