<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Postman</title>
    <description>The latest articles on DEV Community by Postman (postman).</description>
    <link>https://dev.to/postman</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Forganization%2Fprofile_image%2F5035%2F6b8f298c-c09b-48a5-9f70-a811376e63af.png</url>
      <title>DEV Community: Postman</title>
      <link>https://dev.to/postman</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/postman"/>
    <language>en</language>
    <item>
      <title>Boxing in the LLM: REST Assured to Postman with Claude Code</title>
      <dc:creator>Postman</dc:creator>
      <pubDate>Fri, 04 Dec 2026 03:30:14 +0000</pubDate>
      <link>https://dev.to/postman/boxing-in-the-llm-rest-assured-to-postman-with-claude-code-1hc</link>
      <guid>https://dev.to/postman/boxing-in-the-llm-rest-assured-to-postman-with-claude-code-1hc</guid>
      <description>&lt;p&gt;Liquid syntax error: Unknown tag 'endraw'&lt;/p&gt;
</description>
      <category>ai</category>
      <category>java</category>
      <category>testing</category>
      <category>api</category>
    </item>
    <item>
      <title>Benchmarking Coding Agents on Real API Integration Tasks</title>
      <dc:creator>Postman</dc:creator>
      <pubDate>Thu, 03 Dec 2026 19:31:32 +0000</pubDate>
      <link>https://dev.to/postman/benchmarking-coding-agents-on-real-api-integration-tasks-34cm</link>
      <guid>https://dev.to/postman/benchmarking-coding-agents-on-real-api-integration-tasks-34cm</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://blog.postman.com/benchmarking-coding-agents-on-real-api-integration-tasks/?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=benchmarking-coding-agents-on-real-api-integration-tasks&amp;amp;utm_content=devto-01" rel="noopener noreferrer"&gt;Postman blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to pick your agent's API retrieval path by your API mix.&lt;/strong&gt; If you use Claude Code (or build agent tooling and MCP servers) and your agent keeps burning turns digging through docs for any API less famous than Stripe, this is for you. We benchmarked Claude Code with Claude Sonnet 4.6 on 472 real API integration tasks in two arms: built-in web search, and Orbit, a structured API index exposed as an MCP server.&lt;/p&gt;

&lt;p&gt;The short version:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Overall:&lt;/strong&gt; a statistical tie on accuracy, with Orbit about 3.5x cheaper.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Long-tail APIs:&lt;/strong&gt; Orbit wins on accuracy and costs about a quarter as much.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Popular APIs:&lt;/strong&gt; web search wins on accuracy.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cost:&lt;/strong&gt; Orbit stays flat at $0.11 per task. Web search climbs to $0.45 as APIs get more obscure.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The scope is narrow, and we spell it out below: one agent, one model, static grading, and APIs from the Postman API Network only.&lt;/p&gt;




&lt;p&gt;Most "AI coding benchmark" conversations end up in the same place: a leaderboard of models solving puzzles, or a pairwise preference test on code snippets. Neither tells you what happens when an agent has to go integrate the Stripe API, or Plaid, or some payments provider you've never heard of, and come back with working code.&lt;/p&gt;

&lt;p&gt;That's the gap we wanted to close with Orbit's first published benchmark. The question we care about is narrow and practical: when a coding agent is asked to write a working integration against a real API, how often does it get there, and what does it cost to find out?&lt;/p&gt;

&lt;p&gt;In this post we'll walk through what we measured, how we measured it, and what the numbers say. We'll also be upfront about what this benchmark does not tell you, because there's a lot of that.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why another benchmark
&lt;/h2&gt;

&lt;p&gt;There are a few public attempts at measuring agent behavior on API work. They're useful, and they're also not what we were trying to do:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;One published a token and cost comparison across 100 queries. It measures how many tokens an agent burns pulling docs, but not whether the resulting code works.&lt;/li&gt;
&lt;li&gt;Another ran a pairwise preference study on 150 planning tasks. Those were planning tasks, not integration code.&lt;/li&gt;
&lt;li&gt;A third publishes AI-readiness scores for 6,000+ APIs. That's a per-API rating, not an agent accuracy-and-cost benchmark.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Our angle is different in a few ways:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;We score both accuracy and cost.&lt;/li&gt;
&lt;li&gt;The answer keys are written to a fixed procedure, not by whoever happens to vendor the API.&lt;/li&gt;
&lt;li&gt;The 472 APIs we tested were chosen by a rule you can check.&lt;/li&gt;
&lt;li&gt;Each task is averaged over 4 runs to smooth out agent nondeterminism.&lt;/li&gt;
&lt;li&gt;The task always ends in working code against a real API, not a plan or a docs answer.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What the task looks like
&lt;/h2&gt;

&lt;p&gt;Every task is a short request in plain English, written the way a developer would ask a colleague. It says which product to use, what the script should do, what inputs it takes, what it should print, and which credentials are available. Here is a real one from the set:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;I want a small Python script that sends a text message with Twilio. It should take the phone number to send to and the message text, and either the Twilio phone number to send from or the SID of a Messaging Service to send through, plus optionally one or more image URLs to attach (making it a picture message) and a URL that should receive delivery-status callbacks. It should send the message and print the new message's SID and its status. My Twilio Account SID and Auth Token are in environment variables.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No prompt contains an endpoint URL or path, and only about a dozen of the 472 name an HTTP method or an authentication scheme. The agent has to work out which endpoint to call, how to authenticate, how to shape the request and what the response looks like, the way a developer would.&lt;/p&gt;

&lt;p&gt;Every task also comes with the same standing instructions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Write Python 3 using only the standard library and &lt;code&gt;requests&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Parse inputs with &lt;code&gt;argparse&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Make raw HTTP calls rather than using the vendor's SDK.&lt;/li&gt;
&lt;li&gt;Read credentials from environment variables.&lt;/li&gt;
&lt;li&gt;Print the parsed response, handling error responses gracefully.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Without an SDK, the agent has to get the HTTP call itself right.&lt;/p&gt;

&lt;p&gt;The agent itself is Claude Code running Claude Sonnet 4.6, sandboxed in a container with a limit of 60 turns and 10 minutes per task. We ran it in two configurations, with identical prompts:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Web baseline:&lt;/strong&gt; Claude Code's built-in web search and web fetch tools. The agent searches the web, reads docs, and writes code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Orbit:&lt;/strong&gt; the Orbit Model Context Protocol (MCP) server, which exposes two tools. &lt;code&gt;search&lt;/code&gt; finds the right API and endpoint, and &lt;code&gt;integrate&lt;/code&gt; pulls structured integration details. Same prompt, different retrieval path.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Heads up on scope:&lt;/strong&gt; we tested one agent and one model, Claude Sonnet 4.6 inside Claude Code. The numbers in this post are about that specific setup. They are not a claim about agents in general, or about other models, or about other MCP servers. If you're running a different stack, treat this as a data point, not a verdict.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  The dataset: 472 APIs
&lt;/h2&gt;

&lt;p&gt;The dataset is 472 APIs from 441 publishers, all verified on the Postman API Network. The rule for inclusion was mechanical. We took every public team workspace of a verified publisher, minus Postman's own orgs and Postman-run teams, and minus demo, test, personal and re-shared workspaces.&lt;/p&gt;

&lt;p&gt;Most publishers contribute one workspace. Large publishers whose products have separate APIs contribute several. We then removed 28 workspaces with no usable HTTP API: retired or unreachable hosts, MCP- or gRPC-only products, and collections that only point at mock servers. We also set aside 5 services pending review, such as temporary-inbox providers and numbers for receiving SMS verification codes.&lt;/p&gt;

&lt;p&gt;That dataset splits roughly into:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;202 well-known brands, such as Stripe, Salesforce, PayPal, Notion, Zoom, Plaid, and Datadog.&lt;/li&gt;
&lt;li&gt;270 long-tail APIs from smaller or more specialized providers.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Payments and messaging are the two largest categories by count.&lt;/p&gt;

&lt;p&gt;An important caveat, and we want to put it up high rather than bury it. Every API in this benchmark is a verified publisher workspace on the Postman API Network, which is also the dataset Orbit indexes. So this benchmark measures how well these two agents perform on APIs that Orbit's index covers. It does not measure world API coverage, and it is not a test of what happens for an API that isn't on the API Network at all. For that scenario, web search is the only option in this test setup.&lt;/p&gt;

&lt;h2&gt;
  
  
  Answer keys and scoring
&lt;/h2&gt;

&lt;p&gt;For each of the 472 APIs we built a reference answer: a canonical request with method, URL, auth scheme, parameters, and expected response. The procedure for writing these was fixed:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Start from the publisher's own Postman request on the API Network.&lt;/li&gt;
&lt;li&gt;Confirm every field against the provider's public documentation. Docs win over Postman when they disagree.&lt;/li&gt;
&lt;li&gt;Where possible and safe, make a live call to verify the response shape.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The keys were drafted by AI agents following that procedure. Each key carries a 5-part rubric, and an automated check enforces its format: five criteria, 20 points each, no partial credit.&lt;/p&gt;

&lt;p&gt;Scoring is done by Claude Opus 5 as an LLM judge. It grades the agent's final script against the reference key on five pass/fail criteria, worth 20 points each:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Correct endpoint and HTTP method&lt;/li&gt;
&lt;li&gt;Correct authentication&lt;/li&gt;
&lt;li&gt;Correct request payload: body, query parameters and headers&lt;/li&gt;
&lt;li&gt;Correct response handling: reads the right fields from the response and handles errors&lt;/li&gt;
&lt;li&gt;Raw HTTP with &lt;code&gt;requests&lt;/code&gt; and credentials read from environment variables, as the standing instructions require&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Worth being explicit about this: the judge is an LLM reading code against a fixed answer key. It does not run the code. If the agent writes something that looks right but would fail at runtime for a reason the judge can't see from static review, that failure doesn't show up in the score.&lt;/p&gt;

&lt;p&gt;We picked this tradeoff deliberately. Running 472 scripts against live production APIs in four independent runs is not something we want to do to Stripe, or to our wallet. It is still a real limitation.&lt;/p&gt;

&lt;p&gt;Cost is the agent's model spend per task, in USD, including any web-search charges. Orbit itself is free. The $0.11 figure in the results is what the agent spent on model inference while using Orbit's tools: Claude Sonnet 4.6, plus a few small Claude Haiku calls that Claude Code makes on its own.&lt;/p&gt;

&lt;p&gt;Each task is run 4 times independently and the scores are averaged. Accuracy is the average rubric score from 0 to 1, and a run that hits the 10-minute time limit counts as 0. 32 of web search's 1,888 runs (1.7%) timed out, and none of Orbit's did. Cost and turns are averaged over the runs that finished.&lt;/p&gt;

&lt;h2&gt;
  
  
  Results
&lt;/h2&gt;

&lt;h3&gt;
  
  
  All 472 APIs
&lt;/h3&gt;

&lt;p&gt;Averaged across the full dataset, Orbit scored 0.817 and web search 0.807. Orbit came out ahead in each of the four runs, but only by 0.6 to 1.3 points, and the difference isn't statistically significant. The 95% confidence interval for web minus Orbit runs from -3.4 to +1.4 points.&lt;/p&gt;

&lt;p&gt;On cost the gap is not close: Orbit spends less than a third as much per task.&lt;/p&gt;

&lt;p&gt;So: on the full dataset, call it a tie on accuracy, with Orbit about 3.5x cheaper.&lt;/p&gt;

&lt;h3&gt;
  
  
  Long-tail APIs (270)
&lt;/h3&gt;

&lt;p&gt;On the 270 long-tail APIs, Orbit is ahead by 5 points (0.802 compared with 0.752) and about 4x cheaper. The lead holds in all four runs, at 4.5 to 5.7 points, and it is statistically significant: the 95% confidence interval runs from 1.3 to 8.7 points in Orbit's favor.&lt;/p&gt;

&lt;p&gt;Part of the lead comes from web search running out of time: 22 web runs on long-tail APIs timed out and scored 0. Leaving those runs out still leaves Orbit 4 points ahead (95% CI 0.5 to 7.6).&lt;/p&gt;

&lt;p&gt;Web search's higher cost here comes from the extra work of finding docs. It averages about 31 turns and 7 searches per long-tail task, against 17 turns and 3 searches on popular APIs, hunting across pages and retrying searches. Orbit stays at about 9 turns either way, because its retrieval path is the same however obscure the API is.&lt;/p&gt;

&lt;p&gt;This is one benchmark with one agent and one model, so we'd read it as a clear result for this setup rather than a general claim. On the long-tail APIs Orbit covers, it was both more accurate than web search and about a quarter of the cost.&lt;/p&gt;

&lt;h3&gt;
  
  
  Popular APIs (202)
&lt;/h3&gt;

&lt;p&gt;On the 202 well-known APIs, web search is ahead: 0.881 to Orbit's 0.838. That 4.3-point gap is also statistically significant (95% CI 1.7 to 6.8 points) and holds in all four runs.&lt;/p&gt;

&lt;p&gt;Web search does best exactly where you'd expect: APIs with heavily indexed, well-represented documentation online. If you're integrating Stripe, the internet has opinions about Stripe, and the agent can find them.&lt;/p&gt;

&lt;p&gt;Orbit is still 2.5x cheaper here ($0.11 compared with $0.27), but on raw accuracy, web search wins the popular tier.&lt;/p&gt;

&lt;h2&gt;
  
  
  The shape of the cost curve
&lt;/h2&gt;

&lt;p&gt;The pattern that stands out across the three slices:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Slice&lt;/th&gt;
&lt;th&gt;Orbit cost per task&lt;/th&gt;
&lt;th&gt;Web search cost per task&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Popular (202)&lt;/td&gt;
&lt;td&gt;$0.11&lt;/td&gt;
&lt;td&gt;$0.27&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;All (472)&lt;/td&gt;
&lt;td&gt;$0.11&lt;/td&gt;
&lt;td&gt;$0.37&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Long-tail (270)&lt;/td&gt;
&lt;td&gt;$0.11&lt;/td&gt;
&lt;td&gt;$0.45&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;Orbit's cost is flat at $0.11 per task regardless of API popularity, at about 9 turns per task on popular and long-tail APIs alike.&lt;/li&gt;
&lt;li&gt;Web search cost rises as APIs get more obscure. It goes from $0.27 on popular, to $0.37 on the full dataset, to $0.45 on long-tail, as turns go from about 17 to 31 per task.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That curve is the practical story of the benchmark, more than any single accuracy number. If your integration work is skewed toward well-known APIs, web search is accurate and relatively affordable. If it's skewed toward anything off the beaten path, the cost of web search climbs fast, and that's where a structured index pulls ahead.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this does and doesn't tell you
&lt;/h2&gt;

&lt;p&gt;To be direct about scope one more time, because benchmarks get overread:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;This measures one agent (Claude Code) and one model (Claude Sonnet 4.6) in a specific configuration. Different model, different story, possibly.&lt;/li&gt;
&lt;li&gt;This measures APIs that are verified publishers on the Postman API Network, because that's what Orbit indexes. For APIs outside that set, Orbit isn't an option in this comparison.&lt;/li&gt;
&lt;li&gt;The judge is an LLM grading static code against a fixed answer key. It doesn't run the code. Runtime failures that pass static review won't show up.&lt;/li&gt;
&lt;li&gt;Accuracy numbers have run-to-run noise. The 1-point gap on the full dataset is not statistically significant; the long-tail and popular gaps are.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What it does tell you, as one data point: with this agent and this model, on APIs Orbit covers, Orbit ties web search on overall accuracy, beats it on long-tail APIs, loses to it on popular APIs, and is 2.5 to 4x cheaper across the board.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we'd want to measure next
&lt;/h2&gt;

&lt;p&gt;The obvious next experiments:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Run the code.&lt;/strong&gt; Spin up test accounts, run the scripts, and grade on actual HTTP responses. It's expensive and fiddly, but it closes the gap between "looks right" and "works."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Other agents and other models.&lt;/strong&gt; Repeat the setup with different coding agents and different base models. The accuracy ordering could easily flip.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;APIs outside the Postman API Network.&lt;/strong&gt; This benchmark can't speak to that case. A separate study with a different dataset would.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you want to poke at the methodology, or you have an API you'd like to see included, the Orbit project page is the place to start. The benchmark isn't a finished story. This is the first version, and we'd rather have it public and open to critique than sit on it until it's "perfect."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://blog.postman.com/benchmarking-coding-agents-on-real-api-integration-tasks/?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=benchmarking-coding-agents-on-real-api-integration-tasks&amp;amp;utm_content=devto-01" rel="noopener noreferrer"&gt;Read the full benchmark on the Postman blog&lt;/a&gt;&lt;/strong&gt; for the methodology, the per-tier results and the stated limits.&lt;/p&gt;

