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
            • Looping blocks overview
            • Repeat
            • For
            • Collect
        • 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
  • Example
  • Related blocks
  • Related pages
Postman FlowsFlows referenceBlocksLooping

The Collect block

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

The For block

Next

Visualize blocks overview

Built with

The Collect block receives individual data items from iterations of a loop, then aggregates them into a list, formatted as a JSON array like this: ["item1","item2","item3"]. For example, if a loop sends one HTTP request per iteration, the Collect block can gather all the responses into a single list when the loop completes. The Collect block is commonly used with the For block, which sends each item in a list individually, and the Repeat block, which runs a group of blocks multiple times.

Input

Item - Accepts a single data item from a For or Repeat loop.

Outputs

List - Creates a JSON array of all the items sent to this block when the loop is complete.

Finish - Sends an event when the loop is complete and the Collect block has aggregated the data into an array.

Example

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

Related blocks

  • For
  • Repeat

Related pages

For more information about creating loops in Flows and tutorials that use the Collect block, see the following:

  • Loops overview
  • Create a count-based loop with the Repeat block
  • Create a dashboard using Postman Flows
  • Create a list-based loop with the For block