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

# Search source documents

> Search public source documents behind Soria datasets.



## OpenAPI

````yaml https://api.soriaanalytics.com/v1/openapi.json POST /search/documents
openapi: 3.1.0
info:
  title: Soria Data API
  description: >-
    Governed data query API. `GET /catalog` is the canonical dataset
    documentation: its schemas, grain, methodology, refresh cadence, and source
    provenance are generated from dbt on every relevant change. `POST
    /search/documents` searches the public source-document corpus behind those
    datasets. For larger result sets, create a private CSV (default) or Parquet
    export, poll its status URL, and use the short-lived download URL once it is
    ready.
  version: 1.0.0
servers:
  - url: /v1
security: []
paths:
  /search/documents:
    post:
      tags:
        - data
      summary: Search Documents
      description: Search public source documents using the same bounded service as MCP.
      operationId: search_documents_search_documents_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DocumentSearchRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocumentSearchResult'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    DocumentSearchRequest:
      properties:
        query:
          type: string
          maxLength: 2000
          minLength: 1
          title: Query
          description: Natural-language search query.
        limit:
          type: integer
          maximum: 50
          minimum: 1
          title: Limit
          description: Maximum source-document matches.
          default: 10
        ticker:
          anyOf:
            - type: string
            - type: 'null'
          title: Ticker
          description: Optional company ticker filter.
        form:
          anyOf:
            - type: string
            - type: 'null'
          title: Form
          description: Optional filing form filter, such as 10-K or 10-Q.
        fiscal_year:
          anyOf:
            - type: integer
            - type: 'null'
          title: Fiscal Year
          description: Optional fiscal year filter.
        date_from:
          anyOf:
            - type: string
            - type: 'null'
          title: Date From
          description: Inclusive ISO date lower bound.
        date_to:
          anyOf:
            - type: string
            - type: 'null'
          title: Date To
          description: Exclusive ISO date upper bound.
      type: object
      required:
        - query
      title: DocumentSearchRequest
    DocumentSearchResult:
      properties:
        text:
          type: string
          title: Text
          description: Formatted, citation-ready source-document matches.
      type: object
      required:
        - text
      title: DocumentSearchResult
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````