CyberRXN Docs
APIAPI reference

Workspace activity trends and period comparison

GET /v1/activity

GET /v1/activity

API overview · OpenAPI

Non-billable read requiring usage:read. Filters recorded metered attempts by an inclusive/exclusive UTC range of at most 366 days. Hourly charts support at most 31 days. Current and previous equal-duration summaries, top-eight groups plus Other, and zero-filled series use the same filters. All queries are isolated to the credential workspace. Member labels are available only to first-party sessions. Missing latency stays null. Spend includes current non-error reservations and does not change workspace quota or balance.

Authorization

This operation requires a bearer credential. The description defines additional role, scope or first-party-session restrictions; an API key does not grant those permissions by itself.

Parameters

PropertyTypeRequiredDetails
from (query)stringyesInclusive UTC ISO timestamp. The range must be positive and at most 366 days.
to (query)stringyesExclusive UTC ISO timestamp. Future calendar boundaries are allowed.
granularity (query)"day" ∣ "hour"noUTC buckets. Hourly charts support at most 31 days.
group_by (query)"tool" ∣ "key" ∣ "member" ∣ "connection" ∣ "channel" ∣ "environment" ∣ "status"no
tool (query)string ∣ nullno
key_id (query)string ∣ nullno
member_id (query)string ∣ nullno
connection_id (query)string ∣ nullno
channel (query)"rest" ∣ "mcp" ∣ nullno
environment (query)"live" ∣ "test" ∣ nullno
status (query)"reserved" ∣ "success" ∣ "error" ∣ nullno
q (query)string ∣ nullnoLiteral substring search of request ID or tool metadata.

Request body

No request body.

Responses

HTTPDetailsType
200Successful Responseapplication/json: ActivityReport
401Unauthorizedapplication/problem+json: ProblemDetails
403Forbiddenapplication/problem+json: ProblemDetails
404Not Foundapplication/problem+json: ProblemDetails
422Unprocessable Entityapplication/problem+json: ProblemDetails
503Service Unavailableapplication/problem+json: ProblemDetails

Response: ActivityReport

PropertyTypeRequiredDetails
fromstringyes
tostringyes
granularity"day" ∣ "hour"yes
group_by"tool" ∣ "key" ∣ "member" ∣ "connection" ∣ "channel" ∣ "environment" ∣ "status"yes
totalsActivityMetricsyes
previousActivityComparisonyesImmediately preceding equal-duration interval with the same filters.
groupsActivityGroup[]yesTop eight groups by requests, followed by Other when needed.
bucketsActivityBucket[]yesZero-filled UTC buckets with the same group identifiers as groups.
truncated_groupsbooleanyes
Full schema
{
  "properties": {
    "from": {
      "type": "string",
      "format": "date-time",
      "title": "From"
    },
    "to": {
      "type": "string",
      "format": "date-time",
      "title": "To"
    },
    "granularity": {
      "type": "string",
      "enum": [
        "day",
        "hour"
      ],
      "title": "Granularity"
    },
    "group_by": {
      "type": "string",
      "enum": [
        "tool",
        "key",
        "member",
        "connection",
        "channel",
        "environment",
        "status"
      ],
      "title": "Group By"
    },
    "totals": {
      "$ref": "#/components/schemas/ActivityMetrics"
    },
    "previous": {
      "$ref": "#/components/schemas/ActivityComparison",
      "description": "Immediately preceding equal-duration interval with the same filters."
    },
    "groups": {
      "items": {
        "$ref": "#/components/schemas/ActivityGroup"
      },
      "type": "array",
      "title": "Groups",
      "description": "Top eight groups by requests, followed by Other when needed."
    },
    "buckets": {
      "items": {
        "$ref": "#/components/schemas/ActivityBucket"
      },
      "type": "array",
      "title": "Buckets",
      "description": "Zero-filled UTC buckets with the same group identifiers as groups."
    },
    "truncated_groups": {
      "type": "boolean",
      "title": "Truncated Groups"
    }
  },
  "type": "object",
  "required": [
    "from",
    "to",
    "granularity",
    "group_by",
    "totals",
    "previous",
    "groups",
    "buckets",
    "truncated_groups"
  ],
  "title": "ActivityReport"
}

This page is generated from OpenAPI; examples are schemas, not a fabricated successful response.

Usage and billing · Structured errors

On this page