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

# List searches

> The 100 most recent searches in the workspace, newest first.



## OpenAPI

````yaml /openapi.json get /api/scans
openapi: 3.1.0
info:
  title: Revcenter API
  description: >-
    Search, enrich, and activate people and companies. Two authentication
    surfaces share one host: the bearer-token API under `/v1` for
    server-to-server and agent use, and the workspace-session API under `/api`
    that the Revcenter app itself runs on.
  version: '2026-08-12'
servers:
  - url: https://api.revcenter.ai
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Search
    description: Web search, search runs, results, exports, and shareable shortlists.
  - name: People
    description: Person search, profile enrichment, and the workspace contact pool.
  - name: Companies
    description: Company search, company enrichment, and org-chart people.
  - name: Campaigns
    description: Plan, publish, and launch outbound sequences on Smartlead and HeyReach.
  - name: Account
    description: Health, usage totals, and cost events.
paths:
  /api/scans:
    get:
      tags:
        - Search
      summary: List searches
      description: The 100 most recent searches in the workspace, newest first.
      operationId: listScans
      parameters:
        - name: q
          in: query
          required: false
          description: >-
            Free-text filter. Matches both the generated title and the prompt
            the user actually wrote.
          schema:
            type: string
        - name: sector
          in: query
          required: false
          description: Restrict to one sector. Unknown values are ignored.
          schema:
            type: string
      responses:
        '200':
          description: Searches and the sector vocabulary.
          content:
            application/json:
              schema:
                type: object
                properties:
                  scans:
                    type: array
                    items:
                      $ref: '#/components/schemas/ScanSummary'
                  sectors:
                    type: array
                    items:
                      type: string
        '401':
          $ref: '#/components/responses/AppUnauthorized'
        '502':
          $ref: '#/components/responses/AppUpstreamError'
      security:
        - sessionCookie: []
components:
  schemas:
    ScanSummary:
      type: object
      properties:
        id:
          type: string
          format: uuid
        title:
          type:
            - string
            - 'null'
        status:
          $ref: '#/components/schemas/ScanStatus'
        sector:
          type:
            - string
            - 'null'
        pulled:
          type:
            - integer
            - 'null'
          description: How many results have been pulled so far.
        target_count:
          type:
            - integer
            - 'null'
        raw_input:
          type:
            - string
            - 'null'
        created_at:
          type: string
          format: date-time
        closed_at:
          type:
            - string
            - 'null'
          format: date-time
        error:
          type:
            - string
            - 'null'
    ScanStatus:
      type: string
      enum:
        - queued
        - running
        - complete
        - failed
      description: >-
        A run that produced results finishes `complete` even if a late stage
        errored — partial results are not thrown away.
    AppError:
      type: object
      description: >-
        The error shape used by every `/api` endpoint. Flatter than the `/v1`
        shape, and `code` appears only where the UI branches on it.
      properties:
        error:
          type: string
        code:
          type: string
          examples:
            - search_unavailable
  responses:
    AppUnauthorized:
      description: >-
        Not signed in, no active workspace, or the account lacks the role this
        action needs. A frozen account gets `403` with code `frozen`.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/AppError'
          examples:
            signIn:
              value:
                error: Sign in required
    AppUpstreamError:
      description: A downstream service or the database failed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/AppError'
          examples:
            upstream:
              value:
                error: Spec extraction failed
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        A Revcenter API key: `Authorization: Bearer rvc_live_...`. Keys are
        scoped, rate limited per key, and metered per workspace.
    sessionCookie:
      type: apiKey
      in: cookie
      name: session
      description: >-
        A signed-in workspace session, sent as a browser cookie. Requests must
        include credentials, and act on the session's active workspace.

````