ReferenceHTTP API
broker
The broker router: 6 methods of the broker capability, with tier, scope, input and output.
Capability broker · scope system · mode collection · source packages/types/src/capabilities/broker.cap.ts:78.
Every method is called at /trpc/broker.<method> — queries with GET, mutations with POST. See How to call and Authorization.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
getStatus | query | protected | view | no |
getBrokerConfig | query | admin | admin only | no |
publish | mutation | admin | admin only | no |
subscribe | mutation | admin | admin only | no |
unsubscribe | mutation | admin | admin only | no |
getState | query | admin | admin only | no |
broker.getStatus
- Kind: query —
GET /trpc/broker.getStatus - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilitybroker, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=broker.getStatuson your hub
Input
voidOutput
BrokerRegistryStatusSchemaShapes: BrokerRegistryStatusSchema
broker.getBrokerConfig
- Kind: query —
GET /trpc/broker.getBrokerConfig - 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=broker.getBrokerConfigon your hub
Input
{ id: string }Output
Record<string, unknown> | nullbroker.publish
- Kind: mutation —
POST /trpc/broker.publish - 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=broker.publishon your hub
Input
BrokerPublishInputSchemaOutput
unknownShapes: BrokerPublishInputSchema
broker.subscribe
- Kind: mutation —
POST /trpc/broker.subscribe - 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=broker.subscribeon your hub
Input
BrokerSubscribeInputSchemaOutput
BrokerSubscribeResultSchemaShapes: BrokerSubscribeInputSchema · BrokerSubscribeResultSchema
broker.unsubscribe
- Kind: mutation —
POST /trpc/broker.unsubscribe - 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=broker.unsubscribeon your hub
Input
BrokerUnsubscribeInputSchemaOutput
voidShapes: BrokerUnsubscribeInputSchema
broker.getState
- Kind: query —
GET /trpc/broker.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=broker.getStateon your hub
Input
BrokerGetStateInputSchemaOutput
unknown | nullShapes: BrokerGetStateInputSchema