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

# Search workspace

> Find companies, people, emails, meetings, notes and other records by what they say. Returns previews with ids. A company is type account and a person is type contact. For deals, use list_deals.

This tool reads data and changes nothing.



## OpenAPI

````yaml /openapi.json post /v1/tools/search_records
openapi: 3.1.0
info:
  title: Steerco API
  version: 2.0.0
  description: >-
    Read and change your Steerco workspace: companies, people, mail, meetings,
    deals, sequences, tasks, lead finders and website visitors. The REST API and
    the MCP server run the same tools.
servers:
  - url: https://api.getsteerco.com
security: []
paths:
  /v1/tools/search_records:
    post:
      tags:
        - Tools
      summary: Search workspace
      description: >-
        Find companies, people, emails, meetings, notes and other records by
        what they say. Returns previews with ids. A company is type account and
        a person is type contact. For deals, use list_deals.


        This tool reads data and changes nothing.
      operationId: search_records
      parameters:
        - schema:
            type: string
            description: The workspace id. GET /v1/workspaces lists yours.
          required: true
          description: The workspace id. GET /v1/workspaces lists yours.
          in: header
          name: X-Workspace-Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                types:
                  description: >-
                    Entity types to search (e.g. 'activity', 'contact',
                    'ticket', 'risk', 'opportunity', 'product', 'file', or
                    custom object slugs). Omit to search all types.
                  type: array
                  items:
                    type: string
                search:
                  description: Search query. Matches by meaning as well as keywords.
                  type: string
                account:
                  description: Filter by account ID
                  type: string
                contact:
                  description: Filter by contact ID
                  type: string
                product:
                  description: Filter by product ID
                  type: string
                activityType:
                  description: >-
                    Filter activities by type (email, call, meeting, task, note,
                    message, etc.)
                  type: string
                status:
                  description: Filter by status (e.g. active, inactive, open, closed)
                  type: string
                limit:
                  description: Number of results to return (default 20)
                  type: number
                  minimum: 1
                  maximum: 50
                page:
                  description: Page number for pagination (default 1)
                  type: number
                  minimum: 1
      responses:
        '200':
          description: The tool's result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ToolResult'
        '400':
          description: The body doesn't match the tool's input.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: The API key is missing or not valid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Your role or plan doesn't allow this tool, or the workspace isn't
            yours.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: A record the input names doesn't exist.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: You made more than 120 tool calls in a minute.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - apiKey: []
components:
  schemas:
    ToolResult:
      type: object
      properties:
        status:
          type: string
          enum:
            - ok
        result: {}
        cut:
          $ref: '#/components/schemas/OutputCut'
      required:
        - status
    Error:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
      required:
        - error
        - code
    OutputCut:
      type: object
      properties:
        note:
          type: string
          description: What was cut, and how to get the rest.
        lists:
          type: array
          items:
            type: object
            properties:
              path:
                type: string
              shown:
                type: integer
              total:
                type: integer
            required:
              - path
              - shown
              - total
          description: Each list that lost items from its end, by its path in the result.
        textsShortened:
          type: integer
          description: How many long text fields end in "[cut]".
      required:
        - note
        - lists
        - textsShortened
      description: >-
        Present when the result was larger than about 25,000 tokens and Steerco
        cut it.
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: >-
        An API key, starting ak_. Create one under Settings > MCP and API in
        Steerco.

````

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