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
        • Overview
          • Blocks reference
            • Logic blocks overview
            • Condition
            • If
            • Validate
            • Evaluate
            • Delay
            • OR
        • Deployed flows overview
        • Connector blocks 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
  • Input
  • Outputs
  • Setup
  • Example
Postman FlowsFlows referenceBlocksLogic

The Validate block

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

The If block

Next

The Evaluate block

Built with

The Validate block is a logical gate that checks incoming JSON data against a schema and routes the data based on the result. If the JSON data conforms to the schema, it’s routed through the Pass output port. If the JSON doesn’t conform to the schema, it’s routed through the Fail output port. You can create your own schema in the Validate block or generate one automatically based on existing JSON data.

Input

Data - Connect this input port to any block that sends JSON data. The Validate block checks the data it receives against a JSON schema.

Outputs

Pass - Sends the received JSON data if it conforms to the schema.

Fail - Sends the received JSON data if it doesn’t conform to the schema.

Setup

To create a JSON schema, click Generate from example and paste valid JSON data into the text box, then click Generate schema. Alternatively, click Define custom schema to manually enter a JSON schema.

Connect the Data input port to the output port of a block that sends JSON data. The Validate block checks the incoming data against its schema.

Click Docs to learn about JSON schemas.

Example

To see the Validate block in an example flow, check out Flow Snippets: Validate.