Skip to main content

Fivetran ExecModule

Overview​

FivetranModule reads connection summaries from the Fivetran REST API. Use it to inventory ingestion connections in a destination group and check the setup, sync, and update state of a known connection. Compare its most recent success and failure timestamps against your workflow's freshness requirements before starting a transformation or distributing a report.

Usage​

  1. Create a Fivetran API key with read access to the connections the workflow monitors.
  2. Save a Fivetran connection in the Integration Account Console.
  3. Add a Fivetran step in Workflow Studio and select the saved account under General > Connection.
  4. Use List Connections to find the upstream connection ID and Get Connection to check that connection before a downstream step.

Inputs​

InputTypePurpose
operationstringlist_connections (default) or get_connection.
groupIdstringOptional destination group filter for list_connections.
limitintegerPage size from 1 to 100 for list_connections. Defaults to 50.
cursorstringOptional continuation cursor from a prior list response.
connectionIdstringFivetran connection ID required for get_connection.

Outputs​

OutputTypeMeaning
statusstringsuccess or error for the lookup.
httpStatusintegerProvider HTTP status when available.
connectionsarrayConnection summaries on the current list page.
countintegerNumber of connection summaries on that page.
nextCursorstringContinuation cursor when Fivetran reports another page.
connectionobjectSingle summary returned by get_connection.
errorobjectSanitized code, message, and retryable flag, with retryAfterSeconds when available.

A summary contains the provider ID and available groupId, service, schema, paused, setupState, syncState, updateState, succeededAt, and failedAt. State values come from Fivetran. A successful lookup describes the result of the API request. Use the returned fields to determine whether ingestion meets your requirements.

IntegrationAccount Requirements​

Use an authorized READY IntegrationAccount with provider FIVETRAN. Enter the Fivetran API key in the protected apiKey field and its API secret in the protected password field. Workflow inputs contain connection identifiers and filters. The workflow credential broker resolves the saved credentials.

For a system key, grant connection read access (CONNECTOR with READ) and limit its resource scope to the intended connection or destination group where possible. A user key inherits its user's Fivetran permissions. Verify that the chosen key can read the intended connections before scheduling. Fivetran API authentication

Configuration​

Requests use HTTPS Basic authentication against the fixed api.fivetran.com endpoint with Fivetran's version 2 response format. Select the saved connection in Workflow Studio, then enter operation-specific fields. Fivetran group and connection IDs are text identifiers.

Operations​

  • List Connections returns one page of connection summaries the key can read. Narrow the page to a group when monitoring a single destination.
  • Get Connection returns the current summary of one connection. Use its state and available timestamps to implement a freshness policy in the workflow.

Errors and Failure Modes​

ConditionWhat to check
Invalid inputCheck the operation, connection ID, and page size.
Connection unavailableCheck that a ready Fivetran connection is selected and both credential fields are set.
HTTP 401 or 403Check whether the key is current and has read access to the requested connection or group.
HTTP 404Confirm the connection ID and its visibility to the saved key.
HTTP 429 or transient provider errorUse the retryable flag and respect retryAfterSeconds when available.
Timeout or oversized responseTry a smaller page or a group filter. Decoded responses are limited to 2 MiB.

Example​

A reporting workflow checks the connection feeding its orders data before it starts a transformation. It looks up the upstream connection by ID.

{
"operation": "get_connection",
"connectionId": "orders_ingestion"
}

An example successful lookup returns a connection summary.

{
"status": "success",
"httpStatus": 200,
"connection": {
"id": "orders_ingestion",
"groupId": "analytics_warehouse",
"service": "postgres",
"schema": "orders",
"paused": false,
"setupState": "connected",
"syncState": "scheduled",
"updateState": "on_schedule",
"succeededAt": "2026-11-07T05:42:00Z"
}
}

Check that the connection is active and that succeededAt falls within your reporting window. Compare failedAt when present and route missing, stale, or ambiguous results for review before distributing the report.

Notes​

  • Pagination. Pass nextCursor as cursor with the same group filter and page size until no continuation is returned.
  • Rate limits. Space out recurring checks and use bounded retries with backoff. Each step makes a single API request. Fivetran rate limits
  • API limits. The connector returns a selected set of connection health fields. Source records, credentials, connection configuration, and provider diagnostics are outside its scope.
  • Idempotency and destructive behavior. Both operations are read-only. Repeating a lookup can reflect a newer ingestion state.