Postman search API

The search API from Postman — 1 operation(s) for search.

OpenAPI Specification

postman-search-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Postman Search API
  version: 1.0.0
  description: 'Operations tagged search across 2 of this provider''s published API definitions: postman-api-openapi.yml, postman-search-api-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.postman.com
  description: https://api.postman.com
- url: https://api.eu.postman.com
  description: https://api.eu.postman.com
tags:
- name: search
paths:
  /search:
    post:
      operationId: postmanResources
      summary: Search Postman resources
      description: 'Searches Postman for resources such as workspaces, collections, requests, and other resource types. You can filter results by ownership, visibility, tags, and other criteria.


        **Note:**


        If you call this endpoint without an API key, the response only returns publicly-available resources.

        '
      tags:
      - search
      parameters:
      - name: limit
        in: query
        description: The maximum number of results to return per page.
        required: false
        schema:
          $ref: '#/components/schemas/limitDefault10Max25'
          default: 10
      - name: cursor
        in: query
        description: The pointer to the first record of the set of paginated results. To view the next response, use the `nextCursor` value for this parameter.
        required: false
        schema:
          $ref: '#/components/schemas/cursor'
      - name: x-api-key
        in: header
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/searchPostmanResourcesResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/commonErrorTypeTitleDetailStatus'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchPostmanResourcesRequestInternalServerError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/searchPostmanResources'
    servers:
    - url: https://api.postman.com
      description: https://api.postman.com
    - url: https://api.eu.postman.com
      description: https://api.eu.postman.com
