Kagura AI Sleep Reports API

Admin: Sleep Maintenance execution reports and audit log

GitHub OpenAPI

Operations 2

GET /api/v1/admin/sleep-reports List Sleep Maintenance reports (admin) #
GET /api/v1/admin/sleep-reports/{report_id} Get a single Sleep Maintenance report (admin) #

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-sleep-reports-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-sleep-reports-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Kagura Memory Cloud Sleep Reports API
  description: Universal AI Memory Platform - Remote MCP Server + Web Management
  version: 0.158.1
tags:
- name: sleep-reports
  description: 'Admin: Sleep Maintenance execution reports and audit log'
paths:
  /api/v1/admin/sleep-reports:
    get:
      tags:
      - sleep-reports
      summary: List Sleep Maintenance reports (admin)
      description: 'List Sleep Maintenance reports with filters and pagination.


        Admin-only. Filterable by status, source, context_id, user_id.

        Sorted by started_at DESC.'
      operationId: list_sleep_reports_api_v1_admin_sleep_reports_get
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 500
          minimum: 1
          default: 50
          title: Limit
      - name: offset
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          default: 0
          title: Offset
      - name: status
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Status
      - name: source
        in: query
        required: false
        schema:
          enum:
          - sleep
          - analysis
          - all
          type: string
          description: 'Which rows to list: ''sleep'' (Sleep Maintenance runs), ''analysis'' (Memory Analysis spend rows) or ''all'' (default). Unknown values are a 422.'
          default: all
          title: Source
        description: 'Which rows to list: ''sleep'' (Sleep Maintenance runs), ''analysis'' (Memory Analysis spend rows) or ''all'' (default). Unknown values are a 422.'
      - name: context_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Context Id
      - name: user_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: User Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SleepReportListResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/admin/sleep-reports/{report_id}:
    get:
      tags:
      - sleep-reports
      summary: Get a single Sleep Maintenance report (admin)
      description: 'Get a single Sleep Maintenance report with its full action audit log.


        Admin-only.'
      operationId: get_sleep_report_detail_api_v1_admin_sleep_reports__report_id__get
      parameters:
      - name: report_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Report Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SleepReportDetailResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SleepReportListResponse:
      properties:
        reports:
          items:
            $ref: '#/components/schemas/SleepReportSummary'
          type: array
          title: Reports
        total:
          type: integer
          title: Total
        limit:
          type: integer
          title: Limit
        offset:
          type: integer
          title: Offset
      type: object
      required:
      - reports
      - total
      - limit
      - offset
      title: SleepReportListResponse
      description: List of sleep reports with pagination.
    SleepReportDetailResponse:
      properties:
        report:
          $ref: '#/components/schemas/SleepReportDetail'
        actions:
          items:
            $ref: '#/components/schemas/SleepActionItem'
          type: array
          title: Actions
        action_count:
          type: integer
          title: Action Count
      type: object
      required:
      - report
      - actions
      - action_count
      title: SleepReportDetailResponse
      description: Sleep report detail with all actions.
    SleepReportSummary:
      properties:
        id:
          title: Id
        user_id:
          title: User Id
        workspace_id:
          title: Workspace Id
        context_id:
          title: Context Id
        context_name:
          title: Context Name
        user_email:
          title: User Email
        status:
          title: Status
        source:
          title: Source
        started_at:
          title: Started At
        completed_at:
          title: Completed At
        memories_processed:
          title: Memories Processed
        edges_created:
          title: Edges Created
        memories_merged:
          title: Memories Merged
        memories_promoted:
          title: Memories Promoted
        memories_flagged:
          title: Memories Flagged
        llm_calls_made:
          title: Llm Calls Made
        llm_tokens_used:
          title: Llm Tokens Used
        llm_call_failures:
          title: Llm Call Failures
      type: object
      required:
      - id
      - user_id
      - workspace_id
      - context_id
      - status
      - source
      - started_at
      - completed_at
      - memories_processed
      - edges_created
      - memories_merged
      - memories_promoted
      - memories_flagged
      - llm_calls_made
      - llm_tokens_used
      title: SleepReportSummary
      description: Sleep report summary for list view.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    SleepActionItem:
      properties:
        id:
          title: Id
        phase:
          title: Phase
        action_type:
          title: Action Type
        memory_id:
          title: Memory Id
        target_id:
          title: Target Id
        details:
          title: Details
        created_at:
          title: Created At
      type: object
      required:
      - id
      - phase
      - action_type
      - memory_id
      - target_id
      - details
      - created_at
      title: SleepActionItem
      description: Sleep action audit log entry.
    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
    SleepReportDetail:
      properties:
        id:
          title: Id
        user_id:
          title: User Id
        workspace_id:
          title: Workspace Id
        context_id:
          title: Context Id
        context_name:
          title: Context Name
        user_email:
          title: User Email
        status:
          title: Status
        source:
          title: Source
        started_at:
          title: Started At
        completed_at:
          title: Completed At
        memories_processed:
          title: Memories Processed
        edges_created:
          title: Edges Created
        memories_merged:
          title: Memories Merged
        memories_promoted:
          title: Memories Promoted
        memories_flagged:
          title: Memories Flagged
        llm_calls_made:
          title: Llm Calls Made
        llm_tokens_used:
          title: Llm Tokens Used
        llm_call_failures:
          title: Llm Call Failures
        context_deleted:
          title: Context Deleted
        embedding_calls_made:
          title: Embedding Calls Made
        error_message:
          title: Error Message
        edge_discovery_result:
          title: Edge Discovery Result
        dedup_result:
          title: Dedup Result
        merge_retention_result:
          title: Merge Retention Result
        importance_result:
          title: Importance Result
        consolidation_result:
          title: Consolidation Result
        reindex_result:
          title: Reindex Result
      type: object
      required:
      - id
      - user_id
      - workspace_id
      - context_id
      - status
      - source
      - started_at
      - completed_at
      - memories_processed
      - edges_created
      - memories_merged
      - memories_promoted
      - memories_flagged
      - llm_calls_made
      - llm_tokens_used
      - embedding_calls_made
      - error_message
      - edge_discovery_result
      - dedup_result
      - importance_result
      - consolidation_result
      - reindex_result
      title: SleepReportDetail
      description: Sleep report full detail.