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.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
info | query | protected | view | no |
health | query | protected | view | no |
featureFlags | query | protected | view | no |
networkAddresses | query | protected | view | no |
getRetentionConfig | query | admin | admin only | no |
setRetentionConfig | mutation | admin | admin only | no |
forceRetentionCleanup | mutation | admin | admin only | no |
getSiteLocation | query | protected | view | no |
setSiteLocation | mutation | admin | admin only | no |
detectSiteLocation | mutation | admin | admin only | no |
getRequestCensus | query | admin | admin only | no |
getLoadContributions | query | admin | admin only | no |
getFailureContributions | query | admin | admin only | no |
getLoggingSettings | query | admin | admin only | no |
setLoggingSettings | mutation | admin | admin only | no |
debugWatch | mutation | admin | admin only | no |
system.info
- Kind: query —
GET /trpc/system.info - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilitysystem, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=system.infoon your hub
Input
voidOutput
{ 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:
viewon capabilitysystem, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=system.healthon your hub
Input
voidOutput
HealthStatusSchemaShapes: HealthStatusSchema
system.featureFlags
- Kind: query —
GET /trpc/system.featureFlags - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilitysystem, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=system.featureFlagson your hub
Input
voidOutput
FeatureManifestSchemaShapes: FeatureManifestSchema
system.networkAddresses
- Kind: query —
GET /trpc/system.networkAddresses - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilitysystem, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=system.networkAddresseson your hub
Input
voidOutput
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.getRetentionConfigon your hub
Input
voidOutput
unknown | nullsystem.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.setRetentionConfigon your hub
Input
Record<string, unknown>Output
nullsystem.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.forceRetentionCleanupon your hub
Input
voidOutput
voidsystem.getSiteLocation
- Kind: query —
GET /trpc/system.getSiteLocation - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilitysystem, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=system.getSiteLocationon your hub
Input
voidOutput
SiteLocationStatusSchemaShapes: 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.setSiteLocationon your hub
Input
{ latitude: number; longitude: number } | nullOutput
SiteLocationStatusSchemaShapes: 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.detectSiteLocationon your hub
Input
voidOutput
SiteLocationStatusSchemaShapes: 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.getRequestCensuson your hub
Input
voidOutput
RequestCensusStatusSchemaShapes: 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.getLoadContributionson your hub
Input
voidOutput
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.getFailureContributionson your hub
Input
voidOutput
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.getLoggingSettingson your hub
Input
GetLoggingSettingsInputSchemaOutput
LoggingSettingsStateSchemaShapes: 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.setLoggingSettingson your hub
Input
SetLoggingSettingsInputSchemaOutput
LoggingSettingsStateSchemaShapes: 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.debugWatchon 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[] }