sync_integration
Queues a manual integration re-sync for payment customers and revenue, Supabase user backfills, or PostHog/Segment history imports so existing data is populated or failed imports can be retried.
Instructions
Queue a manual re-sync for an integration: customers and revenue for a payment provider (Stripe, Polar, Paddle, Dodo, Lemon Squeezy, Creem, Chargebee, Whop), the user backfill for Supabase, or the event-history import for PostHog and Segment. Use this for Supabase before a campaign that depends on names or plan attributes - the live trigger only sends rows that change after it was installed, so existing users have no attributes until a backfill runs. The Supabase sync reads the project, schema, and table already configured for the integration and cannot be pointed at a different table; if none is configured yet it fails saying so. This is also the supported way to retry a failed PostHog or Segment history import: it restarts from the beginning using the stored credentials, and already-imported events dedupe, so a re-run cannot duplicate them. Returns immediately - poll get_integration to watch syncStatus and lastSyncAt, and list_integration_activity for per-row outcomes. Fails with a conflict if a sync is already queued or running; terminal BullMQ failures release history imports for retry. Providers whose backfill is not API-triggerable (Shopify products, Affonso affiliates) return a clear error naming the dashboard. Check availableActions on get_integration to see whether this is supported before calling.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"integrationId": "<integrationId>"
},
"name": "sync_integration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| companyId | No | Company ID. If not provided, uses the currently selected company. | |
| integrationId | Yes | Integration ID from list_integrations. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Additional context about the result. | |
| items | No | Fallback array wrapper used only when a tool returns a bare array. | |
| jobId | No | Background job id for the queued sync, when one was created. | |
| value | No | Fallback object wrapper used only when a tool returns a non-object value. | |
| message | No | Human-readable status, confirmation, or next-step message. | |
| success | No | Whether the Sequenzy operation succeeded. | |
| provider | No | Provider of the synced integration. | |
| warnings | No | Non-fatal cautions about content, permissions, or follow-up actions. | |
| syncStatus | No | Sync status after queueing. Poll get_integration to watch it progress. | |
| syncTarget | No | For Supabase, the project ref, schema, and table the backfill reads. Absent for providers whose sync has no configurable source. | |
| integrationId | No | The integration being synced. |