&lt;h2&gt;
  
  
  Resources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Postman API Network:&lt;/strong&gt; the source dataset for the 472 APIs tested, including verified publisher workspaces.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Model Context Protocol:&lt;/strong&gt; the open protocol Orbit's MCP server implements, worth reading if you're building agent tooling.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Claude Code documentation:&lt;/strong&gt; the coding agent used in both arms of the benchmark.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Postman Docs:&lt;/strong&gt; reference docs for collections, environments, and the request formats that underlie the answer keys.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Anthropic Claude models:&lt;/strong&gt; background on Claude Sonnet 4.6 (the agent model) and Claude Opus 5 (the judge model).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Shubham Ranjan is a technical lead at Postman.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>api</category>
      <category>mcp</category>
      <category>benchmark</category>
    </item>
    <item>
      <title>Break your handler on purpose: 3 changes your tests must catch (Agentic SDLC Part 3)</title>
      <dc:creator>Postman</dc:creator>
      <pubDate>Thu, 03 Dec 2026 12:30:06 +0000</pubDate>
      <link>https://dev.to/postman/break-your-handler-on-purpose-3-changes-your-tests-must-catch-agentic-sdlc-part-3-272l</link>
      <guid>https://dev.to/postman/break-your-handler-on-purpose-3-changes-your-tests-must-catch-agentic-sdlc-part-3-272l</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://blog.postman.com/agentic-sdlc-part-3-verify-behavior-keep-the-evidence/?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=agentic-sdlc-part-3-verify-behavior-keep-the-evidence&amp;amp;utm_content=devto-01" rel="noopener noreferrer"&gt;Postman blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Break your handler on purpose: 3 changes your tests must catch.&lt;/strong&gt; If a coding agent wrote your API feature, a green test suite proves little when the same agent also wrote the tests. Its wrong assumptions pass straight through. This post walks through independent verification from the approved contract instead. You build separate mocks and datasets, read the stored record back after every request, set load thresholds before the run, prove the tests can fail, and package it all as a GitHub Actions workflow. It also includes the prompt to run it yourself in Claude Code.&lt;/p&gt;

&lt;p&gt;This is part 3 of a 3-part series on the agentic SDLC. In part 1, design produced the package. In part 2, the developer built the check-in feature against it. Now the QA engineer tests what was built.&lt;/p&gt;

&lt;p&gt;Testing is where an agentic SDLC has the most to prove. If the same agent writes the code and decides whether the code is correct, any wrong assumption passes straight through. This post follows a QA engineer who works from the approved contract instead, builds separate mocks and datasets, and leaves behind evidence that the next change has to satisfy as well.&lt;/p&gt;

&lt;h2&gt;
  
  
  Verify behavior and preserve the evidence
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;As the QA engineer, it's my job to independently test the running check-in feature against the approved contract, so we're checking what was agreed rather than repeating the coding agent's assumptions.&lt;/p&gt;

&lt;p&gt;I own the datasets, assertions, failure scenarios, and performance thresholds that determine whether the feature passes.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Those four items are the QA engineer's deliverables, and each one answers a different question.&lt;/p&gt;

&lt;p&gt;Owning them is what makes the testing independent. The developer already checked the code against the design's mocks. The QA engineer builds a second set from the contract, so a mistake baked into the first set doesn't hide in the second.&lt;/p&gt;

&lt;h2&gt;
  
  
  Build datasets, mocks, and simulations
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Test:&lt;/strong&gt; the QA engineer generates datasets, runs contract and behavior checks, load tests the feature, proves the tests catch mistakes, and packages a CI workflow.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;I start with the situations this feature needs to handle. The datasets skill helps me create cases for active coverage, denied coverage, invalid requests, and someone trying to check in twice.&lt;/p&gt;

&lt;p&gt;Then I use the api-mocking skill to create my own appointment and eligibility mocks, and the api-simulation skill to run them together. I can make eligibility unavailable or slow to respond, so I can test those failures whenever I need to.&lt;/p&gt;

&lt;p&gt;With the api-testing skill, I check both the response and the appointment afterward. Active coverage should allow check-in; a denial or an eligibility failure should leave the appointment unchanged. A second check-in should be rejected without another update. The responses must also match the approved OpenAPI spec, and the collection must stay in sync with it.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The expected outcomes line up like this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Active coverage:&lt;/strong&gt; check-in is allowed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Denied coverage:&lt;/strong&gt; the appointment is left unchanged.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Eligibility failure (unavailable or slow):&lt;/strong&gt; the appointment is left unchanged.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Second check-in:&lt;/strong&gt; rejected, with no further update to the appointment.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Two details in this step separate a real verification from a smoke test. First, every case checks the appointment afterward, not only the response. A refusal message means little if the status changed anyway. Second, the "check in twice" case covers a bug that single-request tests never see: a duplicate request that quietly updates the record a second time.&lt;/p&gt;

&lt;p&gt;Matching the responses to the OpenAPI specification gives the contract a second job. It describes the API, and it also acts as the standard the running feature gets held to. Keeping the collection in sync with it means the tests don't drift from what was agreed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check performance under load
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;Next, the performance-testing skill checks how the feature behaves under load: ten virtual users for a minute, with 95% of responses required to finish in under half a second and fewer than 1% errors or failed checks. This local run passes at 236 milliseconds for the 95th percentile.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;A few terms make that result easier to read. Virtual users are simulated clients sending requests at the same time. The 95th percentile (often written p95) is the response time that 95% of requests beat, so it shows how slow the unlucky requests are in a way an average hides. The thresholds set the bar before the run: p95 under 500 milliseconds, and under 1% errors or failed checks. The run either meets them or it doesn't.&lt;/p&gt;

&lt;p&gt;The pass at 236 milliseconds is a local result against simulated dependencies. It tells you the feature's own code handles the load. It doesn't predict production latency, which depends on the real eligibility service and the real network between them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prove the tests catch mistakes
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;I also want proof that these tests catch mistakes. On copies of the code, removing the eligibility check, returning the wrong error, and adding a delay each cause a failure. The reports show what broke and how to reproduce it, giving the developer a clear starting point for a fix.&lt;/p&gt;

&lt;p&gt;Finally, the ci-integration skill packages the checks into a GitHub Actions workflow. Once it runs in CI and is required before merge, a later change will have to meet these same checks.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;A passing test suite only means something if it can fail. Each of the three changes breaks one of the feature's promises:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Remove the eligibility check:&lt;/strong&gt; check-in should no longer depend on active coverage, and the tests must notice.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Return the wrong error:&lt;/strong&gt; the response no longer matches what the contract promises.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Add a delay:&lt;/strong&gt; the feature no longer meets its performance thresholds.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Doing this on copies of the code keeps the real branch clean, and the failure reports give the developer a reproducible starting point. They show what broke and how to run it again.&lt;/p&gt;

&lt;p&gt;The last sentence about CI has two conditions in it, and both matter. The workflow has to run, and the check has to be required before merge. Writing the workflow file does the first part. Marking the check as required in your repository settings does the second. Until both are true, the checks are advice and not a gate.&lt;/p&gt;

&lt;h2&gt;
  
  
  What each phase hands to the next
&lt;/h2&gt;

&lt;p&gt;So I started with this feature request: add an appointment check-in feature that confirms a patient's insurance coverage is active before marking them checked in. Most of the decisions happened before development started.&lt;/p&gt;

&lt;p&gt;The architect gets a design package to review: saved Context Graph findings, spec.md, the OpenAPI contract, governance checks, design tests, collections, mocks, and simulations with their assumptions recorded. The developer uses that package to deliver the implemented check-in feature, with its API integrations and eligibility rules, and checks it against the simulated dependencies. The QA engineer then produces an independent verification package: datasets, contract and behavior tests, separate mocks and failure simulations, performance checks with pass-or-fail thresholds, reproducible failure reports, and a CI workflow. Each person owns the work in their phase, and each handoff gives the next person the context and runnable assets they need.&lt;/p&gt;

&lt;p&gt;That is how I want to use agents across the SDLC: give each phase enough context to do useful work, preserve its output for the next person, and keep a named human responsible for each handoff.&lt;/p&gt;

&lt;p&gt;Here are the three handoffs side by side:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Design → architect:&lt;/strong&gt; a design package (Context Graph findings, spec.md, OpenAPI contract, governance checks, design tests, collections, mocks, and simulations with recorded assumptions).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Develop → QA:&lt;/strong&gt; the implemented check-in feature, with its API integrations and eligibility rules, checked against simulated dependencies.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test → every later change:&lt;/strong&gt; an independent verification package (datasets, contract and behavior tests, separate mocks and failure simulations, performance thresholds, failure reports, and a CI workflow).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The pattern repeats in every row. Each phase starts from saved, runnable artifacts instead of a verbal explanation, and each ends by leaving a package for the next person. That's what makes the agentic SDLC work across a team and not only inside one person's terminal session.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it yourself
&lt;/h2&gt;

&lt;p&gt;Open Claude Code in the repo that has the design package and the developer's implementation. Ask for verification from the contract, not from the code. Swap in the names from your own feature:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prompt&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Independently test the running check-in feature against the approved contract. Create datasets for active coverage, denied coverage, invalid requests, and a second check-in. Use your own mocks and simulations, check the appointment after each response, and add a load test with pass-or-fail thresholds. Then package the checks into a GitHub Actions workflow.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Work through the result in this order:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Read the datasets and confirm they cover active coverage, denied coverage, invalid requests, and a second check-in.&lt;/li&gt;
&lt;li&gt;Check that the tests read the appointment back after each response and don't stop at the response body.&lt;/li&gt;
&lt;li&gt;Confirm the responses are validated against the OpenAPI contract.&lt;/li&gt;
&lt;li&gt;Review the load thresholds before the run, then compare the result to them.&lt;/li&gt;
&lt;li&gt;Open the generated GitHub Actions workflow and decide which checks to require before merge.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;To see whether your tests catch mistakes, break a copy of the handler on purpose and run the collection again:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;postman collection run path/to/verification-collection.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace the path with wherever your collection lives. Remove the eligibility check, return the wrong error, and add a delay, one at a time. Each change should fail at least one test. If one doesn't, that gap is the next test to write.&lt;/p&gt;

&lt;h2&gt;
  
  
  Resources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Announcing the Postman Plugin for Claude Code&lt;/li&gt;
&lt;li&gt;Run the Postman CLI in GitHub Actions&lt;/li&gt;
&lt;li&gt;Collection commands (lint, run)&lt;/li&gt;
&lt;li&gt;Mock server commands&lt;/li&gt;
&lt;li&gt;The Postman CLI overview&lt;/li&gt;
&lt;li&gt;Postman CLI GitHub Action&lt;/li&gt;
&lt;li&gt;OpenAPI Initiative&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The full post, with all three parts of the series, is on the &lt;a href="https://blog.postman.com/agentic-sdlc-part-3-verify-behavior-keep-the-evidence/?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=agentic-sdlc-part-3-verify-behavior-keep-the-evidence&amp;amp;utm_content=devto-01" rel="noopener noreferrer"&gt;Postman blog&lt;/a&gt;. Which of the three breaks would your current suite miss? Questions about the setup are welcome in the comments.&lt;/p&gt;

</description>
      <category>testing</category>
      <category>api</category>
      <category>ai</category>
      <category>cicd</category>
    </item>
    <item>
      <title>How to test every API your AI agent depends on, in one prompt</title>
      <dc:creator>Postman</dc:creator>
      <pubDate>Thu, 03 Dec 2026 05:30:03 +0000</pubDate>
      <link>https://dev.to/postman/how-to-test-every-api-your-ai-agent-depends-on-in-one-prompt-1da</link>
      <guid>https://dev.to/postman/how-to-test-every-api-your-ai-agent-depends-on-in-one-prompt-1da</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://blog.postman.com/a-developers-guide-to-building-and-testing-ai-agents-with-astropods-and-the-postman-plugin/?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=a-developers-guide-to-building-and-testing-ai-agents-with-as&amp;amp;utm_content=devto-01" rel="noopener noreferrer"&gt;Postman blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;If you're building a tool-calling agent that acts on real APIs like Confluence, Jira, WordPress or Google Drive, a confident reply in chat tells you very little about whether the calls behind it worked. A plausible reply can hide a failed call, and a successful HTTP response can still be missing a field the agent needs.&lt;/p&gt;

&lt;p&gt;This guide builds a Slack agent called Quill on Astropods, then tests it at two levels:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The APIs it depends on.&lt;/strong&gt; The Postman plugin in Claude Code generates Postman Collections for them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What it told the user.&lt;/strong&gt; Astropods evals check the reply against the run's trace.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;I built a Slack agent called Quill and deployed it to production on Astropods. Its first job was to turn a topic into a blog draft and save it to Confluence. Today, it can also copy-edit the draft and stage it in WordPress for review.&lt;/p&gt;

&lt;p&gt;In this guide, I'll show you how I built that first workflow, from writing a SKILL.md file to adding a Confluence tool and running the agent locally. Then I'll show how I used the Postman plugin to test the APIs Quill depends on, and Astropods evals to check whether Quill completed the task and reported the result accurately.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnsh3v2r6lohi477bmzie.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnsh3v2r6lohi477bmzie.gif" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What makes an application an AI agent?
&lt;/h2&gt;

&lt;p&gt;An AI agent uses a model to decide what to do next. In a traditional workflow, your code defines the sequence. In an agent, the model chooses the next action based on the request and what it has learned so far. Your application defines which tools it can call.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F461h5czk8j52tm272nb5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F461h5czk8j52tm272nb5.png" width="800" height="401"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If the steps are known in advance, a regular workflow is usually simpler to build and test. An agent is useful when the next step depends on what it discovers along the way.&lt;/p&gt;

&lt;p&gt;Quill uses both patterns. The model decides what to research and how to turn it into a draft. When it's time to save the draft, application code sends it to a configured Confluence space. I started by writing down how I wanted Quill to handle the writing part.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Write a skill for the first task
&lt;/h2&gt;

&lt;p&gt;I started with a task I already knew how to do as a developer advocate: take a technical topic and turn it into a blog draft another developer can follow. I wrote down how I do that work in &lt;code&gt;skills/blog-write/SKILL.md&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The file starts with YAML frontmatter that names the skill and describes when to use it. The Markdown body tells the model how to handle the input, what to research, and what the finished draft should contain.&lt;/p&gt;

&lt;p&gt;Here's a simplified version of the file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;---
name: blog-write
description: Draft technical tutorials and guides about Postman and APIs.
---

&lt;span class="gu"&gt;## Input
&lt;/span&gt;Start from a topic, outline, brief, or existing draft. If the user hasn't supplied a topic or source material, ask for it.

&lt;span class="gu"&gt;## Research
&lt;/span&gt;Find relevant documentation, check existing blog coverage, and look for examples developers can run.

&lt;span class="gu"&gt;## Write
&lt;/span&gt;Follow the Postman writing style guide. Explain the technical decisions and include runnable examples with language-tagged code blocks.

&lt;span class="gu"&gt;## Output
&lt;/span&gt;Save the draft as Markdown with YAML frontmatter for the suggested title, meta description, and keywords.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Writing the skill gave me a way to test what "write a good post" meant. I could give the model a topic like "Testing OAuth 2.0 flows in Postman" and check whether the draft covered the topic, linked to the right docs, included runnable examples, and supplied the expected metadata.&lt;/p&gt;

&lt;p&gt;I ran the writing prompt against different topics using Postman's AI Request before wiring it into Quill. That helped me spot where the model drifted from the style guide while I was still working on the writing task by itself.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Turn the skill into a job the agent can complete
&lt;/h2&gt;

&lt;p&gt;Once I had a writing task I could test on its own, I gave Quill a job with a result I could verify outside the chat:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Take a blog topic, write a draft using the blog-write instructions, save it to Confluence for review, and return the page link.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The skill explains how to write the draft. The Confluence tool gives Quill a way to save it. The job is complete when the page exists in the intended Confluence space and the link Quill returns opens that draft.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Run the agent locally and inspect the trace
&lt;/h2&gt;

