Skip to content

Integration commands: reconnect, refresh, resume, revoke

The Integration Verbs reconnect, refresh, resume, revoke as CLI commands, with inputs, result, refusals and an example.

Reference for Integration, one group of Integration commands.

Integration.reconnect

Reconnect re-approves an Integration in place, keeping its id and cursor, so nothing re-imports. Verb page.

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

Emits Integration.reconnected.

Inputs

InputTypeRequiredDescription
integrationIntegrationrequiredThe Integration in needsReauth.

Returns

OutputTypeRequiredDescription
connectUrlurlrequiredThe approval page; it expires in one hour.
integrationIntegrationrequiredThe Integration, its id and cursor kept.

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.reconnect --json '{"integration":"integration_alVwjQcmRy"}'

Integration.refresh

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

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

Emits Integration.refreshed.

Inputs

InputTypeRequiredDescription
integrationIntegrationrequiredThe Integration to refresh.

Returns

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

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.refresh --json '{"integration":"integration_alVwjQcmRy"}'

Integration.resume

Resume restarts a paused Integration from its cursor and releases the Actions that waited on it. Verb page.

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

Emits Integration.resumed.

Inputs

InputTypeRequiredDescription
integrationIntegrationrequiredThe paused Integration.

Returns

OutputTypeRequiredDescription
integrationIntegrationrequiredThe Integration, connected.

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.resume --json '{"integration":"integration_alVwjQcmRy"}'

Integration.revoke

Revoke ends an Integration at once: its token is revoked with the upstream, and every record it brought in stays. Verb page.

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

Emits Integration.revoked.

Inputs

InputTypeRequiredDescription
integrationIntegrationrequiredThe Integration to end.
reasontextWhy, kept on the Integration.

Returns

OutputTypeRequiredDescription
integrationIntegrationrequiredThe Integration, revoked.

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.revoke --json '{"integration":"integration_alVwjQcmRy"}'