> ## Documentation Index
> Fetch the complete documentation index at: https://docs.govly.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List opportunity saved searches

> Latest match previews exclude prediction records.



## OpenAPI

````yaml /openapi/tools-v1.yaml get /api/tools/v1/opportunities/saved_searches
openapi: 3.1.0
info:
  title: Govly Tools API
  version: 1.0.0-alpha
  description: >
    ALPHA / UNSTABLE: This API is still in active development. Endpoint
    behavior, request fields, response fields, error codes, and operation names
    may change before the Tools API is declared stable.

    REST-callable tool surface for agent and automation workflows. Agents are
    the primary consumer, but integrations can be built on this API. Responses
    are JSON for typed clients; MCP tools may render action results into
    text-oriented formats separately.

    Validating requests: validate against this schema in your client before
    sending. Govly ignores a request field it does not recognize rather than
    rejecting it, so a misspelled filter name is not applied — the response
    returns 200 with a broader result set than you intended, and nothing marks
    the difference. Where a request body declares `additionalProperties: false`,
    strict client-side validation is what catches that. Fields sent with the
    wrong type are rejected with 400 on most endpoints; validate types in your
    client too rather than relying on it.

    Rate limits: each resource (for example awards, opportunities, or
    workspaces) allows 70 requests per minute per user. Exceeding it returns 429
    with the standard error envelope, `code: rate_limited`, and a `Retry-After`
    header. Keys sent in the `X-API-KEY` header are also subject to the
    Enterprise API limit of 300 requests per minute per key; see the Rate Limits
    page.
servers:
  - url: https://app.govly.com
security:
  - bearerApiKey: []
  - headerApiKey: []
tags:
  - name: Workflows
    description: Workflow reference file management.
  - name: Opportunities
    description: Search, fetch, and inspect Govly opportunity records.
  - name: Awards
    description: Search and inspect awarded government contracts.
  - name: Contacts
    description: Search and inspect government points of contact.
  - name: Signals
    description: Search clustered procurement and market intelligence signals.
  - name: Places
    description: Resolve place names to canonical Govly Place ids.
  - name: Product Catalogs
    description: List government contract price lists and search their line items.
  - name: Workspaces
    description: Create, update, and inspect opportunity workspaces.
  - name: Organization Users
    description: Discover the members of your organization and their account status.
  - name: Workspace Members
    description: Add users and teams to workspaces.
  - name: File Attachments
    description: >-
      Attach new or existing files through a signed Govly transfer or an
      authorized reference.
  - name: Workspace Attachments
    description: List and upload workspace attachments.
  - name: Workspace Comments
    description: Post comments to workspaces.
  - name: Organization Labels
    description: List, create, rename, recolor, and delete the organization's labels.
  - name: Record Labels
    description: >-
      Apply and remove the organization's labels on opportunities, awards,
      contacts, and workspaces.
  - name: Follows
    description: Follow opportunities and related workspace activity.
  - name: Shares
    description: Share opportunities, awards, and contacts with colleagues by email.
  - name: Saved Searches
    description: List saved opportunity searches and cached matches.
  - name: Documents
    description: >-
      Read document representations and request temporary original-file
      downloads.
  - name: Libraries
    description: Discover accessible Libraries and create additional Libraries.
  - name: Library Documents
    description: List and manage documents in a selected Library.
  - name: Quote Submissions
    description: >-
      Inspect quote submission requirements, submit quotes, and poll submission
      status.
  - name: Inbox
    description: Read and triage the authenticated user's matched inbox items.
