Kagura AI Workspace API

Workspace dashboard and stats

GitHub OpenAPI

Operations 6

GET /api/v1/workspace/stats Get Workspace Stats #
GET /api/v1/workspace/usage/current Get Workspace Usage Current #
GET /api/v1/workspace/usage/history Get Workspace Usage History #
GET /api/v1/workspace/usage/breakdown Get Workspace Usage Breakdown #
GET /api/v1/workspace/usage/members Get Workspace Member Usage #
GET /api/v1/workspace/embedding-status Get Embedding Status #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/kagura-ai-com:kagura-ai-com-workspace-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

kagura-ai-com-workspace-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Kagura Memory Cloud Workspace API
  description: Universal AI Memory Platform - Remote MCP Server + Web Management
  version: 0.158.1
tags:
- name: Workspace
  description: Workspace dashboard and stats
paths:
  /api/v1/workspace/stats:
    get:
      tags:
      - Workspace
      summary: Get Workspace Stats
      description: 'Get aggregated statistics across all user''s contexts.


        Returns total memory count and per-context breakdown.


        Args:

        user: Authenticated user from session or API key

        db: Database session


        Returns:

        WorkspaceStatsResponse with aggregated stats


        Example:

        GET /api/v1/workspace/stats

        Response: {

        "total_memories": 150,

        "context_count": 3,

        "contexts": [

        {"context_id": "...", "context_name": "default", "memory_count": 100},

        ...

        ],

        "plan_name": "pro"

        }'
      operationId: get_workspace_stats_api_v1_workspace_stats_get
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkspaceStatsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/workspace/usage/current:
    get:
      tags:
      - Workspace
      summary: Get Workspace Usage Current
      description: 'Get workspace-wide usage vs plan limits.


        Counts are workspace-scoped (#1946): every live memory of the workspace,

        whoever wrote it, and nothing from members'' other workspaces.


        Returns:

        Workspace usage statistics with plan limits and warning flags


        Raises:

        HTTPException: 400 if no workspace selected, 500 on error

        AuthorizationError: 403 if workspace access is no longer allowed'
      operationId: get_workspace_usage_current_api_v1_workspace_usage_current_get
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageCurrentResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/workspace/usage/history:
    get:
      tags:
      - Workspace
      summary: Get Workspace Usage History
      description: 'Get workspace-wide historical usage data.


        Aggregates daily API call counts across all workspace members.


        Args:

        days: Number of days to retrieve (default: 7, max: 90)


        Returns:

        Historical usage data by day


        Raises:

        HTTPException: 400 if no workspace selected, 500 on error'
      operationId: get_workspace_usage_history_api_v1_workspace_usage_history_get
      parameters:
      - name: days
        in: query
        required: false
        schema:
          type: integer
          maximum: 90
          minimum: 1
          default: 7
          title: Days
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageHistoryResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/workspace/usage/breakdown:
    get:
      tags:
      - Workspace
      summary: Get Workspace Usage Breakdown
      description: 'Get workspace-wide usage breakdown by endpoint.


        Aggregates endpoint usage across all workspace members.


        Args:

        days: Number of days to analyze (default: 30, max: 90)


        Returns:

        Usage breakdown by endpoint with percentages


        Raises:

        HTTPException: 400 if no workspace selected, 500 on error'
      operationId: get_workspace_usage_breakdown_api_v1_workspace_usage_breakdown_get
      parameters:
      - name: days
        in: query
        required: false
        schema:
          type: integer
          maximum: 90
          minimum: 1
          default: 30
          title: Days
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageBreakdownResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/workspace/usage/members:
    get:
      tags:
      - Workspace
      summary: Get Workspace Member Usage
      description: 'Get per-member usage breakdown for the current workspace.


        Shows memory count and API calls per member.'
      operationId: get_workspace_member_usage_api_v1_workspace_usage_members_get
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MemberUsageResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/workspace/embedding-status:
    get:
      tags:
      - Workspace
      summary: Get Embedding Status
      description: 'Get embedding processing queue status.


        Issue #93: Visibility into embedding pipeline status.

        Returns counts by status and details of the 50 most recently failed

        memories, latest failure first; ``embedding_attempted_at`` is the failure time.'
      operationId: get_embedding_status_api_v1_workspace_embedding_status_get
      parameters:
      - name: context_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Filter by context ID (UUID)
          title: Context Id
        description: Filter by context ID (UUID)
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmbeddingStatusResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ContextStats:
      properties:
        context_id:
          type: string
          title: Context Id
        context_name:
          type: string
          title: Context Name
        created_by:
          anyOf:
          - type: string
          - type: 'null'
          title: Created By
        created_by_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Created By Name
        memory_count:
          type: integer
          title: Memory Count
        is_private:
          type: boolean
          title: Is Private
          default: false
        unsearchable_count:
          type: integer
          title: Unsearchable Count
          default: 0
        stalled_count:
          type: integer
          title: Stalled Count
          default: 0
        erased_count:
          type: integer
          title: Erased Count
          default: 0
      type: object
      required:
      - context_id
      - context_name
      - created_by
      - created_by_name
      - memory_count
      title: ContextStats
      description: 'Statistics for a single context.


        Single Collection Migration: storage_mb removed (memory count only).'
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    CurrentUsage:
      properties:
        memory_count:
          type: integer
          title: Memory Count
          description: Current memory count
        api_calls_today:
          type: integer
          title: Api Calls Today
          description: API calls today (all APIs)
        api_calls_this_week:
          type: integer
          title: Api Calls This Week
          description: API calls this week (all APIs)
        mcp_calls_today:
          type: integer
          title: Mcp Calls Today
          description: MCP calls today
          default: 0
        mcp_calls_this_week:
          type: integer
          title: Mcp Calls This Week
          description: MCP calls this week
          default: 0
        rest_calls_today:
          type: integer
          title: Rest Calls Today
          description: REST API calls today (non-public)
          default: 0
        rest_calls_this_week:
          type: integer
          title: Rest Calls This Week
          description: REST API calls this week (non-public)
          default: 0
        public_calls_today:
          type: integer
          title: Public Calls Today
          description: Public REST API calls today
          default: 0
        public_calls_this_week:
          type: integer
          title: Public Calls This Week
          description: Public REST API calls this week
          default: 0
        memories_created_today:
          type: integer
          title: Memories Created Today
          description: 'Memories created today, UTC (Issue #1549 daily quota counter)'
          default: 0
        analysis:
          anyOf:
          - $ref: '#/components/schemas/AnalysisUsage'
          - type: 'null'
          description: 'Memory Analysis daily quota stats (Issue #496). NULL when the caller has no current workspace selected.'
        sleep_contexts:
          anyOf:
          - $ref: '#/components/schemas/SleepContextsUsage'
          - type: 'null'
          description: 'Sleep-enabled contexts quota stats (Issue #560). NULL when the caller has no current workspace selected.'
        workspaces:
          $ref: '#/components/schemas/WorkspacesUsage'
          description: 'Owned-workspace cap usage for the caller (Issue #661). User-level — always populated, independently of current workspace.'
      type: object
      required:
      - memory_count
      - api_calls_today
      - api_calls_this_week
      - workspaces
      title: CurrentUsage
      description: Current usage statistics.
    QuotaUsage:
      properties:
        id:
          type: string
          title: Id
        used:
          anyOf:
          - type: integer
          - type: number
          - type: 'null'
          title: Used
        limit:
          anyOf:
          - type: integer
          - type: number
          - type: 'null'
          title: Limit
          description: Null means no configured ceiling
        bonus:
          anyOf:
          - type: integer
          - type: number
          title: Bonus
          default: 0
        unit:
          type: string
          enum:
          - count
          - bytes
          - usd
          title: Unit
          default: count
        scope:
          type: string
          enum:
          - workspace
          - account
          - api_key
          title: Scope
          default: workspace
        period:
          type: string
          enum:
          - current
          - day
          - week
          - month
          - minute
          - hour
          title: Period
          default: current
        creation_included:
          type: boolean
          title: Creation Included
          description: 'False when the plan keeps serving existing objects up to the limit but does not allow creating new ones (XL-only features, #1551)'
          default: true
      type: object
      required:
      - id
      - used
      - limit
      title: QuotaUsage
      description: One quota meter. Limits include addons and other effective bonuses.
    UsageHistoryResponse:
      properties:
        daily_stats:
          items:
            $ref: '#/components/schemas/DailyUsage'
          type: array
          title: Daily Stats
          description: Daily usage breakdown
        total_requests:
          type: integer
          minimum: 0.0
          title: Total Requests
          description: Total requests in period
        period_start:
          type: string
          title: Period Start
          description: Start date (YYYY-MM-DD)
        period_end:
          type: string
          title: Period End
          description: End date (YYYY-MM-DD)
      type: object
      required:
      - daily_stats
      - total_requests
      - period_start
      - period_end
      title: UsageHistoryResponse
      description: Historical usage data.
    EndpointUsage:
      properties:
        endpoint:
          type: string
          title: Endpoint
          description: API endpoint or MCP tool
        count:
          type: integer
          minimum: 0.0
          title: Count
          description: Number of requests
        percentage:
          type: number
          title: Percentage
          description: Percentage of total requests
      type: object
      required:
      - endpoint
      - count
      - percentage
      title: EndpointUsage
      description: Usage by endpoint.
    CapacityLockInfo:
      properties:
        memory_count:
          type: integer
          title: Memory Count
          description: Live memories in the workspace
        memory_limit:
          type: integer
          title: Memory Limit
          description: Effective memory limit
        over_memories:
          type: integer
          minimum: 0.0
          title: Over Memories
          description: Memories to remove to unlock
        used_bytes:
          type: integer
          title: Used Bytes
          description: 'File bytes the owner can still delete: uploaded, not soft-deleted files that are workspace-scoped or in a live context (#1961) — the figure downgrade-eligibility shares'
        storage_limit_bytes:
          type: integer
          title: Storage Limit Bytes
          description: Effective storage limit in bytes
        over_bytes:
          type: integer
          minimum: 0.0
          title: Over Bytes
          description: File bytes to remove to unlock
        cleanup_url:
          type: string
          title: Cleanup Url
          description: Web page to clean up or re-subscribe
        purge_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Purge At
          description: 'When the workspace''s memories, contexts and files are deleted if it is still over capacity (#1969): the 04:00 UTC daily sweep 30 days after that sweep first saw it over, or the later sweep the purge really waits for (#1971): 7 days after the owner''s first countdown mail and a day after the last one, never before the next sweep. ISO-8601 UTC. Null until that sweep has run, and while this deployment cannot purge (CAPACITY_PURGE_ENABLED or CAPACITY_PURGE_NOTICE_ENABLED off, or no mail provider that delivers).'
      type: object
      required:
      - memory_count
      - memory_limit
      - over_memories
      - used_bytes
      - storage_limit_bytes
      - over_bytes
      - cleanup_url
      title: CapacityLockInfo
      description: 'A Free workspace over its plan capacity (#1941).


        While present, search and saving are refused with ``CAPACITY-001``;

        listing, deleting and export keep working. ``over_*`` is 0 on an axis that

        is within its limit.'
    WorkspaceStatsResponse:
      properties:
        total_memories:
          type: integer
          title: Total Memories
        context_count:
          type: integer
          title: Context Count
        contexts:
          items:
            $ref: '#/components/schemas/ContextStats'
          type: array
          title: Contexts
        private_aggregation:
          anyOf:
          - $ref: '#/components/schemas/PrivateContextAggregation'
          - type: 'null'
        plan_name:
          type: string
          title: Plan Name
        unsearchable_memories:
          type: integer
          title: Unsearchable Memories
          default: 0
        stalled_memories:
          type: integer
          title: Stalled Memories
          default: 0
        erased_memories:
          type: integer
          title: Erased Memories
          default: 0
      type: object
      required:
      - total_memories
      - context_count
      - contexts
      - plan_name
      title: WorkspaceStatsResponse
      description: 'Aggregated statistics across all user''s contexts.


        Issue #165: Privacy-aware response with aggregation for inaccessible contexts.

        Single Collection Migration: total_storage_mb removed (memory count only).'
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    MemberUsageEntry:
      properties:
        user_id:
          type: string
          title: User Id
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
        email:
          anyOf:
          - type: string
          - type: 'null'
          title: Email
        memory_count:
          type: integer
          title: Memory Count
        api_calls_today:
          type: integer
          title: Api Calls Today
        api_calls_week:
          type: integer
          title: Api Calls Week
      type: object
      required:
      - user_id
      - name
      - email
      - memory_count
      - api_calls_today
      - api_calls_week
      title: MemberUsageEntry
      description: Usage stats for a single workspace member.
    AnalysisUsage:
      properties:
        used_today:
          type: integer
          title: Used Today
          description: Analyses started today (all statuses count)
          default: 0
        limit_today:
          type: integer
          title: Limit Today
          description: Plan + addon daily limit
          default: 0
        addon_bonus:
          type: integer
          title: Addon Bonus
          description: Addon-supplied bonus (extra_analysis_runs)
          default: 0
        remaining_today:
          type: integer
          title: Remaining Today
          description: max(0, limit_today - used_today)
          default: 0
        resets_at:
          type: string
          title: Resets At
          description: ISO-8601 timestamp of the next reset, in the caller's timezone (midnight of the next day). Always populated — the builder falls back to UTC when User.timezone is unset.
      type: object
      required:
      - resets_at
      title: AnalysisUsage
      description: 'Memory Analysis daily quota usage (Issue #496).


        Mirrors the response detail shape of the 429 quota-exceeded body

        so the dashboard, the new-analysis modal (#497), and the gate

        rejection all read the same field names.'
    SleepContextsUsage:
      properties:
        used:
          type: integer
          title: Used
          description: Contexts with sleep_mode != 'skip' in this workspace
          default: 0
        limit:
          type: integer
          title: Limit
          description: Plan + addon effective limit
          default: 0
        addon_bonus:
          type: integer
          title: Addon Bonus
          description: Addon-supplied bonus (extra_sleep_contexts)
          default: 0
        remaining:
          type: integer
          title: Remaining
          description: max(0, limit - used)
          default: 0
      type: object
      title: SleepContextsUsage
      description: 'Sleep-enabled contexts quota usage (Issue #560).


        This is the dashboard READ shape — ``used`` / ``limit`` / ``remaining``

        for showing "X / Y" in the UI. The 429 quota-exceeded body raised by

        ``ContextService._assert_sleep_quota_or_raise`` uses a parallel-but-

        distinct shape (``current`` / ``requested`` / ``limit`` / ``addon_bonus``)

        optimized for the action-rejection case ("you tried to enable one more,

        here''s the new total"). Both surfaces share ``limit`` and ``addon_bonus``;

        the read surface adds ``remaining`` (= ``max(0, limit - used)``) for direct

        display, and the error surface adds ``requested`` (= ``current + 1``) for

        "how many would there be." Kept distinct so neither has to carry fields it

        does not need.'
    UsageCurrentResponse:
      properties:
        quota_usage:
          items:
            $ref: '#/components/schemas/QuotaUsage'
          type: array
          title: Quota Usage
          description: All plan quota meters, with effective limits including addons
        plan:
          $ref: '#/components/schemas/PlanLimits'
        usage:
          $ref: '#/components/schemas/CurrentUsage'
        memory_usage:
          $ref: '#/components/schemas/UsageStatus'
        daily_api_usage:
          $ref: '#/components/schemas/UsageStatus'
        weekly_api_usage:
          $ref: '#/components/schemas/UsageStatus'
        memories_today_usage:
          anyOf:
          - $ref: '#/components/schemas/UsageStatus'
          - type: 'null'
          description: 'Memories created today vs the daily quota (Issue #1549)'
        capacity_lock:
          anyOf:
          - $ref: '#/components/schemas/CapacityLockInfo'
          - type: 'null'
          description: 'Present when the workspace is over its Free plan capacity: search and saving are paused until it is cleaned up or re-subscribed (#1941)'
      type: object
      required:
      - plan
      - usage
      - memory_usage
      - daily_api_usage
      - weekly_api_usage
      title: UsageCurrentResponse
      description: Current usage vs limits response.
    UsageStatus:
      properties:
        current:
          anyOf:
          - type: integer
          - type: number
          title: Current
          description: Current value
        limit:
          anyOf:
          - type: integer
          - type: number
          title: Limit
          description: Limit value
        percentage:
          type: number
          title: Percentage
          description: Usage percentage (0-100+)
        is_warning:
          type: boolean
          title: Is Warning
          description: True if >= 80%
        is_critical:
          type: boolean
          title: Is Critical
          description: True if >= 95%
        is_exceeded:
          type: boolean
          title: Is Exceeded
          description: True if >= 100%
      type: object
      required:
      - current
      - limit
      - percentage
      - is_warning
      - is_critical
      - is_exceeded
      title: UsageStatus
      description: Usage status with percentage.
    DailyUsage:
      properties:
        date:
          type: string
          title: Date
          description: Date in ISO format (YYYY-MM-DD)
        count:
          type: integer
          minimum: 0.0
          title: Count
          description: Number of requests on this date
      type: object
      required:
      - date
      - count
      title: DailyUsage
      description: Daily usage statistics.
    PrivateContextAggregation:
      properties:
        context_count:
          type: integer
          title: Context Count
        memory_count:
          type: integer
          title: Memory Count
      type: object
      required:
      - context_count
      - memory_count
      title: PrivateContextAggregation
      description: 'Aggregated statistics for contexts the caller cannot open.


        Single Collection Migration: storage_mb removed (memory count only).'
    WorkspacesUsage:
      properties:
        used:
          type: integer
          title: Used
          description: Owned workspaces (deleted_at IS NULL)
          default: 0
        limit:
          type: integer
          title: Limit
          description: 'Effective cap: 1 (base) + users.workspace_slot_bonus (#675)'
          default: 0
        remaining:
          type: integer
          title: Remaining
          description: max(0, limit - used)
          default: 0
      type: object
      title: WorkspacesUsage
      description: 'Owned-workspace cap usage (Issue #661).


        User-level — the cap is per-user, not per-workspace. The dashboard

        surfaces this so users can see "X / N workspaces owned" before

        hitting the cap on workspace creation.


        Unlike ``AnalysisUsage`` / ``SleepContextsUsage``, this field is

        populated regardless of which workspace the caller currently has

        selected — it is the user''s own quota across all their owned

        workspaces.


        No ``addon_bonus`` field as of Issue #661 because there is no

        per-user addon SKU. If ``addon_workspace_bonus`` (or equivalent)

        is introduced — see the Out-of-scope section of #661 — add

        ``addon_bonus`` here to match ``SleepContextsUsage`` /

        ``AnalysisUsage`` shape.'
    EmbeddingStatusResponse:
      properties:
        total:
          type: integer
          title: Total
        by_status:
          additionalProperties:
            type: integer
          type: object
          title: By Status
        failed_memories:
          items:
            $ref: '#/components/schemas/FailedMemoryInfo'
          type: array
          title: Failed Memories
      type: object
      required:
      - total
      - by_status
      - failed_memories
      title: EmbeddingStatusResponse
      description: Embedding queue status response.
    MemberUsageResponse:
      properties:
        members:
          items:
            $ref: '#/components/schemas/MemberUsageEntry'
          type: array
          title: Members
        total_members:
          type: integer
          title: Total Members
      type: object
      required:
      - members
      - total_members
      title: MemberUsageResponse
      description: Per-member usage breakdown for workspace.
    UsageBreakdownResponse:
      properties:
        by_endpoint:
          items:
            $ref: '#/components/schemas/EndpointUsage'
          type: array
          title: By Endpoint
          description: Usage by endpoint
        total_requests:
          type: integer
          minimum: 0.0
          title: Total Requests
          description: Total requests
        period_days:
          type: integer
          title: Period Days
          description: Number of days in period
      type: object
      required:
      - by_endpoint
      - total_requests
      - period_days
      title: UsageBreakdownResponse
      description: Usage breakdown by endpoint.
    PlanLimits:
      properties:
        plan_name:
          type: string
          title: Plan Name
          description: 'Plan tier key: free | basic | pro | promax'
        memory_limit:
          type: integer
          title: Memory Limit
          description: Maximum memories allowed
        daily_total_limit:
          type: integer
          title: Daily Total Limit
          description: Combined daily limit (MCP + REST + Public)
        weekly_total_limit:
          type: integer
          title: Weekly Total Limit
          description: Combined weekly limit (MCP + REST + Public)
        mcp_calls_per_day:
          type: integer
          title: Mcp Calls Per Day
          description: MCP API daily limit
          default: 0
        mcp_calls_per_week:
          type: integer
          title: Mcp Calls Per Week
          description: MCP API weekly limit
          default: 0
        rest_calls_per_day:
          type: integer
          title: Rest Calls Per Day
          description: REST API daily limit
          default: 0
        rest_calls_per_week:
          type: integer
          title: Rest Calls Per Week
          description: REST API weekly limit
          default: 0
        public_calls_per_day:
          type: integer
          title: Public Calls Per Day
          description: Public REST API daily limit
          default: 0
        public_calls_per_week:
          type: integer
          title: Public Calls Per Week
          description: Public REST API weekly limit
          default: 0
        memories_per_day:
          type: integer
          title: Memories Per Day
          description: 'Memories that may be created per UTC day (Issue #1549)'
          default: 0
      type: object
      required:
      - plan_name
      - memory_limit
      - daily_total_limit
      - weekly_total_limit
      title: PlanLimits
      description: 'Plan limits and quotas.


        Issue #198: ``daily_api_limit`` / ``weekly_api_limit`` are the

        sums of every API tier (MCP + REST + Public) so the dashboard''s

        "API Calls Today" card stays meaningful when looking at the

        aggregate. Use the per-tier fields below for accurate breakdowns

        that match ``plan_tiers.py``. Public callers and the rate limiter

        should always read the per-tier fields, never the legacy combined

        sums.'
    FailedMemoryInfo:
      properties:
        id:
          type: string
          title: Id
        summary:
          type: string
          title: Summary
        embedding_error:
          anyOf:
          - type: string
          - type: 'null'
          title: Embedding Error
        created_at:
          type: string
          title: Created At
        updated_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Updated At
        embedding_attempted_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Embedding Attempted At
      type: object
      required:
      - id
      - summary
      - embedding_error
      - created_at
      - updated_at
      title: FailedMemoryInfo
      description: Info about a failed embedding memory.