DocumentationAPI reference

Rust · 0.1.0

Get User Stats

GET /api/v1/users/{user}:getStats

UserService · UserService_GetUserStats

Protocol-derived reference. Authorization and instance policy still apply. Schema descriptions are inherited from the MIT-licensed application contract; examples here are not executed against a live server.

Access

Anonymous calls are allowed only when the instance permits public access. Authenticated calls remain subject to resource visibility and operation-specific filtering.

Counts follow readable content

Memo statistics are computed using the caller's current audience and filter, not unrestricted global counts. GetUserStats exposes attachmentStorageBytes only to the user themself. Do not compare results from different identities as if they had the same visibility.

Request

GetUserStats returns statistics for a specific user.

GET/api/v1/users/{user}:getStats

Parameters

Name / locationType / requirementDescription
user
path
string
Required
The user id.
filter
query
string
Not marked required in OpenAPI
Optional. CEL expression selecting the readable non-comment memos to include. Supports the same fields as ListMemos, including `space`.

Request body

No request body is declared.

Responses

200 · OK

application/json · UserStats

default · Default error response

application/json · Status

Complete operation definition

All declared constraints, media types and response details are retained below. Schema references link to their complete definitions.

Open JSON definition
{
  "tags": [
    "UserService"
  ],
  "description": "GetUserStats returns statistics for a specific user.",
  "operationId": "UserService_GetUserStats",
  "parameters": [
    {
      "name": "user",
      "in": "path",
      "description": "The user id.",
      "required": true,
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "filter",
      "in": "query",
      "description": "Optional. CEL expression selecting the readable non-comment memos to\n include. Supports the same fields as ListMemos, including `space`.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "OK",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/UserStats"
          }
        }
      }
    },
    "default": {
      "description": "Default error response",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Status"
          }
        }
      }
    }
  }
}