&lt;p&gt;To follow along, open the Quill project directory that contains &lt;code&gt;astropods.yml&lt;/code&gt;. You'll need:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Docker running&lt;/li&gt;
&lt;li&gt;An Astropods project&lt;/li&gt;
&lt;li&gt;Confluence credentials that can create a page in your test destination&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Quill uses the Astropods AI Gateway for model access. Here's the model configuration.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;models&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;default&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;provider&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;gateway&lt;/span&gt;
    &lt;span class="na"&gt;models&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;claude-sonnet-4-6&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;claude-haiku-4-5&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Mark credential entries as &lt;code&gt;secret: true&lt;/code&gt; in &lt;code&gt;astropods.yml&lt;/code&gt;, then configure the values and start the agent.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ast project configure
ast project start
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In my setup, blank entries in &lt;code&gt;.env&lt;/code&gt; overrode values I'd already stored with &lt;code&gt;ast project configure&lt;/code&gt;. Removing the duplicate entries let the agent use the stored values.&lt;/p&gt;

&lt;p&gt;Open the playground and try this prompt.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Write a short blog draft about testing the APIs an AI agent depends on and save it to Confluence.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Check the result in three places:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The trace&lt;/strong&gt; shows the save tool receiving the title and draft body and returning a successful result.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Confluence&lt;/strong&gt; contains the new page in the intended space.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Quill's reply&lt;/strong&gt; links to the page returned by the tool.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Use &lt;code&gt;ast project start --rebuild&lt;/code&gt; when you change files baked into the image. Use &lt;code&gt;ast project logs&lt;/code&gt; to view the run's output and &lt;code&gt;ast project stop&lt;/code&gt; to stop the local run.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Add tools as the workflow grows
&lt;/h2&gt;

&lt;p&gt;After the Confluence workflow worked reliably, I added WordPress staging, Jira tickets, analytics, and Google Docs one at a time. Each integration solved a specific problem in the editorial workflow and gave me another action to verify.&lt;/p&gt;

&lt;p&gt;As the workflow grew, I had to revisit the step limit. In my Mastra setup, a run could stop after five steps without throwing an error. A request that drafts a post, saves it to Confluence, files a Jira ticket, and stages it in WordPress could hit that limit partway through. Run your longest workflow end to end and inspect the trace to see how many steps it takes and where it stops.&lt;/p&gt;

&lt;p&gt;Plan for partial success too. Suppose Quill saves a Confluence draft and creates a Jira ticket, but WordPress staging fails. The reply should link to the page and the ticket and identify the failed step. A retry should reuse the records that already exist. Quill's title-match logic is one example: it checks for an existing draft before creating another one.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhkxqanmhkhebzms40kp3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhkxqanmhkhebzms40kp3.png" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Put boundaries around actions
&lt;/h3&gt;

&lt;p&gt;Reading analytics and creating a Jira ticket have different consequences. For Quill, I set boundaries around the tools that create or change things in other systems.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Give the agent its own identity.&lt;/strong&gt; A dedicated service account makes pages and tickets attributable to Quill. Scope its permissions to the actions the workflow needs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Enforce requirements in code.&lt;/strong&gt; Quill's WordPress staging code checks the draft's frontmatter for SEO and AEO metadata and blocks staging if either is missing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep publishing with the editor.&lt;/strong&gt; Quill can stage a WordPress draft for review. Its toolset ends at staging, and an editor publishes the post.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bound each run and record what happened.&lt;/strong&gt; A step limit caps how many steps the agent can take. The trace shows which tools it called, what arguments it passed, and what came back.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  5. Test the APIs and evaluate the agent
&lt;/h2&gt;

&lt;p&gt;I test Quill at two levels. The Postman plugin checks whether its API dependencies work with the requests, credentials, and response fields Quill relies on. Astropods evals check what Quill did with those tools and what it told the user.&lt;/p&gt;

&lt;p&gt;A fixed assertion on a status code or response field is deterministic: given the same response, it produces the same pass or fail. The live response can still change with credentials, permissions, or service configuration.&lt;/p&gt;

&lt;p&gt;Agent behavior can also vary across runs of the same request. Quill might choose a different tool, pass different arguments, or phrase its reply differently. An eval can apply a fixed rule or use a model to judge the result.&lt;/p&gt;

&lt;h3&gt;
  
  
  Use the Postman plugin to test API dependencies
&lt;/h3&gt;

&lt;p&gt;The Postman plugin lets your coding agent inspect a project, identify the APIs it calls, and generate and run Postman Collections. I review those Collections alongside the application code, paying particular attention to the requests they make and the response fields they check.&lt;/p&gt;

&lt;p&gt;In Claude Code, install the plugin with these commands.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude plugin marketplace add anthropics/claude-plugins-official
claude plugin install postman@claude-plugins-official
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;My prompt for Quill was one line.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;I want to test every API that Quill uses.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The coding agent found nine external services, including WordPress, Confluence, Jira, Google Drive, Tavily, and YouTube, and generated a Collection for each.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The assertions check the fields Quill reads.&lt;/strong&gt; A Tavily response can return 200 and still lack a field Quill needs. The test can identify the missing field.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The requests exercise real credentials and permissions.&lt;/strong&gt; The Google Drive Collection made a &lt;code&gt;files.create&lt;/code&gt; request, which surfaced a service-account configuration issue.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Collections live in the repository.&lt;/strong&gt; They can go through pull-request review and run in CI alongside other tests.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmvb667hvflvsy0dd5zh3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmvb667hvflvsy0dd5zh3.png" width="800" height="352"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Eight of the nine Collections passed on the first live run. Google Drive returned a 403.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;storageQuotaExceeded: Service Accounts do not have storage quota. Use shared drives, or OAuth delegation instead.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A comment in my code called the shared-drive folder "optional." The live request showed otherwise: with its service-account configuration, Quill needed a shared-drive destination to create a document. That gave me a specific fix for the Google Docs workflow before a user hit the error in Slack.&lt;/p&gt;

&lt;p&gt;It's easy to skip this layer when the agent is already replying in Slack. A plausible reply can hide a failed call, and a successful HTTP response can still be missing a field the agent needs. The Postman plugin makes it easier to generate and run tests that catch those failures.&lt;/p&gt;

&lt;h3&gt;
  
  
  Use Astropods evals to check what the agent did
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzhixja3m1kxl5tgyg0ky.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzhixja3m1kxl5tgyg0ky.png" width="799" height="394"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Astropods traces show the tool calls, arguments, and responses from a run. An eval can use that history to check whether Quill's final reply matches what happened.&lt;/p&gt;

&lt;p&gt;Quill's &lt;code&gt;EVALUATION.yaml&lt;/code&gt; combines preset evaluators for claim grounding and leaked credentials with custom checks for its editorial workflow. One custom check flags a reply that says Quill published a post when the trace shows it only staged a draft.&lt;/p&gt;

&lt;p&gt;The Google Drive failure gives you an example of what to check at each level.&lt;/p&gt;

&lt;p&gt;I saw a similar gap after adding YouTube support. All 440 recorded runs had a status of ok, including four where Quill told me it couldn't read the video. The run status showed that execution completed. Reading the actual replies surfaced four requests where Quill couldn't do the work the user asked for.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fblog.postman.com%2Fwp-content%2Fuploads%2F2026%2F07%2Fslack-prod.gif%3Futm_source%3Ddevto%26utm_medium%3Dblog%26utm_campaign%3Da-developers-guide-to-building-and-testing-ai-agents-with-as%26utm_content%3Ddevto-01" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fblog.postman.com%2Fwp-content%2Fuploads%2F2026%2F07%2Fslack-prod.gif%3Futm_source%3Ddevto%26utm_medium%3Dblog%26utm_campaign%3Da-developers-guide-to-building-and-testing-ai-agents-with-as%26utm_content%3Ddevto-01" width="8" height="5"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Verify the deployed workflow from Slack
&lt;/h2&gt;

&lt;p&gt;I deployed Quill on Astropods and connected it to Slack. Once your workflow works locally, run the same prompt through the deployed agent. For Quill, that means:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Checking that the draft exists in the intended Confluence space.&lt;/li&gt;
&lt;li&gt;Opening the link from Slack.&lt;/li&gt;
&lt;li&gt;Reviewing the trace to confirm that the save result matches the reply.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Test one failure from Slack too. Use a test destination the agent can't write to. Check that the trace shows the failed call and that the reply tells the user what happened. Repeat these checks when you add tools or change credentials, prompts, or permissions.&lt;/p&gt;

&lt;p&gt;If you're building your first agent, pick a task you already know how to do and write down what a good result looks like in a SKILL.md file. Give the agent one action you can verify in another system. Test the API that performs the action, and use a trace to check how the agent reports the result. For Quill, that first milestone was one draft saved to one Confluence page.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Try it:&lt;/strong&gt; read the &lt;a href="https://blog.postman.com/a-developers-guide-to-building-and-testing-ai-agents-with-astropods-and-the-postman-plugin/?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=a-developers-guide-to-building-and-testing-ai-agents-with-as&amp;amp;utm_content=devto-01" rel="noopener noreferrer"&gt;full guide on the Postman blog&lt;/a&gt;. Then install the Postman plugin in Claude Code and ask it to test every API your agent uses.&lt;/p&gt;

&lt;p&gt;A question for anyone running agents against real APIs: which response field does your agent depend on that nothing currently asserts?&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Pooja Mistry is a developer advocate at Postman.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>testing</category>
      <category>api</category>
      <category>agents</category>
    </item>
    <item>
      <title>Stop copying Box credentials into every AI agent</title>
      <dc:creator>Postman</dc:creator>
      <pubDate>Thu, 26 Nov 2026 16:20:03 +0000</pubDate>
      <link>https://dev.to/postman/stop-copying-box-credentials-into-every-ai-agent-eio</link>
      <guid>https://dev.to/postman/stop-copying-box-credentials-into-every-ai-agent-eio</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://blog.astropods.com/blog/building-business-workflows-with-astropods-and-box/?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=building-business-workflows-with-astropods-and-box&amp;amp;utm_content=devto-01" rel="noopener noreferrer"&gt;Astropods blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Stop copying Box credentials into every AI agent.&lt;/strong&gt; If every agent you ship needs access to sensitive files, you have probably ended up with shared service accounts or credentials pasted into each agent. You can't audit them, scope them to a person, or shut them off for one agent. This walkthrough of a fictional lender's four-agent mortgage workflow shows a different shape. A single centrally managed Connector gives each agent short-lived, user-scoped Box access. Each agent ships as a versioned blueprint that security can review. Handoffs follow explicit rules, and people keep every approval. The full source is public, so you can clone it and run it yourself.&lt;/p&gt;

&lt;p&gt;Acme Bank, a fictional lender, has built AI agents that handle the work and the handoffs at each stage of a mortgage, from application intake to closing. When a borrower applies, the bank creates a dedicated Box folder for the application, and the borrower uploads supporting documents such as pay stubs, bank statements and tax forms into it. From there, the bank's processors, risk assessors, underwriters and closers use agents for the checking and cross-referencing that used to be manual. Each loan moves through its stages faster, and each person starts from a prepared report.&lt;/p&gt;

&lt;h2&gt;
  
  
  The agent fleet
&lt;/h2&gt;

&lt;p&gt;Four agents work alongside people to take a loan from open to close. An agent starts when a file or report lands in a folder. It does the work that used to take hours and writes its findings back to Box for the person who owns that stage. That person reviews the report and makes the approval or lending decision. Here are the four, in the order a loan reaches them:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Mortgage Intake.&lt;/strong&gt; Checks a borrower's documents for missing files and numbers that don't add up, and saves an intake report for the loan officer.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Income Asset.&lt;/strong&gt; Prepares the Income and Asset Worksheet for a processor: qualifying income, verified funds and unsourced large deposits, checked against the lender's guidelines in Box.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Underwriting.&lt;/strong&gt; Builds the underwriting brief when a processor submits a loan file, covering key numbers, what is ready, what is missing and which issues are unresolved, with links to the evidence in Box.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Closing.&lt;/strong&gt; Reads a borrower's Closing folder in Box and answers what changed before closing and which documents still need review or signatures.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Blueprints: an inventory and lifecycle record for every agent
&lt;/h2&gt;

&lt;p&gt;Each of the four agents is published as an Astropods blueprint. A blueprint is a versioned package that defines what an agent does and how it runs.&lt;/p&gt;

&lt;p&gt;Agents get built quickly and by many people, so it is easy for an organization to lose track of them. A bank cannot accept that. Before an agent that reads loan files goes live, someone has to be able to say who wrote it, who looks after it and what it affects. The blueprint holds those answers and serves as the inventory record for the agent across its whole life. It tells you:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Who built the agent, and who maintains it today?&lt;/li&gt;
&lt;li&gt;How is it built, including the framework and model it runs on and the tools it can call?&lt;/li&gt;
&lt;li&gt;Who scans it for vulnerabilities, and what did the last scan find?&lt;/li&gt;
&lt;li&gt;Which internal systems does it connect to, and which credentials does it use?&lt;/li&gt;
&lt;li&gt;Which version is running, and where is it deployed?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Take the closing agent, which reads every borrower's Closing folder. The bank's security team can open its blueprint and see the owner, the connections and the scan history before approving it. Each deployment traces back to a blueprint version, so when a vulnerability turns up, the bank can tell which agents it affects.&lt;/p&gt;

&lt;p&gt;Developers code the agent using a framework of their choice and publish it as a blueprint. Ownership, connections and versions are then managed in one place, outside each agent's own code.&lt;/p&gt;

&lt;h2&gt;
  
  
  The agent fleet in action
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Turning mortgage documents into structured data with Box AI Extract
&lt;/h3&gt;

&lt;p&gt;The agents hand W-2s, pay stubs, bank statements and loan disclosures to the Box AI Extract API, which returns structured fields such as borrower name, annual income, account balance, down payment and document period.&lt;/p&gt;

&lt;p&gt;Box AI extracts the facts and Claude turns the findings into reports. Deterministic rules in code decide which abnormalities get flagged.&lt;/p&gt;

&lt;p&gt;In the demo, the intake agent marks Sarah Chen's application as Needs Review for three reasons: her W-2 is missing, her application states $120,000 in annual income while her pay stubs support only $96,000, and her $50,000 down payment exceeds the $32,000 documented balance. The agent then publishes a Mortgage Intake Review report to the Agent Reports folder in Sarah's Box folder.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Astropods
&lt;/h2&gt;

&lt;p&gt;Acme Bank's agents run on two layers. Box is the secure content layer and document intelligence: it holds the application folders and understands what's in them. Astropods is the agent infrastructure on top, where agents are packaged, deployed, connected to Box, coordinated and monitored.&lt;/p&gt;

&lt;p&gt;The bank needs that second layer because agents need a common home. Without one, every team builds its own, and the bank ends up with agents it can't inventory or audit. Astropods provides the essentials out of the box:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A place to run.&lt;/strong&gt; One runtime for every agent, so teams spend their time on the agent itself.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Access control.&lt;/strong&gt; Who can use which agent, and what each agent can reach, is set in one place.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Policy enforcement.&lt;/strong&gt; Guardrails apply to every agent automatically.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Audit trails.&lt;/strong&gt; Every action an agent takes is recorded, so the bank can show what happened and why.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A feedback loop.&lt;/strong&gt; Builders get historical production data, so agents improve from real behavior.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Astropods Connectors: use Box without putting credentials in every agent
&lt;/h2&gt;

&lt;p&gt;Agents that touch borrower files need real access to Box, and the way they get it decides how secure the agent is and how quickly it can be shut down. The common shortcuts are shared service accounts and credentials copied into each agent. Both are hard to audit and cannot be scoped to a person, which leaves no clean way to cut off a single misbehaving agent. A Connector ties access to the user and manages it in one place. Developers never handle credentials, and the bank can trace anything an agent did back to the person whose access it used. If an agent goes rogue, disconnecting the Connector works as a kill switch.&lt;/p&gt;

&lt;p&gt;All four agents use the Astropods Box Connector.&lt;/p&gt;

&lt;p&gt;The user connects their Box account once in Astropods and explicitly allows an agent to use it. During an active interaction, the agent receives a short-lived token for that user and acts with that user's existing Box permissions. Each agent declares the same Box Connector and Astropods manages it centrally, so the team distributed no Box credentials across the four agents and wrote no separate authentication flow for each blueprint. The Box permission model carries through: if the user cannot open a borrower folder, the agent cannot open it either. Access can be reviewed or revoked from the Connectors settings.&lt;/p&gt;

