ReferenceHTTP API
recording
The recording router: 5 methods of the recording capability, with tier, scope, input and output.
Capability recording · scope device · mode collection · source packages/types/src/capabilities/recording.cap.ts:277.
Every method is called at /trpc/recording.<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 |
|---|---|---|---|---|
listSources | query | protected | view | yes |
getAvailability | query | protected | view | yes |
getDaysWithRecordings | query | protected | view | yes |
getPlayback | query | protected | view | yes |
getPlaybackOptions | query | protected | view | yes |
recording.listSources
- Kind: query —
GET /trpc/recording.listSources - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityrecording, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=recording.listSourceson your hub
Input
{ deviceId: number }Output
RecordingSourceSchema[]Shapes: RecordingSourceSchema
recording.getAvailability
- Kind: query —
GET /trpc/recording.getAvailability - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityrecording, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=recording.getAvailabilityon your hub
Input
{ deviceId: number; provider: string; fromMs: number; toMs: number; profile?: string }Output
RecordingAvailabilitySchemaShapes: RecordingAvailabilitySchema
recording.getDaysWithRecordings
- Kind: query —
GET /trpc/recording.getDaysWithRecordings - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityrecording, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=recording.getDaysWithRecordingson your hub
Input
{ deviceId: number; provider: string; fromMs: number; toMs: number; tzOffsetMinutes: number }Output
RecordingDaysSchemaShapes: RecordingDaysSchema
recording.getPlayback
- Kind: query —
GET /trpc/recording.getPlayback - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityrecording, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=recording.getPlaybackon your hub
Input
{ deviceId: number; provider: string; fromMs: number; toMs: number; profile?: CamProfileSchema }Output
RecordingPlaybackSchemaShapes: CamProfileSchema · RecordingPlaybackSchema
recording.getPlaybackOptions
- Kind: query —
GET /trpc/recording.getPlaybackOptions - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityrecording, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=recording.getPlaybackOptionson your hub
Input
{ deviceId: number; provider: string }Output
RecordingSourceOptionsSchemaShapes: RecordingSourceOptionsSchema