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

# Get Buckets



## OpenAPI

````yaml GET /api/buckets
openapi: 3.1.0
info:
  title: MemoryPlugin
  version: 1.0.0
  description: API for managing and querying user memories
servers:
  - url: https://www.memoryplugin.com
security: []
paths:
  /api/buckets:
    get:
      summary: List all memory buckets
      operationId: ListBuckets
      parameters:
        - name: v
          in: query
          schema:
            type: number
            default: 2
          description: API version - current is 2
        - name: source
          in: query
          schema:
            type: string
          description: Client source identifier (e.g., 'chatgpt' for ChatGPT requests)
      responses:
        '200':
          description: List of memory buckets
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Bucket'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    Bucket:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the bucket
        name:
          type: string
          description: Display name of the bucket
        description:
          type: string
          description: Optional description of the bucket
        memoryCount:
          type: integer
          description: Number of memories in this bucket
      required:
        - id
        - name
        - memoryCount
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        text:
          type: string
        score:
          type: number
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````