&lt;h2&gt;
  
  
  Coordinating agents and people
&lt;/h2&gt;

&lt;p&gt;The four agents need to work together the way the people at the bank do. An application moves from intake to processing to underwriting to closing, with a handoff and a sign-off at each step. Agents that each work alone cannot reproduce that. Something has to read what each agent produced and decide who gets the work next. Two building blocks handle this: a judge and an overseer.&lt;/p&gt;

&lt;p&gt;The judge reads each agent's result and decides what it means. Every agent opens its result with a predictable status line, such as:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Intake status: COMPLETE
Worksheet status: REVIEW
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The judge applies explicit rules to that status line, which makes routing consistent and explainable.&lt;/p&gt;

&lt;p&gt;The overseer acts on the judge's decision and hands the next task to the right agent or person. A complete intake starts the income and asset worksheet, and an intake issue goes to the processor for review.&lt;/p&gt;

&lt;p&gt;People take part in the workflow as full participants. The processor and underwriter receive tasks just as the agents do, and sign-off and lending decisions belong to them alone. An agent can prepare the worksheet or the underwriting brief but cannot approve either.&lt;/p&gt;

&lt;p&gt;In the demo, a second applicant, James Wilson, moves from intake to the worksheet, pauses for processor review and continues to the underwriting brief. Sarah Chen's application stops with the processor right after intake, because her intake came back as Needs Review.&lt;/p&gt;

&lt;h2&gt;
  
  
  Astropods Insights: understand behavior, performance and cost
&lt;/h2&gt;

&lt;p&gt;Once agents run in a real workflow, different people need different answers from the same data. Astropods Insights serves both from one place.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;For the bank director: is it worth it?&lt;/strong&gt; The director has to decide whether to keep funding the agents or retire them, and that is an ROI calculation. Astropods Insights supplies the inputs. As the agents run, Insights records usage and spend by agent and by model, so the director gets the numbers without a reporting project of their own. It answers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How many applications has each agent handled?&lt;/li&gt;
&lt;li&gt;Are people and agents working together, and if so who uses each agent and how often?&lt;/li&gt;
&lt;li&gt;What do the agents cost to operate, across infrastructure and AI tokens?&lt;/li&gt;
&lt;li&gt;Which agent drives most of the cost?&lt;/li&gt;
&lt;li&gt;What did the agents do on this loan, and what did it cost?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;For agent builders: is it safe and getting better?&lt;/strong&gt; Builders need to see inside a run. Astropods gives them that view without a separate observability system. The Astropods agent adapter records traces automatically to cover each model request and tool call. These form the basis for agent evals, which let builders test changes against real production behavior and keep operations safe. Together they answer questions like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Where did a failed loan run stop?&lt;/li&gt;
&lt;li&gt;Did a model call fail, or did a deterministic rule flag the application?&lt;/li&gt;
&lt;li&gt;Which Box tools did the agent call?&lt;/li&gt;
&lt;li&gt;How long does document extraction take?&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Model choice and cost control
&lt;/h2&gt;

&lt;p&gt;Different jobs call for different models. Extracting fields from a pay stub and explaining a discrepancy to an underwriter place different demands on a model, and models differ in cost and in how well they handle a given task. New models are also arriving often, so the right choice today may be the wrong one in a few weeks. A single model for every agent overpays on some steps and underperforms on others.&lt;/p&gt;

&lt;p&gt;Box AI Extract exposes this choice directly. A team can pick from the models Box supports and override the default configuration upfront in the extract request, or give the agent instructions to make that choice at run time. For struct and table fields, Box recommends the Enhanced Extract Agent.&lt;/p&gt;

&lt;p&gt;The Astropods AI Gateway makes it easier to route agents to different models. The model is chosen at deployment time, and no agent needs its own provider key, so nobody has to mint new keys each time a team wants to try another provider. Teams that prefer to bring their own provider credentials can do that and keep the same monitoring.&lt;/p&gt;

&lt;p&gt;Picking the right model is a recurring job, and a hard one. Finding the cheapest model that still holds quality takes testing against real traces, and the answer varies as models and workloads change. That is barely manageable for four agents. As adoption grows and the fleet scales, people cannot keep up by hand, and the practical answer is agents that watch your agents. Insights gives people the spend and traces to start from. Astropods is heading toward pods that take on the rest, such as a cost optimizer pod that tries cheaper models and keeps the ones that maintain quality. The Astropods post &lt;em&gt;Who looks after the agents?&lt;/em&gt; explains how pods work alongside people.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;Astropods is both framework and model agnostic, so developers start with the tools they are familiar with, publish their agents as reusable blueprints, connect them to Box, then deploy and monitor their agents from one platform.&lt;/p&gt;

&lt;p&gt;Box offers a free Developer plan for building, prototyping and testing. It includes Box API access, developer tools, monthly API capacity and Box AI Units, so developers can experiment with Box AI Extract and the Box MCP server without beginning in a production Box environment.&lt;/p&gt;

&lt;p&gt;The source code and demo kit are available at &lt;a href="https://github.com/astropods/box-agents" rel="noopener noreferrer"&gt;github.com/astropods/box-agents&lt;/a&gt;. Clone it to run the four-agent workflow yourself.&lt;/p&gt;

&lt;p&gt;The Astropods blueprints for Box are available at astropods.com/acme-bank.&lt;/p&gt;

&lt;p&gt;Build, run, and govern your agents in one place.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Read the &lt;a href="https://blog.astropods.com/blog/building-business-workflows-with-astropods-and-box/?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=building-business-workflows-with-astropods-and-box&amp;amp;utm_content=devto-01" rel="noopener noreferrer"&gt;original post&lt;/a&gt;. Questions about the Connector model or the judge's routing rules? Ask in the comments.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>security</category>
      <category>agents</category>
      <category>architecture</category>
    </item>
    <item>
      <title>Your coding agent leaked the key. It was only following orders.</title>
      <dc:creator>Postman</dc:creator>
      <pubDate>Thu, 26 Nov 2026 05:20:04 +0000</pubDate>
      <link>https://dev.to/postman/your-coding-agent-leaked-the-key-it-was-only-following-orders-4ea9</link>
      <guid>https://dev.to/postman/your-coding-agent-leaked-the-key-it-was-only-following-orders-4ea9</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://blog.postman.com/your-coding-agent-leaked-the-key-it-was-only-following-orders/?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=your-coding-agent-leaked-the-key-it-was-only-following-order&amp;amp;utm_content=devto-01" rel="noopener noreferrer"&gt;Postman blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Did you commit your agent's allow rules? One git log tells you.&lt;/strong&gt; If you use Claude Code, Cursor or Gemini against real APIs and databases, your agent has probably been writing down the exact commands you approved, credentials included. This post covers how that happens, the commands to check and clean up your repo, and how to give your agent a secret reference instead of a key worth stealing.&lt;/p&gt;

&lt;p&gt;We've all done it. Your coding agent asks, for the fourteenth time today, whether it can run a command you've already approved thirteen times. You click the button that makes the question go away.&lt;/p&gt;

&lt;p&gt;That button has a very good memory. Security firm Apiiro searched public GitHub repositories for one of the files where an agent keeps the commands you've approved: Claude Code's &lt;code&gt;.claude/settings.local.json&lt;/code&gt;. Out of 104,185 public copies, 1,122 held a real secret. Once you add git history, shared settings files and saved agent chat transcripts, the count reached 2,539 secrets across 1,994 repositories.&lt;/p&gt;

&lt;h2&gt;
  
  
  How a password ends up in a settings file
&lt;/h2&gt;

&lt;p&gt;Nobody sets out to commit their database password. What happens is much more ordinary. You ask the agent to check something in the database or call an API. It reads the credential it needs from your project's config and proposes a perfectly reasonable command with that credential filled in. You approve it for good, and the agent dutifully saves the exact command as an allow rule (illustrative values):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"permissions"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"allow"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
      &lt;span class="s2"&gt;"Bash(PGPASSWORD=EXAMPLE-ONLY psql -h db.example.com -U app)"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="s2"&gt;"Bash(curl -H \"Authorization: Bearer sk-live-EXAMPLE-ONLY\" https://api.example.com/v1/orders)"&lt;/span&gt;
    &lt;span class="p"&gt;]&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The file is meant to stay on your laptop, but nothing in the repository says so, and a broad &lt;code&gt;git add&lt;/code&gt; doesn't ask. Secret scanners also struggle here. A password sitting after &lt;code&gt;PGPASSWORD=&lt;/code&gt; looks like any other word to a tool that searches for known key formats. When the researchers ran two popular open-source scanners over the leaked files, 215 of them got past both.&lt;/p&gt;

&lt;p&gt;This study happened to look at one agent's settings file, but the pattern isn't about one tool. Every agent harness writes things down: approved commands, chat transcripts, memory files, generated scripts. That's why Apiiro's advice covers &lt;code&gt;.claude/&lt;/code&gt;, &lt;code&gt;.cursor/&lt;/code&gt;, &lt;code&gt;.gemini/&lt;/code&gt; and &lt;code&gt;.specstory/&lt;/code&gt; directories alike, and suggests treating all of them the way you'd treat a &lt;code&gt;.env&lt;/code&gt; file.&lt;/p&gt;

&lt;p&gt;An agent is very good at taking what you give it and putting it to work. If you give it a working key, that key ends up in whatever it builds, and you can't count on every one of those places staying private.&lt;/p&gt;

&lt;h2&gt;
  
  
  Give the agent something not worth stealing
&lt;/h2&gt;

&lt;p&gt;The standard advice is sound: rotate first, ignore the local file, keep secrets out of commands, approve patterns instead of exact strings, and scan agent folders. Taken together, though, it asks developers to handle credentials perfectly, many times a day. A sturdier fix is to change what the agent holds in the first place. That's the idea behind Passport from Postman.&lt;/p&gt;

&lt;p&gt;With Passport, your project's config holds a secret reference, something like &lt;code&gt;{{vault:&amp;lt;secret-reference-id&amp;gt;}}&lt;/code&gt;, instead of the real key. The real secret stays in the store you already run.&lt;/p&gt;

&lt;p&gt;So when the agent builds a command from that config, the command carries the reference, and so does the allow rule it saves (illustrative values, using &lt;code&gt;passport request&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"permissions"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"allow"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
      &lt;span class="s2"&gt;"Bash(passport request \"https://api.example.com/v1/orders\" -H \"Authorization: Bearer {{vault:&amp;lt;secret-reference-id&amp;gt;}}\")"&lt;/span&gt;
    &lt;span class="p"&gt;]&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If that file ends up on GitHub, whoever finds it gets a reference that's bound to your identity and doesn't work from their machine. You'd still tidy it up, but it's no longer an incident.&lt;/p&gt;

&lt;p&gt;Passport has limits. It brokers HTTP API calls, so database passwords and SSH logins need their own fixes, such as short-lived database credentials and SSH certificates. And a key that has already leaked needs rotating no matter what you move to next.&lt;/p&gt;

&lt;h2&gt;
  
  
  If your agent has been keeping notes
&lt;/h2&gt;

&lt;p&gt;Rotate any exposed key first, then clean up the repo, because git history and forks keep copies. These commands check whether agent files were ever committed in a repo and stop tracking the local settings file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git log --all --oneline -- .claude/ .cursor/ .gemini/
git rm --cached .claude/settings.local.json
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;".claude/settings.local.json"&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&amp;gt;&lt;/span&gt; .gitignore
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;While you're in there, delete any allow rules that contain a real secret. Prefer patterns like &lt;code&gt;Bash(npm run:*)&lt;/code&gt; over single commands.&lt;/p&gt;

&lt;p&gt;To see what your agent is sending before you change anything, try Lens, which comes with the free Passport CLI Community Edition. Run it around your agent for a day and see which keys show up.&lt;/p&gt;

&lt;p&gt;None of this is a reason to stop using coding agents. It's a reason to assume that anything an agent can see can eventually leak, whoever built the agent, and to plan around that. Then you can keep clicking "don't ask again" with a clear conscience, because the thing it remembers won't be a password.&lt;/p&gt;




&lt;p&gt;Read the &lt;a href="https://blog.postman.com/your-coding-agent-leaked-the-key-it-was-only-following-orders/?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=your-coding-agent-leaked-the-key-it-was-only-following-order&amp;amp;utm_content=devto-01" rel="noopener noreferrer"&gt;full post on the Postman blog&lt;/a&gt; for the cleanup commands and to see how Passport secret references keep real keys out of your agent's files.&lt;/p&gt;

</description>
      <category>security</category>
      <category>ai</category>
      <category>git</category>
      <category>devops</category>
    </item>
    <item>
      <title>Agentic SDLC Part 2: Develop Against the Design Package</title>
      <dc:creator>Postman</dc:creator>
      <pubDate>Wed, 25 Nov 2026 22:20:01 +0000</pubDate>
      <link>https://dev.to/postman/agentic-sdlc-part-2-develop-against-the-design-package-34cn</link>
      <guid>https://dev.to/postman/agentic-sdlc-part-2-develop-against-the-design-package-34cn</guid>
      <description>&lt;p&gt;&lt;em&gt;This article was originally published on the &lt;a href="https://blog.postman.com/agentic-sdlc-part-2-develop-against-the-design-package/?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=agentic-sdlc-part-2-develop-against-the-design-package&amp;amp;utm_content=devto-01" rel="noopener noreferrer"&gt;Postman blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The happy path works. The bugs hide in the other three rows.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you build features with a coding agent like Claude Code, you know the pattern. The agent nails the happy path on the first try. What it does when an upstream service denies, errors or times out is another matter, and you end up re-explaining the same context in every prompt. This post is about fixing both. Keep the reviewed design in the repo so the prompt stays short. Make the mocks controllable so you can prove every failure path before anyone else sees the code.&lt;/p&gt;

&lt;p&gt;This is part 2 of a 3-part series on the agentic SDLC. In part 1, the design phase produced a package for the architect to review: saved Context Graph findings, spec.md, the OpenAPI contract, governance checks, design tests, collections, mocks, and simulations. Now the developer picks it up.&lt;/p&gt;

&lt;p&gt;The developer's job in an agentic SDLC looks different from the usual one. There's less time spent working out what to build, because the design package already answers that. There's more time spent checking that what got built matches the design. This post walks through that handoff: what the developer starts with, how Claude builds the check-in feature, and how the code gets checked against simulated dependencies before anyone else sees it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Develop against the design package
&lt;/h2&gt;

&lt;p&gt;Once the architect approves, it's time for the developer to start implementation. This is where the time we spent on design should start paying back.&lt;/p&gt;

&lt;p&gt;I am asking Claude to implement the appointment check-in contract, reuse the existing appointment and eligibility interfaces, and build against isolated simulated dependencies. The rule stays explicit: do not change appointment status unless eligibility is approved.&lt;/p&gt;

&lt;p&gt;Notice how much I do not have to explain again. The API choices, the error cases, and the instructions for running the integration already live in the design package. Another developer or agent can read them and have full context.&lt;/p&gt;

&lt;p&gt;That last point matters more than it first appears. Without a design package, the developer prompt has to carry all of the context: which services to call, how to authenticate, what to do on a timeout. Every detail left out becomes a guess. With the package, the prompt can stay short because the repository holds the answers. A new teammate, or a different agent, can pick up the same work and reach the same decisions.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the developer starts with
&lt;/h2&gt;

&lt;p&gt;The package from part 1 is the input to this phase: the Context Graph findings, spec.md, the OpenAPI contract, governance checks, design tests, collections, mocks, and simulations. Each piece has a job during development.&lt;/p&gt;

&lt;p&gt;The prompt also states one rule outright: do not change appointment status unless eligibility is approved. Writing the rule into the request and encoding it as a test gives you two chances to catch a violation. If the code ever marks a patient as checked in without an approved eligibility response, a test fails.&lt;/p&gt;

&lt;h2&gt;
  
  
  Build the check-in feature
&lt;/h2&gt;

&lt;p&gt;Claude takes the design we just reviewed and builds the check-in feature. It connects the existing appointment and eligibility APIs and checks coverage before marking the patient as checked in.&lt;/p&gt;

&lt;p&gt;Then we need to see whether the code follows that design. Approved coverage should allow check-in. Denied coverage, an error, or a timeout should leave the appointment unchanged.&lt;/p&gt;

