Skip to content

Integration commands: call, connect, pause

The Integration Verbs call, connect, pause as CLI commands, with inputs, result, refusals and an example.

Reference for Integration, one group of Integration commands.

Integration.call

Call sends one request to an upstream through an Integration, with its token filled in server-side, for endpoints no Mapping covers. Verb page.

Text
npx startup-builder do Integration.call --json '<input>' [--try | --send | --do]

Emits Integration.called.

Inputs

InputTypeRequiredDescription
integrationIntegrationrequiredThe Integration to call through.
methodstringrequiredThe HTTP method; GET runs at once.
pathstringrequiredThe upstream path, inside the Integration’s grants.
bodyjsonThe request body.

Returns

OutputTypeRequiredDescription
statusintegerrequiredThe upstream’s status code.
bodyjsonThe upstream’s response body.
integrationIntegrationrequiredThe Integration the request went through.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.
A path outside the Integration’s grants before it leaves the platformrefusedClear what the check names, then call it again.None.

Example

Terminal
npx startup-builder do Integration.call --json '{"integration":"integration_alVwjQcmRy","method":"GET","path":"/"}'

Integration.connect

Connect asks an account holder to approve an outside account for one System and records the grants they approve. Verb page.

Text
npx startup-builder do Integration.connect --json '<input>' [--try | --send | --do]

Emits Integration.connected.

Inputs

InputTypeRequiredDescription
systemSystemrequiredThe System the Integration serves.
scopestringrequiredOne of studio, startup or customer; a person’s own account is startup, narrowed to them.
grantsstring[]requiredThe access requested, shown to the account holder before they approve.
venuestringThe id of the ad, social or app-store venue the account is on.
forPartyThe account holder, when an Agent asks on their behalf.

Returns

OutputTypeRequiredDescription
integrationIntegrationrequiredThe Integration, connecting until approved.
connectUrlurlrequiredThe approval page on the upstream’s own site; it expires in one hour.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

Terminal
npx startup-builder do Integration.connect --json '{"system":"system_uGWze2jvrp","scope":"studio","grants":["Example grants"]}'

Integration.pause

Pause stops every call through an Integration at once and keeps its token and cursor. Verb page.

Text
npx startup-builder do Integration.pause --json '<input>' [--try | --send | --do]

Emits Integration.paused.

Inputs

InputTypeRequiredDescription
integrationIntegrationrequiredThe Integration to pause.
reasontextWhy, shown to every Worker whose Action waits on it.

Returns

OutputTypeRequiredDescription
integrationIntegrationrequiredThe Integration, paused.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

Terminal
npx startup-builder do Integration.pause --json '{"integration":"integration_alVwjQcmRy"}'