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
          • Overview
          • Get basic values
          • Select conditional data
          • Return structured data
          • Manipulate data
          • Function reference
        • 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
  • Example JSON
  • Filter query results for objects with specific key-value pairs
  • Navigate your filtered results
  • Return a single record
  • Check if a field has a specific value
  • Get only unique payment amounts
Postman FlowsFlows referenceFlows Query Language

Use FQL conditional logic to select data

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

Get basic values in FQL

Next

Return structured data in FQL

Built with

You can use Flows Query Language (FQL) to filter for specific data in your responses. Multiple responses return in an array. Single responses return as a single record. Sample data and FQL examples are below.

Example JSON

The examples below use this JSON object:

1 {
2 "customer_info": {
3 "customer_field": "Customer data",
4 "unformated_customer_field": " customer \n stuff ",
5 "total_value": "281.01",
6 "associated_usernames": ["user1", "myuser", "online_user"]
7 },
8 "payments": [
9 {
10 "invoice_number": "101301",
11 "date": "2022-09-11T16:12:34.494Z",
12 "description": "recurring subscription",
13 "amount": 110.48
14 },
15 {
16 "invoice_number": "101302",
17 "date": "2022-09-29T14:45:13.148Z",
18 "description": "one time purchase",
19 "amount": 24.49
20 },
21 {
22 "invoice_number": "101303",
23 "date": "2022-10-11T16:12:34.683Z",
24 "description": "recurring subscription",
25 "amount": 110.48
26 },
27 {
28 "invoice_number": "101304",
29 "date": "2022-10-12T11:45:22.182Z",
30 "description": "recurring subscription deluxe",
31 "amount": 35.56
32 }
33 ]
34 }

Filter query results for objects with specific key-value pairs

The example below filters for objects in the payments array that have the key-value pair "description": "recurring subscription".

FQLpayments[description="recurring subscription"]
Result
1[
2 {
3 "invoice_number": "101301",
4 "date": "2022-09-11T16:12:34.494Z",
5 "description": "recurring subscription",
6 "amount": 110.48
7 },
8 {
9 "invoice_number": "101303",
10 "date": "2022-10-11T16:12:34.683Z",
11 "description": "recurring subscription",
12 "amount": 110.48
13 }
14]

Navigate your filtered results

FQL uses the same syntax to navigate filtered query results as it does to navigate JSON data. The example below gets the values from the invoice.number fields in the payments array.

FQLpayments[description="recurring subscription"].invoice_number
Result

["101301","101303"]

Return a single record

When a filter has a single result, it returns as a record instead of an array. The filter below returns a single result as a record.

FQLpayments[description="recurring subscription deluxe"].invoice_number
Result

["101304"]

Check if a field has a specific value

FQL can check if your query results have a specific key-value pair and return true or false. The example below checks the first item in the payments array for the key-value pair "description": "recurring".

FQL$contains(payments[0].description, "recurring")
Resulttrue

Get only unique payment amounts

The $distinct function returns a single instance of any recurring values. In the example below, the 110.48 value appears twice in the data, but only once in the result.

FQL$distinct(payments.amount)
Result[110.48, 24.49, 35.56]