# Reproduce Customer API Errors from Your Postman Collections — and Send Back the Fixed Request

> “I’m calling POST /v2/orders and getting a 422” usually has a small answer that takes ages to find. Import your Postman collections into API diagnostics, run the customer’s call safely, get a diagnosis including deprecated endpoints and rate limits, and send back a corrected request as curl.

Source: https://www.ticketresolve.ai/blog/postman-collections-api-diagnostics-corrected-requests · Published 2026-11-14 · TicketResolve AI

**For an API company, a large share of support tickets look the same: "I'm calling `POST /v2/orders` and getting a 422. What am I doing wrong?" The answer is usually small (a missing field, a header in the wrong format, an endpoint that was deprecated last quarter). Finding it is slow because the agent first has to rebuild the request.**

Here's how that usually goes, at a company that sells a shipping-labels API to online stores. A developer at a customer writes in:

> *"POST /v2/labels returns 422 Unprocessable Entity. Body: {"weight": "2.5", "to": {...}}. What's wrong?"*

- **The agent, Kenji,** opens the API docs, finds the endpoint, and copies the example into a REST client.
- **He builds a request** from the customer's body, guessing at the headers they used.
- **It returns 400**, not 422: he's missing a header the customer probably had.
- **Forty minutes later,** he finds it: `weight` must be a number, not a string, and the customer is also calling a version of the endpoint that's deprecated.
- **His reply** describes both problems in a paragraph. The developer writes back: *"Can you just send me a request that works?"*

## First, the basics

- **An API** lets programs talk to your product. **An endpoint** is one address, like `POST /v2/labels`.
- **A status code** says how a request went: 2xx success, 4xx a problem with the request, 5xx a server problem. **422** means the request was understood but invalid.
- **A Postman collection** is a saved set of requests in Postman.
- **OpenAPI or Swagger** is a standard file describing an API.
- **A sandbox credential** is a test login or key for a safe, non-production account.
- **Deprecated** means an endpoint still works but is being phased out.
- **A rate limit** caps how many requests a customer can make; response headers often show how much is left.
- **curl** is a command-line tool developers use to send requests.

**Why does this matter?** For developers, the most useful support answer is a request that works. Starting from your own documented API, running the call safely, and handing back the corrected version saves the agent's time and the developer's.

## The problem, in plain terms

1. **Agents rebuild requests** from docs and guesswork.
2. **Deprecated endpoints** keep getting used.
3. **Rate limits** surprise customers.
4. **Replies describe fixes** instead of showing them.
5. **Credentials and personal data** end up in tools and chat.

## Your collections already describe your API

**Most API teams keep their requests in Postman. TR-AI's API diagnostics can now import those collections directly: paste a Postman API key, pick the collection, done. The key is used for that import only and isn't stored. You can still upload an exported JSON file, or an OpenAPI or Swagger spec, if you prefer.**

**Once imported, every endpoint is available to agents: pick the one the customer is calling, fill in what they sent, choose a sandbox credential and run it.**

## A diagnosis, not just a response

**The response is checked against what your documentation says it should be. On top of the existing checks (expired or malformed tokens, missing scopes, wrong content type, schema mismatches) two more now show up:**

- **Deprecated endpoint.** **If the collection or spec marks the operation deprecated, the agent is told, so the reply can point the customer to the replacement.**
- **Close to the rate limit.** **When the response headers show 5% or less of the quota left, it's flagged before it becomes the next ticket.**

## Send back the request that works

**The most useful part is the corrected request. Where the diagnosis can fix the call (adding the missing header, setting the right content type, moving a token to the right place) it builds the corrected version, lists exactly what changed, and offers Copy as curl.**

**That turns a reply from "please check that you include the Content-Type header and that the amount is an integer" into "here's your request with the two changes marked; this one works".**

## Safe by default

**Requests only go to the hosts you authorised, never to private or internal addresses. Credentials are stored encrypted, tied to one host, and never shown again. Authorization headers, cookies, keys and personal data are masked in the saved history. Methods that change data need an explicit confirmation, so use a sandbox account.**

## A worked example, start to finish

Here's Kenji's ticket, with Postman collections in API diagnostics. The details are illustrative.

**Setup, once.** An admin opens **API diagnostics → Import from Postman**, pastes a Postman API key, and picks the *"Labels API (public)"* collection. The key is used for the import only and isn't stored. Every endpoint is now available, including the deprecation notes the API team keeps in Postman. The admin adds a **sandbox credential** tied to the sandbox host.

**10:00, the ticket.** Kenji opens API diagnostics and picks `POST /v2/labels` from the imported collection. He pastes the customer's body and chooses the sandbox credential. Because POST creates data, he confirms explicitly; it's the sandbox account.

**10:01, the response.** `422 Unprocessable Entity`. The diagnosis, checked against the documented schema:

- **Wrong content type:** the request was sent without `Content-Type: application/json`.
- **Schema mismatch:** `weight` is a string; the documentation says number.
- **Deprecated endpoint:** the collection marks `POST /v2/labels` deprecated; the replacement is `POST /v3/labels`.
- **Close to the rate limit:** the response headers show 4% of the quota left. Flagged.

