ReferenceHTTP API
meshNetwork
The meshNetwork router: 6 methods of the mesh-network capability, with tier, scope, input and output.
Capability mesh-network · scope system · mode collection · source packages/types/src/capabilities/mesh-network.cap.ts:177.
Every method is called at /trpc/meshNetwork.<method> — queries with GET, mutations with POST. See How to call and Authorization.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
getStatus | query | protected | view | no |
join | mutation | protected | create | no |
startLogin | mutation | protected | create | no |
leave | mutation | protected | create | no |
logout | mutation | protected | create | no |
listPeers | query | protected | view | no |
meshNetwork.getStatus
- Kind: query —
GET /trpc/meshNetwork.getStatus - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilitymesh-network, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=meshNetwork.getStatuson your hub
Input
voidOutput
MeshStatusSchemaShapes: MeshStatusSchema
meshNetwork.join
- Kind: mutation —
POST /trpc/meshNetwork.join - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilitymesh-network, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=meshNetwork.joinon your hub
Input
{ authKey: string; hostname?: string }Output
{ joined: true }meshNetwork.startLogin
- Kind: mutation —
POST /trpc/meshNetwork.startLogin - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilitymesh-network, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=meshNetwork.startLoginon your hub
Input
{ hostname?: string }Output
{ loginUrl: string }meshNetwork.leave
- Kind: mutation —
POST /trpc/meshNetwork.leave - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilitymesh-network, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=meshNetwork.leaveon your hub
Input
voidOutput
{ left: true }meshNetwork.logout
- Kind: mutation —
POST /trpc/meshNetwork.logout - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilitymesh-network, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=meshNetwork.logouton your hub
Input
voidOutput
{ loggedOut: true }meshNetwork.listPeers
- Kind: query —
GET /trpc/meshNetwork.listPeers - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilitymesh-network, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=meshNetwork.listPeerson your hub
Input
voidOutput
{ peers: MeshPeerSchema[] }Shapes: MeshPeerSchema