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

# List scenes in scope

> List the scenes in the caller's read scope with opaque cursor pagination (FR-13). Returns a `SceneList` envelope: omit `cursor` for the first page, then pass the prior page's `next_cursor` back as `cursor` to fetch the next page. A `null` `next_cursor` marks the last page.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/scenes
openapi: 3.0.3
info:
  title: HyphaeDB REST API
  version: 1.0.0
  description: >-
    The unary REST surface over the HyphaeDB internal service facade. JSON over
    HTTP/1.1; every endpoint is a thin translator onto the same facade that gRPC
    and MCP speak. `recall` and `query` return fully hydrated nodes in rank
    order (nearest-first); no similarity score rides the wire — the array order
    conveys the rank.


    All endpoints except `GET /healthz` require an API key supplied in the
    `x-hyphae-key` header. Errors use a uniform envelope: `{ "error": { "code":
    string, "message": string } }`.


    This document covers the unary REST endpoints only. The WebSocket gossip
    stream (`GET /v1/inbox`) and the MCP-over-HTTP endpoint (`POST /mcp`) are
    separate surfaces not described here, and `GET /openapi.json` serves this
    document itself.
servers:
  - url: http://localhost:8080
    description: Local HyphaeDB server
security:
  - ApiKeyAuth: []
tags:
  - name: Memory
    description: Store and retrieve knowledge cells.
  - name: Sessions
    description: Open and close working sessions.
  - name: Beacons
    description: Standing interest beacons for gossip routing.
  - name: Inbox
    description: 'The gossip inbox: the unary work-cycle drain for non-resident agents.'
  - name: Scenes
    description: Scene listing, lookup, and consolidation.
  - name: Health
    description: Liveness probe.
paths:
  /v1/scenes:
    get:
      tags:
        - Scenes
      summary: List scenes in scope
      description: >-
        List the scenes in the caller's read scope with opaque cursor pagination
        (FR-13). Returns a `SceneList` envelope: omit `cursor` for the first
        page, then pass the prior page's `next_cursor` back as `cursor` to fetch
        the next page. A `null` `next_cursor` marks the last page.
      operationId: listScenes
      parameters:
        - name: cursor
          in: query
          required: false
          description: Opaque cursor from a prior page's next_cursor
          schema:
            type: string
        - name: limit
          in: query
          required: false
          description: Page size; clamped to the server max; omitted = default
          schema:
            type: integer
            minimum: 1
      responses:
        '200':
          description: A page of scenes in scope, with a cursor to the next page (FR-13).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SceneList'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '500':
          $ref: '#/components/responses/ServerError'
        '503':
          $ref: '#/components/responses/Unavailable'
components:
  schemas:
    SceneList:
      type: object
      required:
        - scenes
      properties:
        scenes:
          type: array
          items:
            $ref: '#/components/schemas/Scene'
        next_cursor:
          type: string
          nullable: true
          description: Cursor for the next page; null when this is the last page (FR-13).
    Scene:
      type: object
      description: >-
        A clustering of related cells around a centroid. `summary` is an LLM
        synthesis of the scene's member cells, so a scene is content: every read
        of it is tenant-scoped.
      required:
        - id
        - tenant_id
        - project_id
        - centroid
        - summary
        - created_at
      properties:
        id:
          type: string
          format: uuid
        tenant_id:
          type: string
          description: >-
            Always set; server-derived and always the caller's own tenant (a
            scoped read cannot return another's). `default` in V1.
        project_id:
          type: string
        centroid:
          type: array
          description: The scene centroid vector.
          items:
            type: number
            format: float
        summary:
          type: string
        created_at:
          type: string
          format: date-time
    Error:
      type: object
      description: The uniform error envelope returned for every non-2xx response.
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              description: A stable, machine-readable error code.
              enum:
                - not_found
                - validation
                - dimension_mismatch
                - unauthorized
                - forbidden
                - conflict
                - transaction
                - quota_exceeded
                - rate_limited
                - timeout
                - unavailable
                - storage
                - embedding
                - config
                - internal
            message:
              type: string
              description: >-
                A redaction-safe, human-readable description (never embeds
                secrets).
  responses:
    BadRequest:
      description: >-
        The request was malformed or failed validation (codes: `validation`,
        `dimension_mismatch`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: 'Missing or invalid `x-hyphae-key` (code: `unauthorized`).'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: 'Authenticated but not permitted (code: `forbidden`).'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ServerError:
      description: 'An internal error (codes: `embedding`, `config`, `internal`).'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unavailable:
      description: 'A dependency was unavailable (codes: `unavailable`, `storage`).'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-hyphae-key
      description: >-
        The API key issued for the calling agent. Required on every endpoint
        except `GET /healthz`.

````