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

# List tables

> Without parameters: the tables the key's owner created through the API
or the MCP, in any workspace, most recent first. A script that imports
a table and then lists finds it here.

`scope=organization`: the tables of everyone in the organization,
however they were made (app, runs, API, MCP), most recent first.
`workspace_id`: the tables of one workspace, in its order, everyone's
unless `scope=mine`. `query` keeps the tables whose name holds every
word of it, in any case.

On the last page of a listing with neither `scope` nor `workspace_id`,
`other_tables` counts the organization's tables it left out (made in the
app, by a colleague, or before their maker was recorded): to find one,
list with `scope=organization` and `query`.

Archived tables are left out. Each table gives its `workspace_id`,
`workspace_name` and `origin`. A table can live in the workspace of a
chat that `GET /v1/workspaces` does not list: `workspace_id` still
lists it.




## OpenAPI

````yaml /openapi.yaml get /v1/tables
openapi: 3.1.0
info:
  title: Retriever Public API
  version: 1.0.0
  description: >
    Retriever public API: start the prospecting agent (runs), read and export

    tables, import data, sync exclusion lists, run structured research (Go),

    and call atomic services.


    **Model Context Protocol (MCP)**: the same account and credits are available

    through the hosted MCP server (`POST /mcp`, Streamable HTTP). See the MCP

    guide in this documentation (Model Context Protocol navigation). Primary

    tools: `service_discover`, `service_execute`, `service_batch_execute` and

    `service_batch_get` (the slow services), `retriever_build_list_*`,

    `retriever_research_*`, `workspace_list`, `table_*`, `exclusion_*`,

    `credits`, `sequence_*`, `sender_*`, `inbox_*`.


    **Authentication**: `Authorization: Bearer ret_live_…`. Create the key in
    the

    app: Settings → **API keys** → **Create API key**. The key grants access to

    resources in the key owner's organization.


    **Errors**: every HTTP error has the shape

    `{ "error": { "code": "…", "message": "…", "details": … } }`.

    Branch your code on `error.code` (stable), never on `message`.


    **Rate limits**: key-authenticated responses include

    `RateLimit-Limit`, `RateLimit-Remaining`, and `RateLimit-Reset` (seconds).

    A `429` response also includes `Retry-After` (seconds).

    Any key-authenticated operation can also answer `503` with code

    `key_check_busy` (see `components.responses.KeyCheckBusy`): the key could

    not be checked right now, often a key created a moment ago during a flood

    of unknown keys. Retry after `Retry-After` seconds.


    **Request size**: a request body can be at most 10 MiB (10,485,760

    bytes), and 25 MiB (26,214,400 bytes) on a table import. A larger body

    gets `413 body_too_large`.


    API error messages are in English.
  contact:
    name: Retriever
servers:
  - url: https://api.retriever.run
    description: Production
  - url: http://localhost:4320
    description: Local app-server
security:
  - bearerAuth: []
tags:
  - name: Runs
    description: Prospecting agent « prompt in, table out ». Asynchronous.
  - name: Tables
    description: Find and read live tables across the organization.
  - name: Workspaces
    description: Create workspaces and import tables.
  - name: Exclusions
    description: Company and people lists to never source.
  - name: Scheduled runs
    description: Repeat a list-building mission on a cadence.
  - name: Plays
    description: >-
      Find, qualify and contact leads on a cadence, and sort them. Open to
      Retriever's own team only for now: any other key gets 403
      `plays_not_open`.
  - name: Go
    description: >-
      One question, one structured answer: the Go agent searches the web and can
      call every Retriever service.
  - name: Services
    description: Atomic services (search, scraping, email…).
  - name: Credits
    description: >-
      Credit balance, and the daily credit budget the organization's plays
      share.
