Invoking the Integration Install

In the preceding steps we showed you how to enable your system's Tenants to install specific Integrations. Now that installation for this Tenant is complete, you can invoke the Integration on their behalf. Fusebit will ensure their authorization and credentials will be used against the third-party system, and any authentication tokens are refreshed as appropriate.

The code below invokes the test endpoint of the Integration, identifying the intended tenantId as a segment of the URL. The content of the body is arbitrary and you can use it to pass any data you want from your application to the Integration logic.

await require('superagent')
  .set('Authorization', 'Bearer ${accessKey}')
    tenantId: '${tenantId}',
    instanceId: '${installId}'

Did this page help you?