> ## 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.

# Search public labor references with source provenance

> Free authenticated personal-key lookup shared with Govly AI and MCP. Eventually current indexed references, ordered newest-created first. Ceiling, wage and escalation bases are different economic measures; inspect qualifications, geography, unit and dates. Literal filters are applied or rejected; unknown fields and malformed shapes return 400. Default/max 25 rows; cursors bind filters. Page rows are not a representative market sample and do not establish market averages. Search may lag or mix refreshes; every result retains the exact observation that matched. Source metadata describes the last completed import, independently of index freshness. Validated batches persist after failed imports. Live cursors may omit or repeat rows during updates or rebuilds; refreshes do not invalidate continuation. REST uses normal Rails parameter handling. Null array entries are removed and blank optional strings are omitted before filter validation. Arrays left empty remain invalid.



## OpenAPI

````yaml /openapi/tools-v1.yaml post /api/tools/v1/labor_rates/search
openapi: 3.1.0
info:
  title: Govly Tools API
  version: 1.0.0-alpha
  description: >
    Public labor-rate search and detail are free with a valid personal API key.
    Other Tools API endpoints retain their existing Enterprise API entitlement.

    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. Most operations ignore unrecognized request fields, so a misspelled
    filter can return 200 with a broader result set than you intended.
    Operations that reject unknown fields document that behavior. Validate names
    and types in your client, including for schemas with `additionalProperties:
    false`.

    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: SAM Registrations
    description: Search entity registrations in the latest SAM.gov public extract.
  - name: Contacts
    description: Search and inspect government points of contact.
  - name: Signals
    description: Search clustered procurement and market intelligence signals.
  - name: Labor Rates
    description: Free public labor references with source history and exact values.
  - 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/labor_rates/search:
    post:
      tags:
        - Labor Rates
      summary: Search public labor references with source provenance
      description: >-
        Free authenticated personal-key lookup shared with Govly AI and MCP.
        Eventually current indexed references, ordered newest-created first.
        Ceiling, wage and escalation bases are different economic measures;
        inspect qualifications, geography, unit and dates. Literal filters are
        applied or rejected; unknown fields and malformed shapes return 400.
        Default/max 25 rows; cursors bind filters. Page rows are not a
        representative market sample and do not establish market averages.
        Search may lag or mix refreshes; every result retains the exact
        observation that matched. Source metadata describes the last completed
        import, independently of index freshness. Validated batches persist
        after failed imports. Live cursors may omit or repeat rows during
        updates or rebuilds; refreshes do not invalidate continuation. REST uses
        normal Rails parameter handling. Null array entries are removed and
        blank optional strings are omitted before filter validation. Arrays left
        empty remain invalid.
      operationId: search_labor_rates
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LaborRateSearchInput'
      responses:
        '200':
          description: Matching current references and publication coverage
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                  - meta
                properties:
                  data:
                    type: array
                    maxItems: 25
                    items:
                      $ref: '#/components/schemas/LaborRate'
                  meta:
                    $ref: '#/components/schemas/LaborRateSearchMeta'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
        '503':
          $ref: '#/components/responses/Error'
