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

# List namespaces

> Discover every namespace available to the caller, including its purpose, document volume, memory count, and lifecycle timestamps.



## OpenAPI

````yaml https://api.supermemory.ai/v5/openapi get /namespaces
openapi: 3.1.0
info:
  title: supermemory API
  description: >-
    The Memory API for the AI era. OpenAPI operations include x-codeSamples for
    the official TypeScript and Python SDKs (Mintlify-compatible).
  version: 5.0.0
servers:
  - description: Production Server
    url: https://api.supermemory.ai
security:
  - bearerAuth: []
tags:
  - name: Ingest
    description: Ingest documents, files, URLs, conversations, and other content
  - name: Recall (Search)
    description: >-
      Semantic recall across your content — supports memories, hybrid, and
      documents modes
  - name: Profiles
    description: Maintained static, dynamic, and custom-bucket profiles scoped by namespace
  - name: Content Management
    description: List, get, update, and delete content and memories
  - name: Namespaces
    description: List and manage isolated namespaces and their settings
  - name: Connectors
    description: >-
      Sync external sources such as Google Drive, Notion and GitHub into a
      namespace
  - name: Organization
    description: Read and update organization-wide settings
paths:
  /namespaces:
    get:
      tags:
        - Namespaces
      summary: List namespaces
      description: >-
        Discover every namespace available to the caller, including its purpose,
        document volume, memory count, and lifecycle timestamps.
      operationId: getNamespaces
      parameters:
        - in: query
          name: page
          schema:
            default: 1
            type: integer
            minimum: 1
            maximum: 9007199254740991
          description: One-based page number
        - in: query
          name: limit
          schema:
            default: 10
            type: integer
            minimum: 1
            maximum: 100
          description: Maximum namespaces to return per page
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  namespaces:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: Internal identifier for the namespace
                        namespace:
                          type: string
                          description: Namespace identifier used in API paths
                        documentCount:
                          type: integer
                          minimum: 0
                          maximum: 9007199254740991
                          description: Number of active source documents in the namespace
                        memoryCount:
                          type: integer
                          minimum: 0
                          maximum: 9007199254740991
                          description: >-
                            Number of current, recallable memories in the
                            namespace
                        description:
                          anyOf:
                            - type: string
                            - type: 'null'
                          description: Human-readable purpose or scope of the namespace
                        system:
                          type: object
                          properties:
                            createdAt:
                              type: string
                              format: date-time
                              description: >-
                                ISO 8601 timestamp when the namespace was
                                created
                            updatedAt:
                              type: string
                              format: date-time
                              description: >-
                                ISO 8601 timestamp of the latest namespace
                                update
                          required:
                            - createdAt
                            - updatedAt
                          description: Namespace lifecycle timestamps
                      required:
                        - id
                        - namespace
                        - documentCount
                        - memoryCount
                        - description
                        - system
                    description: Namespaces on this page, newest first
                  pagination:
                    type: object
                    properties:
                      currentPage:
                        type: number
                      limit:
                        default: 10
                        type: number
                        maximum: 1100
                      totalItems:
                        type: number
                      totalPages:
                        type: number
                    required:
                      - currentPage
                      - totalItems
                      - totalPages
                    description: Pagination metadata
                    example:
                      currentPage: 1
                      limit: 10
                      totalItems: 100
                      totalPages: 10
                required:
                  - namespaces
                  - pagination
          description: Namespaces available to the caller
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/ErrorResponse'
                  - $ref: '#/components/schemas/ValidationErrorResponse'
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '403':
          description: The API key cannot access this endpoint or namespace
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal server error
      x-codeSamples:
        - lang: typescript
          label: TypeScript SDK
          source: >-
            import { Supermemory } from "supermemory";


            const client = new Supermemory(); // reads SUPERMEMORY_API_KEY


            const { namespaces } = await client.namespaces.list({ page: 1,
            limit: 50 });

            console.log(namespaces.map((ns) => ns.namespace));
        - lang: python
          label: Python SDK
          source: |-
            from supermemory import Supermemory

            client = Supermemory()  # reads SUPERMEMORY_API_KEY

            page = client.namespaces.list(page=1, limit=50)
            print([ns.namespace for ns in page.namespaces])
        - lang: bash
          label: cURL
          source: |-
            curl "https://api.supermemory.ai/namespaces?page=1&limit=50" \
              -H "Authorization: Bearer $SUPERMEMORY_API_KEY"
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Error message
          example: Invalid request parameters
        details:
          type: string
          description: Additional error details
          example: Query must be at least 1 character long
      required:
        - error
    ValidationErrorResponse:
      type: object
      description: Body returned when request input fails schema validation
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          type: array
          description: Validation issues
          items:
            type: object
            properties:
              message:
                type: string
              path:
                type: array
                items:
                  oneOf:
                    - type: string
                    - type: number
            required:
              - message
        data:
          description: The input that failed validation
      required:
        - success
        - error
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.