paths:
  /api/tools/v1/opportunities/saved_searches:
    get:
      tags:
        - Saved Searches
      summary: List opportunity saved searches
      description: Latest match previews exclude prediction records.
      operationId: list_opportunity_saved_searches
      parameters:
        - $ref: '#/components/parameters/cursor'
        - $ref: '#/components/parameters/perPage'
        - name: active
          in: query
          description: >-
            Active searches by default; false returns archived searches. An
            explicit value takes precedence over includeArchived.
          schema:
            type: boolean
        - name: includeArchived
          in: query
          description: >-
            Include active and archived searches. Omit active when using this
            option.
          schema:
            type: boolean
            default: false
        - name: customFieldFilters
          in: query
          description: >-
            AND filters on configured customFields, applied before pagination.
            Use Rails bracket query encoding, for example
            customFieldFilters[][key]=process_by_agent&customFieldFilters[][operator]=is&customFieldFilters[][value]=true.
            Repeat the same filters with each cursor. Unknown/archived fields
            and invalid predicates return 422.
          schema:
            type: array
            maxItems: 50
            items:
              $ref: '#/components/schemas/CustomFieldFilter'
      responses:
        '200':
          description: Opportunity saved searches
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                  - meta
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/OppSearch'
                  meta:
                    $ref: '#/components/schemas/CursorMeta'
        '401':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
        '422':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  parameters:
    cursor:
      name: cursor
      in: query
      required: false
      schema:
        type: string
    perPage:
      name: perPage
      in: query
      required: false
      schema:
        type: integer
        default: 25
        maximum: 100
  schemas:
    CustomFieldFilter:
      type: object
      additionalProperties: false
      required:
        - key
        - operator
      description: >-
        Uses immutable keys from saved-search customFields. Text supports
        literal, case-insensitive contains/equals; numbers support
        equals/gt/gte/lt/lte; booleans support is. Every type supports
        is_set/is_not_set, with value omitted. Missing/null/whitespace-only text
        is unset; false and zero are set. Numeric and boolean query-string
        values are interpreted using the field type.
      properties:
        key:
          type: string
          maxLength: 80
        operator:
          type: string
          enum:
            - contains
            - equals
            - is_set
            - is_not_set
            - gt
            - gte
            - lt
            - lte
            - is
        value:
          type:
            - string
            - number
            - boolean
      examples:
        - key: process_by_agent
          operator: is
          value: true
        - key: sps_company_code
          operator: equals
          value: '02'
    OppSearch:
      type: object
      required:
        - id
        - name
        - active
        - criteria
        - followedByCurrentUser
        - createdByCurrentUser
        - createdByName
      properties:
        customFields:
          type: array
          items:
            $ref: '#/components/schemas/CustomField'
        id:
          type: string
        name:
          type: string
        active:
          type: boolean
        criteria:
          type: object
          description: Stored search criteria for this saved search.
        matchCount:
          type: integer
        lastMatchedAt:
          type: string
          format: date-time
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        followedByCurrentUser:
          type: boolean
          description: >-
            True when the requesting user follows this search, directly or
            through one of their teams.
        createdByCurrentUser:
          type: boolean
          description: True when the requesting user created this search.
        createdByName:
          type:
            - string
            - 'null'
          description: >-
            Name of the user who created this search, or null when no creator is
            recorded.
    CursorMeta:
      type: object
      required:
        - count
      properties:
        count:
          type: integer
          description: Number of records in this page.
        totalCount:
          type: integer
          description: >
            Total matching records (award and contact search), capped at 10,000
            by the search engine. Pagination via nextCursor is not limited by
            this cap.
        perPage:
          type: integer
        searchType:
          type: string
          enum:
            - fed
            - sled
            - international
          description: >
            Market actually searched (opportunity and award search only). Echoes
            the resolved searchType, including the value defaulted from the
            user's market focus when the request omitted it.
        nextCursor:
          type:
            - string
            - 'null'
    CustomField:
      type: object
      required:
        - key
        - name
        - fieldType
        - value
      properties:
        key:
          type: string
          description: Stable organization-defined integration key; never case-converted.
        name:
          type: string
        fieldType:
          type: string
          enum:
            - text
            - number
            - boolean
        value:
          type:
            - string
            - number
            - boolean
            - 'null'
    ErrorEnvelope:
      type: object
      required:
        - errors
      properties:
        errors:
          type: array
          items:
            type: object
            required:
              - status
              - code
              - title
              - detail
            properties:
              status:
                type: string
              code:
                type: string
              title:
                type: string
              detail:
                type: string
              source:
                type: object
                properties:
                  pointer:
                    type: string
    RateLimitError:
      type: object
      required:
        - error
      properties:
        error:
          type: string
  responses:
    Error:
      description: Error response
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    RateLimited:
      description: >
        Too many requests. Two limiters can produce this status and they use
        different bodies. The per-user limit of 70 requests per minute for each
        resource returns the standard error envelope with `code: rate_limited`
        and a `Retry-After` header. Keys sent in the `X-API-KEY` header are also
        subject to the Enterprise API limit of 300 requests per minute per key,
        which returns the plain `error` form with `Retry-After` and the
        `X-RateLimit-*` headers. Clients should accept either body.
      headers:
        Retry-After:
          description: Seconds to wait before retrying.
          schema:
            type: string
      content:
        application/json:
          schema:
            oneOf:
              - $ref: '#/components/schemas/ErrorEnvelope'
              - $ref: '#/components/schemas/RateLimitError'
  securitySchemes:
    bearerApiKey:
      type: http
      scheme: bearer
      bearerFormat: API key
    headerApiKey:
      type: apiKey
      in: header
      name: X-API-KEY

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.