Dominevo
ReferenceHTTP API

system

The system router: 16 methods of the system capability, with tier, scope, input and output.

Capability system · scope system · mode singleton · source packages/types/src/capabilities/system.cap.ts:609.

Every method is called at /trpc/system.<method> — queries with GET, mutations with POST. See How to call and Authorization.

MethodKindTierToken scopeViewer
infoqueryprotectedviewno
healthqueryprotectedviewno
featureFlagsqueryprotectedviewno
networkAddressesqueryprotectedviewno
getRetentionConfigqueryadminadmin onlyno
setRetentionConfigmutationadminadmin onlyno
forceRetentionCleanupmutationadminadmin onlyno
getSiteLocationqueryprotectedviewno
setSiteLocationmutationadminadmin onlyno
detectSiteLocationmutationadminadmin onlyno
getRequestCensusqueryadminadmin onlyno
getLoadContributionsqueryadminadmin onlyno
getFailureContributionsqueryadminadmin onlyno
getLoggingSettingsqueryadminadmin onlyno
setLoggingSettingsmutationadminadmin onlyno
debugWatchmutationadminadmin onlyno

system.info

  • Kind: query — GET /trpc/system.info
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability system, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=system.info on your hub

Input

void

Output

{ streaming: boolean; notifications: boolean; objectDetection: boolean; remoteAccess: boolean; agentCluster: boolean; smartHome: boolean; recordings: boolean; backup: boolean; repl: boolean; serverName: { name: string; isDefault: boolean } }

system.health

  • Kind: query — GET /trpc/system.health
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability system, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=system.health on your hub

Input

void

Output

HealthStatusSchema

Shapes: HealthStatusSchema

system.featureFlags

  • Kind: query — GET /trpc/system.featureFlags
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability system, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=system.featureFlags on your hub

Input

void

Output

FeatureManifestSchema

Shapes: FeatureManifestSchema

system.networkAddresses

  • Kind: query — GET /trpc/system.networkAddresses
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability system, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=system.networkAddresses on your hub

Input

void

Output

NetworkAddressSchema[]

Shapes: NetworkAddressSchema

system.getRetentionConfig

  • Kind: query — GET /trpc/system.getRetentionConfig
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=system.getRetentionConfig on your hub

Input

void

Output

unknown | null

system.setRetentionConfig

  • Kind: mutation — POST /trpc/system.setRetentionConfig
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=system.setRetentionConfig on your hub

Input

Record<string, unknown>

Output

null

system.forceRetentionCleanup

  • Kind: mutation — POST /trpc/system.forceRetentionCleanup
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=system.forceRetentionCleanup on your hub

Input

void

Output

void

system.getSiteLocation

  • Kind: query — GET /trpc/system.getSiteLocation
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability system, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=system.getSiteLocation on your hub

Input

void

Output

SiteLocationStatusSchema

Shapes: SiteLocationStatusSchema

system.setSiteLocation

  • Kind: mutation — POST /trpc/system.setSiteLocation
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=system.setSiteLocation on your hub

Input

{ latitude: number; longitude: number } | null

Output

SiteLocationStatusSchema

Shapes: SiteLocationStatusSchema

system.detectSiteLocation

  • Kind: mutation — POST /trpc/system.detectSiteLocation
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=system.detectSiteLocation on your hub

Input

void

Output

SiteLocationStatusSchema

Shapes: SiteLocationStatusSchema

system.getRequestCensus

  • Kind: query — GET /trpc/system.getRequestCensus
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=system.getRequestCensus on your hub

Input

void

Output

RequestCensusStatusSchema

Shapes: RequestCensusStatusSchema

system.getLoadContributions

  • Kind: query — GET /trpc/system.getLoadContributions
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=system.getLoadContributions on your hub

Input

void

Output

ReportedLoadContributionSchema[]

Shapes: ReportedLoadContributionSchema

system.getFailureContributions

  • Kind: query — GET /trpc/system.getFailureContributions
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=system.getFailureContributions on your hub

Input

void

Output

ReportedFailureContributionSchema[]

Shapes: ReportedFailureContributionSchema

system.getLoggingSettings

  • Kind: query — GET /trpc/system.getLoggingSettings
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=system.getLoggingSettings on your hub

Input

GetLoggingSettingsInputSchema

Output

LoggingSettingsStateSchema

Shapes: GetLoggingSettingsInputSchema · LoggingSettingsStateSchema

system.setLoggingSettings

  • Kind: mutation — POST /trpc/system.setLoggingSettings
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=system.setLoggingSettings on your hub

Input

SetLoggingSettingsInputSchema

Output

LoggingSettingsStateSchema

Shapes: SetLoggingSettingsInputSchema · LoggingSettingsStateSchema

system.debugWatch

  • Kind: mutation — POST /trpc/system.debugWatch
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=system.debugWatch on your hub

Input

{ action: "list" | "start" | "rearm" | "stop"; channels?: string[] = []; deviceIds?: number[] = [] }

Output

{ nowMs: number; watches: ({ channel: string; deviceIds: number[]; startedAtMs: number; untilMs: number; capAtMs: number })[]; lapsed: string[] }