Skip to content

Integration programs: sync

The Integration Verbs sync as MCP do programs, with inputs, result, refusals and an example.

Reference for Integration, one group of Integration programs.

Integration.sync

Sync exchanges records between a System and its connector, and the declared leader wins every conflict. Verb page.

Text
do: return await $.Integration.sync(input)

Emits Integration.synced.

Inputs

InputTypeRequiredDescription
integrationIntegrationrequiredThe connector to sync.

Returns

OutputTypeRequiredDescription
integrationIntegrationrequiredThe Integration with its sync cursor moved.

Refuses when

CheckErrorFixThen call
The request carries no key, or its key is expired or revoked.unauthorizedSign in again, or send a current key as a bearer token.None.
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.
The record is not in a state that allows this Verb, so the call is refused.refusedRead the record, run the Verb that moves it to an allowed state, then retry.None.
The caller sent more requests than its rate allows.rate-limitedWait the number of seconds in the Retry-After header, then retry.None.

Example

JSON
{
  "name": "do",
  "arguments": {
    "code": "return await $.Integration.sync({ integration: 'integration_alVwjQcmRy' })"
  }
}