How to prevent API mismatch

Duplicate question:

See that thread for answer.

And pinned topic:

2 Likes