Skip to content

Integration.connect

POST /{namespace}/integrations/connect

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

Mode
do
Event
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.

Outputs

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

Effects

  • Emits Integration.connected.
  • Performed by the Integration Engineer.
  • Two-way: it runs at once, in the try, send and do modes.
  • Moves the Integration to connected when the account holder approves.
  • Stores the token in Secrets, where no Worker reads it.
  • Records the approver as connectedBy, the outside account and the grants.

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.Integration.connect

When it waits

GateDefault
Decision classMedium: two-way, visible
Delay window1 business hour, in which a watcher can pause, redirect or cancel it; then it runs.
LimitThe call Limit of the Permission it runs under.
Over the LimitIt waits pending for an Approval from the Founder. Approved, it runs; refused, it ends refused with limit-exceeded; unanswered by its deadline, it ends canceled.