ReferenceHTTP API
keychain
The keychain router: 7 methods of the keychain capability, with tier, scope, input and output.
Capability keychain · scope system · mode singleton · source packages/types/src/capabilities/keychain.cap.ts:98.
Every method is called at /trpc/keychain.<method> — queries with GET, mutations with POST. See How to call and Authorization.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
put | mutation | admin | admin only | no |
resolve | query | admin | admin only | no |
delete | mutation | admin | admin only | no |
deleteDeviceScope | mutation | admin | admin only | no |
releaseRecordRefs | mutation | admin | admin only | no |
listMeta | query | admin | admin only | no |
getState | query | admin | admin only | no |
keychain.put
- Kind: mutation —
POST /trpc/keychain.put - 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=keychain.puton your hub
Input
{ ref: string; value: string }Output
{ ref: string; version: number }keychain.resolve
- Kind: query —
GET /trpc/keychain.resolve - 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=keychain.resolveon your hub
Input
{ refs: string[] }Output
KeychainResolveResultSchemaShapes: KeychainResolveResultSchema
keychain.delete
- Kind: mutation —
POST /trpc/keychain.delete - 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=keychain.deleteon your hub
Input
{ refs: string[] }Output
{ deleted: number }keychain.deleteDeviceScope
- Kind: mutation —
POST /trpc/keychain.deleteDeviceScope - 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=keychain.deleteDeviceScopeon your hub
Input
{ deviceId: number }Output
{ refs: string[] }keychain.releaseRecordRefs
- Kind: mutation —
POST /trpc/keychain.releaseRecordRefs - 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=keychain.releaseRecordRefson your hub
Input
{ refs: string[]; onBehalfOf: string }Output
{ released: number }keychain.listMeta
- Kind: query —
GET /trpc/keychain.listMeta - 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=keychain.listMetaon your hub
Input
{}Output
KeychainSecretMetaSchema[]Shapes: KeychainSecretMetaSchema
keychain.getState
- Kind: query —
GET /trpc/keychain.getState - 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=keychain.getStateon your hub
Input
{}Output
KeychainStateSchemaShapes: KeychainStateSchema