ReferenceHTTP API
recordingExport
The recordingExport router: 7 methods of the recording-export capability, with tier, scope, input and output.
Capability recording-export · scope system · mode singleton · source packages/types/src/capabilities/recording-export.cap.ts:534.
Every method is called at /trpc/recordingExport.<method> — queries with GET, mutations with POST. See How to call and Authorization.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
createExport | mutation | protected | create | yes |
listExports | query | protected | view | yes |
getExport | query | protected | view | yes |
cancelExport | mutation | protected | create | yes |
deleteExport | mutation | protected | delete | yes |
getDownloadUrl | query | protected | view | yes |
readExportBytes | query | protected | view | no |
recordingExport.createExport
- Kind: mutation —
POST /trpc/recordingExport.createExport - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilityrecording-export, or categorysystem - Viewer: yes
- Try it: open
/system/api-explorer?method=recordingExport.createExporton your hub
Input
{ deviceId: number; profile?: string; profiles?: string[]; fromMs?: number; toMs?: number; subject?: ExportSubjectSchema; options: ExportOptionsSchema }Output
ExportRecordSchemaShapes: ExportSubjectSchema · ExportOptionsSchema · ExportRecordSchema
recordingExport.listExports
- Kind: query —
GET /trpc/recordingExport.listExports - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityrecording-export, or categorysystem - Viewer: yes
- Try it: open
/system/api-explorer?method=recordingExport.listExportson your hub
Input
{ deviceId?: number }Output
ExportRecordSchema[]Shapes: ExportRecordSchema
recordingExport.getExport
- Kind: query —
GET /trpc/recordingExport.getExport - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityrecording-export, or categorysystem - Viewer: yes
- Try it: open
/system/api-explorer?method=recordingExport.getExporton your hub
Input
{ exportId: string }Output
ExportRecordSchemaShapes: ExportRecordSchema
recordingExport.cancelExport
- Kind: mutation —
POST /trpc/recordingExport.cancelExport - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilityrecording-export, or categorysystem - Viewer: yes
- Try it: open
/system/api-explorer?method=recordingExport.cancelExporton your hub
Input
{ exportId: string }Output
ExportRecordSchemaShapes: ExportRecordSchema
recordingExport.deleteExport
- Kind: mutation —
POST /trpc/recordingExport.deleteExport - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
deleteon capabilityrecording-export, or categorysystem - Viewer: yes
- Try it: open
/system/api-explorer?method=recordingExport.deleteExporton your hub
Input
{ exportId: string }Output
ExportRecordSchemaShapes: ExportRecordSchema
recordingExport.getDownloadUrl
- Kind: query —
GET /trpc/recordingExport.getDownloadUrl - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityrecording-export, or categorysystem - Viewer: yes
- Try it: open
/system/api-explorer?method=recordingExport.getDownloadUrlon your hub
Input
{ exportId: string }Output
ExportDownloadSchemaShapes: ExportDownloadSchema
recordingExport.readExportBytes
- Kind: query —
GET /trpc/recordingExport.readExportBytes - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityrecording-export, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=recordingExport.readExportByteson your hub
Input
{ exportId: string }Output
ExportBytesSchemaShapes: ExportBytesSchema