ReferenceHTTP API
cameraCredentials
The cameraCredentials router: 2 methods of the camera-credentials capability, with tier, scope, input and output.
Capability camera-credentials · scope device · mode singleton · source packages/types/src/capabilities/camera-credentials.cap.ts:77.
Every method is called at /trpc/cameraCredentials.<method> — queries with GET, mutations with POST. See How to call and Authorization. Device methods take deviceId in their input.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
getStatus | query | protected | view | yes |
getCredentials | query | admin | admin only | no |
cameraCredentials.getStatus
- Kind: query —
GET /trpc/cameraCredentials.getStatus(added by the framework) - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilitycamera-credentials, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=cameraCredentials.getStatuson your hub
Input
{ deviceId: number }Output
CameraCredentialsStatusSchemaShapes: CameraCredentialsStatusSchema
cameraCredentials.getCredentials
- Kind: query —
GET /trpc/cameraCredentials.getCredentials - 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=cameraCredentials.getCredentialson your hub
Input
{ deviceId: number }Output
CameraCredentialsSchema | nullShapes: CameraCredentialsSchema