14 / Reproduce, then reason

Reproduce an API failure with the request and response evidence intact

Move from a vague report to a controlled replay, structural comparison, and shareable investigation that another engineer can follow.

What goes in, what comes out, and what the result can prove.

INPUTFailed request, response, timing and relevant environment context
OUTPUTReproduction, first divergence, hypotheses and next deterministic check

Start at the first fact that differs

Expected: 201 Created
Observed: 401 Unauthorized
Evidence: WWW-Authenticate: Bearer error="invalid_token"
First divergence: token expired 43 s before request
Next check: reproduce with freshly issued token

Three checks before the result becomes a decision.

01

Reproduce

Keep the smallest request that still fails.

02

Locate divergence

Compare expected and observed status, headers, body and timing.

03

Test a hypothesis

Change one relevant variable and retain the result.

What this workflow does not prove.

Before you put it into a real workflow.

Can I import cURL?

Yes. A cURL command is often the quickest reproducible starting point.

Can I compare JSON responses?

Yes. Structural comparison helps distinguish changed values from changed shape.

How should I handle credentials?

Replace production secrets with scoped test credentials and redact them before sharing an investigation.

Start with one concrete API problem.

Keep the first step small. Move into a workspace when the result deserves to be saved, repeated, or shared.