paths:
  /v1/tables:
    get:
      tags:
        - Tables
      summary: List tables
      description: |
        Without parameters: the tables the key's owner created through the API
        or the MCP, in any workspace, most recent first. A script that imports
        a table and then lists finds it here.

        `scope=organization`: the tables of everyone in the organization,
        however they were made (app, runs, API, MCP), most recent first.
        `workspace_id`: the tables of one workspace, in its order, everyone's
        unless `scope=mine`. `query` keeps the tables whose name holds every
        word of it, in any case.

        On the last page of a listing with neither `scope` nor `workspace_id`,
        `other_tables` counts the organization's tables it left out (made in the
        app, by a colleague, or before their maker was recorded): to find one,
        list with `scope=organization` and `query`.

        Archived tables are left out. Each table gives its `workspace_id`,
        `workspace_name` and `origin`. A table can live in the workspace of a
        chat that `GET /v1/workspaces` does not list: `workspace_id` still
        lists it.
      operationId: listTables
      parameters:
        - name: scope
          in: query
          required: false
          schema:
            type: string
            enum:
              - mine
              - organization
          description: >-
            `mine` (default without `workspace_id`): the tables the key's owner
            created through the API or the MCP. `organization` (default with
            `workspace_id`): everyone's.
        - name: workspace_id
          in: query
          required: false
          schema:
            type: string
            minLength: 1
          description: >-
            Only the tables of this workspace. `404 workspace_not_found` for a
            workspace of another organization.
        - $ref: '#/components/parameters/NameQuery'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Offset'
        - $ref: '#/components/parameters/IncludeHidden'
      responses:
        '200':
          description: Page of tables.
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      $ref: '#/components/schemas/Table'
                  next_offset:
                    type:
                      - integer
                      - 'null'
                  other_tables:
                    type: integer
                    minimum: 1
                    description: >-
                      Only on the last page of a listing with neither `scope`
                      nor `workspace_id`, when the organization has tables it
                      left out: their count (with `query` applied).
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/WorkspaceNotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
components:
  parameters:
    NameQuery:
      name: query
      in: query
      required: false
      schema:
        type: string
        minLength: 1
        maxLength: 200
      example: fintech cfo
      description: >-
        Keeps the items whose name holds every word of it, in any case. A blank
        value is refused (`400 invalid_request`): leave it out to list
        everything.
    Limit:
      name: limit
      in: query
      schema:
        type: integer
        minimum: 1
        maximum: 1000
        default: 100
    Offset:
      name: offset
      in: query
      schema:
        type: integer
        minimum: 0
        default: 0
    IncludeHidden:
      name: include_hidden
      in: query
      schema:
        type: string
        enum:
          - 'true'
          - 'false'
        default: 'false'
      description: >-
        `true` also returns the columns hidden in the app: column lists flag
        them `hidden: true`, and rows include their values.
  schemas:
    Table:
      type: object
      properties:
        id:
          type: string
        workspace_id:
          type: string
        workspace_name:
          type: string
          description: >-
            Name of the table's workspace. Only in the listings (`GET
            /v1/tables`, `GET /v1/workspaces/{id}/tables`).
        name:
          type: string
        row_entity_type:
          $ref: '#/components/schemas/RowEntityType'
        columns:
          type: array
          items:
            $ref: '#/components/schemas/Column'
        row_count:
          type: integer
        fit_counts:
          type: object
          description: >-
            Row count per fit status. `unknown` covers rows not yet or not
            qualifiable.
          properties:
            qualified:
              type: integer
            disqualified:
              type: integer
            unknown:
              type: integer
        origin:
          type: object
          description: >-
            Where the table was born. Each field is null when unknown or when
            there is none.
          properties:
            conversation_id:
              type:
                - string
                - 'null'
              description: >-
                The chat (or run conversation) the table was made in. Null for a
                table imported outside any chat, for example through this API.
            created_by_user_id:
              type:
                - string
                - 'null'
              description: >-
                The person who asked for the table. Null when no person asked
                for it (a scheduled run made it).
            channel:
              type:
                - string
                - 'null'
              enum:
                - app
                - api
                - mcp
                - null
              description: >-
                The surface the table came through. Null for a table made before
                this was recorded.
        links:
          type: object
          properties:
            self:
              type: string
            rows:
              type: string
            app:
              type: string
              description: >-
                Opens the table in the Retriever app (session required): its
                workspace, on this table. The app opens the workspace's latest
                conversation, or starts one.
    RowEntityType:
      type: string
      enum:
        - company
        - person
        - job
        - post
        - local_business
        - creator
        - other
      description: >-
        What one row of a table is. It decides what the app offers on the rows
        (All leads, sending to a CRM).
    Column:
      type: object
      properties:
        key:
          type: string
        name:
          type: string
        kind:
          type: string
          description: e.g. `field`, computed column, qualification.
        qualification:
          type: object
          description: Criterion definition, if qualification column.
        hidden:
          type: boolean
          description: 'Only with `include_hidden=true`: the column is hidden in the app.'
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              description: Stable code; use in your application.
            message:
              type: string
              description: Human-readable explanation. May change.
            details:
              description: Optional details (e.g. list of invalid fields).
  responses:
    BadRequest:
      description: >-
        `invalid_request`: unreadable JSON, unknown field or query parameter,
        wrong type, `limit` out of range, empty `Idempotency-Key`, invalid
        `output` contract. `message` names each invalid field; `details` lists
        them as `{ path, message }`. On `POST /v1/runs`, `workspace_mismatch`:
        the conversation does not belong to the provided workspace.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: invalid_request
              message: 'prompt: prompt must not be blank'
              details:
                - path: prompt
                  message: prompt must not be blank
    Unauthorized:
      description: >-
        `not_authenticated`: missing header, malformed (expected `Bearer
        <key>`), revoked or unknown key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: not_authenticated
              message: A valid API key is required.
    WorkspaceNotFound:
      description: '`workspace_not_found`.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    TooManyRequests:
      description: '`rate_limited`: wait `Retry-After` seconds, then retry.'
      headers:
        Retry-After:
          schema:
            type: integer
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimit-Limit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimit-Remaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimit-Reset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: rate_limited
              message: Rate limit exceeded. Retry in 12 s.
  headers:
    RateLimit-Limit:
      schema:
        type: integer
      description: Window budget.
    RateLimit-Remaining:
      schema:
        type: integer
      description: Remaining requests.
    RateLimit-Reset:
      schema:
        type: integer
      description: Seconds until reset.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key `ret_live_…` created in Settings → API keys.

````

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