API workflows

How to inspect a JSON API response before integration

Review response structure, field types, nullability, record consistency, size, and sensitive fields before writing integration code.

10 min read Reviewed July 19, 2026 Professional reference

Document summary

A structured API response review process for developers, QA teams, technical writers, and integration engineers.

Key takeaways

  • Use strict, representative input before relying on output.
  • Review structure, types, and edge cases instead of checking only visual formatting.
  • Continue examples inside the connected Bacodev tool to verify the result.
01

Use representative response samples

One successful response is not enough. Include empty results, errors, optional fields, pagination, and records containing null values.

02

Map the response envelope

  • Status and error fields
  • Primary data object or array
  • Pagination and metadata
  • Request or correlation identifiers
  • Links and continuation tokens
03

Check type consistency across records

A field that is a number in one record and a string in another can break generated models and database imports. Nullability must also be intentional.

04

Review sensitive and operational fields

  • Authentication tokens
  • Passwords and secrets
  • Email and phone fields
  • Internal identifiers
  • Debug traces and infrastructure details
05

Turn the inspection into a contract

  1. 1

    Generate a schema from the sample.

  2. 2

    Adjust required and optional fields.

  3. 3

    Compare response versions.

  4. 4

    Generate TypeScript or another client model.

  5. 5

    Add contract tests to the integration.

06

What to inspect before you integrate

An API response is more than the body. Status code, headers, size, and structure all affect how your code should handle it.

Inspect the body for type consistency, null handling, and nested depth, then check headers such as Content-Type and pagination fields before writing integration code.

  • Status code and whether an error body is returned for failures
  • Content-Type and charset of the response body
  • Response size and the depth of nested structures
  • Repeated fields with null or empty values
  • Pagination or rate-limit headers when calling the API repeatedly
07

Inspect two responses in a few minutes

  1. 1

    Paste the first response into the API response inspector and review the schema summary and statistics.

  2. 2

    Paste a second response and use the JSON diff tool to see added, removed, and changed fields.

  3. 3

    Validate the response against its documented schema with the JSON schema validator.

  4. 4

    Document the types and null cases you found before writing your integration.

08

Frequently asked questions

Why inspect an API response before integrating?

Responses often differ from the documentation: fields are null, types vary, or pagination is missing. Inspecting the real output prevents runtime surprises.

What headers should I check in a response?

Content-Type, Content-Length, and any Link or pagination headers. For authenticated APIs, check how rate limits are reported.

How do I compare two responses from the same endpoint?

Run both bodies through the diff tool: it reports added, removed, and changed fields side by side, which makes schema drift visible.

Does the inspector store my responses?

No. Inspection runs locally in your browser, and pasted bodies are never uploaded or stored.

Jump to tool

Apply this workflow in the Api Response Inspector tool

Open tool