ReferenceHTTP API
integrationInstances
The integrationInstances router: 9 methods of the integration-instances capability, with tier, scope, input and output.
Capability integration-instances · scope system · mode collection · source packages/types/src/capabilities/integration-instances.cap.ts:234.
Every method is called at /trpc/integrationInstances.<method> — queries with GET, mutations with POST. See How to call and Authorization.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
describe | query | admin | admin only | no |
instanceFormSchema | query | admin | admin only | no |
listInstances | query | protected | view | no |
getInstance | query | protected | view | no |
createInstance | mutation | protected | create | no |
updateInstance | mutation | protected | create | no |
setInstanceEnabled | mutation | protected | create | no |
deleteInstance | mutation | protected | delete | no |
testInstance | mutation | protected | create | no |
integrationInstances.describe
- Kind: query —
GET /trpc/integrationInstances.describe - 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=integrationInstances.describeon your hub
Input
voidOutput
IntegrationInstanceDescriptionSchemaShapes: IntegrationInstanceDescriptionSchema
integrationInstances.instanceFormSchema
- Kind: query —
GET /trpc/integrationInstances.instanceFormSchema - 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=integrationInstances.instanceFormSchemaon your hub
Input
{ id: string | null; kind?: string; mode?: "standalone" | "account" | "broker"; candidateStableId?: string }Output
<custom>integrationInstances.listInstances
- Kind: query —
GET /trpc/integrationInstances.listInstances - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityintegration-instances, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=integrationInstances.listInstanceson your hub
Input
{}Output
IntegrationInstanceSchema[]Shapes: IntegrationInstanceSchema
integrationInstances.getInstance
- Kind: query —
GET /trpc/integrationInstances.getInstance - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityintegration-instances, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=integrationInstances.getInstanceon your hub
Input
{ id: string }Output
IntegrationInstanceSchema | nullShapes: IntegrationInstanceSchema
integrationInstances.createInstance
- Kind: mutation —
POST /trpc/integrationInstances.createInstance - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilityintegration-instances, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=integrationInstances.createInstanceon your hub
Input
{ id?: string; name: string; kind?: string; values?: Record<string, unknown>; originStableId?: string; seed?: { info: Record<string, unknown> } }Output
{ id: string }integrationInstances.updateInstance
- Kind: mutation —
POST /trpc/integrationInstances.updateInstance - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilityintegration-instances, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=integrationInstances.updateInstanceon your hub
Input
IntegrationInstancePatchSchemaOutput
{ ok: true }Shapes: IntegrationInstancePatchSchema
integrationInstances.setInstanceEnabled
- Kind: mutation —
POST /trpc/integrationInstances.setInstanceEnabled - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilityintegration-instances, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=integrationInstances.setInstanceEnabledon your hub
Input
{ id: string; enabled: boolean }Output
{ ok: true }integrationInstances.deleteInstance
- Kind: mutation —
POST /trpc/integrationInstances.deleteInstance - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
deleteon capabilityintegration-instances, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=integrationInstances.deleteInstanceon your hub
Input
{ id: string }Output
{ ok: true }integrationInstances.testInstance
- Kind: mutation —
POST /trpc/integrationInstances.testInstance - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilityintegration-instances, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=integrationInstances.testInstanceon your hub
Input
{ id: string | null; values: Record<string, unknown>; kind?: string }Output
TestConnectionResultSchemaShapes: TestConnectionResultSchema