# How to write an API bug report a developer can reproduce

Source: https://checkcraft.ru/en/guides/api-bug-report.html · updated 2026-11-24

Document the request, expected and actual API response, reproduction steps and Checkcraft report. Copy a bug report template and use sample failing JSON.

Practical workflow

Checkcraft is a desktop app for checking APIs and logs without code, with a free edition. [Download, no sign-up →](https://checkcraft.ru/en/download-checkcraft.html#free-download)

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 · 11 October 2026

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.

Repeating checks like this by hand? Checkcraft saves them and reruns them in one click. [Download Free →](https://checkcraft.ru/en/download-checkcraft.html#free-download)

## 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.

[Test case](https://checkcraft.ru/examples/en/first-check.testcase.json) · [Passing JSON](https://checkcraft.ru/examples/en/first-check-valid.json) · [Failing JSON](https://checkcraft.ru/examples/en/first-check-broken.json) · [Passing report](https://checkcraft.ru/examples/en/first-check-valid-report.txt) · [Failing report](https://checkcraft.ru/examples/en/first-check-broken-report.txt)

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

| Field | What to write | Example |
|---|---|---|
| Title | What is wrong, where and under which condition | POST /orders: total ignores discount |
| Environment | Stand, service version, role | test-2, orders 1.14.3, role buyer |
| Steps | The full request, ideally as cURL | curl -X POST ... (token masked) |
| Expected | Requirement reference and value | total = 270 per the 10% discount rule |
| Actual | Code, relevant fields, time | 201, total = 300 |
| Evidence | traceId, log lines, database row | traceId 4bf92f35…, ERROR in pricing |
| Severity | Impact on the user | High: 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

| Severity | When | Example |
|---|---|---|
| Blocker | The main scenario is impossible | Cannot create an order |
| High | Wrong money, data or access | Wrong total, access to another user's order |
| Medium | A bug with a workaround | Filter broken but search works |
| Low | Text, format, minor issues | Typo 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](https://checkcraft.ru/en/guides/http-200-wrong-result.html).

## 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](https://checkcraft.ru/en/guides/log-search-online.html) finds the lines for a traceId in a log fragment.

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 Free](https://checkcraft.ru/en/download-checkcraft.html#free-download) · [Download and first run](https://checkcraft.ru/en/download-checkcraft.html)

No sign-up or email needed, the archive is ready in a couple of minutes. See the [edition limits](https://checkcraft.ru/en/pricing.html).

## Continue with a related task

[API test reports in HTML, TXT and JUnit XML](https://checkcraft.ru/en/guides/api-test-reports.html) · [API regression testing and response comparison](https://checkcraft.ru/en/guides/api-regression-testing.html)

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.

[Ask in Telegram](https://t.me/checkcraftchat)Send an email

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

Page card: /ai/pages/en/guides/api-bug-report.md
