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

# Get workspace usage

> A derived snapshot: how many pages (by status), how much knowledge (sources by status and kind, chunks, tokens, stored bytes) and how many images the workspace holds.



## OpenAPI

````yaml /openapi.json get /v1/usage
openapi: 3.0.0
info:
  title: wondeya Developer API
  description: >-
    The public REST API for building on wondeya: agents, projects, pages,
    knowledge, assets, brand, theme, usage, retrieval and chat, authenticated by
    a workspace API key (`Authorization: Bearer wdy_live_…`).
  version: 0.1.0
  contact:
    name: wondeya
    url: https://wondeya.com
    email: team@wondeya.com
  license:
    name: Proprietary
    url: https://wondeya.com/terms
servers:
  - url: https://api.wondeya.com
    description: Production
  - url: http://localhost:8080
    description: Development
security: []
tags:
  - name: Identity
  - name: Agents
  - name: Projects
  - name: Pages
  - name: Knowledge
  - name: Assets
  - name: Brand
  - name: Usage
  - name: Chat
paths:
  /v1/usage:
    get:
      tags:
        - Usage
      summary: Get workspace usage
      description: >-
        A derived snapshot: how many pages (by status), how much knowledge
        (sources by status and kind, chunks, tokens, stored bytes) and how many
        images the workspace holds.
      operationId: PublicUsageController_get_v1
      parameters: []
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicUsageDto'
      security:
        - api-key: []
components:
  schemas:
    PublicUsageDto:
      type: object
      properties:
        workspaceId:
          type: string
          description: The workspace the key belongs to.
        pages:
          $ref: '#/components/schemas/PublicUsagePagesDto'
        knowledge:
          $ref: '#/components/schemas/PublicUsageKnowledgeDto'
        assets:
          $ref: '#/components/schemas/PublicUsageAssetsDto'
      required:
        - workspaceId
        - pages
        - knowledge
        - assets
    PublicUsagePagesDto:
      type: object
      properties:
        total:
          type: number
        published:
          type: number
        draft:
          type: number
      required:
        - total
        - published
        - draft
    PublicUsageKnowledgeDto:
      type: object
      properties:
        sources:
          type: number
        byStatus:
          type: object
          additionalProperties:
            type: number
          description: Source counts by ingestion status.
        byKind:
          type: object
          additionalProperties:
            type: number
          description: Source counts by kind (upload/url/claim).
        chunks:
          type: number
        tokens:
          type: number
        storedBytes:
          type: number
      required:
        - sources
        - byStatus
        - byKind
        - chunks
        - tokens
        - storedBytes
    PublicUsageAssetsDto:
      type: object
      properties:
        total:
          type: number
        byStatus:
          type: object
          additionalProperties:
            type: number
          description: Asset counts by status.
        storedBytes:
          type: number
      required:
        - total
        - byStatus
        - storedBytes
  securitySchemes:
    api-key:
      scheme: bearer
      bearerFormat: opaque
      type: http
      description: >-
        A workspace API key: wdy_live_… / wdy_test_…. Created at POST
        /workspaces/{tenantId}/keys and shown exactly once.

````