> ## 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 executions

> The 50 most recent executions, newest first. Poll it to know when an execution ends: see the Scheduled runs concept.



## OpenAPI

````yaml /openapi.yaml get /v1/scheduled-runs/{id}/runs
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: Read live tables in a workspace.
  - 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.
  - 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.
paths:
  /v1/scheduled-runs/{id}/runs:
    get:
      tags:
        - Scheduled runs
      summary: List executions
      description: >-
        The 50 most recent executions, newest first. Poll it to know when an
        execution ends: see the Scheduled runs concept.
      operationId: listScheduledRunExecutions
      parameters:
        - $ref: '#/components/parameters/ScheduleId'
      responses:
        '200':
          description: The executions.
          content:
            application/json:
              schema:
                type: object
                required:
                  - items
                properties:
                  items:
                    type: array
                    items:
                      allOf:
                        - $ref: '#/components/schemas/ScheduledRunExecution'
                        - type: object
                          required:
                            - results
                          properties:
                            results:
                              description: >-
                                Per delivered table, the rows created during the
                                execution. `null` until it starts.
                              anyOf:
                                - type: array
                                  items:
                                    type: object
                                    required:
                                      - table_id
                                      - new_rows
                                      - new_qualified
                                    properties:
                                      table_id:
                                        type: string
                                      new_rows:
                                        type: integer
                                      new_qualified:
                                        type:
                                          - integer
                                          - 'null'
                                        description: '`null` when the table has no criteria.'
                                - type: 'null'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/ScheduledRunNotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
components:
  parameters:
    ScheduleId:
      name: id
      in: path
      required: true
      schema:
        type: string
      description: Id of the scheduled run.
  schemas:
    ScheduledRunExecution:
      type: object
      required:
        - id
        - schedule_id
        - scheduled_for
        - trigger
        - status
        - error
        - started_at
        - finished_at
        - created_at
      properties:
        id:
          type: string
        schedule_id:
          type: string
        scheduled_for:
          type: string
          format: date-time
        trigger:
          type: string
          enum:
            - schedule
            - manual
        status:
          type: string
          enum:
            - queued
            - running
            - succeeded
            - failed
            - cancelled
          description: Over at `succeeded`, `failed` or `cancelled`.
        error:
          type:
            - string
            - 'null'
          description: >-
            A stable `scheduled_run_*` code when the execution failed or was
            cancelled.
        started_at:
          type:
            - string
            - 'null'
          format: date-time
        finished_at:
          type:
            - string
            - 'null'
          format: date-time
        created_at:
          type: string
          format: date-time
    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:
    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.
    ScheduledRunNotFound:
      description: >-
        `scheduled_run_not_found`: unknown id or another organization's
        scheduled run. `workspace_not_found`: unknown `workspace_id` on create.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: scheduled_run_not_found
              message: Scheduled run not found.
    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.