searchPostmanElements
Search Postman entities (requests, collections, workspaces, specs, flows, environments, mocks) using filters for ownership, visibility, and workspace.
Instructions
Search for Postman entities (requests, collections, workspaces, specs, flows, environments, and mocks).
Ownership:
organization— Search within all resources owned by your organization (default).external— Search within the public Postman network (third-party and community APIs).all— Search across all scopes.
When to use each ownership value and filters:
Goal | Recommended approach |
Find an internal API (e.g. "our notification service") |
|
Find a trusted API published to the Private Network |
|
Find an internal API in all resources of organization and are visible to the organization only |
|
Find an API by your organization that is made publicly visible |
|
Find a third party publicly visible API (e.g. "Stripe API", "Twilio API") |
|
User says "our APIs", "internal", "team" |
|
Search across all scopes |
|
Element Types:
requests: Search for individual API requests.collections: Search for API collections.workspaces: Search for Postman workspaces.specs: Search for API specifications.flows: Search for Postman Flows.environments: Search for Postman Environments.mocks: Search for Postman Mock Servers.
Filters:
Use the filters parameter to narrow results. The top-level key must be $and with an array of condition objects. Each condition object must contain exactly one field key.
Supported filter fields:
Field | Operators | Notes |
|
| All element types. |
|
| Requests and collections only. |
|
| Values: |
|
| Boolean. All element types. |
|
| Boolean. All element types. |
|
| HTTP methods (GET, POST, etc.). Requests only. |
|
| Workspaces and collections only. |
|
| Requests only. |
|
| Specs only. |
|
| Flows only. |
|
| All element types. |
|
| All element types. |
|
| All element types. |
|
| Boolean. Workspaces, collections, requests, specs, flows, environments, mocks. |
|
| Requests only. |
Filter examples:
Private API Network only:
{"$and":[{"privateNetwork":{"$eq":true}}]}Single workspace:
{"$and":[{"workspaceId":{"$eq":"ws-abc123"}}]}Multiple workspaces:
{"$and":[{"workspaceId":{"$in":["ws-1","ws-2"]}}]}Public visibility:
{"$and":[{"visibility":{"$eq":"public"}}]}GET requests only:
{"$and":[{"method":{"$eq":"GET"}}]}Combine conditions:
{"$and":[{"visibility":{"$eq":"public"}},{"workspaceId":{"$eq":"ws-abc123"}}]}Environments in a workspace:
{"$and":[{"workspaceId":{"$eq":"ws-abc123"}}]}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entityType | No | The type of Postman entity to search for: `requests` (individual API requests), `collections` (API collections), `workspaces` (Postman workspaces), `specs` (API specifications), `flows` (Postman Flows), `environments` (Postman Environments), or `mocks` (Postman Mock Servers). | requests |
| q | No | The search query (e.g. "payment API", "notification service", "Stripe"). | |
| ownership | No | The ownership scope. Use `organization` to search all resources in your organization (default), `external` to search the public Postman network, or `all` to search across all scopes. | organization |
| filters | No | Structured filter expression. Top-level key must be "$and" with an array of condition objects. Each condition: { "<field>": { "<operator>": <value> } }. Example: {"$and":[{"privateNetwork":{"$eq":true}}]} | |
| cursor | No | The cursor to get the next set of results in the paginated response. Pass the `nextCursor` value from the previous response. | |
| limit | No | The maximum number of search results to return. Maximum: 25. |