Skip to content

Integration.refresh

POST /{namespace}/integrations/{integration}/refresh

Refresh renews an Integration’s outside token before it expires; a refused refresh moves it to `needsReauth`.

Mode
do
Event
Integration.refreshed

Refresh renews an Integration’s outside token before it expires; a refused refresh moves it to needsReauth.

Inputs

InputTypeRequiredDescription
integrationIntegrationrequiredThe Integration to refresh.

Outputs

OutputTypeRequiredDescription
integrationIntegrationrequiredThe Integration with a new refreshedAt, or in needsReauth.

Effects

  • Emits Integration.refreshed.
  • Performed by the Integration Engineer.
  • Two-way: it runs at once, in the try, send and do modes.
  • On refusal, holds every Action that needs it pending with reason awaitingSource.
  • On refusal, opens a Task for the account holder with a reconnect link.

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.refresh

When it waits

GateDefault
Decision classLow: two-way, nothing at stake
Delay windowNone: it runs once review passes.
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.