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

# Search submissions, documents, transactions, workflows and tasks

> Substring search across the organization, grouped by resource type. Matches are ranked exact, then prefix, then anywhere; ties break on recency.



## OpenAPI

````yaml /openapi.json get /v1/search
openapi: 3.1.0
info:
  title: Moneyline API
  description: Enterprise Financial Document Intelligence API
  version: 1.0.0
servers:
  - url: http://localhost:3000
    description: Local
  - url: https://api.moneyline.co
    description: Production
security:
  - apiKey: []
tags:
  - name: AI
  - name: Account
  - name: Analytics
  - name: Annotations
  - name: Api Keys
  - name: Apps
  - name: Audit
  - name: Billing
  - name: Broker
  - name: Categories
  - name: Crm Integrations
  - name: Data Sources
  - name: Document Classes
  - name: Documents
  - name: Email Templates
  - name: Emails
  - name: Enrichers
  - name: Entities
  - name: Exceptions
  - name: Feedback
  - name: File Rename Rules
  - name: Files
  - name: Funders
  - name: ISO Applications
  - name: Integrations
  - name: Invitations
  - name: Logs
  - name: Merchant Groups
  - name: Merchants
  - name: Notifications
  - name: Organization Links
  - name: Pdfs
  - name: Policies
  - name: Positions
  - name: Presence
  - name: Rules
  - name: Search
  - name: Shared
  - name: Shared With Me
  - name: Studio
  - name: Submissions
  - name: Tasks
  - name: Tenant
  - name: Transactions
  - name: Triggers
  - name: Usage
  - name: User
  - name: Users
  - name: Webhooks
  - name: Workflows
paths:
  /v1/search:
    get:
      tags:
        - Search
      summary: Search submissions, documents, transactions, workflows and tasks
      description: >-
        Substring search across the organization, grouped by resource type.
        Matches are ranked exact, then prefix, then anywhere; ties break on
        recency.
      parameters:
        - schema:
            type: string
            minLength: 1
            maxLength: 200
          in: query
          name: q
          required: true
          description: Text to search for. A UUID matches a record by id.
        - schema:
            type: string
          in: query
          name: type
          required: false
          description: >-
            Comma-separated resource types to search: submissions, documents,
            transactions, workflows, tasks, merchants. Defaults to every
            tenant-scoped type (all but merchants, which are a shared
            catalogue). Unrecognized names are ignored.
        - schema:
            type: integer
            minimum: 1
            maximum: 25
            default: 5
          in: query
          name: limit
          required: false
          description: Maximum hits per resource type, not in total.
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      query:
                        type: string
                      types:
                        type: array
                        items:
                          type: string
                          enum:
                            - submissions
                            - documents
                            - transactions
                            - workflows
                            - tasks
                            - merchants
                      groups:
                        type: array
                        items:
                          type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - submissions
                                - documents
                                - transactions
                                - workflows
                                - tasks
                                - merchants
                            hits:
                              type: array
                              items:
                                type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - submissions
                                      - documents
                                      - transactions
                                      - workflows
                                      - tasks
                                      - merchants
                                  id:
                                    type: string
                                  title:
                                    type: string
                                  subtitle:
                                    type: string
                                    nullable: true
                                  status:
                                    type: string
                                    nullable: true
                                  submission_id:
                                    type: string
                                    nullable: true
                                  created_at:
                                    type: string
                                    nullable: true
                                  meta:
                                    type: object
                                    properties: {}
                                    additionalProperties: true
                                required:
                                  - type
                                  - id
                                  - title
                                  - subtitle
                                  - status
                                  - submission_id
                                  - created_at
                                  - meta
                                additionalProperties: false
                            has_more:
                              type: boolean
                              description: >-
                                True when this type had more matches than
                                `limit`.
                          required:
                            - type
                            - hits
                            - has_more
                          additionalProperties: false
                      total_results:
                        type: integer
                    required:
                      - query
                      - types
                      - groups
                      - total_results
                    additionalProperties: false
                required:
                  - data
                additionalProperties: true
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              description: Error category, e.g. validation_error, not_found_error
            code:
              type: string
              description: Machine-readable ml_* error code
            message:
              type: string
            param:
              type: string
            doc_url:
              type: string
            suggestion:
              type: string
            request_id:
              type: string
            resource_type:
              type: string
            resource_id:
              type: string
            retry_after_seconds:
              type: number
            validation_errors:
              type: array
              items:
                type: object
                properties:
                  param:
                    type: string
                  message:
                    type: string
                  code:
                    type: string
                required:
                  - param
                  - message
                additionalProperties: false
          required:
            - type
            - code
            - message
          additionalProperties: false
      required:
        - error
      additionalProperties: false
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: API key (ml_live_* or ml_test_*)

````

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