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

# Read what a play has learned

> What the play's runs read: `summary` (MEMORY.md) and `next_run_notes` in full, in markdown, and `other_files`, the index of its other memory files. With `file`, one of those files in full. The play writes its memory after its runs, and before the next run from the leads reviewed since. Empty before the first run.



## OpenAPI

````yaml /openapi.yaml get /v1/plays/{id}/memory
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/plays/{id}/memory:
    get:
      tags:
        - Plays
      summary: Read what a play has learned
      description: >-
        What the play's runs read: `summary` (MEMORY.md) and `next_run_notes` in
        full, in markdown, and `other_files`, the index of its other memory
        files. With `file`, one of those files in full. The play writes its
        memory after its runs, and before the next run from the leads reviewed
        since. Empty before the first run.
      operationId: readPlayMemory
      parameters:
        - $ref: '#/components/parameters/PlayId'
        - name: file
          in: query
          required: false
          description: >-
            A path from `other_files` (or MEMORY.md, next_run_notes.md). The
            answer is then that file alone.
          schema:
            type: string
      responses:
        '200':
          description: The memory, or the file asked for.
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    required:
                      - summary
                      - next_run_notes
                      - other_files
                    properties:
                      summary:
                        oneOf:
                          - $ref: '#/components/schemas/PlayMemoryFile'
                          - type: 'null'
                      next_run_notes:
                        oneOf:
                          - $ref: '#/components/schemas/PlayMemoryFile'
                          - type: 'null'
                      other_files:
                        type: array
                        items:
                          type: object
                          required:
                            - path
                            - description
                            - tokens
                            - updated_at
                          properties:
                            path:
                              type: string
                            description:
                              type:
                                - string
                                - 'null'
                              description: >-
                                A preview of the file's first line, at most 120
                                characters then "…".
                            tokens:
                              type: integer
                            updated_at:
                              type: string
                              format: date-time
                  - $ref: '#/components/schemas/PlayMemoryFile'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: >-
            No such play (`play_not_found`), or no such file in its memory
            (`play_memory_file_not_found`, its message lists the files).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          $ref: '#/components/responses/TooManyRequests'
components:
  parameters:
    PlayId:
      name: id
      in: path
      required: true
      schema:
        type: string
      description: Id of the play.
  schemas:
    PlayMemoryFile:
      type: object
      required:
        - path
        - content
        - updated_at
      properties:
        path:
          type: string
          description: A file name, such as MEMORY.md.
        content:
          type: string
          description: Markdown.
        updated_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.
    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.