Postman Collection v2.1 Compatible

Postman Collections to Production React Query Hooks

Stop manually converting Postman requests into handwritten Axios calls. Reex imports your Postman collections, infers TypeScript types from live responses, and generates idiomatic TanStack Query v5 hooks.

Drop-in Collection Import

Export your Postman collection as JSON (v2.1) and drop it directly into Reex Studio. Folder structures, environment variables, headers, and request bodies are preserved.

Auto Type Inference

Reex inspects recorded Postman response examples or runs live endpoint tests to infer exact TypeScript interfaces for request payloads and response bodies automatically.

Standardized Query Keys

Creates clean, modular query key factories for every Postman folder module, preventing cache collisions and making cache management predictable.

Automatic Invalidation

Generated useMutation hooks automatically trigger invalidateQueries on matching read queries upon successful completion, keeping your UI in sync.

Collection Diff & Sync

When backend engineers send an updated Postman collection, Reex detects added, modified, and removed endpoints without overwriting your existing code.

Direct File Writing

With reex-cli running locally, files are scaffolded directly into your local src/api-services/ folder. Fully editable TypeScript, ready for commit.

Turn Postman Requests into Type-Safe React Hooks

No more guesswork on response structures. Reex analyzes your collection and produces clean, idiomatic TanStack Query code.

// 1. Postman Collection v2.1 Item
{
  "name": "Create Invoice",
  "request": {
    "method": "POST",
    "url": { "raw": "{{baseUrl}}/api/v1/invoices" },
    "body": {
      "mode": "raw",
      "raw": "{\n  \"customer\": \"cust_99\",\n  \"amount\": 450.00\n}"
    }
  }
}

// 2. Reex Generated Output (written to src/api-services/)
export interface CreateInvoicePayload {
  customer: string;
  amount: number;
}

export const useCreateInvoiceMutation = () => {
  const queryClient = useQueryClient();
  return useMutation({
    mutationFn: (payload: CreateInvoicePayload) => invoicesApi.createInvoice(payload),
    onSuccess: () => {
      queryClient.invalidateQueries({ queryKey: invoicesQueryKeys.all });
    },
  });
};

3 Steps to Migrate from Postman

1

Export Postman Collection

In Postman, click on your collection options and choose Export. Select Collection v2.1 and save the JSON file to your machine.

2

Drop into Reex Studio

Open Reex API Studio and drag your collection file onto the workspace. Review endpoints, organize modules, and verify environment variables like {{baseUrl}}.

3

Sync Code with Your IDE

Run reex start in your terminal. All definitions, TypeScript interfaces, and React Query hooks are generated directly into your codebase.