components:
  schemas:
    SearchFilterVisibilityEq:
      type: string
      enum:
      - internal
      - public
      - partner
      description: The visibility value to match.
      title: SearchFilterVisibilityEq
    environmentId:
      type: string
      title: environmentId
    searchFilterOrgId:
      type: object
      properties:
        $eq:
          type: string
          description: The organization ID to match.
        $ne:
          type: string
          description: The organization ID to exclude.
        $in:
          type: array
          items:
            $ref: '#/components/schemas/organizationIdString'
          description: A list of organization IDs to match.
        $nin:
          type: array
          items:
            $ref: '#/components/schemas/organizationIdString'
          description: A list of organization IDs to exclude.
      description: Filters by organization ID. Supported for all element types.
      title: searchFilterOrgId
    searchPostmanResourcesResponseData:
      type: object
      properties:
        id:
          type: string
          description: The resource's ID.
        name:
          type: string
          description: The resource's name.
        method:
          type: string
          description: The request's HTTP method. Returns only for requests.
        type:
          type: string
          description: The resource type variant, such as HTTP or gRPC. Returns only for requests.
        description:
          type: string
          description: A brief description of the resource, if available.
        summary:
          type: string
          description: A brief summary of the resource, if available. Returns only for workspaces and collections.
        url:
          type: string
          format: uri
          description: The request URL of the resource. Returns only for requests.
        tags:
          type: array
          items:
            $ref: '#/components/schemas/tagName'
          description: A list of tags associated with the resource. Returns only for workspaces and collections.
        specificationId:
          type: string
          description: The specification's ID. Returns only for specifications.
        specificationType:
          type: string
          description: The specification's type. Returns only for specifications.
        specificationName:
          type: string
          description: The specification's name. Returns only for specifications.
        isPrivateNetworkEntity:
          type: boolean
          description: Whether the resource is part of a private API network.
        createdBy:
          type: string
          description: The ID of the user who created the resource.
        team:
          $ref: '#/components/schemas/searchResourceTeamData'
        isGitConnected:
          type: boolean
          description: If true, the resource is connected to Git. Returns only for workspaces, collections, requests, specifications, and flows.
        collection:
          $ref: '#/components/schemas/searchRequestsCollectionData'
        workspace:
          $ref: '#/components/schemas/searchResourceWorkspacesData'
        organization:
          $ref: '#/components/schemas/searchResourceOrganizationData'
        links:
          $ref: '#/components/schemas/searchResourceLinksData'
      description: Information about the Postman resource.
      title: searchPostmanResourcesResponseData
    CommonErrorTypeTitleDetailStatusType:
      oneOf:
      - type: string
        format: uri-reference
      - type: string
      title: CommonErrorTypeTitleDetailStatusType
    searchResourceTeamData:
      type: object
      properties:
        id:
          type:
          - string
          - 'null'
          description: The team's ID.
        name:
          type:
          - string
          - 'null'
          description: The team's name.
      description: Information about the team associated with the resource. This returns a null value for the `user` publisher type.
      title: searchResourceTeamData
    CommonErrorNameMessageError:
      type: object
      properties:
        name:
          type: string
          description: The error name.
        message:
          type: string
          description: The error message.
      description: Information about the error.
      title: CommonErrorNameMessageError
    searchResourceOrganizationData:
      type: object
      properties:
        id:
          type:
          - string
          - 'null'
          description: The organization's ID.
        name:
          type:
          - string
          - 'null'
          description: The organization's name.
        isVerified:
          type: boolean
          description: If true, the organization is verified by Postman.
      description: Information about the organization that published the resource. This returns a null value for the `user` publisher type.
      title: searchResourceOrganizationData
    searchResourceLinksData:
      type: object
      properties:
        web:
          $ref: '#/components/schemas/searchResourceWebData'
        self:
          $ref: '#/components/schemas/searchResourceLinksSelfData'
      description: Information about the resource's hypermedia links.
      title: searchResourceLinksData
    searchFilters:
      type: object
      properties:
        privateNetwork:
          $ref: '#/components/schemas/searchFilterPrivateApiNetwork'
        publisherIsVerified:
          $ref: '#/components/schemas/searchFilterPublisherIsVerified'
        visibility:
          $ref: '#/components/schemas/searchFilterVisibility'
        workspaceId:
          $ref: '#/components/schemas/searchFilterWorkspaceId'
        collectionId:
          $ref: '#/components/schemas/searchFilterCollectionId'
        tags:
          $ref: '#/components/schemas/searchFilterTags'
        method:
          $ref: '#/components/schemas/searchFilterRequestHttpMethod'
        requestId:
          $ref: '#/components/schemas/searchFilterRequestId'
        specificationId:
          $ref: '#/components/schemas/searchFilterSpecId'
        flowId:
          $ref: '#/components/schemas/searchFilterFlowId'
        environmentId:
          $ref: '#/components/schemas/searchFilterEnvironmentId'
        createdBy:
          $ref: '#/components/schemas/searchFilterCreatedBy'
        organizationId:
          $ref: '#/components/schemas/searchFilterOrgId'
        teamId:
          $ref: '#/components/schemas/searchFilterTeamId'
        isGitConnected:
          $ref: '#/components/schemas/searchFilterGitConnected'
        type:
          $ref: '#/components/schemas/searchFilterRequestResourceType'
      description: A single filter condition.
      title: searchFilters
    teamIdString:
      type: string
      title: teamIdString
    searchResourceLinksSelfData:
      type: object
      properties:
        href:
          type: string
          format: uri
          description: The URL to access the resource through the Postman API.
      description: The link to the resource through the Postman API.
      title: searchResourceLinksSelfData
    SearchPostmanResourcesFilters:
      type: object
      properties:
        $and:
          $ref: '#/components/schemas/searchFilterAndOperation'
      required:
      - $and
      description: The search filters to narrow results.
      title: SearchPostmanResourcesFilters
    searchFilterPrivateApiNetwork:
      type: object
      properties:
        $eq:
          type: boolean
          description: If true, return only resources that are part of the Private API Network.
        $ne:
          type: boolean
          description: If true, exclude resources that are part of the Private API Network.
      description: Filters by private API network membership. Supported for all element types.
      title: searchFilterPrivateApiNetwork
    searchRequestsCollectionData:
      type: object
      properties:
        id:
          type: string
          description: The collection's ID.
        name:
          type: string
          description: The collection's name.
      description: Information about the collection containing the resource. Returns only for requests.
      title: searchRequestsCollectionData
    commonErrorTypeTitleDetail:
      type: object
      properties:
        type:
          type: string
          description: The type of error.
        title:
          type: string
          description: A short summary of the problem.
        detail:
          $ref: '#/components/schemas/CommonErrorTypeTitleDetailDetail'
          description: Information about the error.
      title: commonErrorTypeTitleDetail
    searchFilterSpecId:
      type: object
      properties:
        $eq:
          type: string
          description: The specification ID to match.
        $ne:
          type: string
          description: The specification ID to exclude.
        $in:
          type: array
          items:
            $ref: '#/components/schemas/specId'
          description: A list of specification IDs to match.
        $nin:
          type: array
          items:
            $ref: '#/components/schemas/specId'
          description: A list of specification IDs to exclude.
      description: Filters by specification ID. Supported for `specs` only.
      title: searchFilterSpecId
    workspaceId:
      type: string
      title: workspaceId
    searchFilterFlowId:
      type: object
      properties:
        $eq:
          type: string
          description: The flow ID to match.
        $ne:
          type: string
          description: The flow ID to exclude.
        $in:
          type: array
          items:
            $ref: '#/components/schemas/flowId'
          description: A list of flow IDs to match.
        $nin:
          type: array
          items:
            $ref: '#/components/schemas/flowId'
          description: A list of flow IDs to exclude.
      description: Filters by flow ID. Supported for `flows` only.
      title: searchFilterFlowId
    collectionUid:
      type: string
      format: uid
      title: collectionUid
    searchFilterEnvironmentId:
      type: object
      properties:
        $eq:
          type: string
          description: The environment ID to match.
        $ne:
          type: string
          description: The environment ID to exclude.
        $in:
          type: array
          items:
            $ref: '#/components/schemas/environmentId'
          description: A list of environment IDs to match.
        $nin:
          type: array
          items:
            $ref: '#/components/schemas/environmentId'
          description: A list of environment IDs to exclude.
      description: Filters by environment ID. Supported for `environments` only.
      title: searchFilterEnvironmentId
    flowId:
      type: string
      title: flowId
    SearchPostmanResourcesRequestInternalServerError:
      oneOf:
      - $ref: '#/components/schemas/commonErrorTypeTitleDetail'
      - $ref: '#/components/schemas/commonErrorTypeTitleDetailStatus'
      - $ref: '#/components/schemas/commonErrorNameMessage'
      title: SearchPostmanResourcesRequestInternalServerError
    searchFilterAndOperation:
      type: array
      items:
        $ref: '#/components/schemas/searchFilters'
      description: A list of filter conditions that must all be true. Each item must contain exactly one filter.
      title: searchFilterAndOperation
    searchFilterCreatedBy:
      type: object
      properties:
        $eq:
          type: string
          description: The creator ID to match.
        $ne:
          type: string
          description: The creator ID to exclude.
        $in:
          type: array
          items:
            $ref: '#/components/schemas/createdByString'
          description: A list of creator IDs to match.
        $nin:
          type: array
          items:
            $ref: '#/components/schemas/createdByString'
          description: A list of creator IDs to exclude.
      description: Filters by the resource creator's user ID. Supported for all element types.
      title: searchFilterCreatedBy
    collectionRequestId:
      type: string
      title: collectionRequestId
    searchFilterTags:
      type: object
      properties:
        $eq:
          type: string
          description: The tag to match.
        $ne:
          type: string
          description: The tag to exclude.
        $in:
          type: array
          items:
            $ref: '#/components/schemas/tagName'
          description: A list of tags to match.
        $nin:
          type: array
          items:
            $ref: '#/components/schemas/tagName'
          description: A list of tags to exclude.
      description: Filters by tags. Supported for `workspaces` and `collections`.
      title: searchFilterTags
    searchFilterRequestResourceType:
      type: object
      properties:
        $eq:
          type: string
          description: The resource type to match.
        $ne:
          type: string
          description: The resource type to exclude.
        $in:
          type: array
          items:
            $ref: '#/components/schemas/collectionRequestResourceType'
          description: A list of resource types to match.
        $nin:
          type: array
          items:
            $ref: '#/components/schemas/collectionRequestResourceType'
          description: A list of resource types to exclude.
      description: Filters by resource type variant (for example, `http` or `grpc`). Supported for `requests` only.
      title: searchFilterRequestResourceType
    searchFilterCollectionId:
      type: object
      properties:
        $eq:
          type: string
          description: The collection ID to match.
        $ne:
          type: string
          description: The collection ID to exclude.
        $in:
          type: array
          items:
            $ref: '#/components/schemas/collectionUid'
          description: A list of collection IDs to match.
        $nin:
          type: array
          items:
            $ref: '#/components/schemas/collectionUid'
          description: A list of collection IDs to exclude.
      description: Filters by collection ID. Supported for `requests` and `collections` only.
      title: searchFilterCollectionId
    cursor:
      type: string
      title: cursor
    searchFilterVisibility:
      type: object
      properties:
        $eq:
          $ref: '#/components/schemas/SearchFilterVisibilityEq'
          description: The visibility value to match.
        $ne:
          $ref: '#/components/schemas/SearchFilterVisibilityNe'
          description: The visibility value to exclude.
      description: 'Filters by workspace visibility. Supported for all element types. One of:

        - `internal` — Only visible to the organization''s team members.

        - `public` — Visible to all Postman users.

        - `partner` — Visible to assigned external partner users.

        '
      title: searchFilterVisibility
    tagName:
      type: string
      title: tagName
    searchFilterWorkspaceId:
      type: object
      properties:
        $eq:
          type: string
          description: The workspace ID to match.
        $ne:
          type: string
          description: The workspace ID to exclude.
        $in:
          type: array
          items:
            $ref: '#/components/schemas/workspaceId'
          description: A list of workspace IDs to match.
        $nin:
          type: array
          items:
            $ref: '#/components/schemas/workspaceId'
          description: A list of workspace IDs to exclude.
      description: Filters by workspace ID. Supported for all element types.
      title: searchFilterWorkspaceId
    searchFilterTeamId:
      type: object
      properties:
        $eq:
          type: string
          description: The team ID to match.
        $ne:
          type: string
          description: The team ID to exclude.
        $in:
          type: array
          items:
            $ref: '#/components/schemas/teamIdString'
          description: A list of team IDs to match.
        $nin:
          type: array
          items:
            $ref: '#/components/schemas/teamIdString'
          description: A list of team IDs to exclude.
      description: Filters by team ID. Supported for all element types.
      title: searchFilterTeamId
    commonErrorTypeTitleDetailStatus:
      type: object
      properties:
        type:
          $ref: '#/components/schemas/CommonErrorTypeTitleDetailStatusType'
        title:
          type: string
          description: A short summary of the problem.
        detail:
          type: string
          description: Information about the error.
        status:
          type: integer
          description: The error's HTTP status code.
      title: commonErrorTypeTitleDetailStatus
    limitDefault10Max25:
      type: integer
      default: 10
      title: limitDefault10Max25
    searchMetaData:
      type: object
      properties:
        nextCursor:
          type: string
          description: The pagination cursor that points to the next record in the results set.
        q:
          type: string
          description: The search query text.
        total:
          type: integer
          description: The number of records found.
      description: Pagination metadata for the search results.
      title: searchMetaData
    searchPostmanResourcesResponse:
      type: object
      properties:
        meta:
          $ref: '#/components/schemas/searchMetaData'
        data:
          type: array
          items:
            $ref: '#/components/schemas/searchPostmanResourcesResponseData'
          description: A list of Postman elements that match the search query and filters.
      title: searchPostmanResourcesResponse
    searchPostmanResources:
      type: object
      properties:
        q:
          type: string
          description: The search query text. This is case-insensitive.
        elementType:
          $ref: '#/components/schemas/SearchPostmanResourcesElementType'
          description: The type of Postman resource to search for.
        ownership:
          $ref: '#/components/schemas/SearchPostmanResourcesOwnership'
          default: organization
          description: 'The ownership scope for search results. One of:

            - `organization` (default) — Resources owned by the user''s team.

            - `external` — Resources not owned by the user''s team.

            - `all` — All resources regardless of ownership.

            '
        filters:
          $ref: '#/components/schemas/SearchPostmanResourcesFilters'
          description: The search filters to narrow results.
      required:
      - elementType
      title: searchPostmanResources
    SearchPostmanResourcesElementType:
      type: string
      enum:
      - requests
      - collections
      - workspaces
      - environments
      - flows
      - specs
      description: The type of Postman resource to search for.
      title: SearchPostmanResourcesElementType
    searchFilterRequestId:
      type: object
      properties:
        $eq:
          type: string
          description: The request ID to match.
        $ne:
          type: string
          description: The request ID to exclude.
        $in:
          type: array
          items:
            $ref: '#/components/schemas/collectionRequestId'
          description: A list of request IDs to match.
        $nin:
          type: array
          items:
            $ref: '#/components/schemas/collectionRequestId'
          description: A list of request IDs to exclude.
      description: Filters by request ID. Supported for `requests` only.
      title: searchFilterRequestId
    searchFilterPublisherIsVerified:
      type: object
      properties:
        $eq:
          type: boolean
          description: If true, return only results from verified publishers.
        $ne:
          type: boolean
          description: If true, exclude results from verified publishers.
      description: Filters by publisher verification status. Supported for all element types.
      title: searchFilterPublisherIsVerified
    commonErrorNameMessage:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/CommonErrorNameMessageError'
          description: Information about the error.
      title: commonErrorNameMessage
    searchResourceWebData:
      type: object
      properties:
        href:
          type: string
          format: uri
          description: The URL to view the resource in the Postman web app.
      description: The link to view the resource in the Postman web app.
      title: searchResourceWebData
    searchResourceWorkspacesData:
      type: object
      properties:
        id:
          type: string
          description: The workspace's ID.
        name:
          type: string
          description: The workspace's name.
      description: Information about the workspace containing the resource.
      title: searchResourceWorkspacesData
    httpMethod:
      type: string
      title: httpMethod
    SearchFilterVisibilityNe:
      type: string
      enum:
      - internal
      - public
      - partner
      description: The visibility value to exclude.
      title: SearchFilterVisibilityNe
    searchFilterGitConnected:
      type: object
      properties:
        $eq:
          type: boolean
          description: If true, return only resources connected to Git.
        $ne:
          type: boolean
          description: If true, exclude resources connected to Git.
      description: Filters by Git connection status. Supported for `workspaces`, `collections`, `requests`, `environments`, `specs`, and `flows`.
      title: searchFilterGitConnected
    collectionRequestResourceType:
      type: string
      title: collectionRequestResourceType
    organizationIdString:
      type: string
      title: organizationIdString
    CommonErrorTypeTitleDetailDetail:
      oneOf:
      - type: string
      - type: object
        additionalProperties:
          description: Any type
      description: Information about the error.
      title: CommonErrorTypeTitleDetailDetail
    searchFilterRequestHttpMethod:
      type: object
      properties:
        $eq:
          type: string
          description: The HTTP method to match.
        $ne:
          type: string
          description: The HTTP method to exclude.
        $in:
          type: array
          items:
            $ref: '#/components/schemas/httpMethod'
          description: A list of HTTP methods to match.
        $nin:
          type: array
          items:
            $ref: '#/components/schemas/httpMethod'
          description: A list of HTTP methods to exclude.
      description: Filters by HTTP method (for example, `GET` or `POST`). Supported for `requests` only.
      title: searchFilterRequestHttpMethod
    SearchPostmanResourcesOwnership:
      type: string
      enum:
      - organization
      - external
      - all
      default: organization
      description: 'The ownership scope for search results. One of:

        - `organization` (default) — Resources owned by the user''s team.

        - `external` — Resources not owned by the user''s team.

        - `all` — All resources regardless of ownership.

        '
      title: SearchPostmanResourcesOwnership
    specId:
      type: string
      title: specId
    createdByString:
      type: string
      title: createdByString
  securitySchemes:
    PostmanApiKey:
      type: apiKey
      in: header
      name: x-api-key
    basicAuth:
      type: http
      scheme: basic
    scimApiKey:
      type: apiKey
      in: header
      name: Authorization
      description: A valid [SCIM API key](https://learning.postman.com/docs/administration/scim-provisioning/scim-provisioning-overview/#generating-scim-api-key) for calls to SCIM endpoints.
x-refined-from:
- postman-api-openapi.yml
- postman-search-api-openapi.yml
x-provenance:
  first_party: true
  method: harvested
  provider_published: true
  source: https://learning.postman.com/api-docs/openapi.json
  harvested: '2026-08-05'
  note: Postman's own OpenAPI 3.1 definition for the Postman API, served by its Fern-hosted API reference. 162 paths, 256 operations, servers api.postman.com and api.eu.postman.com.