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

# List items

> Items in one scope of a collection, by key in lexicographic order. Narrow with `prefix` — key your documents so a prefix is meaningful (`order:2026-08:...`) and this becomes a range scan rather than a filter.



## OpenAPI

````yaml /openapi.json get /v1/memory/collections/{collection}/items
openapi: 3.0.3
info:
  title: Zavu Unified Messaging Layer API
  version: 0.2.0
  description: >
    Unified multi-channel messaging API for Zavu.


    Supported channels:

    - **SMS**: Simple text messages

    - **WhatsApp**: Rich messaging with media, buttons, lists, CTA URL buttons,
    location requests, and templates

    - **Telegram**: Bot messaging with text, media, and interactive elements

    - **Email**: Transactional emails via Amazon SES


    Design goals:

    - Simple `send()` entrypoint for developers

    - Project-level authentication via Bearer token

    - Support for all WhatsApp message types (text, image, video, audio,
    document, sticker, location, contact, buttons, list, cta_url,
    location_request, reaction, template)

    - If a non-text message type is sent, WhatsApp channel is used automatically

    - 24-hour WhatsApp conversation window enforcement

    - Universal `to` field accepts phone numbers (E.164), email addresses, or
    numeric chat IDs (Telegram/Instagram/Messenger)
servers:
  - url: https://api.zavu.dev
security:
  - bearerAuth: []
paths:
  /v1/memory/collections/{collection}/items:
    get:
      tags:
        - Memory
      summary: List items
      description: >-
        Items in one scope of a collection, by key in lexicographic order.
        Narrow with `prefix` — key your documents so a prefix is meaningful
        (`order:2026-08:...`) and this becomes a range scan rather than a
        filter.
      operationId: listMemoryItems
      parameters:
        - $ref: '#/components/parameters/MemoryCollectionParam'
        - $ref: '#/components/parameters/MemoryScopeParam'
        - name: prefix
          in: query
          description: Only keys starting with this string.
          schema:
            type: string
            maxLength: 255
        - name: limit
          in: query
          schema:
            type: integer
            default: 50
            maximum: 100
        - name: cursor
          in: query
          schema:
            type: string
      responses:
        '200':
          description: Items in the scope.
          content:
            application/json:
              schema:
                type: object
                required:
                  - items
                properties:
                  items:
                    type: array
                    items:
                      $ref: '#/components/schemas/MemoryItem'
                  nextCursor:
                    type: string
                    nullable: true
        '400':
          description: Invalid scope or query parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Collection not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  parameters:
    MemoryCollectionParam:
      name: collection
      in: path
      required: true
      description: Collection name.
      schema:
        type: string
    MemoryScopeParam:
      name: scope
      in: query
      required: false
      description: >-
        Which scope to address: `contact:<contactId>`,
        `conversation:<conversationId>`, or omitted for the project scope.


        Note the asymmetry with `POST /v1/memory` and `POST /v1/memory/search`,
        which take the scope in the request BODY as `scope` plus
        `contactId`/`conversationId`. Every other Memory endpoint takes it here.
      schema:
        $ref: '#/components/schemas/MemoryScopeQuery'
  schemas:
    MemoryItem:
      type: object
      description: One JSON document in a collection.
      required:
        - key
        - rev
        - createdAt
        - updatedAt
      properties:
        key:
          type: string
          example: ORD-12345
        value:
          description: The stored JSON. Any JSON value.
          example:
            status: shipped
            total: 42.5
        rev:
          type: integer
          description: >-
            Revision, incremented on every write. Pass it as `If-Match` on a
            later write to make that write conditional.
          example: 3
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        expiresAt:
          type: string
          format: date-time
    Error:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          example: invalid_request
        message:
          type: string
          example: Phone number is invalid
        details:
          type: object
          additionalProperties: true
    MemoryScopeQuery:
      type: string
      description: >-
        Scope as a query-string value: `contact:<contactId>`,
        `conversation:<conversationId>`, the literal `project`, or omitted for
        project scope.


        Only the SHAPE of the id is validated, never its existence — the
        partition already carries your project, so an id that matches nothing
        simply addresses an empty scope rather than returning 404.
      example: contact:jd7x2k3m4n5p6q7r8s9t0abc
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````