API Design Interview Question

What is API versioning and why is it needed?

Updated 2026-07-10 · Beginner friendly
Quick answer

API versioning is a way to make changes to an API without breaking the apps that already use it. When you need to change how the API behaves, you release a new version and let old clients keep using the old one. The most common approach is putting the version in the URL, like /v1/users and /v2/users.

Why it matters

Once other apps depend on your API, changing a field or removing an endpoint can break them. Versioning lets you introduce breaking changes safely by offering a new version while the old one keeps working.

In the interview

Point out that you only bump a version for breaking changes, not for adding new optional fields. Showing you know when versioning is and is not needed reflects real experience.

Want the full API Design guide?

Read every API Design concept with notes, diagrams, and code in one place. Track your progress as you go.

Open the API Design guide All API Design questions