&lt;p&gt;The order of operations is the whole feature. The code asks the eligibility API about coverage first, and only a clear approval leads to an update on the appointment. Everything else leaves the appointment exactly as it was, whether that's a denial, an error, or a response that never arrives. Here are the four outcomes side by side:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Eligibility response&lt;/th&gt;
&lt;th&gt;Expected appointment status&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Approved&lt;/td&gt;
&lt;td&gt;Checked in&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Denied&lt;/td&gt;
&lt;td&gt;Unchanged&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Error&lt;/td&gt;
&lt;td&gt;Unchanged&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Timeout&lt;/td&gt;
&lt;td&gt;Unchanged&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A feature like this can look finished while the failure paths are still wrong. The happy path works on the first try, and the bugs hide in the other three rows. That's why the next step spends its effort on the failure cases.&lt;/p&gt;

&lt;h2&gt;
  
  
  Run the new code against the design mocks
&lt;/h2&gt;

&lt;p&gt;Claude uses the Postman plugin's api-simulation skill to run the new code against the mock APIs created during design. These stand in for the appointment and eligibility services, so we can test without starting those services. The api-mocking skill helps adjust their behavior when needed.&lt;/p&gt;

&lt;p&gt;We can make eligibility approve, deny, fail, or respond too slowly. After each request, we read the appointment back from the mock to check that its status matches what we expected.&lt;/p&gt;

&lt;p&gt;With api-testing, Claude runs the design collection against the new code: 27 requests and 30 assertions pass, plus six outage assertions. We now have a working feature checked against the design, ready for independent verification.&lt;/p&gt;

&lt;p&gt;Two habits in this step are worth borrowing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Control the dependency, not only the request.&lt;/strong&gt; Because the eligibility mock can approve, deny, fail, or stall on demand, you can reproduce an upstream failure in seconds. Waiting for a real service to go down isn't a test plan.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Read the state back.&lt;/strong&gt; A response that says "check-in refused" tells you what the code claimed. Reading the appointment from the mock afterward tells you what the code did. The feature's whole promise is that the status stays unchanged on failure, so that's the thing to check.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The numbers above are specific for a reason. The 27 requests and 30 assertions come from the design collection running against the new code, and the six outage assertions cover the failure scenarios on top of that. These figures describe this example feature only. Passing here means the code follows the design. It doesn't yet mean the design is right, which is why a separate person tests the feature next.&lt;/p&gt;

&lt;h2&gt;
  
  
  Review the workspace assets and hand off to QA
&lt;/h2&gt;

&lt;p&gt;The Postman workspace shows the collection, mocks, and simulation that were created.&lt;/p&gt;

&lt;p&gt;The output from development is the implemented check-in feature. That includes the code that connects the appointment and eligibility APIs and applies the rules from the design. The developer has checked that integration against the simulations.&lt;/p&gt;

&lt;p&gt;Now the developer hands this off to the QA engineer, who will independently test the feature against the approved contract.&lt;/p&gt;

&lt;p&gt;Keep the limits of this phase in mind. The simulations are stand-ins built from the design, so a pass tells you the code behaves correctly against those stand-ins. It doesn't tell you the real appointment and eligibility services behave the same way. The developer's checks are a strong first line, and the QA engineer in part 3 supplies the independent second look.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tips for developing against a design package
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Keep the package in the repository.&lt;/strong&gt; spec.md, the contract, and the collections only help the next agent if it can read them from the checkout.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Say the rule out loud in the prompt.&lt;/strong&gt; "Do not change appointment status unless eligibility is approved" is short enough to repeat, and it gives the agent a boundary to check its own work against.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Run the failure cases first.&lt;/strong&gt; If the denial, error, and timeout paths pass, the approved path rarely surprises you.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Treat a failing assertion as a design question.&lt;/strong&gt; When the code and the collection disagree, decide which one is wrong before you change either.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it yourself
&lt;/h2&gt;

&lt;p&gt;If you ran the design phase from part 1, open Claude Code in the same repo with the design package in place and give it the implementation request. Swap in the names from your own feature:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Implement the appointment check-in contract, reuse the existing appointment and eligibility interfaces, and build against the isolated simulated dependencies. Do not change appointment status unless eligibility is approved.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then run the design collection against the new code with the Postman CLI:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;postman collection run path/to/design-collection.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace the path with wherever the design phase saved your collection. Make the eligibility mock deny, fail, and respond slowly in turn, and read the appointment back from the mock after each request. If the status changes when it shouldn't, you found the bug before QA did.&lt;/p&gt;

&lt;p&gt;Once the run is clean, look at the workspace assets and confirm that the collection, mocks, and simulation are all there for the QA engineer to pick up. A handoff only works if the next person can find what you built.&lt;/p&gt;

&lt;p&gt;Part 3 follows the QA engineer, who tests the running feature against the approved contract.&lt;/p&gt;

&lt;h2&gt;
  
  
  Resources
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://blog.postman.com/agentic-sdlc-part-2-develop-against-the-design-package/?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=agentic-sdlc-part-2-develop-against-the-design-package&amp;amp;utm_content=devto-01" rel="noopener noreferrer"&gt;original post&lt;/a&gt; links to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Announcing the Postman Plugin for Claude Code&lt;/li&gt;
&lt;li&gt;Collection commands (lint, run)&lt;/li&gt;
&lt;li&gt;Mock server commands&lt;/li&gt;
&lt;li&gt;The Postman CLI overview&lt;/li&gt;
&lt;li&gt;Query the Context Graph with an MCP client&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Which failure path has bitten you hardest when an agent wrote the integration code: denials, errors, or timeouts?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>api</category>
      <category>testing</category>
      <category>postman</category>
    </item>
    <item>
      <title>Agentic SDLC Part 1: Design with the Context Graph</title>
      <dc:creator>Postman</dc:creator>
      <pubDate>Wed, 25 Nov 2026 15:20:01 +0000</pubDate>
      <link>https://dev.to/postman/agentic-sdlc-part-1-design-with-the-context-graph-1hdd</link>
      <guid>https://dev.to/postman/agentic-sdlc-part-1-design-with-the-context-graph-1hdd</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://blog.postman.com/agentic-sdlc-part-1-design-with-the-context-graph/?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=agentic-sdlc-part-1-design-with-the-context-graph&amp;amp;utm_content=devto-01" rel="noopener noreferrer"&gt;Postman blog&lt;/a&gt;. The design-phase recordings are in the original post.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Your coding agent can't see the service it's about to rebuild.&lt;/strong&gt; If you run Claude Code on a multi-service system, you know the pattern. The agent writes working code fast, but one repository doesn't show the API your team already owns or the caller your change will break, so it guesses. This post walks through a design phase that replaces those guesses with evidence. It queries the Postman Context Graph before any code exists, applies governance at design time, and hands the next agent a &lt;code&gt;spec.md&lt;/code&gt; instead of a vague prompt. There are two setup commands at the end so you can try it on your own repo.&lt;/p&gt;




&lt;p&gt;This is part 1 of a 3-part series on the agentic SDLC. We follow one feature through design, development, and testing, and each phase hands its output to the next person. The architect reviews the design, the developer builds against it, and the QA engineer tests the result independently. Every post has a recording of the work, and the text below is the talk track that goes with it.&lt;/p&gt;

&lt;p&gt;The feature is an appointment check-in for a healthcare app. It's a demo example, small enough to follow end to end, and it has the kind of dependency problems real teams hit:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;an existing service you might rebuild by accident&lt;/li&gt;
&lt;li&gt;a consumer you didn't know about&lt;/li&gt;
&lt;li&gt;a failure mode where the wrong behavior means a patient gets checked in without active coverage&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This first post covers design, the phase where most of the decisions get made.&lt;/p&gt;

&lt;h2&gt;
  
  
  Design the appointment check-in flow
&lt;/h2&gt;

&lt;p&gt;I have a healthcare app, and I want to add an appointment check-in feature that confirms a patient's insurance coverage is active before marking them checked in. If coverage is denied, or we can't complete the eligibility check, the appointment status should stay unchanged.&lt;/p&gt;

&lt;p&gt;With the agentic SDLC, the design, development, and testing processes are a bit different. We spend more time up front figuring out exactly what the agent needs to build and giving it the context to do that correctly.&lt;/p&gt;

&lt;p&gt;I could give Claude the description of the feature and ask it to start coding. But I still have to answer a few things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Which APIs should I call?&lt;/li&gt;
&lt;li&gt;Which existing APIs should we reuse?&lt;/li&gt;
&lt;li&gt;How do we authenticate?&lt;/li&gt;
&lt;li&gt;What happens when that service is down?&lt;/li&gt;
&lt;li&gt;Who already relies on check-in behaving the way it does today?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That is where more of the work moves in an agentic SDLC. The actual implementation gets faster. Getting those decisions right takes more deliberate design, because the agent can turn an assumption into working code very quickly.&lt;/p&gt;

&lt;p&gt;Those five questions are the design phase in miniature, and each one maps to something you can produce before any code exists.&lt;/p&gt;

&lt;p&gt;If you skip any of these, the agent fills the gap with a guess. A guess that compiles and passes a quick test is the hardest kind of mistake to catch later, which is why this post spends its time before the first line of implementation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Query the Context Graph before writing code
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;Design, part 1: Claude queries the Context Graph, retrieves the governance rules, and uses the Postman plugin skills. The recording is in the original post.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;So I start with the Postman Context Graph. It is a private, authenticated graph connecting API information, code, and connected runtime sources. It gives the agent relationships that it may never find in this checkout.&lt;/p&gt;

&lt;p&gt;For this feature, I query the Context Graph to find out which APIs already exist, what check-in depends on, and who consumes it. Then I ask which existing APIs we can reuse and how to call them, including how to authenticate and pass along the caller's identity. I want Claude to build on what we already have, instead of creating another service that does the same thing.&lt;/p&gt;

&lt;p&gt;The Context Graph finds an existing eligibility check. That means we can reuse an API instead of inventing another coverage implementation. It also finds a waitlist service that calls appointment check-in. Now I have an actual consumer to investigate.&lt;/p&gt;

&lt;p&gt;Both findings are things an agent reading a single repository can't see:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A second coverage implementation would work fine in a demo and quietly drift from the real one.&lt;/li&gt;
&lt;li&gt;A consumer like the waitlist service means check-in has callers with expectations of their own, so a change to its behavior is a change to their behavior too.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Finding that during design costs a query. Finding it after release costs an incident.&lt;/p&gt;

&lt;p&gt;A good habit when you run this yourself: treat what the graph returns as leads to confirm, not facts to copy. Later in the video Claude cross-checks the findings against the repository before they go into the brief, and you should expect the same from any agent you work with.&lt;/p&gt;

&lt;h2&gt;
  
  
  Apply governance rules and the Postman plugin skills
&lt;/h2&gt;

&lt;p&gt;Alongside discovery, Claude retrieves the team's actual governance rules: Standard, OWASP, and AI Readiness. It reads the repository's Spectral rules too. Those cover security declarations, operation identifiers, documented errors, and check-in refusals. The ai-readiness skill guides its assessment of whether the API is clear enough for another agent to use.&lt;/p&gt;

&lt;p&gt;The Postman Claude Code plugin supplies instructions for each API task. Those skills produce the assets we hand to the developer, alongside the spec and lint evidence. Here they are as a quick reference:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Skill&lt;/th&gt;
&lt;th&gt;What it produces in design&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;api-documentation&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The contract&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;api-testing&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The design checks and the collection&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;api-mocking&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Dependency stand-ins&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;api-simulation&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;A runnable environment assembled from the above&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Applying governance at design time matters because the rules are cheapest to follow before the code exists. Security declarations, operation identifiers, and documented errors take a few lines in a contract and a lot of rework to retrofit. The AI-readiness check carries extra weight in this workflow, since the next consumer of this API may be another agent, not a person reading a docs page.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hand the developer a spec.md
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;Design, part 2: Claude writes the spec.md brief and packages the design assets. The recording is in the original post.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;One of the assets Claude is creating is the spec markdown file. This is what the next agent, the developer, will use to actually implement and develop this design.&lt;/p&gt;

&lt;p&gt;The Context Graph findings go into it, cross-checked against the repository. It names the existing APIs, their methods and paths, authentication requirements, environment variables, and the mocks that stand in for them. It records consumers, missing owners, disagreements between sources, and decisions that still need review.&lt;/p&gt;

&lt;p&gt;The brief also spells out call order, error behavior, timeouts, and how to run the integration check. The OpenAPI spec describes the interface. &lt;code&gt;spec.md&lt;/code&gt; explains how this feature fits into the system.&lt;/p&gt;

&lt;p&gt;That split is worth copying. An OpenAPI document tells a reader what a request and response look like. It doesn't say which service gets called first, what the feature does when the second call times out, or who else depends on the endpoint. &lt;code&gt;spec.md&lt;/code&gt; carries that context in plain language, so the developer agent doesn't have to infer it from the contract.&lt;/p&gt;

&lt;p&gt;Notice also what the brief records about its own gaps: missing owners, disagreements between sources, and open decisions. A design package that admits what it doesn't know gives the architect something specific to review instead of a polished document that hides the risky parts.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the developer gets from design
&lt;/h2&gt;

&lt;p&gt;So what does the developer get from design?&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The saved Context Graph answers preserve the evidence behind our API choices.&lt;/li&gt;
&lt;li&gt;The draft &lt;code&gt;spec.md&lt;/code&gt; explains what to build, and the OpenAPI spec defines the request, response, and error contract.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;governance.md&lt;/code&gt; and the lint and AI-readiness reports show which rules were applied and what still needs attention.&lt;/li&gt;
&lt;li&gt;The Postman Collections turn expected behavior into runnable requests and assertions, while &lt;code&gt;tests.md&lt;/code&gt; explains their coverage and limits.&lt;/li&gt;
&lt;li&gt;Stateful appointments and eligibility mocks let us control coverage responses and check whether appointment status changed.&lt;/li&gt;
&lt;li&gt;Normal, outage, and timeout simulations put those dependencies together into repeatable environments.&lt;/li&gt;
&lt;li&gt;The simulation's context file records its assumptions, supporting evidence, and what remains unverified.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All of this is sent to the architect, who now has to review it before development begins.&lt;/p&gt;

&lt;h2&gt;
  
  
  Review the design package as the architect
&lt;/h2&gt;

&lt;p&gt;The architect review is the first of the three handoffs, and it's where a named human takes responsibility for the design. If you're in that seat, these checks tell you the most:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Confirm that each existing API Claude wants to reuse is the one your team owns and maintains today.&lt;/li&gt;
&lt;li&gt;Read the consumer list and ask whether each consumer has been told about the change.&lt;/li&gt;
&lt;li&gt;Look at the decisions still marked for review and settle them before development starts.&lt;/li&gt;
&lt;li&gt;Open the simulation's context file and read the assumptions. A mock only shows what its author told it to show, so the assumptions are where mistakes hide.&lt;/li&gt;
&lt;li&gt;Check that the governance and lint reports list what still needs attention, not only what passed.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The package is built to make this review fast. The saved Context Graph answers sit next to the brief, and every expected behavior is a runnable request, so you can run the checks yourself instead of taking the design on faith.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it yourself
&lt;/h2&gt;

&lt;p&gt;Install the plugin from the official marketplace, then connect your repo to a Postman workspace:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude plugin install postman@claude-plugins-official
postman init
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The first command installs the Postman plugin and makes its skills available to Claude. The second connects the repository to a workspace and creates the &lt;code&gt;.postman/resources.yaml&lt;/code&gt; file that the other skills read before they do any work.&lt;/p&gt;

&lt;p&gt;Open Claude Code in the repo and start from the feature request instead of from code. Swap in a feature from your own app:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;I want to add an appointment check-in feature that confirms a patient's insurance coverage is active before marking them checked in. If coverage is denied, or we can't complete the eligibility check, the appointment status should stay unchanged. Use the Context Graph to find which existing APIs we can reuse, what check-in depends on, and who consumes it.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then work through the output in order:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Read which existing APIs the Context Graph found, and decide whether you'd reuse them.&lt;/li&gt;
&lt;li&gt;Look for consumers you didn't know about. Each one is a conversation to have before you change behavior.&lt;/li&gt;
&lt;li&gt;Ask Claude to retrieve your team's governance rules and lint the draft contract against them.&lt;/li&gt;
&lt;li&gt;Ask for a &lt;code&gt;spec.md&lt;/code&gt; that names the APIs, authentication, environment variables, call order, error behavior, and timeouts.&lt;/li&gt;
&lt;li&gt;Read the simulation assumptions before you trust any mock result.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Read what comes back before you let anything get built. Look for the existing API Claude wants to reuse and the consumer you didn't know about. Those two findings are where the design phase pays for itself.&lt;/p&gt;

