Skip to content
CheckcraftDownload
Practical workflow

How to write an API bug report a developer can reproduce

Checkcraft is a desktop app for checking APIs and logs without code, with a free edition. Download, no sign-up →

The tester sees a failure but the developer cannot reproduce it. Capture the same conditions, an explicit expectation and the actual data. Build an actionable report from a small example.

Checkcraft ·

Get help with your first test →

Start with a testable discrepancy

An API does not work is too vague to reproduce. For this exercise, use status contains ERROR instead of the expected OK and identify the requirement behind that expectation. The linked Checkcraft case includes two JSON samples. This is a response-checking exercise, not evidence of a production incident.

Save the request and reproduction conditions

For your own defect, record the method, test environment URL, parameters, request body and service version. Include required setup and the test user role. Share a sanitized copy when using cURL or a Postman collection. The recipient should supply their own authorized credentials.

API call diagram: method and URL, headers, body, status and response body, logs and database

Show expected and actual response values

The sample assertion expects status to be the string OK. ERROR violates the assertion even though the JSON is valid. Include both values and the field path. If your real request returned HTTP 200, record that separately from the response body. Do not invent a status code, duration or trace ID.

{"status":"ERROR","amount":100}

Reproduce the sample failure in Checkcraft

Import the linked first-check.testcase.json in the test-case editor. Open it, paste the passing JSON for analysis and run the case. Repeat with the failing JSON without changing the assertion. OK should pass and ERROR should fail. This pair checks the assertion itself before you use a real API.

Attach the report and reproducible data

After an HTTP run in Checkcraft, open the results and save HTML or TXT. The detailed report places assertions beside the data. For another tester, include the exported test case and a sanitized response. A test-case file does not replace the request, environment or credentials. If logs or a database are involved, explain how they relate to the operation and how the recipient can verify them.

Share the request without tokens or passwords

Review Authorization, Cookie, API keys in URLs, environment variables, response bodies and the attached report. Replace secrets with clear placeholders. Use the same replacement order ID throughout the request, response and description. Masking a UI field does not prove that an export omits its value. Open and inspect the prepared attachments before sharing them.

Copy an API bug report template

Replace placeholders with your observations and mark unknown information explicitly. For an HTTP workflow, describe the actual request. For a pasted-JSON exercise, say that data was pasted into the editor so the recipient does not look for a nonexistent server.

Title
[Field and observed discrepancy]

Environment and version
[Test environment, service version, user role]

Preconditions
[Test data and requirement]

Request or sample file
[Method and URL, sanitized cURL or JSON filename]

Reproduction
[Actions in execution order]

Expected result
[Field path, type, value and requirement]

Actual result
[Response, mismatched field, observed HTTP status]

Operation correlation
[Time with time zone, requestId or traceId if available]

Attachments
[Sanitized data, test case and report]

Retest after the fix
[Version and result using the same steps]

Retest after the fix

Repeat the original request and assertions under comparable conditions and keep the new result alongside the old one. Postman and code-based tests can also support reproducible defect reports; AI can help draft the description. The actual response still needs verification against the requirement. Use the linked samples to check whether the report contains enough information to repeat the failure.

Repeat the sample

The quick experiment below runs in the test case editor. The screenshots show the detailed report available in HTTP run or Log run. For HTTP run, return the sample JSON or XML from a local mock and run the imported case against it, then open Results, Details and With structures. For Log run, load the sample into a log source, enable No request, run the case, then open Details and Detailed.

These are existing synthetic fixtures and captured text reports, not a customer deployment.

Checkcraft: Actual detailed HTTP run report with rules next to the checked values. Open the screenshot to see the full run screen.
Actual detailed HTTP run report with rules next to the checked values. Open the screenshot to see the full run screen.

Parts of an API bug report

