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

# Get agent memory

> Read long-term memory items for a personal CREAO agent.



## OpenAPI

````yaml /developer-api/developer-v1.openapi.yaml get /v1/agents/{agent_id}/memory
openapi: 3.1.0
info:
  title: CREAO Developer API
  version: 1.0.0
  description: |
    Create, update, and run personal CREAO agents from your backend with
    Account API keys. The v1 API uses stable `agent_id`, `conversation_id`, and
    `run_id` identifiers and is served from `developer.creao.ai`.
servers:
  - url: https://developer.creao.ai
    description: Production
security:
  - bearerAuth: []
  - apiKeyQuery: []
tags:
  - name: Agents
    description: Create, update, and edit personal agents for the authenticated account.
  - name: Agent Memory
    description: >-
      Read, overwrite, and clear long-term memory (playbooks) for a personal
      agent.
  - name: Agent Files
    description: List, download, and delete files in a personal agent's skill file space.
  - name: Runs
    description: Create, stream, fetch, and list Developer API runs.
  - name: Models
    description: Discover supported model ids and account-specific availability.
paths:
  /v1/agents/{agent_id}/memory:
    get:
      tags:
        - Agent Memory
      summary: Get agent memory
      description: |
        Read the long-term memory (playbooks) for a personal CREAO agent.
        Memory is created automatically as the agent runs; an empty agent
        returns `{ "items": [] }`.
      operationId: getAgentMemory
      parameters:
        - name: agent_id
          in: path
          required: true
          description: Personal CREAO agent whose memory to read.
          schema:
            type: string
            format: uuid
        - name: status
          in: query
          required: false
          description: >
            Optional filter. Comma-separated list of `pending`, `approved`,
            `rejected`, or `all`.
          schema:
            type: string
        - name: limit
          in: query
          required: false
          description: Maximum items to return (default 500, max 1000).
          schema:
            type: integer
            minimum: 1
            maximum: 1000
            default: 500
      responses:
        '200':
          description: Agent memory items.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentMemoryResponse'
        '400':
          description: Invalid input or agent memory is not configured.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                featureDisabled:
                  value:
                    error: FEATURE_DISABLED
        '401':
          $ref: '#/components/responses/AuthenticationRequired'
        '404':
          description: Agent not found for this account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                agentNotFound:
                  value:
                    error: AGENT_NOT_FOUND
        '429':
          $ref: '#/components/responses/RateLimited'
        '502':
          description: Upstream memory service failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    AgentMemoryResponse:
      type: object
      required:
        - items
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/AgentMemoryItem'
    ErrorResponse:
      type: object
      additionalProperties: true
      required:
        - error
      properties:
        error:
          type: string
          description: Stable machine-readable error code.
        message:
          type: string
          description: Debug message. Do not rely on this field in production clients.
        available:
          type: number
          description: Available credits, when returned for credit errors.
        required:
          type: number
          description: Required credits, when returned for credit errors.
        retryAfterSeconds:
          type: integer
          description: Retry delay, when returned for hourly cap errors.
    AgentMemoryItem:
      type: object
      required:
        - id
        - name
        - content
        - trigger
        - rationale
        - status
        - created_at
      properties:
        id:
          type: string
          description: Stable memory item ID.
        name:
          type: string
        content:
          type: string
        trigger:
          oneOf:
            - type: string
            - type: 'null'
        rationale:
          oneOf:
            - type: string
            - type: 'null'
        status:
          type: string
          description: Memory item status (`pending`, `approved`, or `rejected`).
        created_at:
          oneOf:
            - type: string
              format: date-time
            - type: 'null'
  responses:
    AuthenticationRequired:
      description: Missing, malformed, revoked, or unknown Account API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            missingKey:
              value:
                error: AUTHENTICATION_REQUIRED
    RateLimited:
      description: Account-level or IP-level rate limit exceeded.
      headers:
        Retry-After:
          description: Seconds to wait before retrying.
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            rateLimited:
              value:
                error: RATE_LIMITED
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: cr_sk
      description: Account API key from Developer Console. Keys start with `cr_sk_`.
      x-default: cr_sk_your_key_here
    apiKeyQuery:
      type: apiKey
      in: query
      name: creao-api-key
      description: |
        Account API key passed as a query parameter, for platforms that cannot
        set a custom Authorization header. The bearerAuth header takes
        precedence when both are present.
      x-default: cr_sk_your_key_here

````