For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Postman
PricingEnterprise
Contact SalesSign InSign Up for Free
HomeDocs
HomeDocs
      • Overview
Postman API Platform

Product

  • Postman Overview
  • Enterprise
  • Spec Hub
  • Flows
  • Agent Mode
  • API Catalog
  • Fern
  • Postman CLI
  • Integrations
  • Workspaces
  • Plans and pricing

API Network

  • App Security
  • Artificial Intelligence
  • Communication
  • Data Analytics
  • Database
  • Developer Productivity
  • DevOps
  • Ecommerce
  • eSignature
  • Financial Services
  • Payments
  • Travel

Resources

  • Postman Docs
  • Academy
  • Community
  • Templates
  • Intergalactic
  • Videos
  • MCP Servers

Legal and Security

  • Legal Terms Hub
  • Terms of Service
  • Postman Product Terms
  • Security
  • Website Terms of Use

Company

  • About
  • Careers and culture
  • Contact us
  • Partner program
  • Customer stories
  • Student programs
  • Press and media
Twitter iconLinkedIn iconGithub iconYouTube iconInstagram iconDiscord icon
Download Postman
Privacy Policy

© 2026 Postman, Inc.

On this page
  • Add logic and process data with scripts
  • Test APIs at every stage of development
  • Test applications with UI test integration
  • Run and automate your API tests
Tests and scripts

Test APIs and write scripts in Postman

||View as Markdown|
Was this page helpful?
Previous

Sync cookies using Postman Interceptor and the Postman proxy

Next

Use scripts to add logic and tests to Postman requests

Built with

In an API-first world, APIs are developed before the rest of an application. That means API testing happens earlier in the API lifecycle. With Postman, you can run API tests in the same place where you collaborate and build APIs with your team.

Postman provides a variety of tools you can use to ensure the quality and reliability of your APIs. Use scripts to add logic to your requests, replicate complex user workflows, and write test assertions, then use Postman Collections to group individual tests into comprehensive test suites. Once you’ve set up your tests, you can run them manually or automate them as part of your regular development process.

Add logic and process data with scripts

Add dynamic behavior to your API requests with Postman’s built-in JavaScript runtime by writing test scripts to check for a specific status code, set a variable, or validate a response. You can also use scripts to process data and build dynamic workflows.

Postman can run scripts before a request is sent (pre-request) or after (post-response). You can also create packages for your favorite scripts and reuse them across your Postman team.

Learn more at Use scripts to add logic and tests to Postman requests.

Test APIs at every stage of development

Testing plays an important role throughout the API development lifecycle. You can use Postman to perform essential types of testing, such as integration, end-to-end, and regression testing. You can also use Postman to test performance to make sure your API can handle the expected load.

Learn more at Test API functionality and performance in Postman.

Test applications with UI test integration

Postman’s Application Inventory integrates with your existing UI test suite to validate API interactions and discover dependencies automatically. By connecting Playwright tests to Postman, you can capture network traffic during UI test execution, validate API calls against Postman Collections, and gain visibility into your application’s API dependencies.

This approach bridges the gap between UI testing and API validation, helping you catch contract drift, identify coverage gaps, and maintain comprehensive test evidence for both your user interface and underlying API interactions.

Learn more at Application Inventory overview.

Run and automate your API tests

Postman supports both manual testing and test automation. You can run a single test on demand by sending a request, or run an entire test suite using the Collection Runner.

To increase efficiency and test coverage, you can configure test collections to run automatically on a schedule. You can also use the Postman CLI to run test collections as part of your continuous integration and continuous delivery (CI/CD) pipeline.

Learn more at Run and automate API tests in Postman.