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

# Get tenant metrics

> Per-tenant usage snapshot — item count by state, blob count and total bytes, custom-type count, and the most recent `system.activity` entries for the tenant. Platform-admin only.



## OpenAPI

````yaml /openapi.json get /admin/tenants/{id}/metrics
openapi: 3.1.0
info:
  title: Marfa API
  version: 4.2.0
  description: Typed data layer for structured personal data
servers: []
security: []
paths:
  /admin/tenants/{id}/metrics:
    get:
      tags:
        - Admin
      summary: Get tenant metrics
      description: >-
        Per-tenant usage snapshot — item count by state, blob count and total
        bytes, custom-type count, and the most recent `system.activity` entries
        for the tenant. Platform-admin only.
      parameters:
        - schema:
            type: string
          required: true
          name: id
          in: path
      responses:
        '200':
          description: Metrics snapshot
          content:
            application/json:
              schema:
                type: object
                properties:
                  tenant_id:
                    type: string
                  items:
                    type: object
                    properties:
                      total:
                        type: number
                      active:
                        type: number
                      archived:
                        type: number
                      trashed:
                        type: number
                    required:
                      - total
                      - active
                      - archived
                      - trashed
                  blobs:
                    type: object
                    properties:
                      count:
                        type: number
                      total_size:
                        type: number
                    required:
                      - count
                      - total_size
                  recent_activity:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        severity:
                          type: string
                        summary:
                          type: string
                        created_at:
                          type: string
                      required:
                        - id
                        - severity
                        - summary
                        - created_at
                  generated_at:
                    type: string
                required:
                  - tenant_id
                  - items
                  - blobs
                  - recent_activity
                  - generated_at
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - unauthorized
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                      - code
                      - message
                required:
                  - error
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - forbidden
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                      - code
                      - message
                required:
                  - error
        '404':
          description: Tenant not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - not_found
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                      - code
                      - message
                required:
                  - error
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key or OAuth Token
      description: Pass an API key (marfa_k1_...) or OAuth access token (marfa_at_...)

````