# Sharing API Simulations Across Coding Agent Sessions

DevFeed: [Sharing API Simulations Across Coding Agent Sessions](<https://devfeed.tech/articles/sharing-api-simulations-across-coding-agent-sessions-131366.md>)

Original publisher: [Read original article](<https://blog.postman.com/sharing-api-simulations-across-coding-agent-sessions/>)

Author: Harsh Vardhan

Published: 2026-11-12T16:00:26Z

Content type: article

Language: en

Sources: [Postman](<https://devfeed.tech/sources/postman-blog.md>)

Topics: [Postman](<https://devfeed.tech/topics/postman.md>), [Postman CLI](<https://devfeed.tech/topics/postman-cli.md>), [API](<https://devfeed.tech/topics/api.md>), [agentic-coding](<https://devfeed.tech/topics/agentic-coding.md>), [Claude Code](<https://devfeed.tech/topics/claude-code.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agentic](<https://devfeed.tech/tags/agentic.md>), [agentic-sdlc](<https://devfeed.tech/tags/agentic-sdlc.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [api](<https://devfeed.tech/tags/api.md>), [api-mocking](<https://devfeed.tech/tags/api-mocking.md>), [apis](<https://devfeed.tech/tags/apis.md>), [async](<https://devfeed.tech/tags/async.md>), [ci-cd](<https://devfeed.tech/tags/ci-cd.md>), [claude](<https://devfeed.tech/tags/claude.md>), [cli](<https://devfeed.tech/tags/cli.md>), [coding](<https://devfeed.tech/tags/coding.md>), [coding-agent](<https://devfeed.tech/tags/coding-agent.md>), [coding-agents](<https://devfeed.tech/tags/coding-agents.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [general](<https://devfeed.tech/tags/general.md>), [mocks](<https://devfeed.tech/tags/mocks.md>), [postman](<https://devfeed.tech/tags/postman.md>), [postman-cli](<https://devfeed.tech/tags/postman-cli.md>), [sessions](<https://devfeed.tech/tags/sessions.md>), [sharing](<https://devfeed.tech/tags/sharing.md>), [simulations](<https://devfeed.tech/tags/simulations.md>), [troubleshooting](<https://devfeed.tech/tags/troubleshooting.md>)

## AI overview

Postman simulations let a dependency-owning team publish callable API behavior, including failure cases, for coding agents in other sessions to run through the Postman CLI. In the described Claude Code experiment, one agent generated Inventory and Payments mocks from OpenAPI specs and published a baseline plus out-of-stock (409), declined-payment (402), and delayed-payment (8-second) variants. A consumer ran them on one local port using `postman simulation list` and `postman simulation run`, without reading dependency source or building separate mock servers. The declined-payment compensation path worked, while the delayed response exposed an uncertain-charge state: Checkout's 3-second timeout expired before Payments replied. The article says resolving this requires status checks, idempotent retries, and order reconciliation; the simulation revealed the issue but did not fix it. It recommends starting with one service boundary, a baseline, and a meaningful failure case, then sharing the maintained simulation for implementation, testing, review, and CI/CD.

## Source excerpt

How to use Postman simulations so coding agents stop rebuilding the same mocks and troubleshooting the same dependencies. Try it with the Postman CLI. The post Sharing API Simulations Across Coding Agent Sessions appeared first on Postman Blog.