API & Integration Testing interview questions.
Questions on REST API testing, contract testing, Postman, REST Assured, status codes, authentication, and schema validation.
Free to start · 7-day trial on paid plans
How to approach api testing questions.
API testing interviews look easy on paper and trip up surprisingly senior candidates. The questions sound like trivia (what is the difference between PUT and PATCH, what does a 422 mean) but the follow-ups push into territory most QA engineers only cover when the contract actually breaks in production. Treat every answer as a chance to talk about real systems, not the textbook.
Lead with the contract. Whether the team uses OpenAPI, Pact, or hand-written request fixtures, your first move is to validate that the response matches the published schema before you assert on values. A surprising number of "API tests" in real codebases only check status codes, which means a backend can quietly drop a field and every test still goes green. Mention schema validation early and you signal that you have lived through that exact incident.
Authentication is where strong candidates separate themselves. Be ready to explain how you handle bearer tokens that expire mid-suite, how you exchange OAuth refresh tokens inside a fixture without leaking secrets into logs, and why you rotate credentials per worker when running tests in parallel. Bonus points for knowing the difference between testing the auth flow itself and testing through it as a precondition.
Contract testing belongs in this conversation, not in a separate question. If the team consumes services it does not own, mention consumer-driven contract tests with Pact and how they catch breaking changes before deploys instead of after. If the team owns the service, mention provider verification and how it gates backend merges. Saying "we test the API end to end" without naming this layer is a yellow flag for senior interviewers.
What hiring managers are listening for
- Schema-first thinkingYou validate response shape before you assert on values, every time.
- Status-code literacyYou can defend why 401 vs 403 vs 422 matters for the consumer.
- Contract awarenessYou know when consumer-driven contract tests beat end-to-end checks.
- Auth fluencyYou can describe rotating tokens across parallel workers without secrets in logs.
Do not let the conversation collapse into Postman trivia. Interviewers will sometimes start there to warm you up and pivot to "now write me a test for this endpoint in code." If your only tool is a GUI client, you will not survive that pivot. Be ready to write a request and a schema assertion in JavaScript, Python, or Java, depending on the stack.
Showing 35 questions · 10 free answers remaining
Stop reading answers. Start practicing them.
AssertHired's AI interviewer asks follow-up questions, scores your responses across 4 QA-specific dimensions, and gives you actionable feedback.
Start a Free Mock InterviewFree to start · 7-day trial on paid plans
More Question Categories
Explore questions across all QA interview topics.
Practice by Tool & Technology
Dive deeper with tool-specific interview questions.
Ready to Ace Your QA Interview?
Stop reading answers, start practicing them live with AI that knows QA.
Join 1,200+ QA engineers already practicing with AssertHired.
Start your free QA interview