> ## Documentation Index
> Fetch the complete documentation index at: https://oma-codex-339-workspace-permissions.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve a memory version

> Retrieve a memory version through the OMA API.

<Info>Every request requires `?beta=true`.</Info>


## OpenAPI

````yaml /openapi/oma.en.json get /v1/memory_stores/{memory_store_id}/memory_versions/{memory_version_id}
openapi: 3.1.0
info:
  title: OMA API Reference
  version: 1.0.0
  description: Open Managed Agents application API reference.
servers:
  - url: http://localhost:38080
    description: Local OMA server
security:
  - omaApiKey: []
  - omaBearer: []
paths:
  /v1/memory_stores/{memory_store_id}/memory_versions/{memory_version_id}:
    get:
      summary: Retrieve a memory version
      operationId: BetaGetMemoryVersion
      parameters:
        - name: beta
          in: query
          required: true
          description: Selects the beta API contract for this endpoint. Must be `true`.
          schema:
            type: boolean
            enum:
              - true
        - name: anthropic-version
          in: header
          required: false
          schema:
            type: string
        - name: anthropic-beta
          in: header
          required: false
          schema:
            type: string
            items:
              type: string
            x-stainless-override-schema:
              x-stainless-param: betas
              x-stainless-extend-default: true
              type: array
              description: Optional header to specify the beta version(s) you want to use.
              items:
                $ref: '#/components/schemas/AnthropicBeta'
            x-default: agent-memory-2026-07-22
        - name: memory_store_id
          in: path
          required: true
          schema:
            type: string
          description: Path parameter memory_store_id
        - name: memory_version_id
          in: path
          required: true
          schema:
            type: string
          description: Path parameter memory_version_id
        - name: view
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/BetaManagedAgentsMemoryView'
          description: Query parameter for view
      responses:
        '200':
          description: Successful response (OK)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaManagedAgentsMemoryVersion'
        '400':
          description: Invalid argument - The client specified an invalid argument
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaManagedAgentsErrorResponse'
        '401':
          description: >-
            Unauthenticated - The request does not have valid authentication
            credentials
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaManagedAgentsErrorResponse'
        '403':
          description: >-
            Permission denied - The caller does not have permission to execute
            the specified operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaManagedAgentsErrorResponse'
        '404':
          description: Not found - Some requested entity was not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaManagedAgentsErrorResponse'
        '408':
          description: >-
            Deadline exceeded - The deadline expired before the operation could
            complete
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaManagedAgentsErrorResponse'
        '409':
          description: Custom error status
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaManagedAgentsErrorResponse'
        '412':
          description: >-
            Failed precondition - Operation was rejected because the system is
            not in required state
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaManagedAgentsErrorResponse'
        '413':
          description: Out of range - Operation was attempted past the valid range
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaManagedAgentsErrorResponse'
        '429':
          description: >-
            Resource exhausted - Some resource has been exhausted (rate
            limiting)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaManagedAgentsErrorResponse'
        '431':
          description: Request header fields too large - Request metadata was too large
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaManagedAgentsErrorResponse'
        '499':
          description: Cancelled - The operation was cancelled by the client
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaManagedAgentsErrorResponse'
        '500':
          description: Internal - Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaManagedAgentsErrorResponse'
        '501':
          description: Unimplemented - The operation is not implemented or supported
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaManagedAgentsErrorResponse'
        '503':
          description: Unavailable - The service is currently unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaManagedAgentsErrorResponse'
        '504':
          description: Deadline exceeded - Upstream service did not respond in time
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaManagedAgentsErrorResponse'
components:
  schemas:
    BetaManagedAgentsMemoryView:
      type: string
      description: >-
        Selects which projection of a `memory` or `memory_version` the server
        returns. `basic` returns the object with `content` set to `null`; `full`
        populates `content`. When omitted, the default is endpoint-specific:
        retrieve operations default to `full`; list, create, and update
        operations default to `basic`. Listing with `view=full` caps `limit` at
        20.
      enum:
        - basic
        - full
    BetaManagedAgentsMemoryVersion:
      description: >-
        A `memory_version` object: one immutable, attributed row in a memory's
        append-only history. Every non-no-op mutation to a memory produces a new
        version. Versions belong to the store (not the individual memory) and
        persist after the memory is deleted. Retrieving a redacted version
        returns 200 with `content`, `path`, `content_size_bytes`, and
        `content_sha256` set to `null`; branch on `redacted_at`, not HTTP
        status.
      type: object
      additionalProperties: false
      required:
        - type
        - id
        - memory_store_id
        - memory_id
        - operation
        - created_at
      properties:
        type:
          type: string
          enum:
            - memory_version
        id:
          description: Unique identifier for this version (a `memver_...` value).
          type: string
        memory_store_id:
          description: >-
            ID of the memory store this version belongs to (a `memstore_...`
            value).
          type: string
        memory_id:
          description: >-
            ID of the memory this version snapshots (a `mem_...` value). Remains
            valid after the memory is deleted; pass it as `memory_id` to List
            memory versions to retrieve the full lineage including the `deleted`
            row.
          type: string
        path:
          description: >-
            The memory's path at the time of this write. `null` if and only if
            `redacted_at` is set.
          type: string
          nullable: true
        operation:
          description: >-
            The kind of mutation this version records: `created`, `modified`, or
            `deleted`.
          allOf:
            - $ref: '#/components/schemas/BetaManagedAgentsMemoryVersionOperation'
        content:
          description: >-
            The memory's UTF-8 text content as of this version. `null` when
            `view=basic`, when `operation` is `deleted`, or when `redacted_at`
            is set.
          type: string
          nullable: true
        content_size_bytes:
          description: >-
            Size of `content` in bytes as of this version. `null` when
            `redacted_at` is set or `operation` is `deleted`. Populated
            regardless of `view` otherwise.
          type: integer
          format: int32
          nullable: true
        content_sha256:
          description: >-
            Lowercase hex SHA-256 digest of `content` as of this version (64
            characters). `null` when `redacted_at` is set or `operation` is
            `deleted`. Populated regardless of `view` otherwise.
          type: string
          nullable: true
        created_by:
          description: >-
            Who performed this write: a `session_actor`, `api_actor`, or
            `user_actor`. Captured at write time and preserved through
            redaction.
          allOf:
            - $ref: '#/components/schemas/BetaManagedAgentsActor'
        created_at:
          description: When this version was written, in RFC 3339 format.
          allOf:
            - $ref: '#/components/schemas/BetaTimestamp'
        redacted_at:
          description: >-
            When this version was redacted, in RFC 3339 format, or `null` if it
            has not been redacted. When set, `content`, `path`,
            `content_size_bytes`, and `content_sha256` are all `null`. See
            Redact a memory version.
          allOf:
            - $ref: '#/components/schemas/BetaTimestamp'
          nullable: true
        redacted_by:
          description: >-
            Who redacted this version, or `null` if it has not been redacted. In
            practice always an `api_actor` or `user_actor` (agents do not have a
            redact capability).
          allOf:
            - $ref: '#/components/schemas/BetaManagedAgentsActor'
    BetaManagedAgentsErrorResponse:
      type: object
      required:
        - type
        - error
      properties:
        type:
          type: string
          enum:
            - error
          description: Always "error" for error responses
        error:
          $ref: '#/components/schemas/BetaManagedAgentsError'
    BetaManagedAgentsMemoryVersionOperation:
      type: string
      description: >-
        The kind of mutation a `memory_version` records. Every non-no-op
        mutation to a memory appends exactly one version row with one of these
        values.
      enum:
        - created
        - modified
        - deleted
    BetaManagedAgentsActor:
      description: >-
        Identifies who performed a write or redact operation. Captured at write
        time on the `memory_version` row. The API key that created a session is
        not recorded on agent writes; attribution answers who made the write,
        not who is ultimately responsible. Look up session provenance separately
        via the Sessions API.
      type: object
      discriminator:
        propertyName: type
        mapping:
          session_actor:
            $ref: '#/components/schemas/BetaManagedAgentsSessionActor'
          api_actor:
            $ref: '#/components/schemas/BetaManagedAgentsApiActor'
          user_actor:
            $ref: '#/components/schemas/BetaManagedAgentsUserActor'
      oneOf:
        - $ref: '#/components/schemas/BetaManagedAgentsSessionActor'
        - $ref: '#/components/schemas/BetaManagedAgentsApiActor'
        - $ref: '#/components/schemas/BetaManagedAgentsUserActor'
    BetaTimestamp:
      description: A timestamp in RFC 3339 format
      type: string
      format: date-time
    BetaManagedAgentsError:
      discriminator:
        propertyName: type
        mapping:
          invalid_request_error:
            $ref: '#/components/schemas/BetaInvalidRequestError'
          authentication_error:
            $ref: '#/components/schemas/BetaAuthenticationError'
          billing_error:
            $ref: '#/components/schemas/BetaBillingError'
          permission_error:
            $ref: '#/components/schemas/BetaPermissionError'
          not_found_error:
            $ref: '#/components/schemas/BetaNotFoundError'
          rate_limit_error:
            $ref: '#/components/schemas/BetaRateLimitError'
          timeout_error:
            $ref: '#/components/schemas/BetaGatewayTimeoutError'
          api_error:
            $ref: '#/components/schemas/BetaAPIError'
          overloaded_error:
            $ref: '#/components/schemas/BetaOverloadedError'
          memory_precondition_failed_error:
            $ref: >-
              #/components/schemas/BetaManagedAgentsMemoryPreconditionFailedError
          memory_path_conflict_error:
            $ref: '#/components/schemas/BetaManagedAgentsMemoryPathConflictError'
          conflict_error:
            $ref: '#/components/schemas/BetaManagedAgentsConflictError'
      oneOf:
        - $ref: '#/components/schemas/BetaInvalidRequestError'
        - $ref: '#/components/schemas/BetaAuthenticationError'
        - $ref: '#/components/schemas/BetaBillingError'
        - $ref: '#/components/schemas/BetaPermissionError'
        - $ref: '#/components/schemas/BetaNotFoundError'
        - $ref: '#/components/schemas/BetaRateLimitError'
        - $ref: '#/components/schemas/BetaGatewayTimeoutError'
        - $ref: '#/components/schemas/BetaAPIError'
        - $ref: '#/components/schemas/BetaOverloadedError'
        - $ref: '#/components/schemas/BetaManagedAgentsMemoryPreconditionFailedError'
        - $ref: '#/components/schemas/BetaManagedAgentsMemoryPathConflictError'
        - $ref: '#/components/schemas/BetaManagedAgentsConflictError'
    BetaManagedAgentsSessionActor:
      description: >-
        Attribution for a write made by an agent during a session, through the
        mounted filesystem at `/mnt/memory/`.
      type: object
      additionalProperties: false
      required:
        - type
        - session_id
      properties:
        type:
          type: string
          enum:
            - session_actor
        session_id:
          description: >-
            ID of the session that performed the write (a `sesn_...` value).
            Look up the session via Retrieve a session for further provenance.
          type: string
          minLength: 1
    BetaManagedAgentsApiActor:
      description: >-
        Attribution for a write made directly via the public API (outside of any
        session).
      type: object
      additionalProperties: false
      required:
        - type
        - api_key_id
      properties:
        type:
          type: string
          enum:
            - api_actor
        api_key_id:
          description: >-
            ID of the API key that performed the write. This identifies the key,
            not the secret.
          type: string
          minLength: 1
    BetaManagedAgentsUserActor:
      description: Attribution for a write made by a human user through the OMA Console.
      type: object
      additionalProperties: false
      required:
        - type
        - user_id
      properties:
        type:
          type: string
          enum:
            - user_actor
        user_id:
          description: ID of the user who performed the write (a `user_...` value).
          type: string
          minLength: 1
    BetaInvalidRequestError:
      properties:
        message:
          default: Invalid request
          title: Message
          type: string
        type:
          const: invalid_request_error
          default: invalid_request_error
          title: Type
          type: string
      required:
        - message
        - type
      title: InvalidRequestError
      type: object
    BetaAuthenticationError:
      properties:
        message:
          default: Authentication error
          title: Message
          type: string
        type:
          const: authentication_error
          default: authentication_error
          title: Type
          type: string
      required:
        - message
        - type
      title: AuthenticationError
      type: object
    BetaBillingError:
      properties:
        message:
          default: Billing error
          title: Message
          type: string
        type:
          const: billing_error
          default: billing_error
          title: Type
          type: string
      required:
        - message
        - type
      title: BillingError
      type: object
    BetaPermissionError:
      properties:
        message:
          default: Permission denied
          title: Message
          type: string
        type:
          const: permission_error
          default: permission_error
          title: Type
          type: string
      required:
        - message
        - type
      title: PermissionError
      type: object
    BetaNotFoundError:
      properties:
        message:
          default: Not found
          title: Message
          type: string
        type:
          const: not_found_error
          default: not_found_error
          title: Type
          type: string
      required:
        - message
        - type
      title: NotFoundError
      type: object
    BetaRateLimitError:
      properties:
        message:
          default: Rate limited
          title: Message
          type: string
        type:
          const: rate_limit_error
          default: rate_limit_error
          title: Type
          type: string
      required:
        - message
        - type
      title: RateLimitError
      type: object
    BetaGatewayTimeoutError:
      properties:
        message:
          default: Request timeout
          title: Message
          type: string
        type:
          const: timeout_error
          default: timeout_error
          title: Type
          type: string
      required:
        - message
        - type
      title: GatewayTimeoutError
      type: object
    BetaAPIError:
      properties:
        message:
          default: Internal server error
          title: Message
          type: string
        type:
          const: api_error
          default: api_error
          title: Type
          type: string
      required:
        - message
        - type
      title: APIError
      type: object
    BetaOverloadedError:
      properties:
        message:
          default: Overloaded
          title: Message
          type: string
        type:
          const: overloaded_error
          default: overloaded_error
          title: Type
          type: string
      required:
        - message
        - type
      title: OverloadedError
      type: object
    BetaManagedAgentsMemoryPreconditionFailedError:
      type: object
      additionalProperties: false
      required:
        - type
      properties:
        type:
          type: string
          enum:
            - memory_precondition_failed_error
        message:
          type: string
    BetaManagedAgentsMemoryPathConflictError:
      type: object
      additionalProperties: false
      required:
        - type
      properties:
        type:
          type: string
          enum:
            - memory_path_conflict_error
        message:
          type: string
        conflicting_path:
          type: string
        conflicting_memory_id:
          type: string
    BetaManagedAgentsConflictError:
      type: object
      additionalProperties: false
      required:
        - type
      properties:
        type:
          type: string
          enum:
            - conflict_error
        message:
          type: string
  securitySchemes:
    omaApiKey:
      type: apiKey
      in: header
      name: X-Api-Key
      description: OMA workspace API key.
      x-default: sk-ant-local-default
    omaBearer:
      type: http
      scheme: bearer
      description: OMA workspace API key sent as a bearer token.

````