components:
  schemas:
    LaborRateSearchInput:
      type: object
      additionalProperties: false
      properties:
        query:
          type: string
          minLength: 1
          maxLength: 200
          pattern: \S
          description: >-
            Literal substring across category, vendor, contract, occupation,
            industry and geography.
        datasets:
          type: array
          minItems: 1
          maxItems: 3
          items:
            type: string
            enum:
              - gsa_calc
              - gsa_bls
              - gsa_eci
        bases:
          type: array
          minItems: 1
          maxItems: 3
          items:
            type: string
            enum:
              - ceiling
              - wage
              - escalation
        occupation:
          type: string
          minLength: 1
          maxLength: 200
          pattern: \S
          description: Literal occupation/category substring.
        occupationCode:
          type: string
          minLength: 1
          maxLength: 200
          pattern: \S
          description: Exact provider occupation code.
        occupationLevel:
          type: string
          minLength: 1
          maxLength: 200
          pattern: \S
          description: >-
            Exact GSA level label (case insensitive); a percentile convention,
            not a qualification equivalence.
        education:
          type: string
          minLength: 1
          maxLength: 200
          pattern: \S
          description: >-
            Exact CALC education; HS/AA/BA/MA/PhD aliases accepted. Other labels
            are literal.
        securityClearance:
          type: boolean
          description: Exact clearance requirement; false is an applied filter.
        maxYearsExperience:
          type: integer
          minimum: 0
          maximum: 100
          description: >-
            CALC rows requiring at most this many years. Unknown values do not
            match.
        area:
          type: string
          minLength: 1
          maxLength: 200
          pattern: \S
          description: Literal BLS area-name substring. CALC worksite is not a geography.
        stateCode:
          type: string
          minLength: 1
          maxLength: 200
          pattern: \S
          description: Exact provider state code, case insensitive.
        industryCode:
          type: string
          minLength: 1
          maxLength: 200
          pattern: \S
          description: Exact provider industry code.
        naicsCodes:
          type: array
          minItems: 1
          maxItems: 25
          items:
            type: string
            pattern: ^(?:[0-9]{2,6}|31-33|44-45|48-49)$
          description: >-
            Verified NAICS 2022 codes. A result's entire mapped industry scope
            must fit within one requested code; verified descendants match.
            Unmapped and broader aggregates do not match. Codes must exist in
            the reference dictionary.
        worksite:
          type: string
          enum:
            - customer
            - contractor
            - both
            - virtual
        vendor:
          type: string
          minLength: 1
          maxLength: 200
          pattern: \S
          description: Literal contractor-name substring.
        contractNumber:
          type: string
          minLength: 1
          maxLength: 200
          pattern: \S
          description: Exact CALC contract number, case insensitive.
        minValue:
          type: string
          maxLength: 40
          pattern: ^\d+(\.\d+)?$
          description: Nonnegative exact decimal string.
        maxValue:
          type: string
          maxLength: 40
          pattern: ^\d+(\.\d+)?$
          description: Nonnegative exact decimal string.
        perPage:
          type: integer
          minimum: 1
          maximum: 25
        cursor:
          type: string
          minLength: 1
          maxLength: 16000
          description: Opaque nextCursor for the same filters. Omit for first page.
      required: []
    LaborRate:
      type: object
      required:
        - key
        - observationKey
        - basis
        - label
        - value
        - currency
        - unit
        - source
        - active
        - isCurrentObservation
        - details
        - industryCodeSystem
        - naicsCodes
        - naicsVersion
        - naicsMapping
      properties:
        occupationName:
          type:
            - string
            - 'null'
        occupationCode:
          type:
            - string
            - 'null'
        occupationLevel:
          type:
            - string
            - 'null'
        education:
          type:
            - string
            - 'null'
        worksite:
          type:
            - string
            - 'null'
        vendorName:
          type:
            - string
            - 'null'
        contractNumber:
          type:
            - string
            - 'null'
        contractStartOn:
          type:
            - string
            - 'null'
        contractEndOn:
          type:
            - string
            - 'null'
        industryName:
          type:
            - string
            - 'null'
        industryCode:
          type:
            - string
            - 'null'
        industryCodeSystem:
          type:
            - string
            - 'null'
          description: >-
            Provider industry-code namespace; gsa_bls_industry identifies GSA's
            BLS/ECI pricing industry codes, including special aggregates.
        naicsCodes:
          type: array
          items:
            type: string
          description: >-
            Separately verified NAICS mappings. Multiple codes describe the
            complete aggregate scope. Empty means no verified mapping.
        naicsVersion:
          type:
            - string
            - 'null'
          description: >-
            Target NAICS edition for the derived mapping; does not establish a
            missing source classification edition.
        naicsMapping:
          type: object
          properties:
            method:
              type: string
            referenceKey:
              type: string
            referenceYear:
              type: integer
            sourceUrls:
              type: object
              additionalProperties:
                type: string
                format: uri
          description: >-
            Derived dictionary-match provenance, separate from original provider
            evidence. Empty when unmapped.
        areaName:
          type:
            - string
            - 'null'
        areaCode:
          type:
            - string
            - 'null'
        stateName:
          type:
            - string
            - 'null'
        stateCode:
          type:
            - string
            - 'null'
        key:
          type: string
          pattern: ^[a-f0-9]{64}$
        observationKey:
          type: string
          format: uuid
        basis:
          type: string
          enum:
            - ceiling
            - wage
            - escalation
        label:
          type: string
        value:
          type:
            - string
            - 'null'
          description: >-
            Exact ordinary decimal string; null means unavailable. Never coerce
            missing data to zero.
        currency:
          type:
            - string
            - 'null'
          enum:
            - USD
            - null
        unit:
          type: string
          enum:
            - USD/hour
            - multiplier
        minYearsExperience:
          type:
            - integer
            - 'null'
        securityClearance:
          type:
            - boolean
            - 'null'
        referenceYear:
          type:
            - integer
            - 'null'
        details:
          type: object
          description: >-
            Provider labels and basis note; BLS percentile or ECI
            averagingWindowYears/percent when available. Percent is distinct
            from the multiplier value.
        source:
          $ref: '#/components/schemas/LaborRateSource'
        active:
          type: boolean
        isCurrentObservation:
          type: boolean
    LaborRateSearchMeta:
      type: object
      required:
        - count
        - perPage
        - nextCursor
        - appliedFilters
        - sources
      properties:
        count:
          type: integer
          description: Returned page size, not a search-cohort total.
        perPage:
          type: integer
          maximum: 25
          default: 25
        nextCursor:
          type:
            - string
            - 'null'
        appliedFilters:
          type: object
          description: All supplied filters after consistent alias/case normalization.
        sources:
          type: array
          maxItems: 3
          items:
            type: object
            required:
              - dataset
              - status
              - coverage
            properties:
              dataset:
                type: string
              status:
                type: string
                enum:
                  - available
                  - unavailable
              name:
                type: string
              url:
                type: string
              snapshotKey:
                type:
                  - string
                  - 'null'
              retrievedAt:
                type:
                  - string
                  - 'null'
                format: date-time
              publishedAt:
                type:
                  - string
                  - 'null'
                format: date-time
              sourceCount:
                type:
                  - integer
                  - 'null'
                description: Published original source-row count, not a query total.
              rateCount:
                type:
                  - integer
                  - 'null'
                description: >-
                  Published normalized row count; ECI can expand each source row
                  into three windows.
              coverage:
                type: object
                description: >-
                  Provider scope and available coverage. Does not claim all MAS
                  contracts or all raw BLS statistics.
    LaborRateSource:
      type: object
      required:
        - dataset
        - url
        - recordKey
        - snapshotKey
        - retrievedAt
      properties:
        dataset:
          type: string
          enum:
            - gsa_calc
            - gsa_bls
            - gsa_eci
        url:
          type: string
          format: uri
        recordKey:
          type: string
        snapshotKey:
          type: string
        retrievedAt:
          type: string
          format: date-time
        sourceDate:
          type:
            - string
            - 'null'
          description: >-
            Source load date if supplied; not asserted to be a rate-effective
            date.
    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.