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

# Search past transcripts



## OpenAPI

````yaml /api-reference/local-api/openapi.yaml get /recordings/search
openapi: 3.0.3
info:
  title: HyperWhisper Local API
  description: >
    HTTP API exposed by HyperWhisper.app on `127.0.0.1` when the user enables

    Settings → API Server. Off by default. Used by MCP wrappers, benchmarking

    scripts, and power-user automation.


    **Port + token discovery.** The server writes

    `~/Library/Application Support/HyperWhisper/local-api.json`

    (chmod 600) on every start. Clients read that file to find the port

    and bearer token — neither value is hard-coded.


    **Response envelope.** Successful calls return `{"ok": true, ...}` with

    HTTP 200. Expected business failures (model not installed, missing API

    key, file not found, transcription engine errored, etc.) also return HTTP

    200 with `{"ok": false, "error": {"code": "...", "message": "...", "hint":
    "..."}}`.

    HTTP 4xx is reserved for protocol failures: malformed JSON (400), missing

    or invalid bearer token (401).
  version: 1.0.0
servers:
  - url: http://127.0.0.1:{port}
    description: >-
      Local-only loopback. The port is dynamic — read it from the discovery
      file.
    variables:
      port:
        default: '39201'
        description: >-
          Persisted port from `~/Library/Application
          Support/HyperWhisper/local-api.json`.
security:
  - bearerAuth: []
paths:
  /recordings/search:
    get:
      summary: Search past transcripts
      parameters:
        - in: query
          name: q
          schema:
            type: string
          description: >-
            Substring matched against text / postProcessedText /
            transcribedText.
        - in: query
          name: since
          schema:
            type: string
            format: date-time
        - in: query
          name: until
          schema:
            type: string
            format: date-time
        - in: query
          name: limit
          schema:
            type: integer
            minimum: 1
            maximum: 500
            default: 50
      responses:
        '200':
          description: Matching recordings, newest first
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecordingsListResponse'
components:
  schemas:
    RecordingsListResponse:
      type: object
      properties:
        ok:
          type: boolean
        total:
          type: integer
        recordings:
          type: array
          items:
            $ref: '#/components/schemas/RecordingDTO'
    RecordingDTO:
      type: object
      properties:
        id:
          type: string
          format: uuid
        text:
          type: string
        postProcessedText:
          type: string
          nullable: true
        transcribedText:
          type: string
          nullable: true
        date:
          type: string
          format: date-time
        duration:
          type: number
        mode:
          type: string
          nullable: true
        transcriptionProvider:
          type: string
          nullable: true
        postProcessingProvider:
          type: string
          nullable: true
        status:
          type: string
          nullable: true
        audioFilePath:
          type: string
          nullable: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: base64-url
      description: >-
        Token from the discovery file. Required on every endpoint except
        /health.

````