&lt;p&gt;Part 2 picks up with the developer and the design package.&lt;/p&gt;




&lt;p&gt;Watch the design-phase recordings in the &lt;a href="https://blog.postman.com/agentic-sdlc-part-1-design-with-the-context-graph/?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=agentic-sdlc-part-1-design-with-the-context-graph&amp;amp;utm_content=devto-01" rel="noopener noreferrer"&gt;original post on the Postman blog&lt;/a&gt;, then run the two commands above and try the prompt on a feature in your own repo. If the graph turns up a consumer you didn't know about, tell us how you handled it in the comments.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>api</category>
      <category>architecture</category>
      <category>postman</category>
    </item>
    <item>
      <title>Your agent should read orders, not issue refunds. Can your key tell?</title>
      <dc:creator>Postman</dc:creator>
      <pubDate>Mon, 23 Nov 2026 16:20:37 +0000</pubDate>
      <link>https://dev.to/postman/your-agent-should-read-orders-not-issue-refunds-can-your-key-tell-54p2</link>
      <guid>https://dev.to/postman/your-agent-should-read-orders-not-issue-refunds-can-your-key-tell-54p2</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://blog.postman.com/give-developers-and-agents-api-access-with-postman-passport/?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=give-developers-and-agents-api-access-with-postman-passport&amp;amp;utm_content=devto-01" rel="noopener noreferrer"&gt;Postman blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Why this matters if you run API access:&lt;/strong&gt; if you've ever pasted a shared API key into an &lt;code&gt;.env&lt;/code&gt; so a coding agent, a contractor or an external QA team could get unblocked, you've handed over more power than the task needed. That key can't be cut off for one consumer without rotating it for everyone. This post walks through Postman Passport's model of &lt;em&gt;access without possession&lt;/em&gt;: consumers send a secret reference, a proxy in your infrastructure checks method, host and path, and the real key never leaves your secret store. It ends with a four-step test you can run against one sandbox API.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;A developer asks their coding agent to investigate a failed order. The agent needs to read order details. Creating a refund would require separate approval.&lt;/p&gt;

&lt;p&gt;If you manage API access for the team, you need a way to express that distinction. Which requests should the agent be able to make? Whose access will it use? How will you end that access when the work is done?&lt;/p&gt;

&lt;p&gt;Handing over a shared API key can make those decisions harder to enforce. The key may authorize more than the task requires. Once it is in an environment variable or configuration file, the agent and the tools it runs may be able to read it.&lt;/p&gt;

&lt;p&gt;With Postman Passport, your team can grant API access without distributing the underlying credential. Consumers send a secret reference. A proxy running in your infrastructure checks their authenticated identity and approved scope, resolves the credential from your secret store, and supplies it to the destination API.&lt;/p&gt;

&lt;p&gt;That's access without possession: permission to use an API without receiving its key. Passport also helps you audit developer traffic and flag credentials already being sent by tools and agents.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkznhiyxxxkjgoggemruc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkznhiyxxxkjgoggemruc.png" alt="Diagram showing a caller sending a credential reference to a Secure Access Proxy in your cloud, which resolves the API key from a secret store and forwards the request to the API" width="800" height="285"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why coding agents make this decision more urgent
&lt;/h2&gt;

&lt;p&gt;An agent can turn one task into a sequence of tool calls, scripts, and network requests. Credentials available to those processes can appear in debug output, generated files, or model context. A malicious instruction is one possible cause; an ordinary troubleshooting step can also expose a value.&lt;/p&gt;

&lt;p&gt;In one developer's three-week observation of agent traffic, Passport detected 22 distinct secrets leaving the laptop. The project's &lt;code&gt;.env&lt;/code&gt; file had four entries. Other credentials came from sources such as tool configuration and the operating system's keychain.&lt;/p&gt;

&lt;p&gt;The observation illustrates a practical problem for platform teams: the credentials a workflow uses can extend well beyond the ones you deliberately configured for a task.&lt;/p&gt;

&lt;h2&gt;
  
  
  Audit developer traffic and flag detected secrets
&lt;/h2&gt;

&lt;p&gt;Passport's local traffic inspector, available in the CLI Community Edition, inspects HTTP and HTTPS requests from developer tools, scripts, and coding agents routed through it. When it detects a secret, it flags the request in a browser or terminal dashboard. Findings show the destination, client, time, and secret type, with secret values masked. Headers and URLs are scanned, with optional request-body scanning.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fetp61cs9p5dclu1p7cd2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fetp61cs9p5dclu1p7cd2.png" alt="Passport dashboard listing five detected secrets with their destination, client, secret type, and masked value" width="799" height="408"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Use those findings to see which tools are sending credentials to which destinations. Review whether that authentication is expected or whether a credential is reaching an unintended service. This gives you a starting point for bringing existing API usage under access control.&lt;/p&gt;

&lt;p&gt;Once you've identified where credentials are used, you can replace distributed API keys with secret references and approve the operations each consumer needs through Passport's access-management workflow.&lt;/p&gt;

&lt;h2&gt;
  
  
  Approve the API operations an agent needs
&lt;/h2&gt;

&lt;p&gt;Consider a sandbox order service. Its API key supports both reading orders and creating refunds. You want an agent to investigate order status, so you approve use of a secret reference for one endpoint:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="no"&gt;GET&lt;/span&gt; &lt;span class="n"&gt;orders&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sandbox&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;example&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;com&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;v1&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;orders&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk85pufrpmfsirv1cprrm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk85pufrpmfsirv1cprrm.png" alt="Passport access request for GET /v1/orders on orders.sandbox.example.com with Approve and Reject buttons" width="798" height="68"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You don't approve the refund endpoint. When requests using that reference go through Passport, the proxy checks the method, host, and path before resolving the credential.&lt;/p&gt;

&lt;p&gt;The upstream API receives its usual credential on an approved request. The consumer never needs the actual key to construct that request. For the underlying mechanism, see how Passport resolves API secrets inside your network.&lt;/p&gt;

&lt;p&gt;Choose the scope carefully. An approved read endpoint may still return sensitive data, and a compromised agent could misuse the access it retains. Endpoint restrictions and credential isolation help constrain access; the API's own authorization and business rules still matter. OWASP's guidance on excessive agency explains why permissions must match the work an agent needs to perform.&lt;/p&gt;

&lt;h2&gt;
  
  
  Give an external team access to the same API workflow
&lt;/h2&gt;

&lt;p&gt;The same access decision comes up when a contractor joins a project or an external QA team starts testing it. They need working requests and permission to call the service. Sending the shared key also gives them a credential you'll later have to account for across their machines and tools.&lt;/p&gt;

&lt;p&gt;With Passport, you can make the required endpoints available for access requests. Import them from a Postman Collection, an API specification, a curl request, or a proxy activity export, then map the credentials they require to secret references.&lt;/p&gt;

&lt;p&gt;Team members request access, an admin reviews it, and approved consumers call the API using references through the Passport Proxy. A QA engagement might need the order service's sandbox endpoints for seven days. Production access can be reviewed separately.&lt;/p&gt;

&lt;p&gt;This gives the team an explicit workflow for discovering APIs and obtaining permission to use them. The underlying API key doesn't need to be copied into their shared collection or local environment.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fter1s6gf8t3bi9pgnmcu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fter1s6gf8t3bi9pgnmcu.png" alt="Request credentials dialog for GET /v1/orders on orders.sandbox.example.com with a 90-day access duration and a reason field" width="800" height="365"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  End access without disrupting other consumers
&lt;/h2&gt;

&lt;p&gt;When an engagement ends, a shared key creates an awkward choice. Keeping it active leaves former consumers with a usable copy. Rotating it can require updates for everyone still using it.&lt;/p&gt;

&lt;p&gt;Passport separates a consumer's approved access from the upstream credential. Revoke the consumer's grant, then confirm that requests using their reference are denied once revocation takes effect. Other approved consumers can continue using the same underlying key.&lt;/p&gt;

&lt;p&gt;Set access duration for the engagement itself. Short-lived certificates and policy bundles support authentication and authorization, but their expiration is separate from the duration of an approved grant.&lt;/p&gt;

&lt;p&gt;Key rotation remains necessary when the underlying credential is compromised or your policy requires it. Routine offboarding can be handled through the consumer's access grant.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fx09de24o8vjedxdda5tm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fx09de24o8vjedxdda5tm.png" alt="Revoke access confirmation dialog for GET orders.sandbox.example.com/v1/orders in a Passport namespace" width="799" height="307"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep your secret store and add control at request time
&lt;/h2&gt;

&lt;p&gt;Your existing secret store remains the source of the real API credential. Passport adds an access workflow and a proxy that uses the credential on an approved consumer's behalf.&lt;/p&gt;

&lt;p&gt;For a request routed through that proxy:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The consumer includes a secret reference where the API expects its credential.&lt;/li&gt;
&lt;li&gt;The proxy verifies the connection's authenticated identity and checks whether its scope permits that reference on the requested endpoint.&lt;/li&gt;
&lt;li&gt;If authorized, the proxy resolves the secret and injects it into the request sent to the destination API.&lt;/li&gt;
&lt;li&gt;The response returns to the consumer, and the proxy records the request against the authenticated identity.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fd8hf3t1sfedr9jqb4e4m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fd8hf3t1sfedr9jqb4e4m.png" alt="Terminal output listing GET orders.sandbox.example.com/v1/orders mapped to a vault secret reference" width="744" height="42"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdbexydp2gtbgyqqsp0q5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdbexydp2gtbgyqqsp0q5.png" alt="A curl command that sends a vault secret reference in the Authorization header of a request to orders.sandbox.example.com" width="796" height="46"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Secret resolution happens in your infrastructure. The resolved credential goes to the intended API without being delivered to the consumer or Passport Cloud.&lt;/p&gt;

&lt;p&gt;Consumers can use the Passport CLI or configure supported external clients to route through the local daemon. Routing and certificate trust need to be configured for the tools you use. The scope checks described here apply to requests that reach the Passport Proxy.&lt;/p&gt;

&lt;h2&gt;
  
  
  Evaluate Passport with one API and one consumer
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F671oaz4malzqtphu5k6h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F671oaz4malzqtphu5k6h.png" alt="Passport Proxy console Activity view listing proxied requests, several flagged as secret detected" width="799" height="224"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Use the traffic inspector to see which developer tools are sending credentials and where. Then choose a sandbox API whose key is shared among several people or tools. Import its endpoints, map a secret reference, and approve one consumer for a specific operation.&lt;/p&gt;

&lt;p&gt;Then verify the access boundary:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Send an approved request through Passport and confirm it succeeds.&lt;/li&gt;
&lt;li&gt;Use the same reference on an endpoint outside the approved scope and confirm the proxy rejects it.&lt;/li&gt;
&lt;li&gt;Review the request record and confirm which authenticated identity it carries. For an agent, establish whether the connection uses its own identity or its operator's session.&lt;/li&gt;
&lt;li&gt;Revoke the grant, repeat the request, and measure when the proxy stops authorizing it.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That exercise gives you a concrete access decision to review with your security team and a working path for the next developer, contractor, or agent that needs the API.&lt;/p&gt;

&lt;p&gt;Read the &lt;a href="https://blog.postman.com/give-developers-and-agents-api-access-with-postman-passport/?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=give-developers-and-agents-api-access-with-postman-passport&amp;amp;utm_content=devto-01" rel="noopener noreferrer"&gt;full post on the Postman blog&lt;/a&gt;, then evaluate Passport with one sandbox API and one consumer.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;How do you scope API access for coding agents today? Share your setup in the comments.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>api</category>
      <category>security</category>
      <category>ai</category>
      <category>devops</category>
    </item>
    <item>
      <title>Who looks after the agents? How a Quality Pod finds an agent bug and drafts the fix</title>
      <dc:creator>Postman</dc:creator>
      <pubDate>Thu, 19 Nov 2026 16:20:04 +0000</pubDate>
      <link>https://dev.to/postman/who-looks-after-the-agents-how-a-quality-pod-finds-an-agent-bug-and-drafts-the-fix-3gji</link>
      <guid>https://dev.to/postman/who-looks-after-the-agents-how-a-quality-pod-finds-an-agent-bug-and-drafts-the-fix-3gji</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://blog.astropods.com/blog/who-looks-after-the-agents/?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=who-looks-after-the-agents&amp;amp;utm_content=devto-01" rel="noopener noreferrer"&gt;Postman blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How a Quality Pod finds an agent bug and drafts the fix.&lt;/strong&gt; If you run agents in production, you probably know this loop: a user complains, someone opens the traces, reads conversations by hand, guesses at a prompt change, ships it and hopes nothing else breaks. That works for a handful of agents. It doesn't work past that. This post covers the alternative we use: pods of agents with single jobs that triage failures, draft fixes, replay them against real conversations, save them as tests and watch for regressions. A person approves the result at the end, with the proof in hand.&lt;/p&gt;

&lt;p&gt;The loop at a glance:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Triage&lt;/strong&gt; groups failures from traces into patterns, each with a likely cause.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fixer&lt;/strong&gt; drafts a prompt or tool change and replays it on bad and good conversations.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test Writer&lt;/strong&gt; saves the confirmed failure as a test case.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A person&lt;/strong&gt; reviews the cause, the change and the proof, then approves.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Watcher&lt;/strong&gt; reopens the issue if the failure comes back.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here's the full post.&lt;/p&gt;




&lt;p&gt;We’re quickly approaching a world where most teams run more agents than people can manage. At Postman, where Astropods was incubated, this is already true. In the last three months, 580 people across the company used 134 agents on Astropods. One GTM agent alone, Coach, was used by more than 200 people.&lt;/p&gt;

&lt;p&gt;Right now, each agent still needs a person behind it. Someone has to find its failures, fix them, improve it, keep its cost down, and keep it healthy. Now imagine doing that for 50, 100, or 1,000 agents. That work doesn’t scale.&lt;/p&gt;

&lt;p&gt;Gone are the days when model intelligence was the limit. Now the limit is how many agents a person can oversee, and how quickly people can unblock them.&lt;/p&gt;

&lt;h2&gt;
  
  
  From reactive to proactive
&lt;/h2&gt;

&lt;p&gt;Most teams find out that an agent failed when a user complains, or when someone digs through traces by hand. Then a person reads the conversation, guesses the cause, changes a prompt or tool, and hopes the change doesn’t break something else.&lt;/p&gt;

&lt;p&gt;To make this sustainable, we have to move from a reactive loop to a proactive one. Proactive means the work starts before anyone complains. Agents spot a problem or a chance to improve, do the work, then bring a person the result with the proof in hand.&lt;/p&gt;

&lt;p&gt;Astropods can get an agent into production quickly, but what keeps it working is the work after launch. We believe that work can’t remain manual.&lt;/p&gt;

&lt;p&gt;The good news is that this work suits agents. Reading thousands of traces to find the one pattern that matters is tedious for a person and easy for an agent. Give each agent a single job, and it gets even better at it.&lt;/p&gt;

&lt;p&gt;That’s where pods come in.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pods: agents for agents
&lt;/h2&gt;

&lt;p&gt;A pod is a group of agents working toward a shared goal. Each agent in it has its own role. The agents check each other’s work, so a person only steps in when there’s a decision to make.&lt;/p&gt;

&lt;p&gt;People are part of the pod too. Over time, their feedback makes the pod better, so it needs them less and less.&lt;/p&gt;

&lt;p&gt;At Postman, we rely on pods every day. Each pod is a set of agents running on Astropods, where people and agents see the same telemetry. Two key examples are the Ship Pod, which builds and ships code for a project, and the Quality Pod, which finds where an agent goes wrong and drafts the fix for a person to approve.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Ship Pod
&lt;/h3&gt;

&lt;p&gt;Each agent in the Ship Pod has a specific role, and together they plan, build, review, and ship pull requests for a project. In the last couple months, it has completed more than 5,000 agent runs and shipped more than 400 pull requests, each one a task a person would otherwise have built by hand.&lt;/p&gt;

&lt;p&gt;With that much output, the slow part is no longer the agents. A typical merged pull request spends about 2 hours with the pod while it builds, tests, and reviews its own work. Then it waits around 13 hours for a person to merge it. That’s nearly 80% of its time spent waiting on people, even though most of those pull requests merge without anyone asking for a change.&lt;/p&gt;

