ReferenceHTTP API
boardKeySource
The boardKeySource router: 3 methods of the board-key-source capability, with tier, scope, input and output.
Capability board-key-source · scope system · mode collection · source packages/types/src/capabilities/board-key-source.cap.ts:64.
Every method is called at /trpc/boardKeySource.<method> — queries with GET, mutations with POST. See How to call and Authorization.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
listSources | query | admin | admin only | no |
listBoards | query | admin | admin only | no |
getBoardKey | query | admin | admin only | no |
boardKeySource.listSources
- Kind: query —
GET /trpc/boardKeySource.listSources - 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=boardKeySource.listSourceson your hub
Input
voidOutput
({ sourceId: string; name: string })[]boardKeySource.listBoards
- Kind: query —
GET /trpc/boardKeySource.listBoards - 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=boardKeySource.listBoardson your hub
Input
{ sourceId: string }Output
{ ok: true; boards: ({ configuration: string; name: string; address: string | null })[] } | { ok: false; reason: BoardKeyFailureReasonSchema; detail?: string }Shapes: BoardKeyFailureReasonSchema
boardKeySource.getBoardKey
- Kind: query —
GET /trpc/boardKeySource.getBoardKey - 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=boardKeySource.getBoardKeyon your hub
Input
{ sourceId: string; configuration: string }Output
{ ok: true; key: string } | { ok: false; reason: BoardKeyFailureReasonSchema; detail?: string }Shapes: BoardKeyFailureReasonSchema