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

# Get search results

> Execute a search query across multiple workspace entities, including boards, cards,
pages, and projects. Customize the search by specifying targeted fields like title
or content, filtering by types of objects, or focusing on specific statuses.
Additional options include filtering by project, controlling whether archived data
is included, and choosing grouped or ungrouped results.
This comprehensive search endpoint provides flexibility to locate relevant workspace
data efficiently.




## OpenAPI

````yaml GET /{team_id}/search
openapi: 3.0.0
info:
  description: Superthread Public API Specification
  version: '0.1'
  title: Public API
  contact:
    email: engineering@superthread.com
servers:
  - url: https://api.superthread.com/v1
security:
  - BearerAuth: []
tags:
  - name: AI
    description: >-
      [Service: AI]. Handles AI-powered functionalities, such as
      recommendations, predictions, and automation features.
  - name: Activity
    description: >-
      [Service: Activity] Manages all activities; creating notifications and
      digests
  - name: Auth
    description: >-
      [Service: Auth] Responsible for user authentication, authorization, and
      session management.
  - name: Boards
    description: >-
      [Service: Boards] Manages core collaboration features such as "boards",
      "cards", "lists", "sprints", "epics".
  - name: Comments
    description: >-
      [Service: Comments] Handles the creation, editing, and management of
      comments across various entities.
  - name: Customers
    description: >-
      [Service: Customers] Manages customers, customer tiers and statuses,
      customer settings, and customer requests on cards and projects. Requires
      the `customers` team feature; not available to workspace guests.
  - name: Favourites
    description: >-
      [Service: Favourites] Responsible for favouriting resources in the system
      for quick access.
  - name: Files
    description: >-
      [Service: Files] Manages file uploads, storage, and retrieval for user and
      project resources.
  - name: Importer
    description: >-
      [Service: Importer] Handles data import operations from external sources
      into the platform.
  - name: Integrations
    description: >-
      [Service: Integrations] Facilitates connectivity with external tools and
      services, enabling smooth integration with third-party platforms and APIs.
  - name: Pages
    description: >-
      [Service: Pages] Manages the creation and organization of both public and
      private pages, supporting structured content and navigation and
      collaboration.
  - name: Projects
    description: '[Service: Projects] Handles all project related tasks.'
  - name: Reports
    description: >-
      [Service: Reports] Generates and manages analytical reports and insights
      for users and projects.
  - name: Search
    description: >-
      [Service: Search] Provides search functionalities, including indexing and
      retrieval of platform data.
  - name: TimeTracking
    description: >
      [Service: TimeTracking] Manages time entries, active timers, time
      categories, job roles, billing rates, and audit/lock for time-tracking
      workflows.


      A member's billing rate is their own rate when one is set, otherwise their
      job role's rate, otherwise the workspace default rate. Each time entry
      keeps the rate and job role it was created with.
  - name: Resourcing
    description: >-
      [Service: TimeTracking] Plans people's capacity: working patterns, time
      off, closures, public holidays, allocations of hours to projects, and
      retainer budgets. Not available to workspace guests.
  - name: Views
    description: >-
      [Feature] Provides tools to create and customize views, enabling users to
      organize and visualize their data according to their preferences and
      workflows.
  - name: OAuth2
    description: >-
      [Feature] Supports OAuth2 integration for seamless user authentication and
      authorization, ensuring secure access to external APIs and services.
  - name: Sprints
    description: >-
      [Feature] Facilitates sprint management within agile workflows, including
      planning, progress tracking, and reporting.
  - name: Cards
    description: >-
      [Feature] A Card is the core concept used in the system to describe an
      individual task or work item. They are used across Boards, Sprints, and
      Roadmaps. Cards include features like descriptions, checklists, comments,
      priorities, tags and more.
  - name: Checklists
    description: >-
      [Feature] A Checklist is a list of items that need to be completed. It is
      used to track progress on a card.
  - name: Lists
    description: >-
      [Feature] Represents a collection of tasks or items grouped within
      different contexts in the system. Lists (externally referenced as
      "statuses") are utilized across various entities such as boards, sprints,
      and roadmaps.
  - name: Notes
    description: >-
      [Feature] Enables users to create, edit, and organize notes, supporting
      rich text, attachments, transcriptions and AI enhancements.
  - name: Tags
    description: >-
      [Feature] Groups endpoints related to the creation, retrieval, updating,
      deletion, and merging of tags within teams (workspaces).
  - name: Agents
    description: >-
      [Feature] Manages agents and runs. Provides CRUD operations for agents,
      launching cloud agents, monitoring agent status, retrieving conversations,
      and sending follow-ups.
  - name: PublishedAgents
    description: >-
      [Feature] [Service: AI] External API for agents published to websites,
      apps and custom clients. Authenticated with scoped chat sessions
      (PublishedAgentSession) or host app assertions (AgentAppAssertion), never
      with workspace member credentials. Management routes for publications and
      app registrations live under the Agents tag. Base URL: these paths are
      absolute from the API origin. The real URL is
      `https://api.superthread.com/public/agents/v1/...`, and the spec's
      `basePath` `/v1` does not apply, the same as `/public/forms` (Swagger 2.0
      has no per-path base). Generated clients default to `.../v1` and would
      call `/v1/public/agents/v1/...`, so construct them with the API origin as
      the base: in TypeScript `new Api({ baseURL: 'https://api.superthread.com'
      })`, and in Go a transport whose base path is `/`. The www forms portal
      does the same, using an axios client whose `baseURL` is the API origin.