FieldWhat to writeExample
TitleWhat is wrong, where and under which conditionPOST /orders: total ignores discount
EnvironmentStand, service version, roletest-2, orders 1.14.3, role buyer
StepsThe full request, ideally as cURLcurl -X POST ... (token masked)
ExpectedRequirement reference and valuetotal = 270 per the 10% discount rule
ActualCode, relevant fields, time201, total = 300
EvidencetraceId, log lines, database rowtraceId 4bf92f35…, ERROR in pricing
SeverityImpact on the userHigh: wrong amount to pay

A filled-in example

Title: POST /api/orders — total ignores the promo discount

Environment: test-2, orders 1.14.3, user buyer-01

Steps:
curl -X POST https://test-2.example.com/api/orders \
  -H "Authorization: Bearer <TOKEN>" \
  --json '{"items":[{"sku":"A-1","qty":3,"price":100}],"promo":"SALE10"}'

Expected: 201, total = 270 (requirement ORD-112, 10% off)
Actual: 201, total = 300, discount = 0

traceId: 4bf92f3577b34da6a3ce929d0e0e4736
pricing log: WARN promo SALE10 not found in cache
Reproduces: 5 of 5, also with promo SALE5

The developer has nothing to ask: the request can be replayed, the expectation is backed by a requirement and the traceId leads straight to the log line.

Severity and priority

SeverityWhenExample
BlockerThe main scenario is impossibleCannot create an order
HighWrong money, data or accessWrong total, access to another user's order
MediumA bug with a workaroundFilter broken but search works
LowText, format, minor issuesTypo in an error message

The tester sets severity by impact. Priority is usually decided by the team or a lead, since it also depends on deadlines and plans.

Common mistakes in API bug reports

  • "Doesn't work" without details. Name the method, field and value.
  • A screenshot instead of the request. Text can be replayed, a picture cannot.
  • No expected result. Without a requirement reference the discussion turns into opinions.
  • Tokens and passwords in the text. Replace with <TOKEN> and revoke any sent by accident.
  • Several problems in one bug. One defect per report, otherwise they are hard to close.

If the error is only visible in logs while the response is 200, say so explicitly. How to find such cases is covered in 200 but wrong data.

A template to copy

Title: [method path] — [what is wrong] when [condition]

Environment: [stand], [service and version], [role or user]

Steps:
[cURL command, tokens replaced with <TOKEN>]

Expected: [code], [field = value] ([requirement or ticket])
Actual: [code], [field = value]

traceId: [value from the response or log]
Logs: [1–3 lines around the error]
Reproduces: [how many times out of how many], [on which data]
Severity: [blocker / high / medium / low]

How to attach logs

  • Start with the traceId: the developer finds everything else from it.
  • Put 1–3 lines around the first error into the text, not the whole file.
  • Attach the full fragment as a file if it is longer than 20 lines.
  • Mask phone numbers, emails, tokens and card numbers.
  • State the log time zone if it is not UTC.

The online log search finds the lines for a traceId in a log fragment.

Frequently asked questions

What must an API bug report include?

Method and URL, request body, environment and version, expected result with a requirement reference, actual response and traceId.

Do I need a screenshot in an API bug report?

Better the request as a cURL command and the response. They can be replayed and copied; a screenshot cannot.

Next step

Repeat this on your own API

Checkcraft is a desktop app that saves API response checks without code and shows what did not match. Start with a sample, then use your own sanitized data. Free runs on Windows and Linux with no time limit.

Download FreeDownload and first run

No sign-up or email needed, the archive is ready in a couple of minutes. See the edition limits.

Start with the linked example and compare its result with your own test requirement.

Ask a person

Get help with your first test

Tell us what you want to test or where you got stuck. We can help you start Checkcraft, choose an example and understand your first run. You can ask before downloading.

The Telegram group is public: do not post passwords, tokens or confidential work data. A description of your task is enough to start.

You can also email us support@checkcraft.ru

No account required. We will reply by email. This is a support request, not a newsletter subscription.