&lt;p&gt;The agents are ready, and the work waits on people. To go faster, people have to trust agents with more of the work. That trust grows as agents get things right more often, because they learn from people’s feedback. Helping them get it right is the job of the Quality Pod.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Quality Pod
&lt;/h3&gt;

&lt;p&gt;The Quality Pod has four members.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Triage&lt;/strong&gt; reads every trace and groups failures into patterns, each with a likely cause.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fixer&lt;/strong&gt; drafts a prompt or tool change for a pattern and replays it on the traces that failed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test Writer&lt;/strong&gt; turns each confirmed failure into a test case.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Watcher&lt;/strong&gt; checks that a fixed failure stays fixed.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For example, say a support agent keeps quoting an old refund window. Triage spots the pattern and finds the cause: the agent’s instructions still say 30 days. Fixer drafts a one-line change and replays it on bad and good conversations. Test Writer saves the case as a test. A person sees the cause, the change, and the proof, and approves the fix. If the failure comes back, Watcher opens the issue again.&lt;/p&gt;

&lt;p&gt;The pod does the digging, and the person makes the call. They come in at the end of the loop, not the start, so they review a result instead of a guess.&lt;/p&gt;

&lt;p&gt;At Astropods, we run the Quality Pod on our own agents. Every failure it catches and every fix it gets right builds the trust we need to hand agents more of the work.&lt;/p&gt;

&lt;h3&gt;
  
  
  Other pod examples
&lt;/h3&gt;

&lt;p&gt;The same pattern fits other work around agents. Here are a few pods we’re developing.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Cost Optimizer Pod&lt;/strong&gt; tries cheaper models and keeps the ones that hold quality.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Health Pod&lt;/strong&gt; watches latency, errors, and capacity.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Network Security Pod&lt;/strong&gt; watches an agent’s traffic and flags calls it shouldn’t make.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Vulnerability Pod&lt;/strong&gt; scans an agent’s image and dependencies for known security issues.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;API Pod&lt;/strong&gt; watches the APIs an agent calls and catches breaking changes before the agent fails.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Trust is earned one fix at a time
&lt;/h2&gt;

&lt;p&gt;Each time a pod’s fix gets approved and holds up, the pod builds a track record. The longer that record gets, the more work the pod can be trusted with.&lt;/p&gt;

&lt;p&gt;The goal isn’t to remove people. It’s to move them up to where their judgment matters most.&lt;/p&gt;

&lt;p&gt;With pods, the number of agents a team can run no longer depends on how many people it has to watch them.&lt;/p&gt;

&lt;p&gt;Soon, every agent a team runs will have a pod next to it. Pods will take on more of the work on their own, from low-risk fixes to cost and health. People will set the goals and make the calls that matter. That’s the future we’re building at Astropods.&lt;/p&gt;

&lt;p&gt;The companies furthest ahead with agents have already hit the limit of one person per agent. The ones that haven’t will hit it soon, and the ones that solve it first will be miles ahead of everyone else.&lt;/p&gt;

&lt;p&gt;The teams that win with agents won’t be the ones that run the most. They’ll be the ones whose agents get better every day.&lt;/p&gt;

&lt;h2&gt;
  
  
  Is anyone looking after your agents?
&lt;/h2&gt;

&lt;p&gt;If your agents still need a person behind each one, Astropods can help you catch up and rethink how your business runs with agents. Talk to us.&lt;/p&gt;

&lt;p&gt;Build, run, and govern your agents in one place.&lt;/p&gt;




&lt;p&gt;Read the &lt;a href="https://blog.astropods.com/blog/who-looks-after-the-agents/?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=who-looks-after-the-agents&amp;amp;utm_content=devto-01" rel="noopener noreferrer"&gt;original post on the Postman blog&lt;/a&gt;. How are you finding agent failures today: user reports, hand-read traces, or something automated?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>llm</category>
      <category>devops</category>
    </item>
    <item>
      <title>How to Write Postman Performance Test Scripts That Scale</title>
      <dc:creator>Postman</dc:creator>
      <pubDate>Thu, 19 Nov 2026 05:20:01 +0000</pubDate>
      <link>https://dev.to/postman/how-to-write-postman-performance-test-scripts-that-scale-515k</link>
      <guid>https://dev.to/postman/how-to-write-postman-performance-test-scripts-that-scale-515k</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://blog.postman.com/how-to-write-postman-performance-test-scripts-that-scale/?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=how-to-write-postman-performance-test-scripts-that-scale&amp;amp;utm_content=devto-01" rel="noopener noreferrer"&gt;Postman blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Your load test passed. One of its requests returned a 404.&lt;/strong&gt; If you already have Postman collections and want to turn them into load tests, this is the trap to know about. Postman doesn't count an HTTP status as a failure on its own. A green run can hide broken requests, and a script that works for one user can quietly misbehave at 50. This guide shows how to get the script right at one virtual user (VU) first: real assertions, a single sign-in, steady pacing and a p95 gate in CI. Only then do you scale.&lt;/p&gt;

&lt;p&gt;A Postman performance test is only as good as the script behind it. A collection that works for one request can quietly misbehave when 50 virtual users run it at once: a variable that was never set, an assertion that only holds for one record, a sign-in that every user fires in the same second.&lt;/p&gt;

&lt;p&gt;This post walks through building that script. You get a collection, chain requests, write assertions that mean something under load, sign in and clean up with setup and teardown, and feed the test data. Just as important, you debug it before you add load. Once it runs cleanly, you can try it in the app and then take it to CI with the Postman CLI or Postman Cloud.&lt;/p&gt;

&lt;h2&gt;
  
  
  The workflow at a glance
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Get a collection: import your OpenAPI spec, or record it with the Postman proxy, fork one, or write it.&lt;/li&gt;
&lt;li&gt;Script it: chain values between requests and control the pace.&lt;/li&gt;
&lt;li&gt;Assert on correctness and on a response-time budget.&lt;/li&gt;
&lt;li&gt;Sign in and clean up with setup and teardown collections.&lt;/li&gt;
&lt;li&gt;Feed it data with a data file or a dataset.&lt;/li&gt;
&lt;li&gt;Debug it at one user, before you add load.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You will loop between Debug and Script until a one-VU run is clean, and only then run it at scale.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a performance test script is
&lt;/h2&gt;

&lt;p&gt;There is no separate scripting language for performance tests. A performance test runs the requests in your collection (or one folder) in order, in a repeating loop, for every VU at once, for a set duration. Your pre-request scripts, post-response scripts and &lt;code&gt;pm.test()&lt;/code&gt; assertions run on every pass of that loop, the same way they run in a functional run. That has two consequences:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Your script runs thousands of times.&lt;/strong&gt; A slow or noisy script is multiplied by every request, every VU and every iteration. On a local run, heavier scripts reduce the number of VUs your machine can simulate.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Many copies run at once.&lt;/strong&gt; Anything that assumes it is the only user (a shared record, a one-time sign-in, a counter) behaves differently when it is not.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Prerequisites
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The Postman desktop app, where you also run a local performance test, and a workspace.&lt;/li&gt;
&lt;li&gt;Docker, to run the demo app.&lt;/li&gt;
&lt;li&gt;For Step 5: a paid plan if you want datasets or data files in a performance test.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Set up the demo app
&lt;/h2&gt;

&lt;p&gt;The examples use Swagger Petstore, an open source (Apache-2.0) sample REST API with an OpenAPI spec. It runs on your own machine, which matters: never point a load test at a shared public service, and never at production.&lt;/p&gt;

&lt;p&gt;The app listens on 8080 inside the container, and the setup maps it to 18080 on your machine. Port 8080 is one of the most commonly used ports, and a clash fails quietly (see Step 6, pointer 4). To check that 18080 is free first (macOS and Linux), run the command below. No output means the port is free.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;lsof -nP -iTCP:18080 -sTCP:LISTEN
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Give the app a few seconds to start. The OpenAPI spec is at &lt;code&gt;http://localhost:18080/api/v3/openapi.json&lt;/code&gt;. Four things are worth knowing before you start:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Pin the tag.&lt;/strong&gt; The README suggests &lt;code&gt;:unstable&lt;/code&gt;, which is a March 2023 build. &lt;code&gt;1.0.28&lt;/code&gt; is the current release.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Timings are not benchmarks.&lt;/strong&gt; The image is built for amd64 only, so on Apple Silicon it runs under emulation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;State lives in memory.&lt;/strong&gt; Restart the container for a clean slate.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Auth is declared but not enforced.&lt;/strong&gt; The spec lists OAuth2 and an &lt;code&gt;api_key&lt;/code&gt; header, but the server accepts requests without either.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 1: Get a collection
&lt;/h2&gt;

&lt;p&gt;A performance test needs one thing: a collection (or one folder of one). The rest of this post uses a single collection, &lt;strong&gt;Petstore Load&lt;/strong&gt;, built from the app's OpenAPI spec.&lt;/p&gt;

&lt;h3&gt;
  
  
  Import the OpenAPI spec
&lt;/h3&gt;

&lt;p&gt;If your API has an OpenAPI spec, importing it is usually the fastest route, and it doubles as a check that the spec matches reality. In the app:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click &lt;strong&gt;Import&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Add Petstore's spec: paste &lt;code&gt;http://localhost:18080/api/v3/openapi.json&lt;/code&gt;, or save it with &lt;code&gt;curl -o openapi.json http://localhost:18080/api/v3/openapi.json&lt;/code&gt; and drag the file in.&lt;/li&gt;
&lt;li&gt;Leave the import option as it is (OpenAPI 3.0).&lt;/li&gt;
&lt;li&gt;Press Enter to import, then rename the new collection to &lt;strong&gt;Petstore Load&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Petstore's spec has 19 operations, so you get 19 requests grouped into folders by path, each with saved examples. A collection generated from an OpenAPI 2.0, 3.0 or 3.1 spec can be kept in sync with the spec afterward, so when the spec changes you update the collection instead of rebuilding it.&lt;/p&gt;

&lt;p&gt;Prefer the command line? This builds the same kind of collection as local files (add &lt;code&gt;--folder-strategy Tags&lt;/code&gt; to group by tag):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;postman spec generate collection ./openapi.json -n &lt;span class="s2"&gt;"Petstore Load"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Fix what the import gets wrong
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Set the base URL.&lt;/strong&gt; Petstore's spec declares its server as the relative path &lt;code&gt;/api/v3&lt;/code&gt;, so the collection's &lt;code&gt;baseUrl&lt;/code&gt; has no host. Change it to &lt;code&gt;http://localhost:18080/api/v3&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check the request bodies.&lt;/strong&gt; The generated "Add a new pet" request uses the form-encoded body variant. Step 2 replaces it with a clean JSON body.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Watch the order.&lt;/strong&gt; Requests run in folder order, which is alphabetical here, so the sign-in request runs last. Step 4 moves sign-in into a setup collection, which runs before everything else.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Add assertions.&lt;/strong&gt; A generated collection has no tests. Step 3 adds them.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Trim it to the requests you will test
&lt;/h3&gt;

&lt;p&gt;Load-testing all 19 requests is not the goal. Keep the four that make up one realistic flow, put them in a folder called &lt;strong&gt;Pet Lifecycle&lt;/strong&gt;, and delete the rest. Sign-in is not among them: it moves to its own setup collection in Step 4.&lt;/p&gt;

&lt;h3&gt;
  
  
  Run it once before you load it
&lt;/h3&gt;

&lt;p&gt;Send the requests once before you add load. A performance test repeats the collection in a loop for every VU, so anything that should happen only once will happen thousands of times. Move one-time work into a setup collection (Step 4).&lt;/p&gt;

&lt;p&gt;Read the result with suspicion. With &lt;code&gt;baseUrl&lt;/code&gt; fixed and nothing else changed, the four-request collection reports &lt;strong&gt;4 requests, 0 failed&lt;/strong&gt;. Yet one of those four, &lt;code&gt;GET /pet/4808&lt;/code&gt;, came back &lt;strong&gt;404 Not Found&lt;/strong&gt;. Nothing failed because nothing was asserting anything. Postman does not treat an HTTP status as a failure on its own, so a collection without assertions can only fail on a transport problem. Add assertions (Step 3) before you trust a green run.&lt;/p&gt;

&lt;h3&gt;
  
  
  Other ways to get a collection
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A cURL command or HAR file:&lt;/strong&gt; paste it into Import, or run &lt;code&gt;postman collection import &amp;lt;curl or file.har&amp;gt; --name "..."&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Real traffic from a client:&lt;/strong&gt; the Postman proxy (Tools → Proxy) records what a client sends and saves it as a collection.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A collection someone else built:&lt;/strong&gt; fork it or import the file.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;From scratch:&lt;/strong&gt; + → Collection, or &lt;code&gt;postman collection new "Orders API"&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 2: Script it
&lt;/h2&gt;

&lt;p&gt;Pre-request and post-response scripts run under load exactly as they do locally, so your functional scripts carry over. Every script runs once per request per VU, so keep them lean.&lt;/p&gt;

&lt;h3&gt;
  
  
  Know your variables first
&lt;/h3&gt;

&lt;p&gt;Postman has five variable scopes. From broadest to narrowest, they are global, collection, environment, data and local. When the same name exists in two scopes, the narrowest one wins.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Who else sees a variable's value?&lt;/strong&gt; Collection, environment and global variables are local to your copy of Postman by default. The value you type is used when you send requests, and it is not synced to the Postman Cloud. A variable stays yours until someone with Editor access chooses to share its value.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwrcy1rgjkol0dmth3fsm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwrcy1rgjkol0dmth3fsm.png" alt="The Variables tab of the Petstore Load collection: a variable named foo with the value bar, and a Share button with the tooltip 'Create a shared value and make it accessible to teammates.'" width="798" height="127"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fip3s73ui68oj79ye0d39.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fip3s73ui68oj79ye0d39.png" alt="The same variable with the value changed to bar1 and the Share button replaced by a cloud icon with a dropdown menu." width="800" height="114"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Changing a variable from a script changes your local value only.&lt;/p&gt;

&lt;p&gt;Don't confuse teammates with virtual users. During a performance test, each VU runs with its own copy of the collection variables. A value one VU sets (a token, a counter, an iteration start time) is never visible to another VU. That is why per-VU sign-in and the pacing timestamp below are safe. It is also why collection variables cannot coordinate VUs.&lt;/p&gt;

&lt;p&gt;The shared value matters for load tests in two ways:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Cloud features use the shared value, not your local one.&lt;/strong&gt; That includes cloud performance runs, scheduled runs, monitors and the Postman CLI. A variable that is only local works on your laptop and comes up empty when the same collection runs in the cloud or in CI. Share the values your test reads before you run it anywhere but your own machine.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Shared values are not private.&lt;/strong&gt; Never share a password or token as a plain value. Mark it as a secure variable, which stores the value in Postman Vault.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Rule of thumb:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Put test settings (think time, pacing, flags) in shared collection variables.&lt;/li&gt;
&lt;li&gt;Put the base URL in an environment.&lt;/li&gt;
&lt;li&gt;Put per-iteration input in a data file.&lt;/li&gt;
&lt;li&gt;Put credentials in secure variables.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Make the settings variables, not code
&lt;/h3&gt;

&lt;p&gt;Built-in think time and pacing settings are not part of the performance test configuration yet, and the Postman team is working on them. Until then, scripts can do the job. Put every tunable in a collection variable with a sensible default, and have the scripts read it. Document the knobs in the collection description.&lt;/p&gt;

&lt;h3&gt;
  
  
  Chain values between requests
&lt;/h3&gt;

&lt;p&gt;The Petstore flow is add a pet, get it, find pets by status, and delete it. Each request needs the ID the first one chose, so give every iteration its own pet ID. That way concurrent users don't step on one another's data.&lt;/p&gt;

&lt;p&gt;In a pre-request guard, use &lt;code&gt;pm.execution.skipRequest()&lt;/code&gt;. In a pre-request script, &lt;code&gt;pm.execution.setNextRequest(null)&lt;/code&gt; does not stop the request it runs in. In a post-response script, &lt;code&gt;setNextRequest(null)&lt;/code&gt; is the right call, because the request has already been sent. Later requests read the same variables, such as &lt;code&gt;GET {{baseUrl}}/pet/{{petId}}&lt;/code&gt; and &lt;code&gt;DELETE {{baseUrl}}/pet/{{petId}}&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="n"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"add pet returns 200"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;to&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;have&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;status&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"add pet echoes the id we sent"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;String&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;to&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;eql&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;collectionVariables&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'petId'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Sign in once, and ramp the users up
&lt;/h3&gt;