**10:02, the corrected request.** The diagnosis builds the corrected version and lists what changed: **added `Content-Type: application/json`**. Kenji also changes `weight` to a number, as the schema check pointed out, runs it again on the sandbox, and gets a `201`. He clicks **Copy as curl**.

**10:05, the reply.** *"Here's your request with the changes marked; this one works: the Content-Type header was missing, and weight needs to be a number. Note that v2 is deprecated; please move to v3. You're also close to your hourly rate limit."* He pastes the curl.

**10:15.** The developer replies: *"Perfect, working."* The rate-limit note saves another ticket an hour later.

**In the saved history,** the Authorization header and the customer's address are **masked**.

## Five more real-world scenarios

### 1. An OpenAPI spec instead of Postman

**Situation.** The team keeps an OpenAPI file, not Postman.

**How TR handles it.** Upload the spec, or an exported Postman JSON file.

### 2. A request to an internal address

**Situation.** Someone points a request at an internal IP.

**How TR handles it.** Requests only go to authorised hosts, never private or internal addresses.

### 3. An expired token

**Situation.** The customer's call returns 401.

**How TR handles it.** The diagnosis flags an expired or malformed token, and the corrected request moves the token to the right place if that's the problem.

### 4. A DELETE request

**Situation.** The customer reports a problem deleting an order.

**How TR handles it.** Methods that change data need explicit confirmation; use a sandbox account.

### 5. Credentials in the history

**Situation.** A teammate reviews old diagnostics.

**How TR handles it.** Authorization headers, cookies, keys and personal data are masked.

## Before and after

**Before.** Forty minutes rebuilding a request, a paragraph describing two fixes, and "can you just send me a request that works?"

**After.** The endpoint from your own collection, a diagnosis that caught a missing header, a type mismatch, a deprecated endpoint and a rate limit, and a working curl in five minutes.

## How to tell it's working

- **API tickets resolve** in one reply more often.
- **Customers move off** deprecated endpoints.
- **Rate-limit tickets** fall.

## Who it's for

- **Support agents and engineers** at API companies.
- **Developer relations** teams.
- **API product managers** tracking deprecated endpoints.

## How it fits with the rest of TicketResolve

API diagnostics is the **API workbench**, now fed by **Postman** collections as well as OpenAPI and Swagger. Failing requests feed **TR Investigate** (the API diagnostics agent) and the **knowledge graph**, which links operations to the status codes they returned.

## Why the key isn't stored

A Postman API key can read every collection your team has. Storing it would mean holding a credential with much more access than diagnostics needs. Using it for the import and discarding it means TR-AI keeps the collection, not the key. When the collection changes, import again.

## Writing replies developers like

Developers want three things from an API support reply: what was wrong, a request that works, and anything else they should know. Lead with the corrected request and its marked changes; explain each change in one line; then add the "anything else", such as a deprecated endpoint or a rate limit close to running out. Keep prose short. A working curl does more than a paragraph of explanation.

## Keeping your collections useful for support

A collection written for your own developers is a good start for support, and a few small habits make it better.

- **Mark deprecated operations** in the collection or spec. That's what lets the diagnosis tell agents, and customers, about the replacement.
- **Keep example bodies realistic.** Agents start from them when the customer only describes their call.
- **Include the headers** your API needs, so missing ones stand out in the diagnosis.
- **Re-import after changes.** A collection from last quarter can send agents to an endpoint that no longer behaves the same way.

## Mistakes to avoid

- **Testing against production** with a data-changing request.
- **Describing the fix** instead of sending the corrected request.
- **Letting collections go stale.** Re-import when they change.

## Do it in TicketResolve, step by step

**Where:** **API diagnostics** (`/dashboard/api-workbench`); setup steps under Connectors → Postman. **You'll need:** a Postman API key (for the import only) or an exported collection or spec; a sandbox credential. **Full guides:** [API workbench: reproduce a customer’s API call](https://www.ticketresolve.ai/docs/guide/api-workbench) and [Connectors](https://www.ticketresolve.ai/docs/guide/connectors).

1. **Open API diagnostics → Import from Postman**, paste a Postman API key, and pick the collection.
2. **Add a sandbox credential**, tied to one host.
3. **Pick the endpoint** the customer is calling.
4. **Fill in what they sent** and run it; confirm explicitly if it changes data.
5. **Read the diagnosis**, including deprecated endpoints and rate limits.
6. **Review the corrected request** and what changed.
7. **Click Copy as curl** and send it in your reply.

**How to check it worked:** the run shows a diagnosis and, where possible, a corrected request with its changes listed.

## Frequently asked questions

**How do I import from Postman?**
Paste a Postman API key and pick the collection.

**Is the Postman key stored?**
No. It's used for that import only.

**Can I use OpenAPI instead?**
Yes, or an exported Postman JSON file.

**What does the diagnosis check?**
Tokens, scopes, content type, schema mismatches, deprecated endpoints and rate limits.

**When is a rate limit flagged?**
When 5% or less of the quota is left.

**What's the corrected request?**
The fixed version of the call, with what changed, available as curl.

**Where can requests go?**
Only to authorised hosts, never private or internal addresses.

**Are credentials safe?**
Stored encrypted, tied to one host, never shown again, and masked in history.

**Do I need Postman?**
No. You can upload an OpenAPI or Swagger spec instead.