paths:
  /{team_id}/search:
    parameters:
      - $ref: '#/components/parameters/path_team_id'
    get:
      tags:
        - Search
      summary: Get search results
      description: >
        Execute a search query across multiple workspace entities, including
        boards, cards,

        pages, and projects. Customize the search by specifying targeted fields
        like title

        or content, filtering by types of objects, or focusing on specific
        statuses.

        Additional options include filtering by project, controlling whether
        archived data

        is included, and choosing grouped or ungrouped results.

        This comprehensive search endpoint provides flexibility to locate
        relevant workspace

        data efficiently.
      operationId: getSearch
      parameters:
        - in: query
          name: query
          required: true
          description: Search query
          schema:
            type: string
        - in: query
          name: cursor
          required: false
          description: cursor for pagination
          schema:
            type: string
        - in: query
          name: count
          required: false
          description: max number of items to return. defaults to 25
          schema:
            type: integer
        - in: query
          name: types
          description: >-
            Types of object you would like to search against. includes all types
            if not specified
          schema:
            type: string
            enum:
              - boards
              - cards
              - pages
              - projects
        - in: query
          name: fields
          description: Fields you would like to target in the free text search
          schema:
            type: string
            enum:
              - title
              - content
        - in: query
          name: archived
          description: Whether or not to include archived data. defaults to false
          schema:
            type: boolean
        - in: query
          name: statuses
          description: Card statuses to filter by
          schema:
            type: string
            enum:
              - backlog
              - committed
              - started
              - completed
              - cancelled
        - in: query
          name: project_ids
          required: false
          description: >-
            Projects (spaces) to search in. Repeat the parameter for several
            (`project_ids=1&project_ids=2`).
          explode: true
          schema:
            type: array
            items:
              type: string
        - in: query
          name: project_id
          required: false
          description: >-
            Deprecated and ignored by the search service; kept for
            compatibility. Use `project_ids`.
          schema:
            type: string
        - in: query
          name: grouped
          description: >-
            Whether the results will be grouped by type (as opposed to all under
            the 'results' prop). defaults to true
          schema:
            type: boolean
        - in: query
          name: highlight
          description: >-
            Whether matching result text may include highlight markup. defaults
            to false
          schema:
            type: boolean
        - in: query
          name: highlight_pre_tag
          required: false
          description: >-
            Opening tag wrapping highlighted terms in title and excerpt fields.
            Defaults to <sthl>.
          schema:
            type: string
        - in: query
          name: highlight_post_tag
          required: false
          description: >-
            Closing tag wrapping highlighted terms in title and excerpt fields.
            Defaults to </sthl>.
          schema:
            type: string
        - in: query
          name: mode
          required: false
          description: >
            How results are matched and ranked. Defaults to `bm25`.


            - `bm25`: keyword search. Results match the query's words and are
            ranked by


              how well they match.
            - `semantic`: results are ranked by closeness in meaning to the
            query, so


              they need not contain its words. Each result carries a `score`. Results
              below a fixed minimum similarity to the query are not returned, so a query
              with nothing close to it returns no results. A page or note's `excerpt` is
              the passage that matched best. `fields` and the `highlight` parameters do
              not apply, so titles and excerpts carry no highlight markup. `count` is the
              number of results on the page rather than a total, because every document
              is ranked and there is no set of matches to count. The query is limited to
              1000 characters. Pagination works as in `bm25` mode, to the same depth, and
              stops once results fall below that minimum.
            - `hybrid`: combines the two rankings, so results either contain the
            query's


              words or are close to it in meaning, and a result both find ranks highest.
              A result found by its words is highlighted as in `bm25` mode; one found only
              by meaning has no highlights, and a page or note's `excerpt` is the passage
              that matched best. `score` is set when the result is close in meaning to the
              query and null when it was found only by its words. `count` is the number of
              results on the page, the query is limited to 1000 characters, and pagination
              works as in `bm25` mode, to the same depth. A query that is an id or a card
              or page reference is answered as in `bm25` mode.

            A mode the workspace cannot serve is rejected with a 400. `modes` on
            the

            response lists the ones it can.
          schema:
            type: string
            enum:
              - bm25
              - semantic
              - hybrid
            default: bm25
      responses:
        '200':
          description: Search results
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchResults'
        default:
          description: client error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    $ref: '#/components/schemas/Error'