&lt;p&gt;If every VU signs in at the same instant, you are testing your login endpoint's tolerance for a stampede, not the flow you care about. The Postman CLI has two built-in answers. Both are in Postman CLI 1.75.0: check &lt;code&gt;postman performance run --help&lt;/code&gt; for &lt;code&gt;--setup-collection&lt;/code&gt; and &lt;code&gt;--load-profile&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sign in once, for the whole test.&lt;/strong&gt; Put the sign-in request in a setup collection. It runs once before any VU starts, and Postman passes the environment it updated on to every VU. No sign-in request is left in the loop, so there is no stampede. Step 4 shows the details.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Ramp the VUs up.&lt;/strong&gt; With the CLI, the default load profile is ramp-up:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;--load-profile ramp-up --base-vu 2 --peak-vu 50 --duration 10 --load-segments 1m,3m
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That is 2 VUs for the first minute, a climb to 50 over the next three, and 50 until minute 10. The base VUs still start together, so keep the base small.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When one token is not enough.&lt;/strong&gt; If each VU needs its own session, or the token can expire mid-run, sign in once per VU inside the loop:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="n"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"sign in returns 200"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;to&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;have&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;status&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="c1"&gt;// Petstore answers with plain text: "Logged in user session: "&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;match&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;text&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;match&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;session&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;\&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;\&lt;span class="no"&gt;S&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;match&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;collectionVariables&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'accessToken'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;match&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Sign in did not return a session, ending this iteration.'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;execution&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setNextRequest&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Add think time
&lt;/h3&gt;

&lt;p&gt;Without think time, every VU fires its next request the instant the last one returns. Add a random pause in each request's post-response script:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;min&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Number&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;collectionVariables&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'THINK_TIME_MIN_MILLIS'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;max&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Number&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;collectionVariables&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'THINK_TIME_MAX_MILLIS'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;max&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;delay&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;floor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;random&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;max&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;min&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;min&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;resolve&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;setTimeout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;resolve&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;delay&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Because the pause is gated on &lt;code&gt;max &amp;gt; 0&lt;/code&gt;, one variable turns it off for a quick smoke test.&lt;/p&gt;

&lt;h3&gt;
  
  
  Hold a steady pace
&lt;/h3&gt;

&lt;p&gt;Think time spaces out requests within an iteration. Pacing fixes how long the whole iteration takes. Without pacing, a fast API makes each VU loop faster, so the load you send quietly grows with how well your API performs. A pacing floor makes every iteration take at least a fixed time, so the request rate stays predictable.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// First request of the loop&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;pacing&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Number&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;collectionVariables&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'PACING_DURATION_MILLIS'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pacing&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;collectionVariables&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'iterationStartMillis'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;String&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;now&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Last request of the loop&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;pacingTarget&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Number&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;collectionVariables&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'PACING_DURATION_MILLIS'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;pacingStart&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Number&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;collectionVariables&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'iterationStartMillis'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pacingTarget&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;Number&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;isFinite&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pacingStart&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;remaining&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pacingTarget&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;now&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;pacingStart&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;remaining&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;resolve&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;setTimeout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;resolve&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;remaining&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once pacing is on, the request rate is roughly VUs × requests per iteration ÷ pacing time. That is how you scale VUs without scaling the rate by accident. Measure to confirm the knobs do what you think. Sleep time is not counted as response time.&lt;/p&gt;

&lt;h3&gt;
  
  
  Keep scripts cheap
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Skip &lt;code&gt;console.log&lt;/code&gt; on the hot path.&lt;/li&gt;
&lt;li&gt;Parse the body once and reuse it.&lt;/li&gt;
&lt;li&gt;Fail loudly on missing inputs. A thrown error counts as an error in the run.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 3: Add test assertions that mean something under load
&lt;/h2&gt;

&lt;p&gt;Think in two layers: correctness (status code, shape) and budget (response time).&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="n"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Status is 200"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;to&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;have&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;status&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Responds within budget"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;responseTime&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;to&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;be&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;below&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;800&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Returns the pet we added"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;to&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;eql&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;collectionVariables&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'petName'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Assertions are the only thing that can make an individual request fail. A 404 or a 500 is not an error on its own. If you want a status code to count, assert on it.&lt;/p&gt;

&lt;p&gt;The run also has test-level pass/fail thresholds: average, p90, p95, p99, error rate and requests per second. Per-request assertions tell you which endpoint broke. Run-level thresholds tell you whether the test as a whole passed, and you need both. In the CLI, set them with &lt;code&gt;--pass-if&lt;/code&gt;, for example &lt;code&gt;--pass-if "less_than(p95, 500)"&lt;/code&gt;. Repeat the flag to combine conditions; every condition must hold. The command exits 0 when the conditions are met and 1 when they are not.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Sign in and clean up with setup and teardown collections
&lt;/h2&gt;

&lt;p&gt;A setup collection and a teardown collection run once before and once after the whole test. The main collection runs in between, in the VU loop.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Setup runs once, before the load starts. If setup fails, the test is skipped, teardown is still attempted, and the run is marked failed.&lt;/li&gt;
&lt;li&gt;Teardown runs on every outcome, including cancel, fail and timeout.&lt;/li&gt;
&lt;li&gt;State passes through a per-run copy of the environment you select.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Petstore Setup — Sign In post-response script&lt;/span&gt;
&lt;span class="n"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"sign in returns 200"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;to&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;have&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;status&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;match&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;text&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;match&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;session&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;\&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;\&lt;span class="no"&gt;S&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;match&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;environment&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'accessToken'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;match&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Petstore Teardown — Sign Out post-response script&lt;/span&gt;
&lt;span class="n"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"sign out returns 200"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;to&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;have&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;status&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Setup writes the token to the environment, not to a collection variable, which is what lets the main collection see it. The main requests send &lt;code&gt;Bearer {{accessToken}}&lt;/code&gt;. Check that the token actually arrives:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="n"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Authorization header carries a token"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;authorization&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;variables&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;replaceIn&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Authorization'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;authorization&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;to&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;match&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;/^&lt;/span&gt;&lt;span class="nc"&gt;Bearer&lt;/span&gt; \&lt;span class="no"&gt;S&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;$&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;authorization&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;to&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="ow"&gt;not&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;include&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'{{'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;From the CLI:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;postman performance run &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;collection-id&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; \
  --environment &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;environment-id&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; \
  --setup-collection &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;setup-collection-id&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; \
  --teardown-collection &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;teardown-collection-id&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; \
  --peak-vu 5 --duration 5
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 5: Drive the test with data
&lt;/h2&gt;

&lt;p&gt;One user hammering one record tests your cache, not your API. Feed each VU different data with a data file or a Postman Dataset (both need a paid plan in performance tests).&lt;/p&gt;

&lt;p&gt;In a CSV, the first row holds variable names. Use Unix line endings and keep every row the same width.&lt;/p&gt;

&lt;p&gt;Watch the names: a data column beats a collection variable with the same name. Give script-created values names no column uses, such as &lt;code&gt;createdPetId&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Data file (local only)&lt;/span&gt;
postman collection run &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;collection-id&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; --data-file ./pets.csv
&lt;span class="c"&gt;# Dataset (local or cloud)&lt;/span&gt;
postman performance run &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;collection-id&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; \
  --dataset-id &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;dataset-id&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; \
  --dataset-view-id &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;view-id&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; \
  --dataset-distribution round-robin
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 6: Debug the script before you add load
&lt;/h2&gt;

&lt;p&gt;Debug at one user, with nothing else going on. A script bug under 50 VUs shows up as a wall of identical errors. At one VU it shows up as one error you can read.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Open the Postman Console&lt;/strong&gt; (⌘+Option+C / Ctrl+Alt+C) and run once. It shows the request sent, the raw response and your logs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Print what you would otherwise guess.&lt;/strong&gt; Log the value and its type.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Read the error before you fix it.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check the final URL, and who answered.&lt;/strong&gt; An undefined &lt;code&gt;{{variable}}&lt;/code&gt; produces an invalid address. A 404 on the first request can mean another service owns the port, so compare the &lt;code&gt;Server&lt;/code&gt; header.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A bad status code is not an error.&lt;/strong&gt; Assert on it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Make missing input loud.&lt;/strong&gt; Guard every input, and stop or throw when it is missing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Know which bucket a failure lands in.&lt;/strong&gt; The CLI's live progress counts only transport errors. Script errors show up only in the final summary, so do not gate on the live number.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Don't count on logs once the load starts.&lt;/strong&gt; Use &lt;code&gt;console.log&lt;/code&gt; for the one-VU pass, then rely on assertions and thrown errors.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;When everything fails at once, check the server.&lt;/strong&gt; Send one valid request by hand and read the server's own log.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Shrink the problem.&lt;/strong&gt; &lt;code&gt;postman performance run&lt;/code&gt; always runs the whole collection, so run a trimmed copy or add &lt;code&gt;skipRequest()&lt;/code&gt; guards.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Once the script works: run it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;In the app:&lt;/strong&gt; Run → Performance → App. Start with a handful of VUs for a minute.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;In CI:&lt;/strong&gt; use the Postman CLI with a pass/fail threshold so a slow build fails the job.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;At scale:&lt;/strong&gt; Postman Cloud (paid plan).
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;postman performance run &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;collection-id&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; --peak-vu 5 --duration 1 --pass-if &lt;span class="s2"&gt;"less_than(p95, 500)"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Set think time and pacing before you scale. They are what let you raise the VU count without raising the request rate by accident.&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrapping up
&lt;/h2&gt;

&lt;p&gt;If you take one thing from this post, make it this: get the script right at a small scale first, because adding virtual users will not fix a script that is wrong at one. Native think time and pacing settings, and richer logging, are on the way. Until then, the scripts above do the job.&lt;/p&gt;

&lt;p&gt;Walk the six steps on your own collection, and get one clean one-VU run before you scale. The full post with every screenshot and measurement is on the &lt;a href="https://blog.postman.com/how-to-write-postman-performance-test-scripts-that-scale/?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=how-to-write-postman-performance-test-scripts-that-scale&amp;amp;utm_content=devto-01" rel="noopener noreferrer"&gt;Postman blog&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>postman</category>
      <category>testing</category>
      <category>performance</category>
      <category>api</category>
    </item>
    <item>
      <title>Agent-ready APIs: three fixes from the 2026 State of the API Report</title>
      <dc:creator>Postman</dc:creator>
      <pubDate>Wed, 18 Nov 2026 21:42:09 +0000</pubDate>
      <link>https://dev.to/postman/agent-ready-apis-three-fixes-from-the-2026-state-of-the-api-report-247i</link>
      <guid>https://dev.to/postman/agent-ready-apis-three-fixes-from-the-2026-state-of-the-api-report-247i</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://blog.postman.com/the-2026-state-of-the-api-report-agents-are-in-production-and-most-apis-arent-ready/?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=the-2026-state-of-the-api-report-agents-are-in-production-an&amp;amp;utm_content=devto-01" rel="noopener noreferrer"&gt;Postman blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Agent-ready step one: inventory your APIs and agents, then map them.&lt;/p&gt;

&lt;p&gt;If you build backend or platform services, your next heavy API consumer probably isn't a person. It's an agent that can't read your README, can't ping a teammate when a call returns a vague 400, and can't guess which of three similar endpoints is the right one. The 2026 State of the API Report puts numbers on that gap. This post walks through the three fixes that close it, in the order we'd do them.&lt;/p&gt;

&lt;h2&gt;
  
  
  The gap
&lt;/h2&gt;

&lt;p&gt;One in four organizations now run AI agents that use APIs in production. Only 13.2% say their APIs are fully ready for them.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjsjliovnh73hzh9jtdag.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjsjliovnh73hzh9jtdag.png" width="800" height="662"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Picture a team that shipped an agent last quarter. It books travel, issues refunds and sends the weekly report, and to do that it calls a dozen internal APIs. Those APIs were built years ago for developers. A person could read the docs, ask someone when a call failed, and work around the odd error. An agent can't. It needs clear descriptions, predictable errors, tight permissions, and a way to find the right endpoint in the first place.&lt;/p&gt;

&lt;p&gt;Most APIs still aren't designed for that caller: 38.7% of teams still design APIs primarily for human developers reading docs, and only 5.6% design primarily for agents.&lt;/p&gt;

&lt;h2&gt;
  
  
  API-first teams are further along
&lt;/h2&gt;

&lt;p&gt;Fully API-first teams are 2.6x as likely as non-API-first teams to run agents in production: 43.2% vs 16.7%.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F72q1dxp7j50jbqragdu0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F72q1dxp7j50jbqragdu0.png" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;One caveat: this is an association, not proof of cause. Teams that already invest in APIs may simply be the ones that invest in everything. The pattern is still worth noticing.&lt;/p&gt;

&lt;h2&gt;
  
  
  MCP is real. Discovery isn't solved.
&lt;/h2&gt;

&lt;p&gt;MCP has moved quickly into real use: 55.6% are in production or already experimenting with it, and 23.8% are already in production.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh90ezb6qa4xff5f330rs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh90ezb6qa4xff5f330rs.png" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;But agents can only use what they can find. 37.7% have not enabled any discovery for agents, even as 12.2% say recommendations from AI agents or coding tools are already a top factor in choosing which APIs to use. If an agent can't find your API, it will use someone else's.&lt;/p&gt;

&lt;h2&gt;
  
  
  Agents write, and credentials lag
&lt;/h2&gt;

&lt;p&gt;In Postman's own platform data (not the survey), agents mostly change things rather than just read them: 51% of tool calls through the Postman MCP server create or change collections and requests, versus 46% that only read.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcbf8jwsggvmiwaaabd2g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcbf8jwsggvmiwaaabd2g.png" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Meanwhile, 22.1% still store credentials in environment variables or .env files, and only 13.4% use short-lived credentials. A caller that writes, holding a long-lived secret from a dotfile, is the pattern to fix first.&lt;/p&gt;

&lt;h2&gt;
  
  
  The three fixes, in order
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Build the map and make it discoverable
&lt;/h3&gt;

&lt;p&gt;Start with an inventory of your APIs and agents, then map it with the Context Graph API so people and agents can both find what exists. Even a plain file in a repo works as a first pass. Here's an illustrative shape:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;apis&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;refunds-service&lt;/span&gt;
    &lt;span class="na"&gt;owner&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;payments-platform&lt;/span&gt;
    &lt;span class="na"&gt;spec&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;specs/refunds.openapi.yaml&lt;/span&gt;
    &lt;span class="na"&gt;consumers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;support-agent&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;billing-ui&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="na"&gt;writes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
&lt;span class="na"&gt;agents&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;support-agent&lt;/span&gt;
    &lt;span class="na"&gt;calls&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;refunds-service&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;orders-service&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="na"&gt;credential&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;short-lived&lt;/span&gt;  &lt;span class="c1"&gt;# flag anything still in .env
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The point is a single list that answers: what exists, who owns it, which agents call it, and which of those calls write.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Generate docs from the spec
&lt;/h3&gt;

&lt;p&gt;Agents need descriptions that match what the API actually does today. Generate docs from your API definition so they stay current for people and agents, instead of relying on hand-edited pages that drift.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Put identity and a gateway in front of agents before you scale them
&lt;/h3&gt;

&lt;p&gt;Treat agents as non-human callers with their own identity and short-lived credentials, and route their traffic through a gateway so there is a control point where policy applies.&lt;/p&gt;

&lt;h2&gt;
  
  
  Read the data
&lt;/h2&gt;

&lt;p&gt;Read the &lt;a href="https://blog.postman.com/the-2026-state-of-the-api-report-agents-are-in-production-and-most-apis-arent-ready/?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=the-2026-state-of-the-api-report-agents-are-in-production-an&amp;amp;utm_content=devto-01" rel="noopener noreferrer"&gt;full post on the Postman blog&lt;/a&gt;, then open the 2026 State of the API Report for the data by role, region and industry.&lt;/p&gt;

&lt;p&gt;What does your agent inventory look like today? I'd like to hear what you're seeing in your own stack in the comments.&lt;/p&gt;

</description>
      <category>api</category>
      <category>ai</category>
      <category>mcp</category>
      <category>security</category>
    </item>
  </channel>
</rss>
