Dominevo
ReferenceHTTP API

contact

The contact router: 1 method of the contact capability, with tier, scope, input and output.

Capability contact · scope device · mode singleton · source packages/types/src/capabilities/contact.cap.ts:27.

Every method is called at /trpc/contact.<method> — queries with GET, mutations with POST. See How to call and Authorization. Device methods take deviceId in their input.

MethodKindTierToken scopeViewer
getStatusqueryprotectedviewyes

contact.getStatus

  • Kind: query — GET /trpc/contact.getStatus (added by the framework)
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability contact, or category device, or a device grant covering deviceId
  • Viewer: yes
  • Try it: open /system/api-explorer?method=contact.getStatus on your hub

Input

{ deviceId: number }

Output

ContactStatusSchema

Shapes: ContactStatusSchema

On this page