components:
  parameters:
    path_team_id:
      in: path
      name: team_id
      description: >-
        Team ID is an alphanumerical string that identifies a Team. This is
        externally referred to as a "Workspace".
      required: true
      schema:
        type: string
  schemas:
    SearchResults:
      type: object
      allOf:
        - $ref: '#/components/schemas/ResponseMetadata'
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/SearchResult'
        boards:
          type: array
          items:
            $ref: '#/components/schemas/BoardSearchResult'
        cards:
          type: array
          items:
            $ref: '#/components/schemas/CardSearchResult'
        pages:
          type: array
          items:
            $ref: '#/components/schemas/PageSearchResult'
        projects:
          type: array
          items:
            $ref: '#/components/schemas/ProjectSearchResult'
        epics:
          type: array
          items:
            $ref: '#/components/schemas/EpicSearchResult'
        notes:
          type: array
          items:
            $ref: '#/components/schemas/NoteSearchResult'
        request_id:
          type: string
          description: >
            Identifies this search request. It is generated by the server and
            recorded

            against the request, so a client reporting which result a user went
            on to

            open can tie that back to the search that produced it.
          example: 0b6f3a52-6a1e-4d7c-9f1b-3c2e8d4a5b67
        modes:
          type: array
          description: The search modes this workspace can serve, for the `mode` parameter.
          items:
            $ref: '#/components/schemas/SearchMode'
    Error:
      type: object
      properties:
        id:
          type: string
          example: err5f744ab
        code:
          type: integer
          format: int32
          example: 403
        sec:
          $ref: '#/components/schemas/SuperthreadErrorCode'
        message:
          type: string
          example: You do not have access to this resource
          description: A user-friendly error message
        date:
          $ref: '#/components/schemas/STime'
    ResponseMetadata:
      type: object
      required:
        - cursor
        - count
      properties:
        cursor:
          type: string
          example: dmsjqh9d8w1hdjosjaasda
          nullable: false
        count:
          type: integer
          example: 14
          nullable: false
    SearchResult:
      type: object
      properties:
        board:
          $ref: '#/components/schemas/BoardSearchResult'
        page:
          $ref: '#/components/schemas/PageSearchResult'
        card:
          $ref: '#/components/schemas/CardSearchResult'
        project:
          $ref: '#/components/schemas/ProjectSearchResult'
        epic:
          $ref: '#/components/schemas/EpicSearchResult'
        note:
          $ref: '#/components/schemas/NoteSearchResult'
        score:
          type: integer
          minimum: 0
          maximum: 100
          description: >
            How closely the result matches the query, out of 100. It is
            calibrated to

            read as a likelihood rather than a raw similarity: around 50 means
            the result

            is probably relevant. Null in `bm25` mode, whose scores have no
            upper bound

            and so cannot be expressed out of 100, and in `hybrid` mode for a
            result

            found only by its words. Only present on ungrouped results.
          example: 74
          nullable: true
    BoardSearchResult:
      type: object
      properties:
        id:
          type: string
          example: '4'
        title:
          type: string
          example: New <sthl>features</sthl>
        project_id:
          type: string
          example: '2'
        archived:
          $ref: '#/components/schemas/Archived'
        layout:
          $ref: '#/components/schemas/BoardLayout'
    CardSearchResult:
      type: object
      properties:
        id:
          type: string
          example: '13'
        title:
          type: string
          example: Implement new <sthl>service</sthl>
        project_id:
          type: string
          example: '2'
        board_id:
          type: string
          example: '14'
        sprint_id:
          type: string
          example: '1'
        board_title:
          type: string
          example: Ideas
        list_id:
          type: string
          example: '3'
        list_title:
          type: string
          example: Backlog
        list_color:
          type: string
        status:
          $ref: '#/components/schemas/CardStatus'
        owner_id:
          type: string
          example: u123abcd
        members:
          type: array
          items:
            $ref: '#/components/schemas/Member'
        archived:
          $ref: '#/components/schemas/Archived'
        epic:
          $ref: '#/components/schemas/EpicBrief'
        parent_card:
          $ref: '#/components/schemas/ParentCard'
    PageSearchResult:
      type: object
      properties:
        id:
          type: string
          example: '24'
        icon:
          $ref: '#/components/schemas/Image'
        title:
          type: string
          example: Page <sthl>title</sthl>
        project_id:
          type: string
          example: '2'
        excerpt:
          type: string
          example: this is a <sthl>sample</sthl> page content
        archived:
          $ref: '#/components/schemas/ArchivedPage'
    ProjectSearchResult:
      type: object
      properties:
        id:
          type: string
          example: '2'
        icon:
          $ref: '#/components/schemas/Image'
        title:
          type: string
          example: Project <sthl>title</sthl>
        total_members:
          type: integer
          example: 5
        user_id:
          type: string
          example: u2DdoERz
        time_created:
          $ref: '#/components/schemas/STime'
        is_private:
          type: boolean
          example: true
    EpicSearchResult:
      type: object
      properties:
        id:
          type: string
          example: '13'
        title:
          type: string
          example: Implement new <sthl>service</sthl>
        list_id:
          type: string
          example: '3'
        list_title:
          type: string
          example: Backlog
        list_color:
          type: string
        status:
          $ref: '#/components/schemas/CardStatus'
        owner_id:
          type: string
          example: u123abcd
        members:
          type: array
          items:
            $ref: '#/components/schemas/Member'
        archived:
          $ref: '#/components/schemas/Archived'
        icon:
          $ref: '#/components/schemas/Image'
        type:
          type: string
          example: epic
    NoteSearchResult:
      type: object
      properties:
        id:
          type: string
          example: '21'
        title:
          type: string
          example: Page <sthl>title</sthl>
        excerpt:
          type: string
          example: this is a <sthl>sample</sthl> note content
        time_created:
          $ref: '#/components/schemas/STime'
    SearchMode:
      type: string
      description: >
        How a search matches and ranks results. `bm25` is keyword search,
        `semantic`

        ranks by closeness in meaning, and `hybrid` combines the two.
      enum:
        - bm25
        - semantic
        - hybrid
    SuperthreadErrorCode:
      type: string
      description: |
        Superthread Error Code (`SEC`): A structured error code.
        Format: `SEC:{ServiceID}-{InternalErrorCode}`.


          - `SEC`: Prefix for all structured error codes.
          - `ServiceID`: First 3 characters identify the service, '000' is reserved for generic errors.
          - `InternalErrorCode`: the next (last) 5 characters define the specific error.
      pattern: ^SEC:\d{3}-\d{5}$
      example: SEC:000-00014
    STime:
      type: integer
      format: int64
      example: 1608742037016
      description: unix timestamp in seconds
      x-go-type:
        type: STime
        import:
          package: github.com/superthread-com/common/pkg/types
        hints:
          noValidation: true
          kind: primitive
    Archived:
      type: object
      properties:
        user_id:
          type: string
          example: uDsu0j19
        time_archived:
          $ref: '#/components/schemas/STime'
    BoardLayout:
      type: string
      enum:
        - board
        - list
        - timeline
        - calendar
      example: board
      nullable: true
    CardStatus:
      type: string
      enum:
        - committed
        - started
        - completed
        - cancelled
      example: started
    Member:
      type: object
      properties:
        user_id:
          type: string
          example: u-dsu0j19
          x-go-custom-tag: diff:"user_id,identifier"
        assigned_date:
          $ref: '#/components/schemas/STime'
        role:
          $ref: '#/components/schemas/MemberRole'
    EpicBrief:
      type: object
      description: brief view of epic to be used in a card
      properties:
        id:
          type: string
          description: epic id
          example: e-123
        title:
          type: string
          description: epic title
          example: Epic Title
        icon:
          $ref: '#/components/schemas/Image'
    ParentCard:
      type: object
      properties:
        title:
          type: string
          example: Implement service requirements
        card_id:
          type: string
          example: '42'
          x-go-custom-tag: diff:"card_id,identifier"
        list_color:
          type: string
        status:
          $ref: '#/components/schemas/CardStatus'
    Image:
      type: object
      required:
        - type
        - src
      properties:
        type:
          type: string
          enum:
            - image
            - icon
            - emoji
          nullable: false
        id:
          type: string
          description: Unique identifier for the image (optional).
        src:
          type: string
          example: >-
            data:image/png;base64,
            iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==
          description: >-
            Depending on the type this can be a URL, base64 image data, emoji
            unicode or an icon name
          nullable: false
        blurhash:
          type: string
          example: LEHV6nWB2yk8pyoJadR*.7kCMdnj
          x-go-custom-tag: dynamodbav:",omitempty"
        color:
          type: string
          example: black
          x-go-custom-tag: dynamodbav:",omitempty"
        emoji:
          type: string
          example: thumbsup
          description: Emoji string ID
          x-go-custom-tag: dynamodbav:",omitempty"
    ArchivedPage:
      type: object
      properties:
        user_id:
          type: string
          example: uDsu0j19
        time_archived:
          $ref: '#/components/schemas/STime'
        parent_page_id:
          type: string
    MemberRole:
      type: string
      enum:
        - admin
        - member
        - viewer
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````

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