# Connections API Source: https://filament.getgalaxy.io/pages/api-reference/service/connections Save connector settings once and reuse them across pipelines in Filament, the open-source data movement engine. A connection stores the settings needed to reach a source or destination. A pipeline can reuse that connection instead of repeating a hostname, bucket, or credentials on every node. Connections belong to one tenant, use `version` to prevent conflicting edits, and are soft-deleted. The messages are defined in `protos/ingestion/v1/connections.proto`. ## Config scoping Every field in a connector's `ConfigSchema` carries a `FieldScope` that decides where its value lives: * **Connection-scoped** fields (`FIELD_SCOPE_CONNECTION`), such as host, port, and credentials, are stored on the connection. They are what these RPCs manage. * **Pipeline-scoped** fields (`FIELD_SCOPE_PIPELINE`), such as target table and path prefix, are stored on the [pipeline node](/pages/api-reference/service/pipelines) that references the connection, and shallow-merged over the connection's config at run time, with the node winning on key conflicts. Fields marked `secret` in the schema get special handling. On create and update the server extracts their values from `config`, stores them through the configured secrets provider, and keeps only a reference in `secret_refs`. Reads return those fields masked, and the API never echoes a secret back. A client can also supply `secret_refs` directly to point at pre-existing secrets. ## RPCs | RPC | Description | | - | - | | `CreateConnection` | Validate and persist a new connection | | `UpdateConnection` | Replace a connection, enforcing the version lock | | `GetConnection` | Fetch one connection, secrets masked | | `ListConnections` | List connections, optionally including deleted ones | | `DeleteConnection` | Soft-delete a connection not referenced by any pipeline | ## CreateConnection Takes `kind`, `name`, `connector`, `config`, and optional `secret_refs`. The server resolves referenced secrets, validates the resulting values against the connector's schema, and runs the connector's configuration checks. These are local checks: saving a connection does not prove that the external system is reachable or that its credentials work. A secret reference that cannot be resolved returns `failed_precondition`. ## UpdateConnection Takes the full `Connection` object, including `id` and the `version` you last read. Semantics: * A `version` that no longer matches the stored row returns `aborted`. Re-read the connection and retry with the fresh version. * `connector` and `kind` are immutable, and so is the replication mode a source's config implies (standard vs CDC). Changing any of them returns `invalid_argument`, so create a new connection instead. * Updating a deleted connection returns `failed_precondition`. Masked secret values round-trip safely. Submit the masked config unchanged and the stored secrets stay in place. Submit a new plaintext value and it replaces the stored secret. ## GetConnection Returns the connection with secret fields masked. Sources additionally report `replication`, the effective replication mode derived from the stored config. Sinks report `REPLICATION_MODE_UNSPECIFIED`. ## ListConnections Filters by `kind` (unspecified returns both sources and sinks) and supports [pagination](/pages/api-reference/service/introduction#pagination). Deleted connections are excluded unless `include_deleted` is set. ## DeleteConnection This is a soft delete. The row is stamped `deleted_at` and its stored secret references are removed, but history referring to it stays readable. The call refuses with `failed_precondition` while any pipeline's *current* version references the connection — remove it from those pipelines (by creating new versions without it) first. Only the current version counts. Older versions that reference it do not block deletion. # Connectors API Source: https://filament.getgalaxy.io/pages/api-reference/service/connectors Discover the sources and sinks available in a Filament deployment in Filament, the open-source data movement engine. Use these RPCs to discover the connectors compiled into a deployment and build configuration forms from their schemas. Resource discovery and column lookup may query the external source. Configuration validation checks values locally; it is not a connection test. The messages are defined in `protos/ingestion/v1/connectors.proto`. ## RPCs | RPC | Description | | - | - | | `ListConnectors` | Catalog the registered connectors and their config schemas | | `GetConnector` | Fetch one connector's spec by name and kind | | `ValidateConfig` | Check a candidate config without saving it | | `DiscoverResources` | List the tables or resources a source config exposes | | `GetResourceColumns` | Load per-column metadata for selected resources | The catalog, validation, and resource discovery RPCs run under a 5-second server-side timeout. `GetResourceColumns` gets 30 seconds because it queries the external system per resource. `DiscoverResources` and `GetResourceColumns` return `unimplemented` for connectors that don't support discovery or column introspection. ## ListConnectors Filter by `kind` (`CONNECTOR_KIND_SOURCE`, `CONNECTOR_KIND_SINK`, or unspecified for both). Supports [pagination](/pages/api-reference/service/introduction#pagination). Each `ConnectorSpec` carries: * `name`, `display_name`, `kind`, and `version` * supported replication `modes` (`STANDARD`, `CDC`) * its full `config_schema`: fields with types, scopes, defaults, and secret flags, enough to render a form * logo URLs and `schema_field` * `is_preview` (boolean) ## GetConnector Fetches a single spec. Both `connector` (the name) and `kind` are required, because some names register as both a source and a sink. An unknown combination returns `not_found`. ## ValidateConfig Runs the submitted `config` through the connector's schema and local configuration checks. It catches problems such as missing fields, invalid enum values, and incompatible settings. It does not call the connector's live `TestConnection` method, so network and credential failures can still appear during discovery or a run. Validation results are returned in the response: ```json theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} {"valid": false, "errors": [{"field": "port", "message": "port is required"}]} ``` An invalid config still produces a successful RPC with `valid: false`. RPC errors are reserved for problems such as an unknown connector or missing connector kind, which lets a client display all field errors together. Pass `connection_id` to validate an edit to an existing [connection](/pages/api-reference/service/connections). The submitted config is overlaid on the stored, secret-resolved config, so the client never needs to round-trip secrets it only holds masked. ## DiscoverResources Lists the tables, streams, and endpoints a source config can read. Accepts either an inline `config` or a `connection_id` (same overlay semantics as `ValidateConfig`). Set `refresh` to bypass any cached listing. Each resource reports `name`, `is_selectable`, its `primary_key` columns, a `selector`, `display_name`, and connector-specific `metadata`. ## GetResourceColumns Returns column metadata for the named `resources`, keyed per resource. Beyond the basics (`name`, `logical_type`, `native_type`, `is_nullable`, `is_primary_key`), each column carries the cursor-selection fields the pipeline editor uses for incremental reads. | Field | Meaning | | - | - | | `is_cursor_eligible` | The column can serve as an incremental cursor | | `is_cursor_recommended` | The connector suggests it | | `recommendation_rank` | Ordering among recommended candidates | | `warning` | Why a technically eligible column is a poor choice | | `is_configurable` | The user may pick it in the UI | | `supports_lookback` | A lookback window can be applied when cursoring on it | # API reference overview Source: https://filament.getgalaxy.io/pages/api-reference/service/introduction Use a Filament SDK or call the Filament API directly, with authentication, tenancy, pagination, and the service endpoints. Filament's API is [ConnectRPC](https://connectrpc.com), generated from the protobuf definitions in `protos/ingestion/v1/`, `protos/metrics/v1/`, and `protos/auth/v1/`. `ingestion.v1.IngestionService` (connectors, connections, pipelines, runs) and `metrics.v1.MetricsService` (dashboard aggregations) share one listener with `auth.v1.AuthService` (authentication and team management). The built-in web app and the SDKs use this same API. Every RPC has a Connect HTTP POST route at `/{package.Service}/{Method}`: ``` POST /ingestion.v1.IngestionService/CreatePipeline POST /metrics.v1.MetricsService/QueryTimeseries ``` The `server` binary serves these services on `SERVER_ADDR` (default `:8080`). The `standalone` binary and the embeddable `app.Run` library serve the same API on `INGESTION_ADDR` (default `:8080`). ## Protocols The servers listen for HTTP/1.1 in plaintext. That determines which of the three ConnectRPC wire protocols work against a default deployment. | Protocol | Works out of the box | | - | - | | Connect (JSON or binary) | Yes (plain HTTP/1.1 POST) | | gRPC-Web | Yes (HTTP/1.1) | | gRPC | No (needs HTTP/2) | Plain gRPC needs HTTP/2 end to end. The shipped binaries listen plaintext without h2c, so a stock gRPC client fails against them directly. Serving native gRPC requires enabling HTTP/2 on the backend listener as well as on any proxy in front of it. TLS termination at a proxy alone does not enable HTTP/2 on the backend. Connect and gRPC-Web clients need nothing extra. The Connect protocol is ordinary JSON over POST, so any HTTP client works: ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} curl -X POST http://localhost:8080/ingestion.v1.IngestionService/ListConnectors \ -H "Content-Type: application/json" \ -H "Connect-Protocol-Version: 1" \ -d '{"kind": "CONNECTOR_KIND_SOURCE"}' ``` For authenticated deployments, also send `Authorization: Bearer `. ## OpenAPI Run `buf generate` (or `just proto`) from the repository root to regenerate the Go bindings and `api/openapi.json`. The pinned [protoc-gen-connect-openapi](https://github.com/sudorandom/protoc-gen-connect-openapi) plugin in `buf.gen.yaml` exports OpenAPI 3.1 for the existing unary Connect JSON endpoints. Buf runs this plugin remotely; generation requires network access to the Buf Schema Registry. The specification describes request and response types, Connect headers, and error responses. Fern uses it to generate the SDKs, with method names and authentication metadata configured in `fern/`. The SDK calls the existing Connect JSON endpoints directly. Run `just sdks` from the repository root to regenerate the OpenAPI specification and configured SDKs. This requires Buf and Fern login. Use `just proto-check` to check generated API files against their committed versions. ## SDKs Generated clients wrap this API for [Python](/pages/guides/sdks/python) and [TypeScript](/pages/guides/sdks/typescript). Both cover the unary methods; streaming `TailRun` requires a client with Connect streaming support and is not included. ## Authentication When an identity provider is configured, the API accepts its bearer tokens or Filament's session cookie. Only the auth configuration, login, token minting, logout, registration, and invitation acceptance procedures are public. Without an identity provider, the API is unauthenticated. Keep such deployments private or protect them at the network layer. ## Tenancy Authenticated requests use the tenant resolved from the caller's identity. With authentication disabled, every request uses the server's configured default tenant. Request bodies and query parameters do not select a tenant. ## Errors Failures are standard [Connect error codes](https://connectrpc.com/docs/protocol#error-codes). These are the codes you will actually see. | Code | When | | - | - | | `invalid_argument` | Malformed request | | `unauthenticated` | Missing, invalid, or expired credentials when authentication is enabled | | `permission_denied` | The caller lacks the required role | | `not_found` | No row for the id, or an unknown connector name on `GetConnector` | | `failed_precondition` | The operation is valid but the state refuses it | | `aborted` | Optimistic-lock conflict on `version` | | `already_exists` | `CreatePipelineSchedule` on a pipeline that already has one | | `unimplemented` | The RPC or feature is unavailable in this deployment | Some specifics worth knowing: * `invalid_argument` covers missing required fields, an invalid graph on `CreatePipelineVersion`, a bad cron expression, and an undecodable pagination cursor. * `failed_precondition` covers deleting a connection a pipeline still references, updating a deleted connection, a secret that fails to resolve, and `TailRun` without an event bus. * `aborted` means the `version` on an update no longer matches the stored row. Re-read and retry. * `unimplemented` covers `MetricsService` without a metrics store and discovery or column RPCs on connectors that don't support them. Validation of connector configs is the exception. `ValidateConfig` and `ValidatePipeline` return validation problems in their response bodies rather than as RPC errors, so a form can display every failure together. ## Pagination List RPCs take an optional `PaginationRequest`. | Field | Behavior | | - | - | | `page_size` | Default 25 when unset. Values above 1000 are clamped to 1000 | | `cursor` | Opaque token from a previous response. Do not construct one | The response's `PaginationResponse` carries `total` plus `previous_cursor` and `next_cursor` when more pages exist in that direction. Omitting `pagination` entirely returns every row, which is convenient for scripts but expensive on large tables. ## Health Three plain HTTP endpoints sit beside the RPC routes on the same listener: * `GET /livez`: always 200 while the process is up * `GET /startupz`: 200 once dependencies are connected and modules are mounted * `GET /readyz`: 200 after startup while Postgres and NATS/JetStream answer; the server also ensures the default tenant exists The control plane serves the same endpoints on `HEALTH_ADDR` (default `:8081`). ## API areas > [card] [Connectors](/pages/api-reference/service/connectors) > > The catalog of registered sources and sinks, with config validation and resource discovery. > [card] [Connections](/pages/api-reference/service/connections) > > Reusable, tenant-scoped sources and sinks with managed secrets. > [card] [Pipelines](/pages/api-reference/service/pipelines) > > Mutable metadata over immutable graph versions, plus schedules. > [card] [Runs](/pages/api-reference/service/runs) > > Compiling, listing, and live-tailing pipeline executions. > [card] [Metrics](/pages/api-reference/service/metrics) > > The read-only aggregation service behind the dashboard. # Metrics API Source: https://filament.getgalaxy.io/pages/api-reference/service/metrics Query run totals and time series for dashboards and reports in Filament, the open-source data movement engine. Use `metrics.v1.MetricsService` to answer questions such as “how many records moved today?” and “how has the failure count changed by hour?” The built-in dashboard uses the same two read-only RPCs. Their messages are defined in `protos/metrics/v1/metrics.proto`. The service is backed by the same runs table the [ingestion API](/pages/api-reference/service/runs) writes, through the store selected by `METRICSSTORE_PROVIDER` (default `postgres`). When no metrics store is configured, both RPCs return `unimplemented`. ## RPCs | RPC | Description | | - | - | | `QueryTimeseries` | Return hourly or daily values for charts | | `QueryAggregate` | Return one value per metric and group for totals or stat cards | ## Metrics | Metric | Aggregation | | - | - | | `METRIC_RUN_COUNT` | Sum of runs | | `METRIC_RUN_RECORDS` | Sum of records moved | | `METRIC_RUN_BYTES` | Sum of bytes moved | | `METRIC_RUN_DURATION` | Mean duration in milliseconds over terminal runs | | `METRIC_RUN_MEMORY_USAGE` | Mean peak working set in bytes | | `METRIC_RUN_CPU_USAGE` | Mean CPU seconds | CPU and memory averages exclude runs that did not report those values. For example, a run outside a cgroup does not reduce the average by contributing a zero. ## QueryTimeseries Provide: * `tenant_id`: `""` matches every tenant, mirroring `ListRuns` * `metrics`: a repeated list computed together per bucket * `since_ms`/`until_ms`: the time window, inclusive / exclusive (`until_ms` unset means now) * `granularity`: `HOUR` or `DAY` * `tz_offset_minutes`: the viewer's offset east of UTC, which shifts bucket boundaries so `DAY` buckets match the local calendar day `group_by` splits the result into one series per value of a dimension (`TENANT_ID`, `PIPELINE_ID`, or `STATUS`). Unspecified returns a single total series with key `""`. `filters` narrow the input rows, with values given as dimension-value strings (a pipeline id, or a `RunStatus` enum number such as `"3"` for `COMPLETED`). When a filter covers the `group_by` dimension, the response returns one series per requested value in request order. Every series contains the same ordered set of buckets. Missing values are filled with zero, so points at the same index always refer to the same hour or day. Values follow the order of `request.metrics`. ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} curl -X POST http://localhost:8080/metrics.v1.MetricsService/QueryTimeseries \ -H "Content-Type: application/json" \ -d '{ "metrics": ["METRIC_RUN_COUNT", "METRIC_RUN_BYTES"], "sinceMs": 1755561600000, "granularity": "METRIC_GRANULARITY_DAY", "tzOffsetMinutes": -420, "groupBy": "METRIC_DIMENSION_STATUS" }' ``` A shortened response looks like this: ```json theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} { "series": [{ "key": "3", "points": [ {"timestampMs": "1755561600000", "values": [12, 84520]} ] }] } ``` Here `key` is the grouped status value, and the two values correspond to run count and bytes in the order requested. ## QueryAggregate Use the same fields except `granularity` and `tz_offset_minutes`. The response contains one row per group for the entire window, with values in the same order as `metrics`. Use this RPC for totals and stat cards instead of charts. # Pipelines API Source: https://filament.getgalaxy.io/pages/api-reference/service/pipelines Define data routes, save versioned changes, and schedule runs in Filament, the open-source data movement engine. A pipeline connects sources to destinations. Its name, description, worker settings, and schedule can change in place. Its graph cannot: changing nodes, routes, resources, or modes creates a new version. Existing runs continue to use the version on which they started. The messages are defined in `protos/ingestion/v1/pipelines.proto` and `protos/ingestion/v1/capabilities.proto`. ## The graph **Nodes** are the sources and sinks on the canvas. Each node references a [connection](/pages/api-reference/service/connections) by `connection_id` for the connector and connection-scoped config, and carries its own `config` and `secret_refs`. These form the pipeline-scoped overlay (target table, path prefix), shallow-merged over the connection's config at run time with the node winning on key conflicts. **Edges** route data from a source node to a sink node. An edge with an empty `resource` routes all enabled resources. A named `resource` is an additive per-resource route. On standard (query-based) connections an edge carries: * a per-resource `read_mode` (`FULL` or `INCREMENTAL`) * a `write_mode` (`APPEND`, `REPLACE`, or `UPSERT`) * optional `cursors`: per-resource cursor column and lookback overrides, with omitted resources falling back to connector auto-detection Standard edges default to full reads and upsert writes. Upsert uses append for resources without a primary key, while keyed resources still use upsert. The sink must support append for this fallback. Repeated keyless rows are retained. Any edge may carry a `transform`, a JSON object keyed by resource that renames, drops, and computes columns before the sink writes them. An all-resource edge may define several resources. A resource-specific edge may define only its own. Validation compiles the definition against each named resource's current source schema and reports issues by their path in the definition. See [Transformations](/pages/guides/concepts/transformations) for the format and [the transform RPCs](/pages/api-reference/service/transformations) for the catalog. Two invariants: * Every edge on the same source-to-destination route must use the same write mode — the write mode belongs to the route, not the individual edge. * Edges over CDC connections carry no read mode. Their route-wide write mode can be `APPEND` or `MERGE`; when omitted, it defaults to `APPEND`. ## RPCs | RPC | Description | | - | - | | `ValidatePipeline` | Validate an inline, unsaved graph edge by edge | | `CreatePipeline` | Create the pipeline's metadata shell | | `CreatePipelineVersion` | Validate and persist a new immutable graph version | | `UpdatePipeline` | Update metadata in place. Never creates a version | | `GetPipeline` | Fetch a pipeline with optional expansions | | `GetPipelineVersion` | Fetch one version (`0` means current) | | `ListPipelineVersions` | List a pipeline's versions, newest first | | `ListPipelines` | List pipelines with the same expansion flags | | `DeletePipeline` | Soft-delete a pipeline | | `CreatePipelineSchedule` | Attach the pipeline's one schedule | | `UpdatePipelineSchedule` | Replace the schedule's configuration | ## ValidatePipeline Takes the graph inline, so an unsaved editor canvas validates exactly like a persisted version. Validation problems are returned in the response rather than as RPC errors. The response carries a top-level `valid` flag, graph-level `errors` (dangling node references, unknown connections), and one `EdgeValidation` per edge with its errors, the `supported_write_modes` for its route, its `replication` mode, and the `effective_read_mode`/`effective_write_mode` after defaulting. Each edge also reports `requirements`, the configuration its mode combination involves, such as a cursor column for incremental reads or a primary key for keyed writes. Keyless upsert resources report a non-blocking append fallback. A requirement carries candidate values with recommendations, `satisfied` (a value is configured), and `blocking` (the run would fail as-is). Unsatisfied but non-blocking means connector auto-detection covers it. Validation runs under a 30-second timeout. ## CreatePipeline Creates a pipeline from `name`, `description`, an optional inline `schedule`, and optional `worker_configuration`. Worker configuration can set Kubernetes resources, node selectors, and tolerations for this pipeline's workers. The pipeline has no graph until the first `CreatePipelineVersion`. ## CreatePipelineVersion The only way to change what a pipeline does. The server: 1. Runs full `ValidatePipeline` semantics on the submitted graph. An invalid graph is rejected with `invalid_argument` and nothing is written. 2. Normalizes edge modes, making the `FULL`/`UPSERT` defaults explicit on standard edges while CDC edges stay bare. 3. Defaults each sink node's declared schema field (the connector's `schema_field`) to the normalized name of its upstream source connection, when the node didn't set it explicitly. 4. Persists the version as the new current version and refreshes the schedule's pre-created scheduled-run rows to point at it. ## UpdatePipeline Updates `name`, `description`, and `worker_configuration` without creating a new version. Worker settings live on the pipeline so changing CPU or memory does not move the pipeline to a new set of resource checkpoints. Renaming a pipeline also leaves its graph unchanged. ## GetPipeline, ListPipelines, versions `GetPipeline` and `ListPipelines` return lean objects by default. Opt into heavier data with `include_versions`, `include_last_run`, and `include_schedule`. `ListPipelines` also takes `include_deleted` and [pagination](/pages/api-reference/service/introduction#pagination). `GetPipelineVersion` fetches by version number, where `0` returns the current version. `ListPipelineVersions` returns newest first. `DeletePipeline` is a soft delete. ## Schedules A pipeline has at most one schedule. Its client-owned config: * `cron` * `timezone`: IANA name, default UTC * `is_enabled` * `overlap_policy`: `SKIP` (don't fire while a scheduled run of this pipeline is still going) or `ALLOW` The server owns the schedule's identity and reports `next_fire_at` and `last_fired_at`. `CreatePipelineSchedule` attaches the schedule and returns `already_exists` if one exists. `UpdatePipelineSchedule` replaces the config and returns `not_found` if none does. There is no delete or standalone disable RPC. Pausing is `UpdatePipelineSchedule` with `is_enabled: false`, and the schedule is removed only when its pipeline is deleted. The scheduler pre-creates a `SCHEDULED` run row for the next fire. See [Runs](/pages/api-reference/service/runs#listruns) for how that appears in listings. ## Notifications A pipeline can have multiple independent notifiers, managed through `CreatePipelineNotifier`, `UpdatePipelineNotifier`, `ListPipelineNotifiers`, and `DeletePipelineNotifier`. The messages are defined in `protos/ingestion/v1/notifiers.proto`. The control plane and standalone application automatically deliver matching events as JSON webhooks or Slack messages. Create takes `pipeline_id` and a `notifier` input: ```json theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} { "pipelineId": "", "notifier": { "name": "Pipeline notifications", "notificationType": "NOTIFICATION_TYPE_WEBHOOK", "isEnabled": true, "events": ["NOTIFIER_EVENT_RUN_COMPLETED", "NOTIFIER_EVENT_RUN_FAILED"], "config": { "url": "https://example.com/webhook", "headers": {"Authorization": "Bearer "} } } } ``` `events` lists one or more `NotifierEvent` values; there is no wildcard. The run lifecycle events are `NOTIFIER_EVENT_RUN_STARTED`, `NOTIFIER_EVENT_RUN_COMPLETED`, `NOTIFIER_EVENT_RUN_FAILED`, `NOTIFIER_EVENT_RUN_PARTIAL` (some resources landed, some failed), `NOTIFIER_EVENT_RUN_CANCELED`, and `NOTIFIER_EVENT_RUN_PAUSED`. Each webhook body carries the event `type` (for example `run.failed`), the `run_id`, and the time; `run.completed` adds `records` and `bytes`, and `run.paused` adds `committed`. Optional `resources` contains exact resource names; an empty list matches any resource. Headers are optional and can include a custom API-key header. Filament supplies `Content-Type` and `X-Filament-*` headers, so those names cannot be overridden. Notifier config follows the same split as connection config. The URL is plain configuration and is returned in `config.url`. Headers are the only secret: they are extracted from `config`, stored through the configured secrets provider, and appear in responses only as `secret_refs.headers`. A webhook without headers needs no secrets provider. To use a pre-existing secret, omit `config.headers` and supply `secret_refs.headers` instead; its value must be a JSON object of header names to string values. Read-only providers, including environment variables, support this reference form; inline values require a writable provider. Saving validates the destination's format but does not contact the endpoint or verify its credentials. Update takes `pipeline_id`, `notifier_id`, and the replacement `notifier` settings. Send `config.url` and echo the `secret_refs` you last read. Omit `config.headers` to keep the current header secret, send an empty object to remove it, or send new values to replace it. The notification type cannot change. The last write wins; updating or deleting a deleted notifier returns `not_found`. Delete takes the same IDs. List returns all live notifiers for the pipeline, including disabled ones. Notifiers are soft-deleted with their pipeline. Replaced or deleted secrets created by this API are removed on a best-effort basis after the database change succeeds; external references are never deleted. Webhook delivery makes up to 10 attempts with exponential backoff. Delivery failures do not affect pipeline results. Restarts can cause duplicate webhooks and receivers should use `X-Filament-Delivery-ID` to recognize them. ### Slack A notifier with `NOTIFICATION_TYPE_SLACK` posts each matching event to a Slack incoming webhook as a Block Kit message with a status color. ```json theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} { "pipelineId": "", "notifier": { "name": "Pipeline alerts", "notificationType": "NOTIFICATION_TYPE_SLACK", "isEnabled": true, "events": ["NOTIFIER_EVENT_RUN_FAILED"], "config": { "url": "https://hooks.slack.com/services/" } } } ``` The URL is a credential, so it is the secret of a Slack notifier. It is extracted from `config`, stored through the configured secrets provider, and appears in responses only as `secret_refs.url`. It is never returned. To use a pre-existing secret, omit `config.url` and supply `secret_refs.url` instead. Its value must be the URL as plain text. Inline values require a writable provider. The URL must use `https` and the host `hooks.slack.com` or `hooks.slack-gov.com`, with a path under `/services/`. On update, omit `config.url` to keep the stored URL or send a new one to replace it. Each message names the pipeline and the outcome, followed by the run ID and the event time. `run.completed` adds the record and byte counts, and `run.paused` adds whether the run committed. Slack notifiers take no custom headers. Delivery follows the same attempts and backoff as webhooks, and a restart can post the same message twice. # Runs API Source: https://filament.getgalaxy.io/pages/api-reference/service/runs Submit pipeline routes, inspect progress, stream events, and control execution A run is one execution of one source-to-sink route from an immutable pipeline version. Its messages are defined in `protos/ingestion/v1/runs.proto`. ## RPCs | RPC | Description | | - | - | | `RunPipeline` | Compile the current version and submit one run per route | | `ListRuns` | List runs with status and time-window filters | | `GetRun` | Read one run and its per-resource progress | | `TailRun` | Stream current and live run events | | `SignalRun` | Pause or resume a run; cancel bounded work or stop continuous execution | ## RunPipeline One call may produce several runs. A graph that fans one source out to two sinks has two routes, so the response contains two `edge_runs`, each keyed by its `pipeline_edge_key`. `client_token` distinguishes retry from intent. Reuse the token when retrying the same user action; choose a new token for a deliberate rerun. The token contributes to stable run IDs, preventing a transport retry from dispatching duplicates. `worker_configuration` overrides pipeline worker settings field by field. The resolved configuration is copied into each run so later pipeline edits cannot change work already requested. `resync_resources` names resources the runs read from the beginning again. A bounded run forgets their checkpoints before it starts. A continuous run hands over from the live run to this one on the same stream and reads a fresh baseline for each named table, as described in [Streaming](/pages/guides/concepts/streaming). A name no route selects is rejected with `invalid_argument`. `resources` limits a bounded run to the named routed resources. Empty runs every routed resource. A route left with none of them does not run, and the checkpoints of resources left out stay as they were. A name no route selects, a resync of a resource the subset leaves out, a subset on a continuous run and part of a change stream route are each rejected with `invalid_argument`. A change stream route runs all of its resources or none. A zero value asks the engine or sink to choose its normal default: | Field | Current behavior | | - | - | | `batch_max_rows` | Maximum rows in an Arrow batch | | `batch_max_bytes` | Approximate byte limit used while building an Arrow batch | | `snapshot_parallelism` | Writer-pool size and source snapshot planning hint; forced to one for ordered/checkpointed routes | | `checkpoint_every` | Written batches between eligible checkpoint saves; default 25 | | `fetch_size` | Stored for the run; not currently consumed by the engine | | `rate_limit` | Stored for the run; not currently consumed by the engine | ## Status and recovery | Status | Meaning | | - | - | | `SCHEDULED` | Created for a future schedule fire | | `REQUESTED` | Waiting for dispatch | | `RUNNING` | Owned by a worker | | `PARTIAL` | Failed with route-wide resumable progress | | `PAUSED` | Stopped intentionally and eligible for resume | | `COMPLETED` | Committed successfully | | `FAILED` | Failed without a safe same-run continuation | | `CANCELED` | Intentionally aborted | `PARTIAL` does not mean that any checkpoint happened to exist. Every resource in the route must meet the safe-resume rules. See [Runs and recovery](/pages/guides/concepts/runs-and-recovery) for those boundaries. Continuous runs also expose `execution_mode` and `execution_status`. The latter separates the requested state from what the worker is doing: an execution can be draining toward a pause, retrying, or blocked even while the logical run remains active. Its record and byte totals reflect certified epochs, and `last_committed_at` records the latest saved commit. See [Streaming](/pages/guides/concepts/streaming) for how to interpret these states. ## ListRuns Filter by `pipeline_id`, optional `pipeline_version_id`, repeated `status`, and a `since_ms`/`until_ms` window over `started_at` (inclusive/exclusive epoch milliseconds). Windowed queries omit runs that have not started. Search and sorting fields follow the common API conventions, and list pagination is described in [Service overview](/pages/api-reference/service/introduction#pagination). Scheduled pipelines normally show future `SCHEDULED` rows. The scheduler creates the next run in advance and promotes it to requested at fire time. ## GetRun Returns `RunSnapshot` with run-level status, record and byte totals, errors, lifecycle timestamps, connection IDs, worker usage, and per-resource progress. The protobuf also contains `at_seq`, but the current `GetRun` implementation does not populate it, so clients should treat it as zero/reserved rather than as a snapshot consistency token. ## TailRun `TailRun` is the server-streaming RPC. Each `RunEvent` includes its wire event type, resource, monotonic sequence, and relevant measurements. With `should_replay`, the server first synthesizes events from stored resource progress and marks them `is_replay: true`, then forwards live facts. This helps a reconnecting client render current progress before new events arrive. The stream closes after a terminal or paused/canceled event. An event bus is required; without one the RPC returns `failed_precondition`. ## SignalRun For bounded runs, send `PAUSE`, `RESUME`, or `CANCEL` with a `run_id`. An optional `tenant_id` is checked against the run when present. The allowed transition depends on current state: * requested runs can be paused or canceled without worker coordination; * running pause/cancel requests wait for the worker to acknowledge its safe commit or abort boundary; * paused and partial runs can be resumed to requested or canceled; and * repeated signals that already match the intended state are idempotent where safe, while invalid transitions return `failed_precondition`. Running signals require both an event bus and datastore support for atomic run transitions. A request may also end with `deadline_exceeded` or `canceled` while waiting for worker acknowledgement. Continuous runs accept `PAUSE`, `RESUME`, and `STOP`. These update the desired state and return the current execution status while the worker responds. An optional `expected_revision` detects a conflicting control change; a stale revision returns `aborted`. A stopped execution cannot be resumed and requires a new start. # Transformations API Source: https://filament.getgalaxy.io/pages/api-reference/service/transformations Read the function catalog and compile a transform against a resource in Filament, the open-source data movement engine. Use these RPCs to build a transform editor. The catalog describes every function a definition may call, with the presentation metadata a builder needs. Validation compiles a definition against one resource exactly as a run would. The messages are defined in `protos/ingestion/v1/transformations.proto`. [Transformations](/pages/guides/concepts/transformations) explains the definition itself and every function. ## RPCs | RPC | Description | | - | - | | `ListTransformFunctions` | Catalog the functions, the grammar version, and the grammar's JSON schema | | `ValidateTransform` | Compile a definition against one resource's live schema | `ValidateTransform` runs under the same 30-second timeout as `GetResourceColumns` because it reads the resource's columns from the source. ## ListTransformFunctions Returns every function in catalog order. Pass `logical_type` to get only the functions that accept a column of that type in some argument. That is the same acceptance the compiler applies, so a builder that offers those never proposes a call the compiler rejects. Each `TransformFunction` carries: * `name`, what a definition calls, with `display_name` and `description` for a builder to show * `args`, each with `name`, `display_name`, the accepted `logical_types` (empty accepts any), and the `is_column`, `is_literal`, `is_optional`, and `is_variadic` flags. A variadic last argument may repeat any number of times * `returns`, the logical type of the result, or `returns_input` when the result takes the shared type of the value arguments * `same_type`, set when every value argument must share one type and a literal widens to the column's type * presentation hints. `operator_symbol` marks a binary function that can render infix, `condition_operator` marks one that fits a row condition picker, `condition_join` is `and` or `or`, and `variadic_add_label` names the action that appends another argument The response also carries `grammar_version`, which a definition must declare, and `grammar_schema`, the JSON schema a client can use to check a document's shape before sending it. ## ValidateTransform Takes a `source_connection_id`, a `resource`, and the `transform` as a JSON object, the same object an edge carries. The server reads the resource's columns from the source connection and compiles the definition against them. A definition that names other resources is accepted, and only the named resource is compiled. The response carries `valid`, `issues`, `output_columns`, and `expression_types`. The last two come back on failure too. * `issues` lists every problem at once. Each `field` is a path into the definition, such as `resources["users"].steps[1].compute["email"].lower[0]`, and `message` says what is wrong. * `output_columns` are the resource's columns after the steps, in order, with name, logical type, nullability, and primary key flag. Steps that failed are skipped and the rest still apply, so a builder can offer the right columns after a broken step. When the document fails the grammar, these are the source columns. * `expression_types` give the logical type of every sub-expression that compiled, keyed by the same paths. A literal that widened to a column's type reports the widened type. Errors outside the definition come back as RPC errors. `invalid_argument` for a missing resource or transform, `not_found` for the connection, `failed_precondition` when its secrets cannot be resolved, and `unimplemented` when the connector does not provide resource schemas. # Filament benchmark methodology Source: https://filament.getgalaxy.io/pages/benchmarks/overview How Filament's data-movement benchmarks are designed, measured, and reproduced Filament's performance work lives in the dedicated [Galaxy benchmarks repository](https://github.com/galaxy-io/benchmarks). The repository contains the harness, datasets, system adapters, methodology, and raw results. Keeping that work separate from Filament's implementation makes a benchmark easier to reproduce and ties each result to the exact environment and configuration that produced it. > [!NOTE] > > The benchmark program is in progress. Current results describe specific > full-load cohorts, not a general performance guarantee for every connector, > replication mode, dataset, or deployment. ## What is measured The current data-movement benchmark measures complete dataset loads. It uses TPC-H or NYC Taxi data and supports these routes: ```text theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} PostgreSQL → PostgreSQL PostgreSQL → MySQL PostgreSQL → Iceberg MySQL → PostgreSQL MySQL → MySQL MySQL → Iceberg ``` The harness compares Filament with other replication tools and, where applicable, native database dump-and-load utilities. The authoritative list of systems and supported routes lives in the benchmark repository so additions do not require a Filament docs release. This benchmark does not currently measure incremental catch-up, steady-state CDC throughput, or recovery after failure. ## How a comparison is run A group of comparable results uses the same prepared source data. Each repetition receives a fresh destination, and remote SQL endpoints can be restarted and allowed to settle before timing begins. The harness rotates tool order across repetitions so one tool does not always run first or last. Setup work such as provisioning, dataset generation, source loading, image pulls, and destination validation is outside the measured transfer window. Process initialization triggered by the transfer remains inside it. A result is recorded only when every destination table matches the source row count. Failed or incomplete transfers do not become benchmark results. ## Evidence recorded with each result Raw result files include more than elapsed time: * Dataset, route, topology, and repetition count * Tool configuration and container image identity * Benchmark host and source revision * CPU, peak memory, and network use for measured containers * Destination row-count validation * Database and CloudWatch measurements when the remote environment provides them This context matters because results from different machines, endpoint sizes, topologies, configurations, or benchmark commits are not directly comparable. ## Limits of the results | Limit | What it means | | - | - | | Full loads only | Results do not predict incremental or CDC performance | | Row-count validation | The harness verifies table counts, not every destination value | | Cohort-specific tuning | Compare tools within the same published cohort, not across unrelated runs | | Remote and local separation | Local Testcontainers runs are smoke tests and are not compared with remote results | | Tool-specific behavior | A snapshot benchmark may not represent a tool's primary streaming workload | For example, the harness measures Debezium's initial snapshot in this scenario, not the steady-state CDC workload for which Debezium is primarily designed. ## Results and reproduction The [data-movement benchmark](https://github.com/galaxy-io/benchmarks/tree/main/data-movement) documents supported tools, routes, datasets, prerequisites, and commands. Its [methodology](https://github.com/galaxy-io/benchmarks/blob/main/data-movement/results/METHODOLOGY.md) defines the timed window, correctness checks, reference environment, and result format. Dated result directories contain the raw JSON for each completed cohort. ## Related guides * [Postgres replication benchmark, 7 tools on 298M rows](https://www.getgalaxy.io/articles/postgres-replication-benchmark-7-tools-tested-on-298m-rows) * [Best Postgres replication tools in 2026](https://www.getgalaxy.io/articles/best-postgres-replication-tools-in-2026) # HTTP manifests Source: https://filament.getgalaxy.io/pages/connectors/building-a-connector/http-manifests Declarative YAML manifests that drive the generic HTTP API source in Filament, the open-source data movement engine. Use an HTTP manifest when an API can be described through endpoints, authentication, pagination, and JSON field mappings. You write YAML instead of a new Go connector. Most of Filament's SaaS sources take this path. The [connector catalog](/pages/connectors/overview/introduction) lists which ones. To try a manifest without recompiling Filament, create an `httpapi` connection and set its required `manifest_path` to your v1 YAML file. Once embedded in the catalog, the same manifest behaves like any other named source. ## Register a bundled connector Bundled HTTP connectors are discovered from the embedded `manifests` directory. Directories and registry keys identify the upstream API version the manifest uses. They are not Filament connector revisions or YAML grammar versions. Adding a connector or supporting another API version requires no Go registration or provider-specific constructor: ```text theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} connectors/http/manifests/ github/ registry.json 2022-11-28/manifest.yaml attio/ registry.json v2/manifest.yaml ``` For example, GitHub's registry matches the manifest's `api_version: "2022-11-28"`: ```json theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} { "schema_version": 1, "name": "github", "default_version": "2022-11-28", "versions": { "2022-11-28": { "is_preview": true } } } ``` Use lowercase connector names matching their directory and YAML `name`. Use the provider's API version identifier exactly: for example `v2`, `3.0`, `2022-11-28`, or `2026-07-29.dahlia`. Identifiers must start with an ASCII letter or digit and contain only ASCII letters, digits, dots, underscores, or hyphens. Every listed version must contain `manifest.yaml`, its YAML `api_version` must match that version, and every version directory must be listed in the registry. `default_version` must name a listed entry. For manifests without an API version, use the reserved directory and registry key `unversioned` and omit YAML `api_version`; do not invent a vendor `v1`. Preview status is per API version. Set `is_preview` to `true` for new connectors. Display names, descriptions, logos, configuration, and API behavior stay in YAML. Invalid catalog entries stop startup with the failing file path. Run `go test ./connectors/http/... ./registry` before shipping. Embedded changes require rebuilding and deploying Filament. The catalog exposes keys such as `github@2022-11-28`, `attio@v2`, and `slack@unversioned`. The bare name `github` resolves `default_version` and appears alongside explicit API versions in catalog listings for existing CLI configurations. The connection creation API stores the selected concrete key even when given a bare name. Reapplying a local document with a bare connector name preserves an existing connection's pin. Previously stored bare names still follow the default; pin them before changing it when their API selection must remain unchanged. A new directory means support for another upstream API version. Manifest fixes or added resources for the same API stay in that API's directory; do not invent an API version for a Filament-side change. Such changes still need compatibility review because an API pin does not freeze the manifest contents. YAML `version: 1` remains the grammar version, and registry `schema_version: 1` remains the JSON format version. Neither changes when another upstream API version is added. Moving a pipeline between API versions may require checkpoint migration or reset; registration does not migrate state. Upgrade workers before creating connections with versioned keys that older workers cannot resolve. ## Load a private catalog at startup Set `HTTP_MANIFESTS_DIR` to a directory on the worker's filesystem to load private manifests without rebuilding the binary. Every worker needs it: the persistent worker that answers connector calls and the workers that execute runs. ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} HTTP_MANIFESTS_DIR=/etc/filament/manifests ./worker -serve ``` The directory contains connector folders directly, using the same registry and API-version layout as bundled manifests: ```text theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} /etc/filament/manifests/ internal_crm/ registry.json v3/manifest.yaml ``` Use `name: internal_crm` and `api_version: v3` in the manifest, and list `v3` in its registry. It becomes available as `internal_crm@v3` and through the `internal_crm` default alias. The same setting works with local CLI deployments, including `filament up` and direct runs. When using a remote CLI context, configure the directory on the deployment rather than on the CLI machine. Private catalogs can add connectors and API versions and change default aliases. They cannot replace an existing concrete registration: a private `github@2022-11-28` colliding with the bundled version fails startup. Adding a new API version and selecting it as the default leaves existing version pins intact. For a customized implementation of an existing API version, use a distinct connector name, such as `internal_github`, and create connections explicitly for that connector. API version identifiers must still match the upstream API. When unset, only the bundled catalog is used. An explicitly configured missing, empty, or invalid directory fails startup. Files are read and validated once; restart the process to pick up changes. A bad catalog is not partially registered. The process-wide bundled registry is left unchanged. In a split deployment, configure the directory on every worker: the persistent worker and the workers that execute runs. Each must receive the same files. The setting does not copy files between machines or mount volumes into worker pods; provision the files in each container or filesystem before startup. Private here means deployment-local, not tenant-specific: registered sources appear in the normal connector catalog for that deployment. Keep credentials in connection configuration and secret references rather than embedding them in manifests. Treat the directory and startup environment as trusted deployment configuration: private manifests control authentication and request destinations. Restrict write access to deployment administrators. Private version pins identify an API version; they do not freeze private manifest contents across restarts. For a custom Go host, `httpapi.LoadDirectory(path)` returns a private source registry. Combine it with `registry.DefaultSources.WithOverrides(private)` and pass the result to `app.WithSources` (or the server and runner directly). ## Start with the basic structure A manifest has four main parts: connector metadata, user configuration, shared connection behavior, and resources. This shortened GitHub-style example shows how they fit together: ```yaml theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} version: 1 name: github display_name: GitHub api_version: "2022-11-28" config: token: type: secret required: true help: Personal access token organization: type: string required: true defaults: method: GET query: { per_page: "100" } response: records: $ pagination: { link: next } connection: base_url: https://api.github.com auth: bearer: config.token headers: X-GitHub-Api-Version: "2022-11-28" resources: - name: repositories path: /orgs/{organization}/repos params: { organization: config.organization } primary_key: [id] fields: id: int64 name: string description: string? raw: { path: $, type: json, mode: remainder } capture: { repository: name } - name: issues path: /repos/{organization}/{repository}/issues params: organization: config.organization repository: parent.repository for_each: repositories primary_key: [id] fields: id: int64 title: string updated_at: timestamptz incremental: cursor_field: updated_at start_param: since inject_into: query checkpoint_key: issues_updated_at comparator: time overlap_seconds: 300 ``` ### Config `config` maps field names to `{type, required, default, enum, help, scope, order}`. Secrets (`type: secret`) render masked and are stored as refs. Config values are referenced elsewhere in the manifest as `config.`. Set a positive `order` to control the configuration form's field order. Lower values appear first, followed by fields with no order or an order of zero. Ties and unordered fields sort alphabetically. Visibility selectors still appear before dependent fields. ### Configure requests * `base_url` can reference connector config, as PostHog does for `host`. It is resolved once when the connector is configured, not separately for every request. * `auth` supports no auth, bearer tokens, a custom header, basic auth, and OAuth 2 client credentials or a supplied refresh token. OAuth tokens are cached through the shared `oauth` package. Token URLs must resolve to HTTPS without userinfo or a fragment. Token requests never follow redirects. Set `client_auth` to `client_secret_basic` for HTTP Basic client authentication. The default `client_secret_post` sends client credentials in the form body. Replacement refresh tokens stay opaque. By default they live only for the authenticator's lifetime. Go callers can bind an `oauth.Store` with `Source.SetOAuthStore` before configuration or connection testing to persist rotations. The bound store is authoritative and must already contain the refresh token. Set `managed_refresh: true` to bind saved connections to their configured secret manager automatically. This requires a refresh-token grant, a direct config secret reference for `refresh_token`, and a `binding` list of literal or config-template components identifying the authorization. Include the provider, account, environment, and OAuth client settings. Exclude the rotating refresh token. Changing bound settings requires a fresh secret. Without a bound store, managed connection testing validates configuration only and extraction fails before exchanging tokens. An HTTP 401 triggers one coordinated refresh and replay. A second 401 fails the request. Optional `fallback_token: config.access_token` permits manual access-token connections when all refresh credentials are absent. Partial refresh credentials are rejected. Browser authorization remains external to Filament. See [OAuth tokens in Go sources](/pages/connectors/building-a-connector/writing-a-source#oauth-tokens). Query, HMAC, and chained authentication exist in the Go runtime but cannot currently be declared in YAML. * `rate_limit.requests_per_second` sets a shared limit for the connection. A `dynamic` block can adjust that limit from response headers using a Unix timestamp, seconds from now, or an HTTP date. * `rate_limit.responses` defines additional throttling rules. Each requires `status`; optional `header` tests for presence and `header_value` for equality. `body_path` (GJSON) and `body_contains` match a string case-insensitively. All conditions in a rule must match. `backoff_seconds` sets the exponential starting delay when `Retry-After` is absent; the longest matching delay wins. * `timeout_seconds` sets the request timeout and defaults to 60 seconds. ### Resources Each resource describes one endpoint: * `path` is the URL path. Placeholders such as `{organization}` are filled from `params`, using connection config or values captured from a parent resource. * `primary_key` lists one or more fields that uniquely identify a record. * `fields` maps response values into typed columns. Add `?` to the shorthand type for a nullable field. Use `mode: remainder` to keep unprojected values, or `mode: raw` to keep a complete subtree. * `records` points to the array in the response. Use `cardinality: one` for an endpoint that returns a single object. * `body` describes JSON, form, multipart, raw, or empty request bodies. Linear uses this support for GraphQL requests. Choose the pagination style that matches the API: * `link: ` (RFC 5988 headers, default rel `next`) * `next_url: ` (whole-URL envelopes like Django REST Framework) * `cursor {response, request: query.X|body.X|header.X, more, null_terminates}` * `offset {offset, limit, page_size}` (stops on a short page) * `page {number, size, page_size, total_pages, more}`. For JSON bodies, use `body.` for both `number` and `size`. Only `query.`, `body.`, and `header.` act as prefixes, so a dotted parameter name like `pagination.page` stays a query parameter as written. ### Read child endpoints Use `for_each: ` when an endpoint must be called once per parent record. The parent's `capture` block names the values available to the child. Child requests default to five concurrent calls, and relationships can nest, such as Resend webhooks → events → attempts. A resource marked `capture_only: true` is walked for its captures and nothing else. It is never emitted, discovered, or selectable, and it only runs when a child that depends on it is selected. Use it when the parent walk a child needs differs from the parent resource users read, for example a full history walk that finds threads with new activity while the readable messages resource stays incremental. A child can gate its fan-out with `parent.since: `. Parents whose captured value is empty are skipped on every run. On an incremental run, parents whose value sorts before the child's effective lower bound under the child's comparator are skipped too, so the child only calls the API for parents that changed since the last run. The child must declare an `incremental` block. ### Incremental An `incremental` block turns a resource into an incremental read: * `cursor_field`: the record field carrying the watermark. It must be projected. * `start_param` + `inject_into: query | body | header`: where the lower bound goes on the request. * `initial`: the first-run lower bound. * `checkpoint_key`: the durable key (defaults to `cursor_field`). * `comparator: lex (default) | numeric | time`. * `overlap_seconds` rewinds the lower bound for a lookback window and is valid for `time` **or** `numeric` comparators. * `value_date_format` reformats a `time` watermark on the wire only, as a Go time layout or `epoch_millis` / `epoch_seconds`, for APIs that reject RFC3339. The checkpoint keeps the normalized RFC3339 value. Filament rejects a layout that renders the same value for every watermark, and a bad initial watermark fails at setup. The lower bound remains fixed during one extraction. Filament saves the largest cursor value it sees. A missing or invalid cursor fails the run because skipping that value could cause later runs to miss records. For export feeds whose continuation survives between runs, use `response_cursor` instead of `cursor_field`: ```yaml theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} response: records: $.data pagination: cursor: response: continueFrom request: query.from more: hasMore strict: true incremental: response_cursor: continueFrom start_param: from inject_into: query checkpoint_key: jobs_export_token ``` The response cursor must match cursor pagination's response path and request target. This mode requires a top-level resource and explicit records and `more` paths. Every page must contain an array of records, a Boolean `more` value, and a nonempty string token, including the terminal page. `strict: true` applies these checks to full reads too. Repeated continuation cycles fail extraction. The terminal token is committed after the complete run succeeds, even when no rows were returned. Failed runs replay from the previous committed token. Tokens are opaque: row comparators, cursor-column selection, and lookback windows are unavailable. Full reads do not seed incremental state. A change to the resource contract or non-secret connection configuration starts a fresh export. A nullable string field can derive a lexical maximum from an array: ```yaml theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} lastEventDate: { path: history, type: string, nullable: true, max_string: date } ``` `max_string` names an immediate child property on each array object. Missing, null, empty, non-string dates and non-object elements are ignored; an empty or missing array produces null. A non-array value fails projection. The original array is retained if projected separately, otherwise it remains in `raw`. ### Discovery and streaming `discovery` supports `mode: static | dynamic`, though every shipped manifest is static. A `stream` mode (`ndjson | sse | chunked_array`) exists per resource as an alternative to pagination. No shipped manifest uses it. For static discovery, `default_resources: [issues, comments]` sets the initial selection when creating a pipeline. All resources remain listed and selectable. Omit it to select all by default, or use `[]` to select none by default. ### Asynchronous exports Use `mode: export` for a finite read that creates a job, waits for readiness, and downloads its result. Export requests live inside `export`; ordinary resource request, response, and pagination defaults do not apply. Connection authentication and headers apply to creation and status requests only. ```yaml theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} - name: exported_records mode: export primary_key: [id] export: start: method: POST path: /exports body: encoding: json template: {dataset: records} capture: {id: $.id} wait: type: job request: method: GET path: /exports/{{ job.id }} state: path: $.status pending: [queued, running] ready: [completed] failed: [failed, cancelled] capture: {download_url: $.download_url} interval_seconds: 10 timeout_seconds: 7200 result: url: '{{ job.download_url }}' allowed_hosts: [downloads.example.com] auth: none compression: gzip format: ndjson fields: id: string raw: {type: json, mode: remainder} ``` This example describes a hypothetical API. State values, paths, and file formats must match the provider's contract. Start templates accept `config`, `env`, `parent`, and `state` (the frozen incremental lower bound); status requests and the result URL also accept `job`, populated by captures. Captures select nonempty scalar values from the start response or ready status response. Unknown or missing job states fail the read. For APIs that return a file URL before it is ready, capture that URL in `start` and replace `wait` with: ```yaml theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} wait: type: download pending_statuses: [403] interval_seconds: 10 timeout_seconds: 7200 ``` Only explicitly listed statuses mean pending; supported choices are 202, 403, 404, 409, and 425. For example, [Braze documents a 403](https://www.braze.com/docs/api/endpoints/export/user_data/post_users_segment) while a segment-export file is being prepared. Do not use that rule on an authenticated API status endpoint. Download 429 and 5xx responses use bounded retries. Job polling retries transient API failures separately from the pending-job loop. The deadline covers creation, polling, downloading, and decoding and remains fixed across recovery. `result` separates file compression, archive layout, and record encoding: | Setting | Values and behavior | | - | - | | `compression` | `none` (default) or `gzip`. | | `archive` | `none` (default), `zip`, or `tar`. ZIP cannot also declare gzip. | | `files` | Required for archives. A Go `path.Match` pattern over member names; `*` does not cross `/`. No matching files is an error. | | `format` | Required: `json` (an array), `ndjson` (one object per line), or `csv` (header row and string values). | | `records_path` | Optional dot path to an array inside a JSON document. Missing paths fail rather than producing an empty export. | | `csv` | Optional CSV dialect with `delimiter`, `header`, `columns`, and `quoting`, described below. | | `allowed_hosts` | Required exact download hostnames, without ports or wildcards. Checked on the initial HTTPS URL and every redirect. | | `auth` | Only `none` is supported. Downloads never inherit API authentication, connection headers, or cookies. | | `max_download_bytes` | Maximum downloaded bytes; default 1 GiB. | | `max_uncompressed_bytes` | Maximum decoded bytes across selected ZIP files, or the full gzip/tar stream; default 10 GiB. | JSON numbers retain their precision. Records are limited to 10 MiB. Archives are limited to 10,000 entries and cannot contain links or unsafe file paths. ZIP downloads use a temporary file, removed when the read ends; gzip and tar are processed as streams. CSV headers must be nonempty and unique. CSV defaults to commas, a header row, and standard double-quote handling. A `csv` block changes the dialect. This one reads a tab-separated file that has no header and never quotes its fields. ```yaml theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} result: format: csv csv: delimiter: "\t" header: false columns: [GLOBALEVENTID, SQLDATE, Actor1Code] quoting: none ``` `delimiter` is one character other than a double quote, CR, or LF. With `header: false`, `columns` names the fields in order and is required. Fields then map by these names exactly as they do by header names. `columns` is rejected when the file has a header. `quoting: none` splits each line on the delimiter and keeps quotes as data, for files that never quote but may contain a stray `"`. Every row must have as many fields as there are columns, and a short or long row fails the export. Batch-operation archives can contain envelopes rather than records. Add an `envelope` to require operation success and parse a JSON string inside each outer object: ```yaml theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} result: url: '{{ job.download_url }}' allowed_hosts: [storage.googleapis.com] compression: gzip archive: tar files: '*.json' format: json envelope: status_path: status_code success: [200] body_path: response records_path: members ``` Here each archive member contains an array of operation envelopes; each `response` string must contain a `members` array. An operation error, corrupt archive, truncated document, or exceeded limit fails the export. Rows may already have reached the destination before that failure; completion is emitted only after all selected files validate. Exports support full and incremental reads, including parent fan-out. Add `for_each` (or `parent.resource`) and `export.parent_key` to create one job per parent. The key lists capture names that together uniquely identify a parent. Missing or duplicate keys fail before any jobs are created. `parent.concurrency` limits simultaneous jobs (default 5). For example, add the following settings to the export above, and include a `segments` index resource that captures `segment_id`: ```yaml theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} for_each: segments parent: {concurrency: 3} incremental: cursor_field: updated_at start_param: updated_since inject_into: body comparator: time initial: '2026-01-01T00:00:00Z' overlap_seconds: 300 export: parent_key: [segment_id] start: method: POST path: /exports body: encoding: json template: {segment_id: '{{ parent.segment_id }}'} capture: {id: $.job_id} # Keep wait and result from the complete example above. fields: id: string updated_at: timestamptz segment_id: {type: string, path: parent.segment_id} raw: {type: json, mode: remainder} ``` Each parent has its own watermark. The runtime injects the lower bound into the start request's query, header, or body using the ordinary `incremental` settings. The selected parents, captured values, incremental seed, and lookback are frozen before creation. Downloads may be unordered: the candidate watermark is the maximum observed cursor, and becomes eligible for the next run only after the entire artifact validates and the sink commits. An empty export retains its seed. There is no automatically generated upper time bound; verify that the provider's filter and snapshot semantics support this watermark model. Parent indexes and their ancestors must be finite full reads without incremental filters. A dedicated `capture_only` index is useful when the ordinary parent resource is incremental. Parent pagination restarts during recovery to rebuild captures. Once frozen, the job set remains unchanged even if that listing changes. New scheduled runs enumerate parents again, retaining watermarks for absent parents. State is limited to 10,000 historical parent keys and 16 MiB per resource. Record captures, `parent.since`, dynamic discovery from exports, and discovery scope injection into exports are rejected. One export emits one resource; multi-dataset routing, cloud-storage delivery without an HTTP URL, webhook completion, and automatic creation reconciliation are not implemented. Provider catalog manifests do not automatically switch to exports when this mode becomes available. Full-read checkpoints retain the job, deadline, and captured URLs. Interrupted reads resume a known job and replay its artifact from the beginning, so recovery is at-least-once. A job status request refreshes the download URL on resume; a 403 or 410 download failure can trigger one further refresh. Download-only jobs cannot refresh expired URLs. For resources declaring a parent or an incremental block, retries replay every selected artifact, including completed jobs. Job snapshots are saved within the run separately from committed cross-run watermarks; an individual parent's completion does not advance durable progress after a failed run. Existing sink and ingestion-mode recovery policies still apply. Plain top-level full exports skip completed jobs on same-run resume. A fresh full read creates new jobs. Checkpoint identity binds the export to its manifest, base URL, and non-secret configuration. Planned scoped jobs rebuild their start request when it is sent, using the validated manifest, saved parent values, incremental seed, and lookback together with current runtime credentials and environment values. Checkpoints contain neither rendered start requests nor deferred request templates. Changes to the manifest or non-secret configuration invalidate checkpoint identity; environment values come from the current connector context. Rendered values are never evaluated as another template. Jobs with captured identities resume without rebuilding their creation request. Scoped checkpoints use a single version 1 format. Captured URLs and parent values still make checkpoint storage sensitive. For scoped recovery, expired waiting deadlines receive a new `wait.timeout_seconds` budget, including completed jobs replayed from a mixed checkpoint. Captures, frozen inputs, and committed watermarks are retained. This also applies when a saved attempt is resumed directly. A creation intent with an unknown outcome is never renewed or automatically resubmitted. Scoped exports publish creation intent and changed job captures eagerly. Unchanged post-poll snapshots are suppressed; completed jobs are folded into the next identity snapshot or flushed when extraction ends, including on error. Snapshots still contain the full parent set, so identity writes can remain quadratic in the number of parents. Batching reduces write volume while preserving the replay contract. Exports also report typed observational events through the source observer and runner: `export.job_created`, `export.job_polled`, and `export.job_ready`. Creation is reported only after the required captures validate. Poll reports count completed status requests (or artifact availability requests for download waiting), with the first report immediate and subsequent reports at most once every 30 seconds per job execution. Ready means the artifact is available; it does not mean rows have been decoded or the sink has committed. Direct downloads do not emit a creation event. Payloads include `correlationId`, cumulative `polls`, `elapsed` (nanoseconds), and `resumed`. Correlation IDs are randomly generated for each job execution and change on resume; counts and elapsed time restart for that execution. Events contain no upstream job IDs, parent values, captures, or signed URLs. Readiness is reported once per execution, even if an expired URL requires another status request. Events do not replace checkpoints or advance watermarks. After an artifact validates, `resource.page_fetched` reports both delivered records and downloaded artifact-body bytes actually read, before decompression or archive extraction. This works for chunked responses without `Content-Length` and counts nonzero artifact bytes even when there are no records. Counts are per artifact and exclude status requests and failed downloads. They describe source progress; authoritative sink byte totals still come from `batch.written`. Creation is attempted once, including when the API returns 202. A creation intent is queued before the request, then replaced with the captured job state. These pipeline checkpoint markers are asynchronous, so creation and checkpoint persistence are not an atomic transaction. A process crash before persistence can still lead to duplicate creation; provider idempotency or reconciliation is needed to eliminate that window. If recovery finds a creation intent without a job ID, extraction fails and requires upstream reconciliation before a fresh read. Signed URLs and captured parent values are sensitive checkpoint data. Signed URLs are omitted from transport errors. Include an ordinary top-level resource for connection testing. Export resources are excluded from probes so validating credentials cannot create a paid export. ## Runtime behavior The optional `connection.rate_limit.burst` bounds how many requests can start immediately when rate-limit capacity is available. Omit it to retain the default burst of twice `requests_per_second` (at least one). Set it to `1` for steady pacing. The limiter is shared by readers within one connector instance, including retries; separate runs do not share a budget. **Available modes.** Every manifest can run a full read. Incremental reads are available only when at least one resource has an `incremental` block, so a manifest without one is full-only. The manifest chooses the cursor field; a pipeline can change only its lookback window. **Resuming full reads.** Top-level resources checkpoint their pagination cursor per page, so an interrupted full run resumes mid-listing. Child (fan-out) resources always restart from the beginning. A resumed cursor the API no longer honors falls back to a full read with a warning rather than failing. **Incremental child resources.** Children share one watermark per resource across all parents. There is no per-parent checkpoint. If parents progress at different speeds (say, per-repository issues), a run can advance the watermark past rows in slower parents. Set `overlap_seconds` generously to re-read the window and let an upsert write mode absorb the duplicates. **Retries and limits.** Responses are handled by status: * HTTP 429 and manifest-matched throttling responses are retried up to 10 attempts, honoring `Retry-After` and reported as `pressure.rate_limited`. Only fallback exponential backoff is capped at 60 seconds. * HTTP 202 is polled within the same attempt budget when `response.poll_pending: true`; exhaustion fails instead of emitting pending data. * HTTP 204 produces an empty result * 5xx responses are retried 3 times * other 4xx responses are fatal unless they match the resource's `response.empty` rule Some APIs return an error status when a collection is empty. A resource can recognize that response with an exact status and body match: ```yaml theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} response: empty: status: 404 body_path: errors body_equals: [No calls found corresponding to the provided filters] ``` `status` must be a 4xx code. `body_path` uses dot-path syntax and must point to an array of strings. The entire array must equal `body_equals`, including case and order. Extra messages, a different status, or invalid JSON do not match. A match ends the page walk without emitting a row or advancing a watermark. Rows already read are kept. Throttling rules take precedence. Declare this rule on individual resources, not in `defaults`. Verify the API's actual response before adding a rule so an unrelated error cannot look like an empty collection. Responses are capped at 100 MB. Top-level resources extract concurrently, children after their parents. **Connection testing.** When a caller explicitly invokes the connector's `TestConnection` capability, it sends one request to the first top-level, non-streaming, non-export resource. Saving or validating a connection through the service API does not invoke this live test. **Manifest validation.** Loading a manifest reports all detectable problems together. It checks: * required objects, field types, and allowed enum values * strict YAML decoding that rejects unknown fields * defaults and shorthand expansion * semantic checks for cross-field rules such as parent cycles and unprojected cursor fields ## API version `api_version` records the upstream API version the manifest was authored against. It is optional, since some APIs are unversioned, and free-form, since vendors use dates, semantic versions, or path segments. The catalog and the connection form show it. When the connection pins a version header such as `Stripe-Version` or `Notion-Version`, validation requires `api_version` to match its value. ## Preview status Manifest-driven integrations start with `is_preview: true`. Validation of the manifest establishes syntax and engine consistency. Clear the flag only after live checks confirm the supported resources and behavior. ## Related guides * [Sync any REST API to Postgres with a YAML manifest](https://www.getgalaxy.io/articles/rest-api-to-postgres-sync-any-api-with-a-yaml-manifest) # Optional interfaces Source: https://filament.getgalaxy.io/pages/connectors/building-a-connector/optional-interfaces Add discovery, schemas, recovery, and CDC behavior to a connector in Filament, the open-source data movement engine. The base source and sink interfaces are enough for a simple full copy. Other workflows are assembled from small interfaces. Treat each one as a promise: advertising a capability without implementing the contracts it needs usually fails planning or the run; it does not always degrade to a simpler mode. ## Start from the developer outcome | You want to support | Source contracts involved | | - | - | | Browse resources before building a pipeline | `Discoverable` | | Create typed destination tables | `SchemaProvider` (when paired with a `Schematized` sink) | | Resume a checkpointed snapshot | `Resumable` and `ResumePlanner` | | Read incrementally across runs | `Resumable`, `IncrementalPlanner`, and usually `CursorColumnProvider` | | Read a database change stream | `ChangeSource` and a CDC source policy in the spec | | Keep a source session open across continuous commits | `StreamSource`, `StreamSession`, and registered position codecs | | Release upstream CDC retention after durability | `ChangeAcknowledger` | | Resolve selectors into concrete resources | `ResourcePlanner` | | Declare a source-side request ceiling | `RateLimited` | For example, implementing only `CursorColumnProvider` makes cursor metadata available, but it does not make extraction incremental. The connector must also plan incremental checkpoints, read from them, and advertise the corresponding source policy. ## Discovery and schemas `Discoverable.Discover` supplies the catalog used before a pipeline exists: resource names, selectors, primary keys, optional schemas, and row estimates. `DiscoverOpts.Refresh` asks the connector to bypass any cached catalog. `SchemaProvider.Schema` is the runtime schema contract. It becomes mandatory when the selected sink implements `Schematized`; without it, the run fails before data moves. Schema fields carry a portable logical type and may also preserve a backend-native type. `ResourcePlanner.PlanResources` is useful when user-facing selectors do not map one-to-one to emitted resource names. Its output is what Filament uses for schema lookup, policy binding, and checkpoint setup. ## Snapshot resume and incremental reads Both workflows eventually call `Resumable.ExtractFrom`, but their plans come from different places: * `ResumePlanner` creates a stable per-resource or per-part plan for continuing the same logical run. A nil checkpoint marks a resource that must be reread. * `IncrementalPlanner` starts a later run from a durable cross-run watermark and the pipeline's cursor configuration. * `CursorColumnProvider` describes eligible and recommended cursor fields. It is also used to bind the version field for incremental upserts. During extraction, each row's `RowMeta.Key` identifies checkpoint progress and the writer's part identifies which planned unit advanced. Implementations should read only from the supplied plan; silently inventing new part layouts makes recovery ambiguous. ## CDC A connection is CDC when the source spec declares a CDC source policy and the connection config sets `replication` to `cdc`. Filament derives this with `ReplicationFor`; a source without a CDC policy is always standard. A CDC route then uses `ChangeSource.ExtractChanges`, supplying selected resources, prior checkpoints, limits, and an observation callback. `ChangeAcknowledger` is narrower: after sink commit and durable checkpoint observation, the runner can tell the source which upstream positions are safe to release. A source must never acknowledge beyond those positions. CDC support therefore requires agreement between connection mode, advertised source policies, emitted ordered operations, and the extraction interface. Continuous execution uses a reusable source session and finite sink writes. Those contracts are described in [Streaming connectors](/pages/connectors/building-a-connector/streaming), including how to report complete source boundaries and acknowledge certified progress. ## Validation and rate limits Every source already implements the pure `Validate` method on `Source`. `ConfigValidatable` provides the same pure validation hook for types that do not otherwise require it, including sinks. It must not make network calls. `LiveValidatable.TestConnection` performs an explicit network probe for either a source or sink. `RateLimited.Limits` lets a source publish its own requests per second and burst ceiling; it describes source behavior rather than replacing run-level rate settings. ## Sink extensions | Interface or capability | What it means today | | - | - | | `Schematized` | The runner calls `EnsureSchema` for each resource before extraction. Continuous runs also prepare inferred payload columns before their first batch is applied. | | `SinkCapabilities.WritePolicies` | Declares write modes shared by bounded and continuous runs. The sink applies negotiated policies inside `Apply`. | | `SinkCapabilities.ReusableSession` | Allows repeated finite writes on an open session. Otherwise continuous runs open a fresh sink for each boundary. | | `SinkCapabilities.EncodedIntegrity` | Every `Apply` must return an `EncodedCRC` verified over the exact serialized bytes. | The runner starts writes with `Begin`, writes through `Apply`, and finishes through `Commit` or `Abort`. `Close` releases the session. Both execution modes use this lifecycle. A sink that declares an upsert policy implements it inside `Apply`. A sink that needs staging manages it inside its own lifecycle. ## Keep declaration and behavior together `ConnectorSpec.SourcePolicies` and `SinkSpec.Capabilities` are advertisements; the interfaces are executable behavior. Review both whenever you add a mode. Planning checks the advertised policy, write capability, primary keys, and cursor metadata, while the runner later asserts the interfaces required to carry it out. Keeping those two views aligned gives connector users an early, understandable error instead of a failure after extraction begins. # Building a connector Source: https://filament.getgalaxy.io/pages/connectors/building-a-connector/overview How to add a connector, and which of the two paths to take in Filament, the open-source data movement engine. Choose between an HTTP manifest and Go based on the system you are integrating. Use a manifest for a conventional REST or GraphQL source. Use Go for database protocols, change logs, custom behavior, and every sink. ## Two paths Adding a source usually means picking between these. **A manifest.** If the system is a REST or GraphQL API, you probably do not need Go at all. One generic HTTP connector interprets declarative YAML that declares endpoints, auth, pagination, field projection, incremental cursors, and parent and child relationships. Most SaaS sources ship this way, and adding another is a new manifest rather than a new codebase. See [HTTP manifests](/pages/connectors/building-a-connector/http-manifests). **Go.** Databases, replication logs, object stores, and anything needing real logic get a Go implementation. That is the path for every sink as well, since manifests describe reads only. See [Writing a source](/pages/connectors/building-a-connector/writing-a-source) and [Writing a sink](/pages/connectors/building-a-connector/writing-a-sink). ## What the engine expects Both paths produce a registered connector. Whatever you build declares a `ConnectorSpec` or `SinkSpec` describing its name, config schema, and what it can do, and the server drives everything from that declaration. The config form in the web app, the CLI flags, and validation are all generated from the schema you write, so a field declared once shows up everywhere without further work. Beyond a full read or basic write, capabilities are opt-in. Add only the interfaces required for discovery, recovery, incremental reads, CDC, schemas, or rate limits, and advertise only behavior the connector implements. See [Optional interfaces](/pages/connectors/building-a-connector/optional-interfaces) for what each one unlocks. For continuous execution, read [Streaming connectors](/pages/connectors/building-a-connector/streaming). It explains how a source establishes safe progress, how a sink commits epochs, and what each connector must guarantee before a worker can be replaced. ## Preview status Registration includes an `is_preview` flag, which the API and web app show to users. Set it to `true` for connectors that have not been confirmed stable. Clear it after live validation confirms the supported behavior. # Streaming connectors Source: https://filament.getgalaxy.io/pages/connectors/building-a-connector/streaming Implement source sessions and finite sink writes with explicit recovery boundaries A continuous source keeps its session open across many commits. The source reports when a portion of the input is complete. The sink reports when its finite write is durable. The runner uses those two promises to decide where a later attempt may safely resume. Start with the [streaming lifecycle](/pages/guides/concepts/streaming) for the end-to-end picture. This page focuses on the connector's part in that lifecycle. ## Declare what the pair can support Sources describe whether they emit rows, changes, or messages, which operations they produce, and what ordering and replay guarantees they offer. Continuous planning currently requires replayable, at-least-once input. A best-effort feed cannot promise to recover the messages lost during a worker interruption. Sinks declare one set of write policies for both execution modes. Continuous runs use finite writes through those same policies. The planner checks operations, ordering, durability, and required primary keys before writing. Replace is unavailable for continuous execution because it needs a finite snapshot and a completion boundary. The current planner accepts an order-dependent sink policy only when the source promises strict global order. Partition or transaction ordering alone does not satisfy that requirement. Declare the guarantee the connector can actually maintain through extraction and writing. ## Keep the source session alive Implement `StreamSource` to open a reusable `StreamSession`. Opening receives the selected resources, certified resume positions, resource membership, and the admitted worker identity. Use those positions to resume the existing feed; do not silently replace an unavailable position with the latest available one. The runner alternates reads and acknowledgements on the session. A read writes typed rows through `StreamRecordSink` and returns the source positions covered by that read. Those positions are candidates until the runner has finished the pipeline and committed the epoch. Backpressure can block a row flush for much longer than a network read. Keep protocol heartbeats and any required delivery renewal alive while waiting. Honor cancellation, and join an outstanding read or acknowledgement before closing the session. Closing concurrently with a read is not part of the contract. ## Show that the source boundary is complete Consider a source transaction that updates an order and inserts its line items. Reaching a row limit after the order update is not a safe place to save progress if resuming there would skip the line items. Finish the transaction and report its end before returning coverage. Sources express these boundaries with ordered controls alongside the rows. Transaction begin and end markers describe transaction boundaries; a progress boundary can describe a safe position outside a transaction. Sending a control flushes the affected builders and waits for preceding sink writes and integrity checks. It does not commit the epoch or acknowledge the provider. Before an epoch can be sealed, every covered domain needs an accepted safe boundary after its last row, and no transaction may remain open. Returning a position from `Read` without the corresponding pipeline evidence is not enough. The source is also responsible for proving it did not skip relevant input on the way to that position. The pipeline cannot discover a missing broker message from the rows it received. Treat record, byte, idle, and age limits as targets for finding that boundary. Cancellation is an interruption, never evidence that a transaction completed. The current runner accepts domain-position coverage; the inbox-claim types in the contracts do not provide an implemented inbox execution path. ## Give bookmarks a stable meaning An ordering domain identifies the part of the source whose positions can be compared, together with its incarnation. A partition offset is useful only if it still refers to the same partition history. Detecting a recreated source prevents an old offset from being mistaken for progress in a new feed. Implement a position codec that validates, compares, and canonicalizes those bookmarks. Codec lookup must work without connector configuration or network access. Register the codecs for runtime persistence as well as exposing them through the source. The datastore needs the same interpretation when it checks for regression or compares a retried certificate. Where the source has a stable event identity, preserve it across retries. It combines the domain, position, and an ordinal for events sharing a position. Do not build that identity from the run or worker attempt: doing so would make a replay look like a new event to a deduplicating sink. ## Acknowledge only certified work `Acknowledge` receives coverage after destination commit and durable epoch certification. A source must not acknowledge speculative progress during a read. Check current ownership through the supplied authority callback before provider acknowledgements, including redeliveries that you suppress because they are already certified. This check matters when an old worker wakes up after losing its lease. Knowing the correct bookmark does not give it permission to change the provider's consumer state. ## Implement finite sink writes Bounded and continuous runs use the same sink contract. `Open` acquires a session. `Begin` starts a finite write, `Apply` writes its batches, and `Commit` confirms their advertised durability. `Abort` discards tentative work and `Close` releases session resources, including after a failed `Open`. Declare write modes once in `SinkCapabilities.WritePolicies`. Continuous planning checks source operations, keys, ordering, and destination durability. Replacement requires a finite snapshot and is not admitted for continuous runs. Set `ReusableSession` only after implementing and testing repeated `Begin` and `Commit` calls on one open session. Otherwise the runner creates a fresh sink for each boundary, closes it after commit, and restores known schemas on the next instance. This repeats client and schema setup. It does not turn a single-write connector into a reusable connector. The default boundary targets are 1,000 records or one second for reusable sinks and 100,000 records or 30 seconds for fresh instances. An explicit `RunOptions.EpochBoundary` overrides those defaults. Sources may return a safe boundary earlier or finish an in-progress transaction before returning. `RunSpec.Run` and `StartedAt` retain the logical run's identity and start time. The runner supplies `SinkWriteID` and `SinkWriteStartedAt` for each destination session. Use `RunSpec.SinkWriteIdentity()` for staging and artifact names. It falls back to the logical run ID for bounded runs. A write ID is not a stable event deduplication key. Object sinks retain the logical run ID in templates and manifests, while continuous date partitions use the finite write's time. The runner owns source epochs, leases, and positions. Sinks receive ordinary write policies without source ownership. The runner verifies every `Apply` receipt, waits for `Commit`, persists the certificate, and only then acknowledges the source. Single-write sessions also close before certification. A policy with `DurabilityAfterApply` confirms each successful batch independently. A policy with `DurabilityAfterCommit` stages its writes until commit. Continuous planning prefers a compatible commit-durable alternative when one is available. Saved policies must still match a supported alternative exactly. PostgreSQL offers transaction-durable append, upsert, and merge policies for continuous writes. Its bounded policies remain batch-durable. Kafka and NATS acknowledge individual publications during `Apply`. Both behaviors fit the same sink lifecycle. `Abort` must preserve previously durable writes. A replay can still duplicate append data if destination commit succeeded before the runner saved its certificate. ## Add live message schema support Implement `filament.MessageSchemaSource.OpenMessageStream` to opt in. The runner uses this method when the sink implements `SchemaPolicySink` and enables a policy. There is no separate source capability flag. Ordinary `OpenStream` retains the connector's existing behavior. Create one `streamkit.MessageBatches` with `NewMessageBatches(opts, baseSchema)` when opening the session. The base schema contains transport columns only. The helper validates saved layouts and owns independent copies. Share this instance across physical readers of the same logical resources and call it only from the serial read owner. Buffer one complete epoch within its record, byte, and time limits. Keep its messages alive and unacknowledged. Before writing transport fields or rows, call the helper with all payloads from that batch. ```go theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} columns, writer, err := layouts.Prepare(ctx, out, baseSchema(resource), payloads) if err != nil { return filament.Coverage{}, err } ``` The helper restores the decoder, probes every payload, applies the policy, and asks the pipeline for the current writer. Use `columns.Prepare(payload)` to obtain the payload appender, write the transport fields, and finish the row with the existing event metadata projector. Do not keep using an older writer after negotiation. A failed epoch ends the session and discards tentative layouts. The runner persists accepted layouts with certified progress. JSON inference remains in `streamkit`. It is separate from pipeline admission through `MessageSchemaRecordSink`. The saved message layout currently supports JSON object fields and raw payloads. Typed database and schema registry sources need an expanded layout contract before using this path. For a sink, implement `SchemaPolicySink`, which includes `Schematized`, and return the configured policy from `SchemaPolicy`. Normalize the requested model to canonical physical types, create the table if needed, and acquire the destination's lock or transaction. Then call `schema.Reconcile` with an adapter implementing `schema.Target`. `Inspect` returns the complete physical model. `AddNullable` receives all approved fields together so the adapter can issue one `ALTER TABLE`. The helper compares columns by name, validates the entire diff, emits detection events, applies the additions, and verifies the result. It never creates or truncates tables and never commits a transaction. The adapter must restore its lock before returning if DDL releases it. A transactional destination can keep DDL with its writes. A destination that commits DDL separately must restore any released lock before verification. A failed run can leave additions behind, so retries inspect the destination without a separate migration state machine. Keep native type mapping and unsupported-feature checks in each connector. Implementing reconciliation alone does not establish continuous sink support. The MySQL bounded sink demonstrates this adapter with independently committed DDL. It applies approved additions together and reacquires its table lock before verification. Continuous runs can use compatible write policies through fresh sink instances. Independently committed DDL is not rolled back with a failed write. ### Schema diagnostics Call `schema.Observe` with the operation context and the complete diff before applying changes. The reconciler does this automatically for destination diffs. The message helper does this automatically for structural changes to an accepted layout. The runner publishes typed `schema.detected` events with source or sink origin, policy, field names, and change categories. An initial inferred layout is not drift. Empty diffs produce no event. The runner publishes `schema.blocked` when a typed block ends an attempt or bounded resource operation. Payload validation failures can block without a structural detection event. Neither event claims that DDL committed. Publication is best effort and may repeat on replay. Events contain no row values, and checkpoint persistence remains the authority for progress. Exercise late fields, omitted fields after restart, strict additions, invalid types later in a batch, failed negotiation, and shared logical resources. The shared helper tests cover inference and admission. Each connector must also test its real transport, acknowledgements, and destination rollback. `TestMessageSchemaConnectorIndependentLifecycle` in `runner/message_schema_integration_test.go` exercises the complete shared path with in-memory adapters and serialized certificates. It covers both policies, late fields, restart restoration, event publication, and blocked batches without importing a production connector or opening a database. Run it with `go test ./runner -run TestMessageSchemaConnectorIndependentLifecycle`. ## Make shutdown an honest promise `Close` releases the session and joins pending local work. Return an error when remote effects may still be outstanding or their shutdown cannot be established. The runtime records an unproven termination and blocks automatic takeover in that case. An `Apply` or `Commit` error does not by itself prove that cleanup failed. Local validation errors can end cleanly. PostgreSQL can also establish clean termination after a confirmed rollback. Lost publication acknowledgements or uncertain commit outcomes need connector-specific handling. The runner relies on the sink's cleanup result rather than turning every write error into an unproven termination. A clean close does not establish owner fencing or exactly-once delivery. ## Test interruptions at the boundaries Successful delivery is only part of streaming support. Exercise a slow sink, cancellation during a read, a partial source transaction, and loss of ownership before acknowledgement. Verify that a source cannot certify a position whose rows have not finished writing. For a sink, test failed writes, uncertain commit responses, repeated lifecycle calls, and shutdown with outstanding work. An interruption after destination commit but before certificate persistence is especially useful: recovery may replay that epoch, and the result must match the connector's documented duplicate-handling behavior. The public contracts live in `stream.go` and `epoch.go`. The coordinator is in `runner/continuous.go`, and pipeline completion is enforced in `pipeline/epoch.go`. The Kafka and NATS sources and PostgreSQL and NATS sinks provide concrete implementations to read alongside those contracts. # Writing a sink Source: https://filament.getgalaxy.io/pages/connectors/building-a-connector/writing-a-sink Build a Go sink that applies Arrow batches under a write policy in Filament, the open-source data movement engine. A sink owns the destination boundary. Filament decides when a batch is ready, which write policy applies, and whether the run should commit or abort. The sink turns the borrowed Arrow batch into a durable destination write and reports what it handled. ## The run lifecycle Every sink implements this interface. ```go theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} type Sink interface { Spec() SinkSpec Open(ctx context.Context, run RunSpec) error Begin(ctx context.Context) error Apply(ctx context.Context, b *arrowbatch.Batch, opts ApplyOptions) (WriteReceipt, error) Commit(ctx context.Context) error Abort(ctx context.Context) error Close(ctx context.Context) error Name() string } ``` The normal sequence follows these steps. 1. `Open` acquires session resources. 2. `Begin` starts a finite write. 3. A schema-aware sink receives `EnsureSchema` before the affected batches. 4. `Apply` handles each batch under its resource's write policy. 5. `Commit` confirms durability, or `Abort` cleans up an unfinished write. 6. `Close` releases resources, including after a failed `Open`. Continuous runs use the same lifecycle. Set `ReusableSession` when repeated writes can share an open session. Otherwise the runner opens a fresh sink per boundary and restores the known schemas. Client and schema setup repeat for each fresh instance. Schema preparation can also happen before `Begin`, and inferred schemas can arrive during a write. Source epochs and positions remain inside the runner. Keep logical run identity separate from write identity. `RunSpec.Run` and `StartedAt` describe the logical run. Continuous destination sessions also receive `SinkWriteID` and `SinkWriteStartedAt`. Use `SinkWriteIdentity()` for staging or artifact names and retain `Run` in user-visible run references. For bounded runs, the helper returns the original run ID. A sink advertises one set of `WritePolicies` for both execution modes. Continuous admission requires compatible operations, ordering, keys, and durability, but no separate streaming-sink interface. Replace still requires bounded execution. See [Streaming connectors](/pages/connectors/building-a-connector/streaming) for boundary defaults, certification, and shutdown requirements. Some recovery-safe failures preserve accepted writes instead of calling `Abort`. That can happen only when every resource can resume and replay will not duplicate append-only data or expose uncommitted work. A sink should still make `Abort` safe because it also runs after setup and commit errors. ## Applying a batch `arrowbatch.Batch` contains one resource and part, an Arrow record batch, an operation vector, sequence metadata, and an optional checkpoint delta. A simple append sink can look like this: ```go theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} func (s *Sink) Apply( ctx context.Context, batch *arrowbatch.Batch, opts filament.ApplyOptions, ) (filament.WriteReceipt, error) { if err := opts.Policy.ValidateBatch(batch.Resource, batch); err != nil { return filament.WriteReceipt{}, err } rows := batch.Rows() writtenBytes, encodedCRC, err := s.writeRows(ctx, rows) if err != nil { return filament.WriteReceipt{}, err } writeCRC := batch.IntegrityCRC() return filament.WriteReceipt{ Rows: batch.NumRows(), Bytes: writtenBytes, WriteCRC: writeCRC, EncodedCRC: &encodedCRC, }, nil } ``` The example assumes `writeRows` computes and verifies `encodedCRC` over the serialized bytes immediately before transport. A sink that does not advertise encoded integrity omits `EncodedCRC`. ### Borrowing and ownership `Apply` borrows the batch for the duration of the call. Its Arrow rows and operation vector are valid until `Apply` returns. If a sink buffers a batch for `Commit`, it must call `Retain` before returning and eventually call `Release`. This rule matters for sinks such as Iceberg that hold batches until commit. It is also why `Batch` is passed by pointer. ## Integrity evidence Two checks describe different boundaries: * `WriteCRC` is required. Recompute `batch.IntegrityCRC()` at the sink's final in-memory boundary. The pipeline compares it with the checksum calculated before calling `Apply`. * `EncodedCRC` is optional unless `SinkCapabilities.EncodedIntegrity` is true. It covers the exact serialized bytes handed to the transport. Neither value is a universal read-after-write verification of the destination. A sink that needs that stronger guarantee must implement destination-specific acknowledgement or validation as part of its write. ## Honor the write policy `ApplyOptions.Policy` tells the sink how to write this resource: * `append` retains every accepted row. * `replace` produces a fresh resource snapshot. * `upsert` keeps a current row per primary key. * `merge` applies ordered CDC inserts, updates, and deletes. * `delete` removes rows by key for the internal incremental-delete path. Call `ValidateBatch` before writing. `Policy.Keys` contains resolved primary-key columns when the mode needs them, and `Policy.Version` explains how an upsert resolves competing values. CDC can bind either append or merge. Append is change history; merge is current state. ## Batching and concurrency The engine flushes a builder when it reaches the run's row or byte limit. If neither is configured, it uses the sink's preferred row count and then the engine default. The periodic flush request is observed at the next completed row; a source with an idle stream calls `Flush` itself. When snapshot parallelism is greater than one, `Apply` can run concurrently. Protect shared buffers and accounting, and size connection pools in `Open`. Ordered CDC, incremental, and checkpointed runs are forced to one writer. ## Capabilities and registration `SinkSpec.Capabilities.WritePolicies` advertises the modes the sink really implements. Capabilities can also declare whether writes survive after each `Apply` or only after `Commit`; that durability boundary determines when a checkpoint may advance. Register the sink through a fresh-instance factory: ```go theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} func init() { registry.RegisterSink( "mysink", true, func() filament.Sink { return New() }, ) } ``` The [`connectors/stdout`](https://github.com/galaxy-io/filament/tree/main/connectors/stdout) package is the smallest complete sink. It demonstrates Arrow-to-NDJSON serialization, both integrity values, concurrency protection, and the complete run lifecycle. # Writing a source Source: https://filament.getgalaxy.io/pages/connectors/building-a-connector/writing-a-source Build a Go source that writes typed rows into Filament in Filament, the open-source data movement engine. A source owns the read from an upstream system. Filament owns what happens afterward: bounded batching, backpressure, integrity checks, sink writes, and run progress. The important boundary is typed and columnar. A source describes a resource's schema, opens a row writer for that resource, and appends values in schema order. Filament turns those rows into Arrow batches. ## Start with one full-read source The base interface is intentionally small: ```go theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} type Source interface { Spec() ConnectorSpec Validate(cfg Config) error Configure(ctx context.Context, cfg Config) error Extract(ctx context.Context, sink RecordSink, opts ExtractOpts) error Teardown(ctx context.Context) error } ``` One source instance serves one run. `Configure` can therefore keep a client, connection pool, or parsed configuration on the struct, and `Teardown` releases it when the run ends. `Extract` is where data crosses into Filament. This minimal example writes two columns for every requested resource: ```go theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} func (s *Source) Extract( ctx context.Context, sink filament.RecordSink, opts filament.ExtractOpts, ) error { for _, resource := range opts.Resources { schema := filament.RecordSchema{ Resource: resource, PrimaryKey: []string{"id"}, Fields: []filament.SchemaField{ {Name: "id", Logical: filament.LogicalInt64}, {Name: "name", Logical: filament.LogicalString}, }, } writer, err := sink.Builder(resource, 0, schema) if err != nil { return err } for _, row := range []struct { id int64 name string }{{1, "Ada"}, {2, "Linus"}} { if err := ctx.Err(); err != nil { return err } writer.Int64(row.id) writer.String(row.name) if err := writer.EndRow(filament.RowMeta{}); err != nil { return err } } } return nil } ``` Every row must append exactly one value per schema field, in the same order. Use `Null()` for a null value. `EndRow` closes the row and may block while a full batch waits for the sink; returning its error is how backpressure and pipeline failures reach the source. > [!NOTE] > > The pipeline closes builders after extraction. A source normally calls neither > `Close` nor `Drain`; those are lifecycle details for advanced resumable or CDC > sources. A long-lived stream may call `Flush` when it goes idle and needs to > send a partially filled batch. ## Resources and parts A builder belongs to one `(resource, part)` pair. Most sources start with part `0`. A source that splits a large table into independently read ranges opens one builder per range and assigns each a stable part number. `ExtractOpts.Parallelism` is the run's concurrency budget, not an instruction to create that many parts. The source decides whether its backend can safely read in parallel. Each builder must be written by only one goroutine. ## Row metadata for recovery and CDC Most full-read sources can pass an empty `RowMeta`. Recovery and CDC sources use it to carry information that travels with a row without becoming a destination column: * `Op` is insert, update, or delete. Full reads normally leave it at insert. * `Key` is the source position for a keyset-resumable part. * `Coarse` marks progress that can only be acknowledged by row count. * `LSN` and `Seq` order a CDC stream. These fields drive ordering and checkpoints. They are not a substitute for the resource schema or primary key. ## Describe and register the source `Spec` supplies the catalog name, configuration fields, and supported read policies. Keep the advertisement aligned with behavior: advertising incremental or CDC support does not implement the corresponding extraction interfaces. Register a factory so each run receives a fresh instance: ```go theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} func init() { registry.RegisterSource( "mysource", true, func() filament.Source { return New() }, ) } ``` Consumers include the connector with a blank import. Set `is_preview` to `true` until live validation confirms the supported behavior. ## Add capabilities deliberately A useful next step is `Discoverable`, which lets users browse resources before creating a pipeline. A `SchemaProvider` is required when the source must feed a schema-aware sink. Resume, incremental reads, and CDC require several contracts to work together; they are not single-interface switches. See [Optional interfaces](/pages/connectors/building-a-connector/optional-interfaces) for those capability sets. The repository's [`connectors/sample`](https://github.com/galaxy-io/filament/tree/main/connectors/sample) package is the smallest complete source. It demonstrates the same builder flow without an external dependency. ## OAuth tokens The root `oauth` package handles client credentials and refresh-token grants. It refreshes on demand and exposes `Token(ctx)` to Go drivers. HTTP manifests use the same implementation. Browser authorization and callback handlers are outside this package. Bind a run-scoped store to an existing connection refresh-token secret. The provider must implement `filament.SecretRotator`. PostgreSQL, SQLite, AWS and GCP providers support it. ```go theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} import ( "github.com/galaxy-io/filament/oauth" oauthsecrets "github.com/galaxy-io/filament/oauth/secrets" ) store, err := oauthsecrets.FromRefreshToken(secretProvider, tenant, refreshSecretRef, binding) if err != nil { return err } tokens, err := oauth.NewSource(oauth.Config{ TokenURL: tokenURL, ClientID: clientID, ClientSecret: clientSecret, ClientAuth: oauth.ClientSecretBasic, GrantType: oauth.RefreshToken, }, store) if err != nil { return err } // Call before an API request. The source reuses unexpired tokens. token, err := tokens.Token(ctx) if err != nil { return err } token.SetAuthHeader(req) ``` A driver can depend on the small `oauth.TokenSource` interface. For an HTTP source, call `source.SetOAuthStore(store)` before `Configure` or `TestConnection`. This is an explicit Go integration hook. A driver can implement `oauth/secrets.Configurable` to identify its saved refresh-token field and authorization settings. The runner binds that secret through `oauth/secrets.Bind` before source configuration. Binding performs no secret reads or exchanges. Unsaved connection validation must not exchange rotating tokens. The store loads the refresh token on first use and keeps access tokens and expiry in memory for that run. Only a changed refresh token is written back. PostgreSQL and SQLite use an encrypted update of the existing secret row. AWS uses `PutSecretValue`. GCP uses `AddSecretVersion` and destroys the previous version. Rotation never creates a secret or updates the connection row. Refreshes serialize within the store. Separate runs have independent token state. No database transaction spans a token request and no coordination table is required. Token requests default to a 30-second timeout. Use `oauth.NewMemoryStore` for temporary credentials or tests. The environment provider is read-only and cannot persist rotating tokens. Other integrations can implement `oauth.Store` or use `oauth.StoreFunc`. A returned token is available only after any refresh-token write succeeds. A failed save retains the exchange in memory for another save attempt without exchanging the consumed token again. A process exit between upstream rotation and persistence can require fresh authorization. Check `errors.Is(err, oauth.ErrReauthorizationRequired)` for an expired or revoked refresh grant. Endpoint errors expose HTTP status and an allowlisted OAuth code, without provider descriptions or raw responses. Token requests do not retry automatically. The HTTP adapter's optional retry policy accepts explicit temporary rejections and avoids retrying ambiguous transport failures. Use the connection’s existing secret lifecycle when removing an authorization. Provider-side revocation remains a separate operation. Token values must never appear in logs, events, ordinary connection config or API responses. # Connectors and preview status Source: https://filament.getgalaxy.io/pages/connectors/overview/introduction Every source and sink that plugs into Filament, with its preview status and supported replication modes. A connector is a source, a sink, or both. Sources read data from an upstream system, and sinks write it to a destination. Some connectors ship both as separate packages (`connectors/postgres/source`, `connectors/postgres/sink`). When embedding Filament, include a connector with a blank import: ```go theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} _ "github.com/galaxy-io/filament/connectors/postgres" ``` Each package registers a fresh connector instance for every run. Its spec provides the name, configuration fields, capabilities, and preview status shown by the API and web app. ## Preview connectors Connectors marked `is_preview` have not been confirmed stable across their supported objects and environments. The API and web app show this flag. New connectors start in preview. Clear the flag after live validation confirms the supported behavior. ## Sources | Source | ID | Preview | Modes | | - | - | - | - | | [PostgreSQL](/pages/connectors/sources/postgres) | `postgres` | No | Full, incremental, CDC | | [Kafka](/pages/connectors/sources/kafka) | `kafka` | No | Full (bounded), continuous messages | | [MySQL](/pages/connectors/sources/mysql) | `mysql` | No | Full, incremental, CDC | | [NATS JetStream](/pages/connectors/sources/nats) | `nats` | No | Continuous retained-message consumption | | [Apollo](/pages/connectors/sources/apollo) | `apollo` | Yes | Full | | [Asana](/pages/connectors/sources/asana) | `asana` | Yes | Full, Incremental | | [Attio](/pages/connectors/sources/attio) | `attio` | Yes | Full | | [FHIR](/pages/connectors/sources/fhir) | `fhir` | Yes | Full, incremental | | [GitHub](/pages/connectors/sources/github) | `github` | No | Full, incremental | | [Gong](/pages/connectors/sources/gong) | `gong` | Yes | Full | | [Granola](/pages/connectors/sources/granola) | `granola` | Yes | Full, incremental | | [HeyReach](/pages/connectors/sources/heyreach) | `heyreach` | Yes | Full | | [HubSpot](/pages/connectors/sources/hubspot) | `hubspot` | Yes | Full, incremental | | [Instantly](/pages/connectors/sources/instantly) | `instantly` | Yes | Full | | [Jira](/pages/connectors/sources/jira) | `jira` | Yes | Full, incremental (issues) | | [Linear](/pages/connectors/sources/linear) | `linear` | No | Full, incremental | | [Mailchimp](/pages/connectors/sources/mailchimp) | `mailchimp` | Yes | Full, incremental (members) | | [Metronome](/pages/connectors/sources/metronome) | `metronome` | Yes | Full | | [monday.com](/pages/connectors/sources/monday) | `monday` | Yes | Full, incremental (audit logs) | | [Notion](/pages/connectors/sources/notion) | `notion` | No | Full, incremental | | [Pipedrive](/pages/connectors/sources/pipedrive) | `pipedrive` | Yes | Full, incremental | | [PostHog](/pages/connectors/sources/posthog) | `posthog` | Yes | Full, incremental | | [Pylon](/pages/connectors/sources/pylon) | `pylon` | Yes | Full | | [QuickBooks Online](/pages/connectors/sources/qbo) | `qbo` | No | Full, incremental (transactions) | | [Resend](/pages/connectors/sources/resend) | `resend` | Yes | Full | | [ServiceTitan](/pages/connectors/sources/servicetitan) | `servicetitan` | No | Full, Incremental | | [Slack](/pages/connectors/sources/slack) | `slack` | No | Full, incremental | | [Stripe](/pages/connectors/sources/stripe) | `stripe` | Yes | Full, incremental | | [Typeform](/pages/connectors/sources/typeform) | `typeform` | Yes | Full | | [Zoho CRM](/pages/connectors/sources/zoho) | `zoho` | Yes | Full | | [Zendesk Support](/pages/connectors/sources/zendesk) | `zendesk` | Yes | Full | | [Sample](/pages/connectors/sources/sample) | `sample` | No | Full | Most SaaS sources are YAML manifests interpreted by one generic [HTTP connector](/pages/connectors/building-a-connector/http-manifests). Adding another SaaS API is usually a new manifest, not a new connector. The manifest format is documented in [HTTP manifests](/pages/connectors/building-a-connector/http-manifests). ## Sinks | Sink | ID | Preview | Writes | | - | - | - | - | | [PostgreSQL](/pages/connectors/sinks/postgres) | `postgres` | No | Typed tables. Replace, append, upsert, and CDC merge | | [MySQL](/pages/connectors/sinks/mysql) | `mysql` | No | Typed tables. Same write policies as the PostgreSQL sink | | [NATS JetStream](/pages/connectors/sinks/nats) | `nats` | No | Acknowledged JSON messages; bounded and continuous append | | [Kafka](/pages/connectors/sinks/kafka) | `kafka` | No | Acknowledged JSON or raw messages. Bounded and continuous append | | [ClickHouse](/pages/connectors/sinks/clickhouse) | `clickhouse` | No | MergeTree tables. Atomic replace via staging, no CDC | | [Databricks Zerobus](/pages/connectors/sinks/databricks-zerobus) | `databrickszerobus` | Yes | Delta tables through the Zerobus Ingest API. Append only, CDC as history rows. Worker `-libc` image only | | [MotherDuck](/pages/connectors/sinks/motherduck) | `motherduck` | Yes | Cloud DuckDB tables through the bulk appender. Worker `-libc` image only | | [Snowflake](/pages/connectors/sinks/snowflake) | `snowflake` | Yes | Typed tables loaded from staged Parquet batches | | [Amazon Redshift](/pages/connectors/sinks/redshift) | `redshift` | Yes | Typed tables loaded from S3-staged Parquet manifests | | [Meilisearch](/pages/connectors/sinks/meilisearch) | `meilisearch` | Yes | Search documents, one index per resource. Add or replace by primary key | | [Iceberg](/pages/connectors/sinks/iceberg) | `iceberg` | No | Parquet tables; data commits per resource at run end | | [Google BigQuery](/pages/connectors/sinks/bigquery) | `bigquery` | No | Typed tables through the Storage Write API. Snapshot, incremental, and CDC | | [Amazon S3](/pages/connectors/sinks/aws-s3) | `s3` | No | NDJSON objects, one per resource per run | | [Google Cloud Storage](/pages/connectors/sinks/gcs) | `gcs` | Yes | NDJSON, JSON, or Parquet objects, one per resource per run | | [stdout](/pages/connectors/sinks/standard-output) | `stdout` | No | NDJSON to standard output, the reference sink | ## Where to go next > [card] [Sources](/pages/connectors/sources/postgres) > > How each source reads, covering scan strategies, cursors, and CDC. > [card] [Sinks](/pages/connectors/sinks/postgres) > > How each sink writes, covering schemas, type maps, and atomicity. > [card] [Build your own](/pages/connectors/building-a-connector/writing-a-source) > > Implement the `Source` or `Sink` interface and register it. # AWS S3 sink connector Source: https://filament.getgalaxy.io/pages/connectors/sinks/aws-s3 Write NDJSON, JSON, or Parquet objects to Amazon S3 or any S3-compatible endpoint Connector ID `s3` The Amazon S3 sink writes each resource as one NDJSON, JSON, or Parquet object per finite write in an S3-compatible bucket, laid out so an external table per resource can read it directly. It is not a lakehouse format with table-level atomic commits. See the Iceberg sink for that. ## Configuration | Field | Scope | Default | Description | | - | - | - | - | | `bucket` | Connection | — | Required. Destination S3 bucket. | | `region` | Connection | SDK default | AWS region | | `endpoint` | Connection | AWS | Custom S3 endpoint (e.g. MinIO) | | `path_style` | Connection | `true` for custom endpoints | Use path-style bucket addressing | | `auth_method` | Connection | `instance_profile` | `instance_profile` or `iam_credentials` | | `access_key_id` | Connection | — | Required for IAM Credentials. Secret. | | `secret_access_key` | Connection | — | Required for IAM Credentials. Secret. | | `session_token` | Connection | — | Optional for temporary IAM Credentials. Secret. | | `prefix` | Pipeline | — | Root folder for the pipeline, surrounding `/` trimmed | | `partition` | Pipeline | `dt={{.Date}}` | Folders between each resource and its files; see [partition template](#partition-template) | | `file_format` | Pipeline | `ndjson` | `ndjson`, `jsonl`, `json`, or `parquet`; see [file formats](#file-formats) | | `compression` | Pipeline | per format | `none` or `gzip` for JSON formats; `snappy` for Parquet | | `part_size_mib` | Pipeline | `16` | Multipart request size in MiB, from 5 through 5120; with the 10,000-part limit, the default supports objects up to about 156 GiB | | `upload_concurrency` | Pipeline | `4` | Concurrent S3 upload operations across resources, from 1 through 32 | A `prefix` left empty is defaulted server-side to the normalized source connection name. **Instance Profile** is the default. It uses the AWS SDK default credential chain, including EC2 instance profiles and container or workload roles. Choose **IAM Credentials** to provide `access_key_id` and `secret_access_key`; add `session_token` when using temporary credentials. `TestConnection` performs a read-only `HeadBucket` request. On AWS this requires `s3:ListBucket`; it does not prove that the identity can write. Runs also need object-write and multipart-upload permissions for the configured prefix. ## Supported write modes The sink advertises `full_replace` and `full_append`. See [replication modes](/pages/guides/concepts/replication-modes). Because every run writes its own objects, **the two modes behave identically here**. Each run produces a fresh object per resource and never touches a previous run's objects. A full replace run is therefore a snapshot in its own date partition. Query the latest partition to read the current state, or every partition to read history. ## Object layout Each successful bounded run writes one object per resource and a success manifest. With prefix `local_pg`, resources `accounts` and `orders`, and the default partition, a bounded run has this layout. ``` local_pg/accounts/dt=2026-09-10/cc7332f3-7abc-5f37-984d-9815634f1d7f.parquet local_pg/orders/dt=2026-09-10/cc7332f3-7abc-5f37-984d-9815634f1d7f.parquet local_pg/_runs/cc7332f3-7abc-5f37-984d-9815634f1d7f/_SUCCESS.json ``` The bounded path contains the prefix, resource, partition folders, and run ID. Continuous append uses a fresh write identity for every boundary while retaining the logical run ID in the manifest. A continuous boundary has this layout. ```text theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} local_pg/accounts/dt=2026-09-10/.parquet local_pg/orders/dt=2026-09-10/.parquet local_pg/_runs///_SUCCESS.json ``` Resource objects remain grouped by resource, so an external table can point at `local_pg/accounts/`. Manifests live under `_runs`, which query engines usually skip. Continuous replace is not supported. Each append boundary reopens the sink and produces independent objects and a manifest. ### Partition template `partition` sets the folders between each resource and its files. Write it as a path with placeholders in double braces. Time placeholders use the bounded run's start time or the continuous write's start time in UTC. Every object in that finite write uses the same time. The logical run ID in `{{.Run}}` stays unchanged across continuous boundaries. | Placeholder | Value | | - | - | | `{{.Date}}` | Run or continuous write start date as `YYYY-MM-DD` | | `{{.StartedAt}}` | Run or continuous write start as a UTC time. Append `.Format "layout"` to shape it | | `{{.Resource}}` | Resource name | | `{{.Run}}` | Run identifier | The default `dt={{.Date}}` is a Hive-style partition that Athena, Glue crawlers, Spark, and DuckDB discover without extra configuration. Other layouts: | Template | Result | | - | - | | `dt={{.Date}}` | `accounts/dt=2026-09-10/.parquet` | | `month={{.StartedAt.Format "2006-01"}}` | `accounts/month=2026-09/.parquet` | | `year={{.StartedAt.Format "2006"}}/month={{.StartedAt.Format "01"}}` | `accounts/year=2026/month=09/.parquet` | | `{{.StartedAt.Format "2006/01/02"}}` | `accounts/2026/09/10/.parquet` | | empty | `accounts/.parquet` | `Format` takes a [Go time layout](https://pkg.go.dev/time#pkg-constants), where `2006`, `01`, `02`, and `15` stand for year, month, day, and hour. Plain directories without `key=value` names need Athena partition projection with a location template. The template is checked when the pipeline is saved. It must produce a relative path with no empty, `.`, or `..` segments, and unknown placeholders are rejected. Helm charts that render pipeline YAML treat `{{` as their own syntax, so escape the template there as `{{ "{{" }}.Date{{ "}}" }}`. ### File formats `file_format` chooses how each resource object is encoded. The extension and `Content-Type` follow the format, and gzip adds a `.gz` suffix and `Content-Encoding: gzip`. | Format | Extension | Content-Type | Compression | Layout | | - | - | - | - | - | | `ndjson` | `.ndjson` | `application/x-ndjson` | `none` (default), `gzip` | One JSON object per line | | `jsonl` | `.jsonl` | `application/x-ndjson` | `none` (default), `gzip` | One JSON object per line | | `json` | `.json` | `application/json` | `none` (default), `gzip` | One JSON array of objects | | `parquet` | `.parquet` | `application/vnd.apache.parquet` | `snappy` | Typed columns from the source schema | JSON formats write source field names and JSON-compatible values: ```json theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} {"id":1,"name":"Ada"} ``` Parquet writes typed columns from the resource schema, so a selected resource with no rows still produces a valid file with the right columns. Parquet is the format to choose when the bucket is queried by Athena, Spark, or DuckDB. The `compression` field shows only the options valid for the selected format. Parquet combines source batches into row groups of up to 65,536 rows instead of creating a group for every source transaction. Groups also rotate at an 8 MiB target for page data, checked between nonempty batches. A batch and pending page buffers can exceed this target. The last group is flushed at commit. The success manifest lists every resource's key, URI, rows, bytes, and object CRC32C. Programmatic consumers should treat `_SUCCESS.json` as the visibility boundary and ignore writes without it. Query engines cannot apply that rule and read every object under the table location. See failure behavior below. ## Write mechanics and atomicity The sink streams full `part_size_mib` buffers as multipart uploads while the run is active. `upload_concurrency` limits S3 requests across resources; when that limit is reached, source extraction waits. At commit, Filament uploads the remaining bytes and completes each object. Small resources use `PutObject`, and a selected resource with no rows becomes a zero-byte object. The sink does not need temporary disk for the full run. Memory use comes mainly from unfinished multipart buffers, in-flight uploads, and the current encoded batch. Parquet also buffers one row group per active resource. Objects smaller than one part remain in memory until commit. Each resource object is atomic, but a group of S3 objects cannot be committed atomically. Resource objects may be visible while `Commit` is still running. The write becomes valid only when `_SUCCESS.json` is uploaded last. ## Failure behavior `Abort` cancels in-flight work and abandons incomplete multipart uploads. If `Commit` fails after some resources complete, those objects remain in their resource partitions, but no `_SUCCESS.json` is published, so the write is not valid. Query engines still read those objects. If partial data matters, remove them by their run ID for bounded output or write ID for continuous output before retrying. Configure an S3 lifecycle rule to expire incomplete multipart uploads. Multipart uploads do not resume across worker attempts. Resource progress is saved only after commit succeeds. See [Continuous streaming runs](/pages/guides/concepts/streaming) for boundary defaults, setup costs, and checkpoint recovery. A replay after publication can produce another append object with the same rows under a new write identity. # Google BigQuery sink connector Source: https://filament.getgalaxy.io/pages/connectors/sinks/bigquery Write typed analytical tables to Google BigQuery with Filament, the open-source data movement engine. Connector ID `bigquery` The BigQuery sink writes each resource to a typed BigQuery table. It supports bounded snapshot, incremental, and CDC runs using the BigQuery Storage Write API. Arrow batches stream into temporary tables, then one query per resource publishes the results at run commit. ## BigQuery setup Authentication uses Application Default Credentials, so the connection has no credential fields. On GKE, use Workload Identity. For local development, run `gcloud auth application-default login` before starting Filament. Grant the credential `roles/bigquery.jobUser` on the project and `roles/bigquery.dataEditor` on the project or on a pre-existing destination dataset. Creating a new dataset requires the project-level grant. Enable the BigQuery API and BigQuery Storage API (`bigquerystorage.googleapis.com`) in the project. Storage writes require `bigquery.tables.updateData`, included in the data editor role. `TestConnection` authenticates and executes `SELECT 1`. ## Configuration | Field | Scope | Default | Description | | - | - | - | - | | `project_id` | Connection | — | Required. Google Cloud project used for BigQuery jobs. | | `location` | Connection | — | Optional dataset and job location, such as `us-central1`. Applied when Filament creates the dataset. Afterwards the dataset's own location wins. | | `dataset` | Pipeline | — | Destination dataset. Empty defaults to the normalized source connection name. | The sink prefers batches of 20,000 rows or approximately 8 MiB, whichever limit is reached first, with a ten-second flush interval. Run-level overrides take precedence. Remaining rows flush when extraction finishes or at source checkpoint boundaries. ## Supported write modes The sink advertises `full_replace`, `full_append`, `full_upsert`, `incremental_append`, `incremental_upsert`, `incremental_delete`, `cdc_append`, and `cdc_merge`. See [replication modes](/pages/guides/concepts/replication-modes). * Replace publishes the entire resource with a transactional truncate and insert. * Append publishes all of the resource's staged rows with one insert query. * Upsert, delete, and merge publish with one `MERGE`, folding repeated keys across all batches to their last operation. These modes require a primary key. ## Table management The sink creates the destination dataset if needed. Resource workers create missing destination tables and add missing columns through metadata API calls. These operations do not submit DDL query jobs. New columns on existing tables are nullable; existing columns are not dropped, renamed, or altered. Incompatible existing types fail the run. Filament uses primary-key columns for merge conditions without adding BigQuery key constraints. Schemas remain limited to 16 key columns of key-eligible types. Each populated resource gets an isolated staging table with a seven-day expiration, normally deleted when publication completes. ### Type mapping | Logical type | BigQuery type | | - | - | | `bool` | `BOOL` | | `int16` / `int32` / `int64` | `INT64` | | `float32` / `float64` | `FLOAT64` | | `decimal` | `NUMERIC(p,s)` or `BIGNUMERIC(p,s)` when precision and scale fit, otherwise `STRING` | | `string` / `array` / `uuid` / unknown | `STRING` | | `bytes` | `BYTES` | | `date` | `DATE` | | `time` | `TIME` | | `timestamp` | `DATETIME` | | `timestamptz` | `TIMESTAMP` | | `json` | `JSON` | ## Write mechanics and atomicity Arrow IPC messages stream over reusable gRPC connections with gzip transport compression. Request size limits and the memory budget apply to the uncompressed messages; compression reduces network traffic without changing integrity checks. Each resource has an ordered stream with a sliding window of up to four outstanding append requests. Up to eight append requests can be in flight across the sink, including multiple requests for the same table. Table metadata and stream creation have a separate eight-resource limit so new table setup can overlap with established uploads. The sink bounds queued and in-flight encoded payloads to 64 MiB, plus active encoding and transport buffers. Per-resource queues share this byte budget without a separate batch-count cap, so a few small batches for a slow table do not block all other tables. Encoded batches split below an 8 MiB request budget; a single row that exceeds that budget fails with an explicit error. Uploads use pending streams with explicit row offsets. Transient append failures retry at the same offset, including when BigQuery accepted a request but its response was lost. A connection failure stops both sending and receiving before replaying the unacknowledged suffix. Already-acknowledged requests are retired, and their memory is released immediately. The four-request window refills after each acknowledgement; it does not wait for all four requests to finish. At commit, the sink waits for uploads, finalizes each stream, checks its row count, and commits it to the staging table. Up to eight independent tables then publish concurrently, using one query job per table. Empty append or upsert resources require no query; an empty replacement truncates its destination. Destination rows become visible at publication. Write receipts and batch progress reported during extraction describe encoded, queued batches; they do not mean the rows are already queryable in the destination. All policies defer durable checkpoints until the entire run commits successfully. Receipts include an Arrow IPC checksum; the sink does not read destination rows back for verification. Publication is atomic per table, not across the dataset. No external storage bucket is required. TIME and decimal values use lossless strings in staging and cast to their destination types during publication. ## Failure behavior A failure before publication leaves destination rows unchanged. A failure during publication can leave some tables updated while others retain their previous contents. Additive schema changes can remain after either kind of failure. Publication job IDs include the run, dispatch execution, destination, and write mode. Resuming a paused run creates a new execution and publishes a new segment. Redelivery of the same execution can reuse its job only when a persisted SHA-256 fingerprint matches the staged rows, schema, operations, and batch checkpoints. Changed replay contents or batch boundaries fail instead of acknowledging rows that the earlier job did not publish. A new run ID is a new operation: replaying an append run can produce duplicates, while keyed writes converge through their keys. Failed runs replay extraction because their pending-stream progress is not durably resumable. Pausing extraction leaves accepted uploads running so Commit can drain them. Commit cancellation and Abort cancel uploads. Abort removes staging tables that are safe to delete. If a publication might still be running, its staging table remains available for job recovery until expiration. A recorded failed publication job is surfaced as a failure on retries of that execution; a corrected attempt needs a new execution ID. Pending streams must be committed within 24 hours. This path is intended for bounded runs, not indefinite continuous ingestion. See Google's [pending-stream lifecycle](https://docs.cloud.google.com/bigquery/docs/write-api-batch) for buffer limits and transaction behavior. ## Troubleshooting * `SERVICE_DISABLED` for the Storage API means `bigquerystorage.googleapis.com` must be enabled in the project. * `could not find default credentials` means Application Default Credentials are missing from Filament's environment. Attach a service account, configure Workload Identity, or run `gcloud auth application-default login`. * Permission errors on jobs or datasets usually mean the credential lacks `roles/bigquery.jobUser` on the project or `roles/bigquery.dataEditor` on the destination dataset. * A dataset-not-found error naming an unexpected location means the dataset lives somewhere other than the connection's `location` value. Match the connection to the dataset or leave `location` empty. * Dataset IDs allow only letters, numbers, and underscores, so hyphens or dots in the pipeline's `dataset` value are rejected. ### Diagnosing slow writes `bigquery.write.ready` confirms the worker is using the Storage Write API path and reports compression, the global request limit, and `inflight_per_stream`. `bigquery.write.prepare.started` and `bigquery.write.publish.started` identify resource setup and final publication. Operations lasting at least one second emit `bigquery.write.timing` at INFO with their resource, phase, and duration. Queue timings include `backpressure_ms`; append timings include rows, uncompressed bytes, `send_ms`, and `response_wait_ms`. Sending includes compression and handing data to gRPC; response wait includes remaining network transfer and service processing, so it is not a measurement of BigQuery processing alone. DEBUG includes fast operations too. `bigquery.write.retry` reports failed append attempts and whether they can be retried. These events contain no row payloads. ## Related guides * [Replicate PostgreSQL to BigQuery with CDC](/pages/how-to/postgres-to-bigquery) # ClickHouse sink connector Source: https://filament.getgalaxy.io/pages/connectors/sinks/clickhouse Write typed analytical tables to ClickHouse with Filament, the open-source data movement engine. Connector ID `clickhouse` The ClickHouse sink writes each resource to a typed table on self-hosted ClickHouse or ClickHouse Cloud. Choose replace when the old table must remain visible until the new snapshot is ready. Append and upsert write directly to the live table and can be visible before the run finishes. ## Configuration | Field | Scope | Default | Description | | - | - | - | - | | `connection_method` | Connection | `fields` | `fields` builds the connection from the fields below. `url` uses `dsn` directly. | | `dsn` | Connection | — | ClickHouse connection URL. Required when `connection_method` is `url`. Secret. | | `host` | Connection | — | Server hostname. A pasted `http(s)://` endpoint is normalized. Required in `fields` mode. | | `port` | Connection | `9440` | Server port (9440 is the secure native port) | | `protocol` | Connection | `native` | Wire protocol: `native` or `http`. Native connections use LZ4 compression. | | `username` | Connection | `default` | ClickHouse username | | `password` | Connection | — | Required. Secret. | | `database_name` | Connection | `default` | Database encoded in the connection. The pipeline `database` selects the destination. | | `secure` | Connection | `true` | Connect with TLS 1.2+ (required by ClickHouse Cloud) | | `database` | Pipeline | `default` | Destination database | A `database` left empty is defaulted by the server to the normalized source connection name. The sink always authenticates against the `default` database and runs `CREATE DATABASE IF NOT EXISTS` for the destination from there, so the configured user needs access to `default` even when writing elsewhere. The sink prefers batches of 10,000 rows. ## Supported write modes | Write mode | Destination table | When data becomes visible | | - | - | - | | `full_replace` | Staging table, then destination | At commit, per resource | | `full_append` | Live `MergeTree` | During the run | | `full_upsert` | Live `ReplacingMergeTree` | During the run; deduplication is eventual | | `incremental_upsert` | Live `ReplacingMergeTree` | During the run; deduplication is eventual | CDC and incremental delete are not supported because ClickHouse does not offer efficient row-level deletes for this sink. See [replication modes](/pages/guides/concepts/replication-modes). ## Table management `EnsureSchema` behavior depends on the write mode. For **replace**, the run creates a staging table named `__filament_stage_` (run-scoped) and leaves the destination untouched until `Commit`. For **append and upsert**, the live table is created if missing: ```sql theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} CREATE TABLE db.tbl (...) ENGINE = MergeTree() ORDER BY (pk...) ``` with `tuple()` as the sorting key for keyless resources. Upsert modes use `ReplacingMergeTree()` under the `insert_order` version strategy, or `ReplacingMergeTree()` under the `cursor` strategy. The version field must exist in the schema, be `NOT NULL`, and be a `timestamp` or `timestamptz`. A pre-existing live table is validated, and mismatches are hard errors: * The engine must be `MergeTree` for append or `ReplacingMergeTree` for upsert (`Shared*` cloud variants are accepted). * A `ReplacingMergeTree` version argument must match the resolved version policy exactly. * The table's sorting key must equal the sorted source primary key. Missing columns are added to live tables with `ADD COLUMN IF NOT EXISTS`. Evolution is add-only. ### Type mapping | Logical type | ClickHouse type | | - | - | | `bool` | `Bool` | | `int16` / `int32` / `int64` | `Int16` / `Int32` / `Int64` | | `float32` / `float64` | `Float32` / `Float64` | | `decimal` | `Decimal(p,s)` from the native declaration, else `Decimal(38,9)` | | `string` / `bytes` / `time` / `json` / `array` / unknown | `String` | | `date` | `Date32` | | `timestamp` | `DateTime64(6)` | | `timestamptz` | `DateTime64(6, 'UTC')` | | `uuid` | `UUID` | Nullable fields are wrapped in `Nullable()`. ## Write mechanics and atomicity The sink converts Arrow values to the destination's typed columns. It accepts common textual forms for numbers, timestamps, and encoded bytes, but rejects a missing or null value for a non-nullable column. Append and upsert modes write directly to the live table, so partial data is **visible mid-run**. Replace mode is invisible until `Commit`, which per staged resource runs `RENAME TABLE` when the destination does not exist yet, or `EXCHANGE TABLES` followed by `DROP TABLE` of the stage. The exchange is atomic and requires the destination database to use the `Atomic` engine (the default). > [!NOTE] > > `ReplacingMergeTree` deduplicates at background merge time, not on insert. > Until parts merge, a key can have multiple rows — query with `SELECT … FROM > tbl FINAL` to read the current state. ## Failure behavior `Abort` drops the run's staging tables and nothing else. Failed replace runs leave the destination exactly as it was. Failed append or upsert runs can leave partial rows in live tables, which upsert re-runs converge through the primary key. ## Related guides * [Replicate PostgreSQL to ClickHouse](/pages/how-to/postgres-to-clickhouse) * [Postgres to ClickHouse replication guide](https://www.getgalaxy.io/articles/postgres-to-clickhouse-the-complete-replication-guide) * [MySQL to ClickHouse replication guide](https://www.getgalaxy.io/articles/mysql-to-clickhouse-the-complete-replication-guide) # Databricks Zerobus sink connector Source: https://filament.getgalaxy.io/pages/connectors/sinks/databricks-zerobus Stream records into Databricks Delta tables via the Zerobus Ingest API Connector ID `databrickszerobus` The Databricks Zerobus sink appends each resource to a Delta table in Unity Catalog through the [Zerobus Ingest API](https://docs.databricks.com/aws/en/ingestion/zerobus-overview) over Arrow Flight. With `create_table` on, the sink creates the destination schema and tables itself, so a first run needs one grant on the catalog. The sink is **append-only**. It advertises `full_append`, `incremental_append` and `cdc_append`, and does not replace, upsert, merge or delete. Zerobus delivers **at-least-once**, so deduplicate downstream when you need exactly-once results, see [Failure behavior](#failure-behavior). ## Before you start Zerobus is in preview and is available only in some regions. Check the [Zerobus documentation](https://docs.databricks.com/aws/en/ingestion/zerobus-overview) for the regions your cloud supports. Service principals in Databricks Free Edition cannot authenticate to Zerobus, so use a workspace on a paid plan. ## Databricks setup The steps below use `create_table`, which is the recommended path. To write into tables someone else manages, see [Use existing tables](#use-existing-tables). ### 1. Find the endpoints * **Workspace URL** looks like `https://dbc-a1b2c3d4.cloud.databricks.com`. It becomes `workspace_url`. * **Workspace ID** is the number after `o=` in the workspace URL. * **Region** does not appear in the URL. It is shown under the workspace name in the workspace switcher and in the account console. * **Zerobus endpoint** is `.zerobus..cloud.databricks.com` on AWS or `.zerobus..azuredatabricks.net` on Azure. It becomes `zerobus_endpoint`. ### 2. Create the service principal 1. In **Settings → Identity and access**, add a service principal. 2. Give it the **Workspace access** entitlement. Without it every token request fails. 3. Generate an OAuth secret with the **`all-apis`** scope. The scope picker suggests narrower scopes, but none of them covers Zerobus. A secret without `all-apis` fails at `/oidc/v1/token` with `Scopes 'all-apis' are not assigned to the client`. 4. Use the Application ID as `client_id` and the secret as `client_secret`. The secret is shown only once. ### 3. Grant the catalog ```sql theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} GRANT USE CATALOG, CREATE SCHEMA ON CATALOG main TO ``; ``` That is the whole list for Unity Catalog. The principal also needs **Can use** on the SQL warehouse that runs the DDL, set in the warehouse's permissions. ### 4. Configure the connection Set `catalog` and `warehouse_id` on the connection and turn on `create_table` in the pipeline. Leave `schema` empty to write into a schema named after the normalized source connection name, or set it to pick one. Before each resource's stream opens, the sink does the following through the warehouse. 1. Runs `CREATE SCHEMA IF NOT EXISTS`, once per run. 2. Grants itself `USE SCHEMA` on the schema. 3. Runs `CREATE TABLE IF NOT EXISTS` from the resource's schema, including Filament's lineage columns. 4. Grants itself `SELECT, MODIFY` on the table. Zerobus authorizes each stream against explicit grants and does not count ownership, which is why the sink grants itself on objects it just created. All the statements are idempotent, so later runs repeat them safely. ## Use existing tables With `create_table` off, the sink writes into tables you create and grant. The table must be a managed Delta table in Unity Catalog, in the workspace's region, without Change Data Feed or column mapping. Column names may use ASCII letters, digits and underscores. The columns must match the source resource (see [Type mapping](#type-mapping)) and must include Filament's lineage columns after the source fields. ```sql theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} CREATE TABLE main.sales.customers ( id BIGINT NOT NULL, name STRING, email STRING, -- Filament lineage columns, nullable, appended to every destination table _filament_run_id STRING, _filament_run_started_at TIMESTAMP ) USING DELTA; GRANT USE CATALOG ON CATALOG main TO ``; GRANT USE SCHEMA ON SCHEMA main.sales TO ``; GRANT SELECT, MODIFY ON TABLE main.sales.customers TO ``; ``` For append tables, nullability must match the source. A non-nullable source column such as a primary key must be `NOT NULL` in Delta, and nullable source columns must be nullable. A `cdc_append` table holds change history, so every column is nullable, the key included, and three CDC columns follow the lineage columns. A table made for plain append does not fit, and `create_table` does not alter an existing table. The table always takes the resource's name, so point a `cdc_append` pipeline at its own `schema`. ```sql theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} CREATE TABLE main.sales_history.customers ( id BIGINT, name STRING, email STRING, _filament_run_id STRING, _filament_run_started_at TIMESTAMP, -- CDC columns, added for cdc_append _filament_operation STRING, _filament_source_position STRING, _filament_sequence BIGINT ) USING DELTA; GRANT USE SCHEMA ON SCHEMA main.sales_history TO ``; GRANT SELECT, MODIFY ON TABLE main.sales_history.customers TO ``; ``` > **Grant before you run.** Zerobus binds the table name into the stream's > authorization when the stream opens. The table must exist and the principal must > hold `SELECT, MODIFY` on it before the run starts. A grant added later surfaces > as a `401`. With `create_table` on and a schema or table that already exists under another owner, the sink cannot grant itself on it. It keeps going, because the grants may already be in place. If the stream then fails to open, the error lists the grants that failed. ## Configuration | Field | Scope | Default | Description | | - | - | - | - | | `workspace_url` | Connection | — | Databricks workspace URL. Required. Must be an absolute `https://` URL, because the service principal's secret is sent to its OAuth token endpoint. | | `zerobus_endpoint` | Connection | — | Zerobus ingest gRPC endpoint. Required. | | `client_id` | Connection | — | Service principal application ID. Required. | | `client_secret` | Connection | — | Service principal OAuth secret with the `all-apis` scope. Required. Secret. | | `catalog` | Connection | — | Unity Catalog catalog for the destination schemas and tables. Required. | | `warehouse_id` | Connection | — | SQL warehouse that runs the DDL and grants when `create_table` is on. | | `schema` | Pipeline | — | Destination schema. Empty defaults to the normalized source connection name. | | `create_table` | Pipeline | `false` | Create the schema and tables if they do not exist and grant the principal on them. Requires `warehouse_id`. | | `ipc_compression` | Pipeline | `none` | Arrow IPC compression on the ingest stream, one of `none`, `lz4` or `zstd`. | The sink prefers batches no larger than 50,000 rows or approximately 32 MiB. Testing the connection exchanges the service principal's credentials for an OAuth token, makes one authenticated call to the workspace and checks the principal can see the catalog. When `warehouse_id` is set it also checks the principal can see that warehouse. Zerobus authorizes each stream for one table, so ingest permissions on a table are checked when the run opens its stream. ## How it works The sink wraps the official [Zerobus Go SDK](https://github.com/databricks/zerobus-sdk), a cgo wrapper over a Rust core. For each selected resource it opens one Arrow Flight stream, ingests every batch and flushes to durability on commit. 1. **Open** constructs the Zerobus SDK handle from the workspace URL and gRPC endpoint. 2. **EnsureSchema** builds the resource's Arrow schema, runs the `create_table` steps when enabled, then opens the stream. 3. **Apply** serializes the Arrow batch to IPC bytes and calls `IngestBatch`. 4. **Commit** calls `Flush` on every stream, which blocks until the data is durable, then closes it. ## Supported write modes The sink advertises `full_append`, `incremental_append` and `cdc_append`. See [replication modes](/pages/guides/concepts/replication-modes). * Append streams every accepted row into the Delta table as an ingest event. * `cdc_append` retains every change from a CDC source as a history row. Inserts, updates and deletes are all appended, and `_filament_operation` holds `insert`, `update` or `delete`. The source table needs a primary key. A delete row may carry only the key, with the other source columns null. A change to the primary key arrives as a delete of the old key and an insert of the new one. * `_filament_source_position` is the source's log position as text, so it does not sort in log order. `_filament_sequence` orders the changes within a run. To order a key's history, sort by `_filament_run_started_at` and then `_filament_sequence`. Rows from the initial snapshot have a null position and sequence, so in an ascending sort they come before the changes from the same run. * Replace, upsert, delete and CDC merge are **not supported**, because Zerobus is an append ingest service. Reconstruct current state downstream by deduplicating on the key, or use a batch sink for keyed modes. For a history table, keep the latest row per key and drop it when that row is a delete. ## Table management The sink never drops, renames or alters existing columns. Zerobus only permits adding nullable columns to a table, so incompatible schema changes must be handled manually. ### Type mapping Column types are the Arrow storage types Zerobus validates against, with their Delta equivalents. | Logical type | Arrow | Delta | | - | - | - | | `bool` | Boolean | `BOOLEAN` | | `int16` | Int16 | `SMALLINT` | | `int32` | Int32 | `INT` | | `int64` | Int64 | `BIGINT` | | `float32` | Float32 | `FLOAT` | | `float64` | Float64 | `DOUBLE` | | `decimal` (p ≤ 38) | Decimal128(p,s) | `DECIMAL(p,s)` | | `decimal` (unbounded), `string`, `json`, `uuid`, `array` | Utf8 | `STRING` | | `bytes` | Binary | `BINARY` | | `date` | Date32 | `DATE` | | `timestamp` | Timestamp(µs) | `TIMESTAMP_NTZ` | | `timestamptz` | Timestamp(µs, UTC) | `TIMESTAMP` | `time` has no Delta equivalent on the Arrow ingest path and is not supported. `create_table` rejects it. Model such a column manually, for example as `BIGINT` microseconds with a source-side transform. ## Write mechanics Each Arrow batch is serialized to an Arrow IPC stream and handed to `IngestBatch`. The SDK applies `ipc_compression` on the Arrow Flight wire and the connector always produces uncompressed IPC bytes, so switching codecs never changes how batches are built. Ingestion is asynchronous and pipelined. `Commit` calls `Flush` once per stream, which blocks until every batch is durably stored. The sink returns the batch row count and encoded size in each write receipt and recomputes the batch integrity CRC at the write boundary. It does not read the committed table back. ## Observability Row and byte counts flow into the engine's run metrics through the write receipt. ## Runtime requirements The sink links the Zerobus Rust core through cgo, so it is available only in the worker's `-libc` image tag. The standalone binary and the CLI do not include it. ## Failure behavior Zerobus delivers at-least-once. A run that fails after some batches were acknowledged leaves those rows in the table, and retries can append them again, so deduplicate by primary key downstream. A `cdc_append` table repeats keys by design, so deduplicate it on the key plus `_filament_source_position` and `_filament_sequence` instead, and leave out the `_filament_run_*` columns, which differ on a retry. A failed initial snapshot is different. Its rows stay in the table, and the retry takes a fresh snapshot with no delete rows for keys removed in between, so deduplicating cannot remove them. For each table, treat the most recent completed run that wrote snapshot rows (null position and sequence) as the start of its history and ignore rows from earlier runs. Failed runs are also listed by run ID in the runs API, so you can drop rows whose `_filament_run_id` belongs to one. `Abort` closes streams without a final flush. ## Troubleshooting * **`Scopes 'all-apis' are not assigned to the client`** means the OAuth secret was generated without the `all-apis` scope. Generate a new secret with it. * **Every token request fails** when the service principal lacks the **Workspace access** entitlement. Add it in the principal's settings. * **`401` or `invalid_authorization_details`** means the principal lacks `USE SCHEMA` on the schema or `SELECT, MODIFY` on the table, or the grant was added after the run started. With `create_table` on, the error also lists any grant the sink could not make. * **`create_table requires warehouse_id`** means `create_table` is on without a warehouse. Set `warehouse_id` on the connection, or create the tables yourself and turn `create_table` off. * **`Schema comparison failed`** or **`field ... does not exist in Delta schema`** means the table is missing Filament's lineage columns (`_filament_run_id`, `_filament_run_started_at`, plus the three CDC columns for `cdc_append`) or a column's type or nullability does not match. Align the table with [Type mapping](#type-mapping), or enable `create_table`. * **`logical type "time" has no Delta equivalent`** needs the column remodeled, see [Type mapping](#type-mapping). * **Connector `databrickszerobus` not found** means the binary was built without cgo. Run the worker's `-libc` image, see [Runtime requirements](#runtime-requirements). # Google Cloud Storage sink connector Source: https://filament.getgalaxy.io/pages/connectors/sinks/gcs Write NDJSON, JSON, or Parquet objects to Google Cloud Storage with Filament, the open-source data movement engine. Connector ID `gcs` The Google Cloud Storage sink writes each resource as one NDJSON, JSON, or Parquet object per finite write. It uses the same versioned layout and success-manifest contract as the S3 sink. ## Configuration | Field | Scope | Default | Description | | - | - | - | - | | `bucket` | Connection | — | Required. Destination GCS bucket. | | `auth_method` | Connection | `application_default_credentials` | Uses the attached service account, GKE Workload Identity, or local ADC | | `prefix` | Pipeline | — | Root folder for the pipeline, with surrounding `/` trimmed | | `partition` | Pipeline | `dt={{.Date}}` | Folders between each resource and its files | | `file_format` | Pipeline | `ndjson` | `ndjson`, `jsonl`, `json`, or `parquet` | | `compression` | Pipeline | per format | `none` or `gzip` for JSON formats; `snappy` for Parquet | | `chunk_size_mib` | Pipeline | `16` | Resumable-upload chunk size in MiB, from 1 through 1024 | | `upload_concurrency` | Pipeline | `4` | Concurrent GCS operations across resources, from 1 through 32 | Authentication uses Google Application Default Credentials. On GKE, use Workload Identity; for local development, run `gcloud auth application-default login` before starting Filament. The sink does not require a project or region setting because a GCS bucket name is globally unique and the bucket already owns its location configuration. `TestConnection` reads bucket metadata. Runs require permission to create objects in the configured bucket. ## Object layout With prefix `local_pg`, resource `accounts`, and the default partition, a bounded run writes the following objects. ```text theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} local_pg/accounts/dt=2026-09-10/.parquet local_pg/_runs//_SUCCESS.json ``` The partition template supports `{{.Date}}`, `{{.StartedAt}}`, `{{.Resource}}`, and `{{.Run}}`. Bounded date values use the run's UTC start time. Continuous date values use each finite write's UTC start time, while `{{.Run}}` retains the logical run ID. Leave the partition empty to write objects directly under the resource directory. Continuous append creates a fresh sink per boundary and uses this layout. ```text theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} local_pg/accounts/dt=2026-09-10/.parquet local_pg/_runs///_SUCCESS.json ``` Each boundary has its own objects and manifest. The manifest retains the logical run ID. Continuous replace is not supported. The success manifest lists every resource's key, `gs://` URI, row count, byte count, and CRC32C. Consumers should treat `_SUCCESS.json` as the visibility boundary and ignore writes without it. ## Write mechanics and failure behavior Each resource is streamed through a GCS resumable writer. The client buffers one configured chunk per active resource and retries transient chunk failures. Objects are finalized during `Commit`; the success manifest is uploaded only after all resource writers close successfully. Parquet combines source batches into row groups of up to 65,536 rows instead of creating a group for every source transaction. Groups also rotate at an 8 MiB target for page data, checked between nonempty batches. A batch and pending page buffers can exceed this target. Parquet buffers one row group per active resource and flushes the last group at commit. `Abort` cancels unfinished resumable writers. If `Commit` fails after some resource objects have finalized, those objects can remain without a success manifest, matching the S3 sink's resource-level atomicity. See [Continuous streaming runs](/pages/guides/concepts/streaming) for boundary defaults, setup costs, and checkpoint recovery. A replay after publication can produce another append object with the same rows under a new write identity. ## Related guides * [Postgres to GCS replication guide](https://www.getgalaxy.io/articles/postgres-to-gcs-the-complete-replication-guide) # Iceberg Source: https://filament.getgalaxy.io/pages/connectors/sinks/iceberg Write Parquet data files to Apache Iceberg tables Connector ID `iceberg` The Iceberg sink writes Arrow batches as Parquet data files through a REST or [iceberg-go](https://github.com/apache/iceberg-go)-registered catalog. Rows remain staged until their resource commits. > [!WARNING] > > Atomicity is per resource, not per pipeline run. If a run moves several > resources, an earlier table can commit before a later table fails. Namespace, > table, and add-only schema changes can also become visible before data is > committed. Filament does not provide one exactly-once transaction across the > route. ## Configuration | Field | Scope | Default | Description | | - | - | - | - | | `catalog` | Connection | — | Required. Catalog connection object. See below. | | `catalog.provider` | Connection | — | Required. `generic`, `rest`, `polaris`, or `lakekeeper`. | | `table.location_root` | Connection | — | Optional object-storage root for new tables (e.g. `s3://bucket/warehouse`). Leave empty when the catalog assigns locations. | | `namespace` | Pipeline | `default` | Destination namespace, dot-separated | | `stage_buffer_limit_mb` | Pipeline | `256` | In-memory buffer threshold in MiB before spilling to temp files | A `namespace` left empty is defaulted server-side to the normalized source connection name. Per provider, inside `catalog`: | Provider | Fields | | - | - | | `generic` | `type` or `uri` (either is required). Optional `warehouse`, `properties`. | | `rest` | `uri` required. Optional `warehouse`, `auth`, `properties`. | | `polaris` | `uri` and `warehouse` required, plus `auth` | | `lakekeeper` | `uri` and `warehouse` required, plus `auth` | For `generic`, `type` is an iceberg-go catalog type (`sql`, `hive`, `glue`, …) and `properties` is free-form, passed to iceberg-go. For `polaris`, `uri` is the REST endpoint (typically ending `/api/catalog`) and `warehouse` is the catalog name in Polaris. For `lakekeeper`, `uri` ends in `/catalog`. REST-style providers share an `auth` object: | Field | Default | Description | | - | - | - | | `auth.type` | `none` | `none`, `bearer`, or `client_credentials` | | `auth.token` | — | Bearer token. Required for `bearer`. Secret. | | `auth.client_id` / `auth.client_secret` | — | Required for `client_credentials`. `client_secret` is secret. | | `auth.token_uri` | — | OAuth token endpoint. Empty uses the catalog's default. | | `auth.scope` | — | Optional OAuth scope (Polaris commonly uses `PRINCIPAL_ROLE:ALL`) | | `auth.audience` / `auth.resource` | — | Optional OAuth audience and resource indicators | Data files go to the table's storage via the catalog's FileIO. The `s3`/`s3a`/ `s3n`, `gs`, and `azure` schemes are supported. `TestConnection` loads the catalog and lists namespaces. ## Supported write modes The sink supports full replace, append, and upsert; incremental upsert and delete; and CDC append and merge. Incremental delete can hard-delete rows from Iceberg tables. See [replication modes](/pages/guides/concepts/replication-modes). ## Table management `EnsureSchema` creates the namespace and the table with `write.format.default=parquet`. For an existing table, evolution is **add-only**. New fields are appended to the schema, while type changes, nullability changes, and drops are never applied. A resource whose name collides with Iceberg's reserved metadata names gets a `_` suffix. ### Type mapping | Logical type | Iceberg type | | - | - | | `bool` | `boolean` | | `int16` / `int32` | `int` | | `int64` | `long` | | `float32` / `float64` | `float` / `double` | | `decimal` | `decimal(p,s)` (default 38,9) | | `string` / `json` | `string` | | `bytes` | `binary` | | `date` / `time` / `timestamp` / `timestamptz` / `uuid` | corresponding primitives | | `array` | `string` (source-native literal text) | | unknown | `string` | Primary key fields become the table's identifier fields. Array columns are written as their source's literal text. A table created by an older Filament version with a `list` column for the same source column must be recreated; commits fail on the type mismatch rather than rewriting the column. ## Write mechanics and atomicity The sink buffers each resource's Arrow batches and spills them to a compressed temporary file after `stage_buffer_limit_mb`. At commit, it writes the buffered rows to Parquet and updates the Iceberg table. `EnsureSchema` is outside the stage. It may create the namespace or table, or commit add-only schema evolution, before extraction begins. Those catalog changes can therefore be visible even if the later run fails. Buffering validates operations against the bound mode: * append rejects updates and deletes * replace rejects deletes * upsert, delete, and merge require key fields At commit, the sink converts batches to the table's Arrow schema and streams them to the Parquet writer. It reloads each table from the catalog first so it uses current storage credentials, then opens one Iceberg transaction: * **append** adds Arrow record batches in 8,192-row chunks. * **replace** overwrites the table with the run's records. A replace run that produced **zero records still overwrites the table to empty**. An empty source empties the destination. * **upsert, delete, and merge** keep the latest operation for each key, then update or delete matching rows. Buffered rows are invisible until their resource transaction commits. A run with several resources commits them sequentially, so a later resource can fail after an earlier one is already visible. Repeating `Commit` on the same open sink skips resources it already committed, but the engine does not provide one atomic transaction or exactly-once boundary across the route. ## Failure behavior `Abort` discards in-memory buffers and temporary spill files. It does not undo namespace/table creation, schema evolution from `EnsureSchema`, or any resource transaction that committed before a later resource failed. # Kafka sink connector Source: https://filament.getgalaxy.io/pages/connectors/sinks/kafka Publish acknowledged Kafka records in bounded runs and continuous epochs `connectors/kafka` registers the `kafka` source and sink. The sink publishes one Kafka record per input row. It supports bounded `full_append`, `incremental_append`, and `cdc_append`, and continuous append epochs. ## Configuration ```json theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} { "brokers": ["localhost:9092"], "topic_prefix": "warehouse", "format": "json", "key_field": "id", "publish_timeout": "30s", "max_in_flight": 1024, "max_in_flight_bytes": 16777216, "max_record_bytes": 1048576 } ``` The example routes resource `orders` to `warehouse.orders`. Provision destination topics before running. The connector disables automatic topic creation and validates metadata before publishing. Use either `topic` (one fixed destination) or `topic_prefix`, never both. Topic names are validated without sanitization. Connection settings are shared with the [Kafka source](/pages/connectors/sources/kafka): `brokers`, `client_id`, `tls_enabled`, `tls_ca_pem`, `tls_cert_pem`, `tls_key_pem`, `sasl_mechanism`, `sasl_username`, and secret `sasl_password`. PEM values are pasted directly and stored as secrets; no worker filesystem paths are supported. TLS uses system trust unless a custom CA is supplied. The SASL authentication dropdown shows username/password inputs only for PLAIN or SCRAM. See the [source configuration](/pages/connectors/sources/kafka) for details. TLS verifies certificates using system roots plus optional CA certificates. Client certificates and keys must be configured together. Supported SASL mechanisms are `PLAIN`, `SCRAM-SHA-256`, and `SCRAM-SHA-512`. | Pipeline field | Default | Meaning | | - | - | - | | `topic` / `topic_prefix` | Required alternative | Existing destination topic or resource prefix | | `format` | `json` | JSON rows or `message` envelope passthrough | | `key_field` | No key | String or binary column, JSON mode only | | `partition_field` | Automatic | Signed integer column selecting an existing partition; nulls rejected | | `delete_mode` | `record` | Append change record, or `tombstone` for null values on deletes | | `publish_timeout` | `30s` | Total Apply publication/metadata wait, at least 1s | | `max_in_flight` | `1024` | Outstanding records, 1–65,536 | | `max_in_flight_bytes` | 16 MiB | Outstanding encoded record bytes, maximum 1 GiB | | `max_record_bytes` | 1 MiB | Conservative uncompressed record/batch limit from 512 bytes to 100 MiB. Must fit outstanding limit | Keys use the pinned client's sticky key partitioner (Kafka-compatible murmur2 hashing for keys, sticky partition selection for null keys). Explicit partitions override this when `partition_field` is configured. Partition-count changes can move a key to another partition. No global or cross-attempt ordering is promised. ## Message formats JSON mode uses the shared JSON row encoder, including any envelope columns. It attaches `Content-Type: application/json`, `Filament-Operation`, and an optional `Filament-Event-Id`. Updates and deletes append history; they do not mutate past records. A string key is UTF-8; a binary key is copied without conversion. Kafka and NATS sources now decode JSON into top-level columns; use `format=json` for those rows. `format=message` is for explicitly supplied raw envelopes and does not reconstruct the original JSON bytes from decoded columns. Message mode requires the public `_filament_key`, `_filament_payload`, `_filament_headers`, and `_filament_event_ts` columns. It preserves null versus empty binary values, ordered duplicate headers, and timestamps at Kafka's millisecond precision. `key_field` is invalid in this mode. Filament operation and event-ID headers are added; input collisions with those reserved names fail before publication. This means passthrough of records already carrying those reserved headers requires an explicit transformation. With `delete_mode=tombstone`, delete operations produce a null value and require a nonnull key. An empty key is valid. Existing raw-envelope tombstones remain null. Compaction does not imply upsert support or immediate physical deletion. ## Durability and failures The producer requires `acks=all` with idempotence enabled. `Apply` waits for every record acknowledgment. Broker replication, minimum in-sync replicas, and retention settings determine the durability of acknowledged data. `Commit` confirms already acknowledged writes in either execution mode. `Close` releases the producer. The producer remains open across continuous write boundaries. Commit does not make a batch or epoch atomic. Aborting cannot retract accepted records. Continuous append accepts insert, update, and delete events without requiring a primary key or global source ordering. Tombstone output still requires a nonnull message key. Delivery is **at least once**. Producer idempotence protects transport retries; it does not deduplicate a replayed Filament batch or epoch. Event-ID headers are metadata for downstream consumers, not broker-enforced deduplication. A publish error poisons the session. Partial publication may remain visible. A lost acknowledgment or timeout conservatively leaves destination effects uncertain, and continuous closure reports an error. Closing a client does not prove that an already submitted broker request cannot take effect later. Local validation failures before publication can close cleanly. The sink does not provide owner fencing or a server-enforced bound on residual effects. The complete batch is encoded and locally validated before publication. Outstanding byte limits include key, value, headers, topic, and a framing allowance; the separately retained encoded batch is additional memory. Broker limits can still reject a record. Write receipts count value bytes and contain CRC32C over values in input order, excluding keys, headers, routing, and wire compression. Empty and null values both contribute zero checksum bytes. ## Tested profiles The connector integration suite tests Kafka **4.0.2** using single-broker plaintext fixtures. It checks both sink execution modes, partition routing, tombstones, source resume, retention loss, topic recreation, and live partition changes. TLS/SASL configuration has unit coverage; secured-cluster and multi-broker fault tests remain follow-up work. # Meilisearch sink connector Source: https://filament.getgalaxy.io/pages/connectors/sinks/meilisearch Write searchable documents to Meilisearch indexes with Filament, the open-source data movement engine. Connector ID `meilisearch` The Meilisearch sink writes each resource to a Meilisearch index, one document per row. Documents are sent as NDJSON and indexed by Meilisearch's asynchronous task queue. By default the run waits for those tasks at commit, so a successful run means the documents are searchable. ## Configuration | Field | Scope | Default | Description | | - | - | - | - | | `url` | Connection | — | Required. Server URL such as `http://localhost:7700`. A value without a scheme is treated as `http://`. | | `api_key` | Connection | — | Master key or an API key with index and document permissions. Secret. | | `index_prefix` | Pipeline | — | Prefix joined to each resource name to form the index UID | | `index` | Pipeline | — | Explicit index UID. Overrides the prefix and resource name. | | `primary_key` | Pipeline | derived | Document primary key attribute; see [primary key](#primary-key) | | `batch_size` | Pipeline | `10000` | Preferred maximum documents per request | | `gzip` | Pipeline | `true` | Compress request bodies with gzip | | `wait_for_tasks` | Pipeline | `true` | Wait for indexing tasks to finish at commit | | `task_timeout` | Pipeline | `60s` | Maximum time to wait for indexing tasks at commit | An `index_prefix` left empty is defaulted by the server to the normalized source connection name. `api_key` can be omitted for a development instance that runs without a master key. `TestConnection` calls `/health`. That endpoint does not require authentication, so a passing test proves the server is reachable but not that the key can create indexes or write documents. ## Supported write modes | Write mode | Behavior | | - | - | | `full_replace` | Clears the index, then adds the run's documents | | `full_append` | Adds or replaces documents by primary key | | `full_upsert` | Adds or replaces documents by primary key | | `incremental_upsert` | Adds or replaces documents by primary key | | `cdc_merge` | Applies deletes and add or replace writes in source order | | `cdc_append` | Adds or replaces documents by primary key | Every mode writes through Meilisearch's add or replace documents operation. A document whose primary key already exists is replaced in full, and a new key is added. See [replication modes](/pages/guides/concepts/replication-modes). > [!NOTE] > > `full_append` cannot keep duplicates, because Meilisearch holds one document > per primary key. A row whose key is already in the index replaces that > document. ## Index management `EnsureSchema` resolves one index per resource and creates it when missing. Existing indexes keep their settings. For `full_replace`, an existing index has all of its documents deleted once per run, before the run's first write. The index UID is `index` when set. Otherwise it is `index_prefix` and the resource name joined with `_`. Characters outside letters, digits, `-`, and `_` become `_`, and leading or trailing separators are trimmed. With prefix `local_pg`, the resource `public.accounts` writes to `local_pg_public_accounts`. > [!WARNING] > > `index` applies to the whole pipeline. With more than one resource selected, > every resource writes to that same index. Use `index_prefix` unless the > pipeline has a single resource. Meilisearch is schemaless, so there is no column evolution. New source fields appear as new document attributes. The sink does not manage searchable, filterable, or sortable attributes, ranking rules, or any other index setting. Configure those in Meilisearch. ### Primary key Meilisearch requires one primary key attribute per index. The sink resolves it in this order: 1. The primary key of an index that already exists 2. `primary_key` from the pipeline configuration 3. The source primary key, when it is a single field 4. The first field named `id`, ignoring case 5. The first field ending in `_id` or `Id` 6. The first field in the schema Composite source keys are not combined. A resource with a composite key falls through to the later rules, so set `primary_key` for it explicitly. Primary key values must satisfy Meilisearch's document id format of letters, digits, `-`, and `_`. ### Value encoding Documents carry source field names and JSON values. | Logical type | JSON value | | - | - | | `bool` | Boolean | | `int16` / `int32` / `int64` / `float32` / `float64` | Number | | `string` / `uuid` / `decimal` | String | | `bytes` | Base64 string | | `date` / `time` / `timestamp` / `timestamptz` | ISO 8601 string | | `json` / `array` | Embedded as JSON | ## Write mechanics and atomicity Each batch is encoded as NDJSON and sent in one request, gzip-compressed by default. Meilisearch accepts the request, returns a task, and indexes the documents in the background in queue order. For `cdc_merge`, a batch is sent as alternating delete and document requests that follow the order of its operations, so a key that is deleted and inserted again in one batch ends up present. A merge on a resource whose primary key is not in the schema is an error. At `Commit` the sink waits for every task from the run to succeed, up to `task_timeout`. A failed or canceled task fails the run with Meilisearch's error code and message. Malformed documents and invalid primary key values are reported here, not when the batch is sent, because Meilisearch validates them during indexing. With `wait_for_tasks` set to `false`, the run succeeds as soon as every request is accepted. Indexing continues after the run ends, and indexing errors are visible only in the Meilisearch task list. Documents become searchable as their tasks finish, so partial data is **visible mid-run**. There is no staging index and no swap. During a `full_replace` run the index is empty, then partial, until the run's tasks finish. ## Failure behavior `Abort` stops waiting on tasks and nothing else. Tasks already accepted by Meilisearch keep running, and documents already indexed stay in the index. A rerun converges through the primary key, because every write replaces the document with the same key. A failed `full_replace` run leaves the index cleared or partly loaded until the next successful run. A `task_timeout` expiry fails the run but does not cancel the tasks. Meilisearch may still finish them. Raise the timeout for large first loads, where indexing takes much longer than sending. # MotherDuck sink connector Source: https://filament.getgalaxy.io/pages/connectors/sinks/motherduck Write typed analytical tables to MotherDuck with Filament, the open-source data movement engine. Connector ID `motherduck` The MotherDuck sink uses DuckDB's native MotherDuck extension and bulk appender. It does not use the PostgreSQL wire endpoint. ## Configuration | Field | Scope | Default | Description | | - | - | - | - | | `token` | Connection | — | Required MotherDuck service token. Secret. | | `database` | Connection | — | Required destination MotherDuck database. It must already exist. | | `schema` | Pipeline | `main` | Destination schema. | The sink opens `md:` with the token as DuckDB's `motherduck_token` option and creates the configured schema if it does not exist. It also sets DuckDB's `custom_user_agent` option to `filament/` so MotherDuck can attribute connections to Filament. It prefers batches of 100,000 rows or 64 MiB. Use one sink connection per configured snapshot worker; a DuckDB connection is never shared between concurrent writes. ## Supported write modes | Write mode | Destination table | When data becomes visible | | - | - | - | | `full_replace` | Run-scoped staging table | At commit, per resource | | `full_append` | Live destination table | During the run | | `full_upsert` | Run-scoped staging table, then `ON CONFLICT` merge | At commit, per resource | | `incremental_upsert` | Run-scoped staging table, then `ON CONFLICT` merge | At commit, per resource | | `cdc_append` | Live destination table | During the run | Every table is fully qualified as `"database"."schema"."table"`. Replace promotes its staging table in a transaction. Upsert creates a primary key from the resolved write-policy keys and transactionally merges a keyless staging table on commit. An existing destination whose primary key does not match those keys, such as a table an earlier append run created, is refused when the run starts rather than migrated. Append writes directly to the destination. ## Type mapping | Logical type | DuckDB type | | - | - | | `bool` | `BOOLEAN` | | `int16` / `int32` / `int64` | `SMALLINT` / `INTEGER` / `BIGINT` | | `float32` / `float64` | `FLOAT` / `DOUBLE` | | `decimal` with precision 1–38 | `DECIMAL(p,s)` | | Unbounded `decimal`, `string`, `json`, `array`, unknown | `VARCHAR` | | `bytes` | `BLOB` | | `date` | `DATE` | | `time` | `TIME` | | `timestamp` | `TIMESTAMP` | | `timestamptz` | `TIMESTAMPTZ` | | `uuid` | `UUID` | New tables preserve source nullability with `NOT NULL`. Schema evolution is additive. DuckDB does not currently support constraints on `ADD COLUMN`, so a new non-null source field added to an existing destination is added without the constraint. ## Runtime requirements The sink links DuckDB natively, so it is available only in the worker's `-libc` image tag, which ships with the MotherDuck extension installed. The standalone binary and the CLI do not include it. ## Failure behavior `Abort` removes replace and upsert staging tables. It cannot undo append rows already flushed to a live table. The configured token is passed only as a DuckDB option and is never included in receipts or error context by Filament. # MySQL sink connector Source: https://filament.getgalaxy.io/pages/connectors/sinks/mysql Write typed tables to MySQL with Filament, the open-source data movement engine. Connector ID `mysql` `connectors/mysql/sink` (registered as `mysql`) loads each resource into its own typed MySQL table with native column types, primary keys, and `NOT NULL` constraints from the source schema. It requires MySQL 8.0 or newer. ## Configuration | Field | Scope | Default | Description | | - | - | - | - | | `connection_method` | Connection | `fields` | `fields` builds the DSN from the fields below. `url` uses `dsn` directly. | | `dsn` | Connection | — | MySQL URL or driver DSN. Required when `connection_method` is `url`. Secret. | | `host` | Connection | — | Server hostname. Required in `fields` mode. | | `port` | Connection | `3306` | Server port | | `username` | Connection | — | Required in `fields` mode | | `password` | Connection | — | Required in `fields` mode. Secret. | | `database_name` | Connection | — | Database to connect to. Required in `fields` mode. | | `tls_mode` | Connection | `preferred` | `false`, `preferred`, `true`, or `skip-verify` | | `database` | Pipeline | — | Destination database. Falls back to the database in the DSN. | | `mode` | Pipeline | `typed` | Destination table mode. `typed` is the only value. | | `schema_evolution` | Pipeline | `disabled` | `strict` blocks drift. `nullable_add` allows only nullable additions. | Filament must be able to resolve a destination database. If `database` is not set on the pipeline, it uses the database in the DSN or the normalized source connection name. > [!WARNING] > > The MySQL server must have `local_infile=ON`. Stock community installations > often disable it, while many managed services enable it. The sink cannot > load data when this setting is off. ## Loading Before reading from the source, Filament creates or updates one typed table per resource. It then sends each Arrow batch through `LOAD DATA LOCAL INFILE` as tab-separated values held in memory; no temporary file or JSON conversion is involved. MySQL can turn some load problems into warnings. After every load, Filament compares the accepted and submitted row counts and checks the session warnings. It fails the batch if rows were skipped or values were coerced. Binary columns arrive as their raw bytes; JSON columns pass through unchanged so nested structure survives the round trip. The sink pins its session to UTC, matching the source, so a same-engine `timestamp` column round-trips as the same instant. Filament creates the destination database if needed. The sink prefers batches of 4,096 rows. ## Supported write modes The sink advertises `full_replace`, `full_append`, `full_upsert`, `incremental_upsert`, `cdc_append`, and `cdc_merge`. See [replication modes](/pages/guides/concepts/replication-modes). They bind to three behaviors: * `full_replace` replaces the destination; `full_append` inserts without removing existing rows. * `full_upsert` and `incremental_upsert` insert with `LOAD DATA … REPLACE`, making re-runs and retries idempotent. * `cdc_append` retains every change as a history row. `cdc_merge` maintains current state: inserts and updates upsert, and deletes delete. ## Table management With `schema_evolution` disabled, `EnsureSchema` runs per resource before extraction. 1. `CREATE TABLE IF NOT EXISTS` with typed columns and a primary key. 2. `TRUNCATE` — only for replace. Append preserves existing rows; upsert and merge preserve resumable state. 3. Missing columns are added by checking `information_schema.columns` and issuing `ALTER TABLE … ADD COLUMN` for each absent one (MySQL has no `ADD COLUMN IF NOT EXISTS`). Evolution is add-only. Incompatible type changes are not applied and fail later if a write cannot cast the value. ### Checked schema evolution Set `schema_evolution` to `strict` or `nullable_add` to compare the complete source model with the destination before changing it. A new table can be created in either mode. Existing tables gain only nullable fields under `nullable_add`. Drops, type changes, key changes, and nullability changes block. The full diff must pass before any additions or replace-mode truncation. Checked mode supports ordinary InnoDB tables and compiler-owned scalar types. Text columns use `utf8mb4_bin`. Unsupported native declarations, column defaults, generated columns, auto-increment, other collations, partitions, triggers, and non-primary constraints block instead of being approximated. Each batch must match the prepared Arrow layout. The sink rechecks the destination under a metadata lock held through its write transaction. MySQL DDL commits separately from data writes. All approved additions use one `ALTER TABLE`, then the sink reacquires its table lock and verifies the result. If the run fails afterward, added columns can remain. A retry inspects the current table and only applies remaining additions. This does not provide PostgreSQL's transactional DDL rollback. Replace mode still clears rows after successful schema validation and retains its existing abort behavior. The destination account needs `LOCK TABLES` in addition to its existing DDL and write permissions. Schema detections and blocks use the shared event catalog. This option applies to bounded runs. The MySQL sink does not yet implement continuous epochs, so it cannot receive the live NATS evolution path. ### Type mapping | Logical type | MySQL type | | - | - | | `bool` | `tinyint(1)` | | `int16` / `int32` / `int64` | `smallint` / `int` / `bigint` | | `float32` / `float64` | `float` / `double` | | `decimal` | source-native type if the source is MySQL, else `decimal(38,9)` | | `string` | source-native type if the source is MySQL, else `longtext` | | `bytes` | `longblob` | | `date` / `time` | `date` / `time(6)` | | `timestamp` | `datetime(6)` | | `timestamptz` | `datetime(6)`, normalized to UTC | | `json` / `array` | `json` | | `uuid` | `char(36)` | `timestamptz` maps to `datetime(6)` rather than MySQL's `timestamp` because `timestamp` cannot represent values past 2038. Native types from other engines are ignored. Only MySQL-native declarations pass through. ## Atomicity and integrity Upserts use MySQL's `REPLACE` behavior. JSON values are converted to `utf8mb4` at the load boundary. The sink verifies the exact load payload before sending it and returns that encoded checksum with the Arrow batch checksum. This verifies serialization at the MySQL write boundary; it does not read the committed table back. CDC batches are split into runs of consecutive deletes and non-deletes, applied in arrival order in **one transaction per batch**. Deletes use a multi-table `DELETE` joined against a per-session temporary table containing the run's keys. Non-CDC batches commit as they are applied, so partial data is visible mid-run. Delivery is at-least-once, and upsert and merge modes converge through the primary key. ## Failure behavior On a failed run, `Abort` truncates replace tables. Append tables retain rows already written, so retrying a non-checkpointed append as a new run can produce duplicates. Upsert and merge tables are preserved because retries converge through the primary key; resumable extraction failures skip `Abort` entirely. # NATS JetStream sink connector Source: https://filament.getgalaxy.io/pages/connectors/sinks/nats Publish acknowledged JSON messages in bounded runs or continuous epochs Connector ID `nats` `connectors/nats` registers the `nats` sink. It publishes one JSON message per input row to an existing JetStream stream. Both bounded runs and continuous execution use the same bounded asynchronous publisher. Each record remains an individual NATS message. ## Configuration | Field | Scope | Required | Description | | - | - | - | - | | `url` | Connection | Yes | NATS server URL; use `tls://` for TLS | | `auth_mode` | Connection | No | `none` (default), `user_password`, `jwt`, or `token`; shows only the selected method’s fields | | `username` | Connection | No | Username; supply with `password` | | `password` | Connection | No | Secret password; supply with `username` | | `jwt` | Connection | No | Secret NATS user JWT; supply with `nkey_seed` | | `nkey_seed` | Connection | No | Secret private user NKey seed matching the JWT | | `token` | Connection | No | Secret authentication token | | `stream` | Pipeline | Yes | Destination stream name: letters, digits, `-` and `_`, no dots. `{resource}` expands to the destination resource name | | `subject` | Pipeline | Yes | Publish subject. `{resource}` expands to the destination resource name | | `create_stream` | Pipeline | No | Create a missing stream; default `true` | | `publish_timeout` | Pipeline | No | Positive duration from each publish submission to its acknowledgment; default `5s` | | `max_in_flight` | Pipeline | No | Maximum outstanding messages, from 1 through 65,536; default `1024` | | `max_in_flight_bytes` | Pipeline | No | Maximum outstanding message bytes; positive integer, default `16777216` (16 MiB) | Source and sink connections share these authentication settings. Choose only one method: username/password, JWT/NKey seed, or token. Select `none` for an unauthenticated server. Selected authentication fields are required. An omitted `auth_mode` means no authentication; credentials require an explicit mode. JWT authentication uses the seed to sign the server challenge; a JWT alone is insufficient. Username/password and JWT/seed require no files mounted on workers. Passwords, JWTs, seeds, and tokens use Filament’s secret storage. Both `stream` and `subject` are templates. The `{resource}` placeholder, or its Go template spelling `{{resource}}`, is replaced with the destination resource name, so one configuration can route every resource to its own subject, or its own stream, or both: | `stream` | `subject` | Resource `orders` publishes to | | - | - | - | | `EVENTS` | `events.{resource}` | `events.orders` in `EVENTS` | | `EVENTS` | `events.all` | `events.all` in `EVENTS` | | `{resource}` | `{resource}.v1` | `orders.v1` in `orders` | For example, provision a stream named `WAREHOUSE_EVENTS` capturing `warehouse.>`, then configure: ```json theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} { "url": "nats://localhost:4222", "stream": "WAREHOUSE_EVENTS", "subject": "warehouse.{resource}", "publish_timeout": "5s", "max_in_flight": 1024, "max_in_flight_bytes": 16777216 } ``` Expanded subjects must be concrete: wildcards, whitespace, and empty subject tokens are rejected, and stream names cannot contain dots or wildcards. Resource names are not sanitized. Use destination resource mapping when source names are unsuitable for NATS subjects or stream names. With `create_stream` enabled, a missing stream is created with file storage, server defaults for retention and limits, and one subject filter derived from the subject template: `events.{resource}` yields `events.>`, `{resource}.events` yields `*.events`, a fixed subject yields itself, and a per-resource stream captures that resource's exact subject. A shared stream with the bare subject `{resource}` would create `>`, overlapping JetStream API traffic, so automatic creation rejects it. Use a literal prefix such as `filament.{resource}`. Do not enable `no_ack`: this sink requires publish acknowledgments. Anything beyond that, such as retention or replicas, belongs in server-side stream management. Disable creation on production pipelines where streams are provisioned deliberately. The sink never modifies an existing stream. It must enable publish acknowledgments and its subject filter must capture the expanded subject. A shared stream is checked at open using `*` for the resource, before any write. A per-resource stream is resolved when that resource's first batch is routed, and a missing or non-capturing stream fails the batch before any message is sent. Note that a filter of `events.>` matches `events.orders` but not the bare subject `events`. Each publish carries `Nats-Expected-Stream`, so a subject routed to another stream fails rather than silently writing there. Workers need permission to inspect the stream, publish to its subjects, and receive publish acknowledgments. Connection testing also requires JetStream account-info access. ## Write modes and message format Supported bounded ingestion types are `full_append`, `incremental_append`, and `cdc_append`. Continuous execution supports append for rows, messages, and change events. Replace, upsert, merge, and destination deletion are unsupported. Each message body is a JSON object containing the Arrow row's columns, without a trailing newline. The shared JSON encoder renders bytes as base64 and temporal values as text. Every message has: * `Content-Type: application/json` * `Filament-Operation: insert`, `update`, or `delete` Updates and deletes append change-history messages; they do not modify previous messages. Message-source envelope columns remain in the JSON object. Raw payload and header passthrough are not implemented. The sink validates and serializes the complete batch before publishing. Messages exceeding the configured stream or server size limit fail; they are not split. Within each `Apply`, messages are submitted in row order over one reused connection. The publisher pauses whenever either outstanding limit is reached. SDK acknowledgment callbacks can arrive in any order and release capacity for more messages. Shared completion tracking avoids one waiting goroutine per message. `Apply` waits for every acknowledgment before returning success. Set `max_in_flight` to `1` for sequential publication. The byte limit includes encoded payloads, headers, and subjects, excluding reply subjects and protocol framing. An individual message must fit within this limit; otherwise the entire batch is rejected before any messages are sent. The limit bounds outstanding publications, not total process memory: the complete encoded batch is also held until `Apply` returns. Use the run's `BatchMaxRows` and `BatchMaxBytes` options to control input batch size; these do not combine records into a single NATS message. Concurrent `Apply` calls remain serialized, so the configured limits apply to the whole sink session. No global ordering is promised for concurrently produced batches. Raw-message aggregation and connection pooling are not required for asynchronous publication and are not implemented. ## Durability, replay, and failures `Apply` succeeds only after JetStream acknowledges every message. Durability therefore follows successful `Apply`, using the destination stream's configured storage, replication, and retention settings. `Commit` confirms acknowledged writes in either execution mode. Continuous writes reuse the open session. `Close` releases it. Continuous append accepts insert, update, and delete events without requiring a primary key or global source ordering. Continuous source progress advances through Filament's normal epoch certification flow, after destination success. Messages become visible individually. Neither batches nor epochs are atomic. An abort stops work and clears local accounting; it never deletes acknowledged messages. If a batch fails partway through, any accepted messages remain visible, including messages submitted after the one whose acknowledgment failed. When a row includes a nonempty `_filament_event_id`, the sink derives a stable `Nats-Msg-Id` from the event ID, tenant, pipeline, sink connection, stream, subject, and destination resource. The ID remains stable across attempts and rebatching. Duplicate acknowledgments count as successfully handled input rows. Rows without event IDs are published without deduplication IDs. Delivery is **at least once**. JetStream duplicate suppression lasts only for the stream's configured duplicate window. Retries outside that window, or retries of ordinary rows without event IDs, can produce duplicates. Reusing an event ID for different content can suppress the later publication. A lost acknowledgment leaves the write outcome uncertain. The sink stops publishing, rejects the epoch commit, and reports unproven destination quiescence on session closure. Local failures before publication can close cleanly. An epoch still active at closure is dropped like an abort. `Abort` does not retract acknowledged messages. `Close` stops submissions, closes the connection, detaches completion tracking, and cleans up SDK publications before returning. Late callbacks cannot complete or fail a subsequent batch. It does not reconnect or retry publishes in the background. It advertises no destination owner fencing, isolated epochs, or server-enforced bound on residual effects; uncertain shutdown follows Filament's conservative attempt recovery path. Write receipts report payload bytes and an encoded CRC32C over concatenated JSON message bodies. This integrity evidence excludes NATS headers and protocol framing. # PostgreSQL sink connector Source: https://filament.getgalaxy.io/pages/connectors/sinks/postgres Write typed tables to PostgreSQL with Filament, the open-source data movement engine. Connector ID `postgres` `connectors/postgres/sink` (registered as `postgres`) loads each resource into its own typed PostgreSQL table. Native column types are derived from the source schema, and primary keys and `NOT NULL` constraints are preserved. It supports snapshot, incremental, and CDC pipelines against the same destination tables. ## Configuration | Field | Scope | Default | Description | | - | - | - | - | | `connection_method` | Connection | `fields` | `fields` builds the DSN from the fields below. `url` uses `dsn` directly. | | `dsn` | Connection | — | PostgreSQL connection URL. Required when `connection_method` is `url`. Secret. | | `host` | Connection | — | Server hostname. Required in `fields` mode. | | `port` | Connection | `5432` | Server port | | `username` | Connection | — | Required in `fields` mode | | `password` | Connection | — | Required in `fields` mode. Secret. | | `database_name` | Connection | — | Database to connect to. Required in `fields` mode. | | `ssl_mode` | Connection | `prefer` | TLS verification: `disable`, `allow`, `prefer`, `require`, `verify-ca`, `verify-full` | | `schema` | Pipeline | `public` | Destination schema | | `mode` | Pipeline | `typed` | Destination table mode. `typed` is the only value. | | `schema_evolution` | Pipeline | `disabled` | Use `strict` to block schema differences or `nullable_add` to permit nullable column additions. | A `schema` left empty is defaulted by the server to the normalized source connection name. `Open` sizes a pgx pool to at least the run's snapshot parallelism and runs `CREATE SCHEMA IF NOT EXISTS` for the destination schema. ## Supported write modes The sink advertises `full_replace`, `full_append`, `full_upsert`, `incremental_upsert`, `cdc_append`, and `cdc_merge`. See [replication modes](/pages/guides/concepts/replication-modes) for how the planner picks one. They bind to three write behaviors: * `full_replace` replaces the destination; `full_append` inserts without removing existing rows. * `full_upsert` and `incremental_upsert` insert with `ON CONFLICT (pk) DO UPDATE` (`DO NOTHING` when the row is PK-only), so re-runs and retries are idempotent. * `cdc_append` retains every change as a history row. `cdc_merge` maintains current state: inserts and updates upsert, and deletes delete. ## Table management With `schema_evolution` disabled, `EnsureSchema` runs per resource before extraction. 1. `CREATE TABLE IF NOT EXISTS` with columns from the source schema, a primary key from the source's key fields, and `NOT NULL` from field nullability. 2. `TRUNCATE` — only for replace. Append preserves existing rows; upsert and merge preserve resumable state. 3. `ADD COLUMN IF NOT EXISTS` for each column, so new source fields appear on existing tables. Evolution is add-only. Type changes, dropped columns, and nullability changes are not applied. An incompatible type change fails later when a write cannot cast the value. ### Schema drift rules Enable `strict` or `nullable_add` to compare the complete requested schema with the actual destination table before writing. Both policies create missing tables. For existing tables, `strict` blocks differences and `nullable_add` permits only new nullable columns. Type, nullability, primary key, and removed field changes block with `schema_blocked`. Renames are treated as a removal and an addition. Column order may differ because writes name columns explicitly. The sink checks the entire diff before making changes. Permitted additions, verification, and any replace-mode truncation share one PostgreSQL transaction. A rejected diff leaves that table and its rows unchanged. Reconciliation is per table, so earlier tables in a multi-resource run may already have been prepared. A retry inspects the actual table again and skips additions already committed. Each bounded write transaction and continuous epoch rechecks the prepared schema under a table lock held through commit or rollback. A change made after startup therefore blocks before the affected write. These checks add catalog queries and can wait for concurrent DDL. Sources with complete schemas reconcile before extraction. NATS instead probes each buffered epoch before encoding rows. With `nullable_add`, newly observed payload fields become nullable columns. Missing fields remain in the accepted layout and produce nulls. With `strict`, the initial batch establishes the layout and subsequent additions block. For NATS, additions and that epoch's data writes share the same destination transaction. Accepted decoder layouts are saved with the epoch checkpoint before acknowledgement. Restarts restore those layouts instead of inferring them again. Older streams without saved layouts require a new stream generation to enable this feature. Other message sources retain their existing inference behavior. This does not make destination commits and checkpoint commits atomic together. The existing recovery rules for uncertain destination commits still apply. Checked schemas currently support the portable scalar mappings below, including decimal precision and scale. Unsupported native modifiers, arrays, custom types, identity or generated columns, custom collations, partitioning, inheritance, row security, and user triggers block. These restrictions apply only when a schema policy is enabled. A continuous schema block suppresses automatic retries using the persisted attempt reason. After resolving the issue, pause and resume to request another assessment. Existing ownership and clean-shutdown checks still apply. Bounded runs report the schema error through their normal failure path. ### Type mapping | Logical type | PostgreSQL type | | - | - | | `bool` | `boolean` | | `int16` / `int32` / `int64` | `smallint` / `integer` / `bigint` | | `float32` / `float64` | `real` / `double precision` | | `decimal` | source-native type if provided, else `numeric` | | `string` | `text` | | `bytes` | `bytea` | | `date` / `time` | `date` / `time` | | `timestamp` / `timestamptz` | `timestamp` / `timestamptz` | | `json` | `jsonb` | | `uuid` | `uuid` | | `array` | source-native type if provided, else `text[]` | | unknown | source-native type if provided, else `text` | ## Write mechanics and atomicity Rows are encoded into PostgreSQL's binary `COPY` format directly from the Arrow columns. Replace and append batches copy into the destination table. Upserts copy into a per-connection temporary table and merge into the destination with `ON CONFLICT`, inside one transaction. For bounded runs, CDC merge batches are split into consecutive delete and non-delete ranges and applied in arrival order inside **one transaction per batch**. Each range is copied to a temporary row or key table before its upsert or delete statement. A merge against a keyless resource is an error. Before sending a COPY payload, the sink verifies a CRC embedded in its encoded form. It returns that checksum as `EncodedCRC` alongside the Arrow batch checksum, so the engine records both the in-memory handoff and PostgreSQL serialization boundaries. This is not a query that reads committed rows back from the table. Bounded runs commit batches as they are applied, so partial data can be visible mid-run. `Commit` confirms those durable writes and `Close` releases the pool. There is no end-of-run atomic swap. Continuous planning prefers the sink's commit-durable append, upsert, and merge policies. One `Begin` opens the write transaction, all batches use that transaction, and `Commit` makes them durable together. The pool stays open for the next boundary. The runner then saves the epoch certificate before acknowledging the source. Existing saved policies retain their declared durability when the sink still supports that exact policy. ## Failure behavior A failed transactional write rolls back its pending rows and transactional schema changes. Earlier committed boundaries remain visible. A confirmed rollback can establish clean shutdown. An uncertain commit response or failed rollback can block automatic restart. For bounded writes, `Abort` clears only non-resumable replace tables. Append, upsert, and merge tables retain durable rows. Cleanup attempts every eligible table and reports all failures. Delivery remains at least once. A crash after destination commit but before certificate persistence can cause replay. Append can duplicate rows in that case. Upsert and merge use primary keys to converge when replayed. ## Related guides * [MySQL to Postgres migration and replication](https://www.getgalaxy.io/articles/mysql-to-postgres-migration-and-replication-guide) * [Zero-downtime Postgres migration, step by step](https://www.getgalaxy.io/articles/zero-downtime-postgres-migration-step-by-step) # Amazon Redshift sink connector Source: https://filament.getgalaxy.io/pages/connectors/sinks/redshift Write typed analytical tables to Amazon Redshift with Filament, the open-source data movement engine. Connector ID `redshift` The Amazon Redshift sink writes each resource to a typed Redshift table. It supports snapshot, incremental, and CDC pipelines on provisioned clusters and Redshift Serverless workgroups. Batches are encoded as Parquet, staged in a user-provided S3 bucket, and loaded with Redshift `COPY` manifests. ## Redshift setup The connector does not have a provisioned/Serverless switch. Supply the provisioned cluster endpoint or Serverless workgroup endpoint as `host`; both use the same PostgreSQL-compatible connection. The default port is `5439`. The security group associated with the cluster or workgroup must allow inbound traffic from the Filament worker on the configured port. See AWS's [Redshift network configuration guide](https://docs.aws.amazon.com/redshift/latest/mgmt/rs-security-group-public-private.html). Filament currently connects with a Redshift database username and password. The user needs permission to create and use the destination schema, create temporary tables, and create and alter destination tables. A dedicated schema owned by the Filament user is the simplest setup. Pre-existing destination tables must also allow the user to insert and delete rows. ### S3 load staging Create a private, general-purpose S3 bucket in the same AWS Region as the Redshift cluster or Serverless workgroup. Loading requires two distinct AWS identities: * The **Filament worker identity** uses the AWS SDK default credential chain. It needs `s3:ListBucket` on the bucket and `s3:PutObject` plus `s3:DeleteObject` under the configured staging prefix. * The **Redshift associated IAM role** needs `s3:ListBucket` and `s3:GetObject` for the same bucket and prefix. Associate the role with the provisioned cluster or Serverless namespace before using it for `COPY`. AWS documents role creation and association in [Authorizing Amazon Redshift to access AWS services](https://docs.aws.amazon.com/redshift/latest/mgmt/authorizing-redshift-service.html). Set **Associated IAM Role** to `default` when the S3-read role is Redshift's default role, or provide its full ARN. If role use is restricted by database user, grant the Filament user `ASSUMEROLE` permission for `COPY`. > [!NOTE] > > The worker identity uploads and deletes staged objects; the associated Redshift > role reads them. Granting S3 access to only one identity is not sufficient. The default object prefix is `filament/load-staging`. Filament appends the pipeline ID and run-scoped hashes to prevent pipelines and runs from sharing objects: ```text theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} s3:///filament/load-staging//redshift///... ``` The sink deletes staged objects after each batch on a best-effort basis. An S3 lifecycle rule on the staging prefix is recommended as a fallback. If the bucket uses SSE-KMS with a customer-managed key, the worker must be able to write with that key and the associated Redshift role must be able to decrypt it. Connection validation checks the SQL endpoint. The staging bucket is checked when a run opens on the worker because the API server and worker can use different AWS identities. ## Configuration | Field | Scope | Default | Description | | - | - | - | - | | `connection_method` | Connection | `fields` | `fields` builds the PostgreSQL connection URL from the fields below. `url` uses `dsn` directly. | | `dsn` | Connection | — | Redshift connection URL. Required when `connection_method` is `url`. Secret. | | `host` | Connection | — | Provisioned cluster or Serverless workgroup endpoint. Required in `fields` mode. | | `port` | Connection | `5439` | Redshift database port. | | `username` | Connection | — | Redshift database user. Required in `fields` mode. | | `password` | Connection | — | Redshift database password. Required in `fields` mode. Secret. | | `database_name` | Connection | — | Destination database. Required in `fields` mode. | | `ssl_mode` | Connection | `verify-full` | `disable`, `require`, `verify-ca`, or `verify-full`. | | `schema_name` | Connection | `public` | Default destination schema when the pipeline has no override. | | `staging_bucket` | Connection | — | Required S3 bucket name for transient Parquet files and manifests. Do not include `s3://` or a path. | | `staging_bucket_region` | Connection | AWS SDK Region | Region of both the bucket and Redshift. Required when the worker environment does not provide an AWS Region. | | `associated_iam_role` | Connection | `default` | Role Redshift assumes for `COPY`: `default` or a full role ARN associated with the cluster or namespace. | | `schema` | Pipeline | `public` | Destination schema. Empty falls back to `schema_name`. | | `staging_prefix` | Pipeline | `filament/load-staging` | Base S3 key prefix. The pipeline ID is appended automatically. | The sink prefers batches no larger than 100,000 rows or approximately 256 MiB, whichever limit is reached first. ## Supported write modes The sink advertises `full_replace`, `full_append`, `full_upsert`, `incremental_append`, `incremental_upsert`, `incremental_delete`, `cdc_append`, and `cdc_merge`. See [replication modes](/pages/guides/concepts/replication-modes). * Replace loads a run-scoped replacement table and promotes it at commit. * Append adds each batch directly to the destination. * Upsert, delete, and merge fold repeated keys to their final operation, delete matching destination keys, and insert surviving rows in one transaction. These modes require a primary key. ## Table management Before extraction, `EnsureSchema` runs per resource: 1. Create the destination schema and typed table if they do not exist. 2. Inspect `information_schema.columns` and add missing columns. 3. For replace, create an empty run-scoped replacement table. Schema evolution is add-only. Existing columns are not dropped, renamed, or altered. Redshift primary-key constraints are informational; Filament uses the key fields itself when applying upserts, deletes, and CDC merges. Every Filament-created permanent table uses `DISTSTYLE AUTO`, `SORTKEY AUTO`, and `ENCODE AUTO`, allowing Redshift to evolve distribution, sorting, and compression based on the workload. See AWS's [automatic table optimization](https://docs.aws.amazon.com/redshift/latest/dg/t_Creating_tables.html) documentation. ### Type mapping | Logical type | Redshift type | | - | - | | `bool` | `BOOLEAN` | | `int16` / `int32` / `int64` | `SMALLINT` / `INTEGER` / `BIGINT` | | `float32` / `float64` | `REAL` / `DOUBLE PRECISION` | | `decimal` | `DECIMAL(p,s)` when precision is valid and at most 38; otherwise `VARCHAR(MAX)` | | `string` / `array` / unknown | `VARCHAR(MAX)` | | `bytes` | `VARBYTE(16777216)` | | `date` | `DATE` | | `time` | `TIME` | | `timestamp` | `TIMESTAMP` | | `timestamptz` | `TIMESTAMPTZ` | | `json` | `SUPER` | | `uuid` | `VARCHAR(36)` | ## Write mechanics and atomicity Each Arrow batch is encoded as Snappy-compressed Parquet files. The file count is based on approximately 64 MiB of unencoded input per file and, when the row count permits, rounded up to a multiple of eight for parallel `COPY` work. Each manifest contains at most 128 Parquet files. Larger batches produce multiple manifests, which are copied sequentially into the same temporary table and transaction. This is a per-manifest boundary, not a row or run limit; large initial syncs continue across normal engine batches. The sink verifies S3 uploads with CRC32C, compares the loaded row count with the submitted batch, and returns an encoded checksum in the write receipt. The temporary load table, destination mutation, and replay token commit in one Redshift transaction. Append and keyed writes become visible per batch; no transaction covers an entire run. Replace batches remain in a replacement table until `Commit`, which locks, clears, and refills the live table in one transaction per resource. Multiple resources are promoted independently. A replay ledger named `_filament_load_batches` prevents the same batch from being applied twice. Reusing a replay token with different content is treated as an integrity error. ## Failure behavior A failed append run can leave earlier committed batches in the destination, but retrying the same run does not duplicate them. Upsert, delete, and merge retries converge through both the replay ledger and primary key. A failed replace leaves the previous destination rows intact. `Abort` drops the run-scoped replacement table and its replay entries. Additive schema changes made before the failure remain in place. ## Troubleshooting * A connection timeout usually means the Redshift endpoint is not reachable from the worker or its associated security group does not allow the database port. * `access bucket` means the worker identity cannot inspect the configured bucket. Check the bucket name, Region, bucket policy, and `s3:ListBucket`. * S3 upload or cleanup errors require `s3:PutObject` and `s3:DeleteObject` on the configured staging prefix for the worker identity. * A `COPY manifest` access error concerns the associated Redshift role, not the worker role. Confirm its `s3:GetObject` access and its association with the cluster or namespace. * Region errors require the staging bucket and Redshift deployment to use the same AWS Region. # Snowflake sink connector Source: https://filament.getgalaxy.io/pages/connectors/sinks/snowflake Write typed analytical tables to Snowflake with Filament, the open-source data movement engine. Connector ID `snowflake` The Snowflake sink writes each resource to a typed Snowflake table. It supports snapshot, incremental, and CDC pipelines using Parquet files staged through the Snowflake user's internal stage. ## Snowflake setup Key-pair authentication is the recommended setup for the dedicated Filament service user. Filament currently accepts an unencrypted RSA private key in PKCS#8 or PKCS#1 PEM format. ### 1. Generate a key pair From a secure local directory, generate a 2048-bit RSA private key and its public key: ```bash theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} cd ~/.ssh openssl genrsa 2048 | openssl pkcs8 -topk8 -inform PEM -out snowflake_filament_snow_key.p8 -nocrypt openssl rsa -in snowflake_filament_snow_key.p8 -pubout -out snowflake_filament_snow_key.pub chmod 600 snowflake_filament_snow_key.p8 ``` The private key is a secret. Do not commit it or send it to Snowflake. Snowflake receives only the public key. Print the public-key body without the PEM delimiters or line breaks: ```bash theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} grep -v '^-----' snowflake_filament_snow_key.pub | tr -d '\n' ``` Copy that output for `` in the SQL below. See Snowflake's [key-pair authentication guide](https://docs.snowflake.com/en/user-guide/key-pair-auth) for key rotation and fingerprint verification. ### 2. Create the role, warehouse, database, and service user Run the following as an account administrator. Change the uppercase object names if your organization uses different names. ```sql theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} -- Create the Filament role and place it beneath SYSADMIN. USE ROLE SECURITYADMIN; CREATE ROLE IF NOT EXISTS FILAMENT_ROLE; GRANT ROLE FILAMENT_ROLE TO ROLE SYSADMIN; -- Create the destination warehouse and database as SYSADMIN. USE ROLE SYSADMIN; CREATE WAREHOUSE IF NOT EXISTS FILAMENT_WAREHOUSE WAREHOUSE_SIZE = XSMALL WAREHOUSE_TYPE = STANDARD AUTO_SUSPEND = 60 AUTO_RESUME = TRUE INITIALLY_SUSPENDED = TRUE; CREATE DATABASE IF NOT EXISTS FILAMENT_DATABASE; GRANT USAGE ON WAREHOUSE FILAMENT_WAREHOUSE TO ROLE FILAMENT_ROLE; GRANT USAGE, CREATE SCHEMA ON DATABASE FILAMENT_DATABASE TO ROLE FILAMENT_ROLE; -- PUBLIC already exists. These grants allow it to be selected as the -- destination and allow Filament to create tables there. GRANT USAGE, CREATE TABLE ON SCHEMA FILAMENT_DATABASE.PUBLIC TO ROLE FILAMENT_ROLE; -- Create the non-interactive user and assign the public key. USE ROLE SECURITYADMIN; CREATE USER IF NOT EXISTS FILAMENT_USER TYPE = SERVICE DEFAULT_ROLE = FILAMENT_ROLE DEFAULT_WAREHOUSE = FILAMENT_WAREHOUSE; GRANT ROLE FILAMENT_ROLE TO USER FILAMENT_USER; ALTER USER FILAMENT_USER SET BINARY_INPUT_FORMAT = 'BASE64'; ALTER USER FILAMENT_USER SET TIMESTAMP_INPUT_FORMAT = 'AUTO'; ALTER USER FILAMENT_USER SET RSA_PUBLIC_KEY = ''; ``` Filament runs `CREATE SCHEMA IF NOT EXISTS` for the pipeline destination. A schema created by `FILAMENT_ROLE` is owned by that role, so it can create and evolve tables inside it. When targeting a pre-existing schema, grant at least `USAGE` and `CREATE TABLE` on that schema. Pre-existing destination tables must also permit the role to insert, update, delete, truncate, and add columns; using a Filament-owned schema avoids managing those table grants individually. ### 3. Configure the connection Use these values when creating the Snowflake connection in Filament: | Field | Value | | - | - | | Account | The Snowflake account identifier in `organization-account` form | | Username | `FILAMENT_USER` | | Warehouse | `FILAMENT_WAREHOUSE` | | Database Name | `FILAMENT_DATABASE` | | Schema Name | `PUBLIC`, or another default schema | | Role | `FILAMENT_ROLE` | | Auth Type | `Key pair` | | Private Key | The complete contents of `snowflake_filament_snow_key.p8`, including the `BEGIN PRIVATE KEY` and `END PRIVATE KEY` lines | On macOS, `pbcopy < snowflake_filament_snow_key.p8` copies the complete private key while preserving its line breaks. Paste it directly into the Private Key field and validate the connection. Fields-mode connections support key-pair authentication and Snowflake programmatic access tokens. Password authentication is not exposed; Snowflake `SERVICE` users are intended for non-interactive authentication. ## Configuration | Field | Scope | Default | Description | | - | - | - | - | | `connection_method` | Connection | `fields` | `fields` builds the driver configuration from the fields below. `url` uses `dsn` directly. | | `dsn` | Connection | — | Snowflake connection string. Required when `connection_method` is `url`. Secret. | | `account` | Connection | — | Account identifier in `organization-account` form. Required in `fields` mode. | | `username` | Connection | — | Snowflake service user. Required in `fields` mode. | | `warehouse` | Connection | — | Virtual warehouse used for loading. Required in `fields` mode. | | `database_name` | Connection | — | Destination database. Required in `fields` mode. | | `schema_name` | Connection | `PUBLIC` | Default schema used when testing the connection and when no pipeline override is supplied. | | `role` | Connection | — | Optional Snowflake role. | | `auth.type` | Connection | `key_pair` | `key_pair` or `pat`. | | `auth.private_key` | Connection | — | Complete unencrypted RSA private-key PEM. Required for `key_pair`. Secret. | | `auth.token` | Connection | — | Snowflake programmatic access token. Required for `pat`. Secret. | | `schema` | Pipeline | `PUBLIC` | Destination schema. | The sink prefers batches no larger than 100,000 rows or approximately 256 MiB, whichever limit is reached first. ## Supported write modes The sink advertises `full_replace`, `full_append`, `full_upsert`, `incremental_append`, `incremental_upsert`, `incremental_delete`, `cdc_append`, and `cdc_merge`. See [replication modes](/pages/guides/concepts/replication-modes). * Replace truncates the destination before loading the snapshot. * Append copies each batch directly into the destination. * Upsert, delete, and merge load each batch into a temporary table and execute one Snowflake `MERGE`. These modes require a primary key. ## Table management Before extraction, `EnsureSchema` runs per resource: 1. Create the destination schema and typed table if they do not exist. 2. Truncate the table when the selected mode is replace. 3. Inspect `INFORMATION_SCHEMA.COLUMNS` and add missing columns with `ADD COLUMN IF NOT EXISTS`. Schema evolution is add-only. Existing columns are not dropped, renamed, or altered. Primary-key constraints are informational in Snowflake, but Filament uses the key columns to build deterministic merge conditions. ### Type mapping | Logical type | Snowflake type | | - | - | | `bool` | `BOOLEAN` | | `int16` / `int32` / `int64` | `NUMBER(38,0)` | | `float32` / `float64` | `FLOAT` | | `decimal` | `NUMBER(p,s)` when precision is valid and at most 38; otherwise `TEXT` | | `string` / `array` / `uuid` / unknown | `TEXT` | | `bytes` | `BINARY` | | `date` | `DATE` | | `time` | `TIME(6)` | | `timestamp` | `TIMESTAMP_NTZ(6)` | | `timestamptz` | `TIMESTAMP_TZ(6)` | | `json` | `VARIANT` | ## Write mechanics and atomicity Each Arrow batch is encoded as a Snappy-compressed Parquet file in memory. The sink uploads it with `PUT` to a run-scoped path under the user's `@~` stage, loads it with `COPY INTO`, and removes the staged object. No external storage integration is required. Append and replace copy into the live destination. Key-based modes create a session-local temporary table, load the batch there, reduce repeated keys to their final operation, and apply the result with one `MERGE` transaction. Writes become visible per batch; there is no transaction covering an entire pipeline run. The sink verifies the encoded Parquet checksum before returning the write receipt. This validates the serialization boundary but does not query the committed table back from Snowflake. ## Failure behavior An append run can leave successfully loaded batches in the destination after a later failure. Upsert, delete, and merge runs can also leave completed batch merges, but retries converge through the primary key. Replace truncates before loading, and `Abort` truncates the replacement tables again, so a failed replace leaves those destinations empty rather than restoring their previous contents. ## Troubleshooting * `must contain an RSA private-key PEM block`: paste the complete private key, including its PEM delimiters. Do not paste the `.pub` file. * `encrypted PEM keys are not supported`: generate the key with `-nocrypt` as shown above. Protect the resulting file with restrictive filesystem permissions. * JWT fingerprint errors: confirm that the private key matches the public key registered on `FILAMENT_USER`. Snowflake documents additional checks in its [key-pair troubleshooting guide](https://docs.snowflake.com/en/user-guide/key-pair-auth-troubleshooting). * Schema authorization errors: verify `USAGE` and `CREATE SCHEMA` on the database, plus `USAGE` and `CREATE TABLE` on any pre-existing destination schema. ## Related guides * [Replicate PostgreSQL to Snowflake with CDC](/pages/how-to/postgres-to-snowflake) * [Replicate MySQL to Snowflake with CDC](/pages/how-to/mysql-to-snowflake) * [Postgres to Snowflake replication guide](https://www.getgalaxy.io/articles/postgres-to-snowflake-the-complete-replication-guide) * [MySQL to Snowflake replication guide](https://www.getgalaxy.io/articles/mysql-to-snowflake-the-complete-replication-guide) * [Sync Stripe to Snowflake](https://www.getgalaxy.io/articles/best-way-to-sync-stripe-to-snowflake-2026) # Standard output sink connector Source: https://filament.getgalaxy.io/pages/connectors/sinks/standard-output Print records to stdout as NDJSON for local development and debugging. The reference sink for Filament connectors. Connector ID `stdout` `connectors/stdout` (registered as `stdout`, **stable**) writes records to standard output instead of a real destination. As the reference sink, it is the fastest way to see a pipeline run end-to-end, and the simplest complete implementation of the [sink contract](/pages/connectors/building-a-connector/writing-a-sink) to read. ## Configuration None. The sink has no configuration fields. ## Supported write modes The sink advertises `full_replace` and `full_append`. See [replication modes](/pages/guides/concepts/replication-modes). Since stdout has no state to replace, both modes print the same stream. ## Output format Each Arrow row becomes one flat JSON object followed by a newline. For example, a batch with `id`, `email`, and `active` columns produces: ```json theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} {"id":42,"email":"dev@example.com","active":true} ``` CDC metadata appears only when it is present as columns in the Arrow schema; the sink does not wrap rows in an `{op, data}` envelope. Concurrent batches are serialized so their lines do not interleave. Write receipts use URIs of the form `stdout:///`. At `Commit`, the sink prints a manifest line prefixed with `#` summarizing the run: ``` # {"sink":"stdout","run":"...","resources":[{"name":"...","uri":"stdout:///","records":123,"bytes":4567}]} ``` ## Failure behavior There is nothing to roll back. Lines already printed stay printed, and `Abort` is a no-op. A run that fails simply stops producing output and prints no manifest. # Apollo source connector Source: https://filament.getgalaxy.io/pages/connectors/sources/apollo Read contacts, accounts, sequences, deals, and engagement data from Apollo Connector ID `apollo` The Apollo source reads saved CRM records, engagement data, and workspace reference data through an [HTTP manifest](/pages/connectors/building-a-connector/http-manifests). It targets API v1. The manifest has been checked against Apollo's official API schema, but has not been tested against a live account. ## Configuration | Field | Scope | Default | Description | | - | - | - | - | | `auth_method` | Connection | `api_key` | Choose **API Key** or **OAuth Access Token**. Only the selected method's credential field is shown. | | `api_key` | Connection | | Secret. Required for API Key authentication; needs access to the selected read endpoints. | | `access_token` | Connection | | Secret. Required for OAuth Access Token authentication; omit the Bearer prefix. | For **API Key**, [create a key](https://docs.apollo.io/docs/create-api-key) with endpoint permissions for the resources you select. Normal and master keys use the same field and are sent in the `x-api-key` header. For **OAuth Access Token**, register an Apollo partner app and complete the [authorization-code flow](https://docs.apollo.io/docs/use-oauth-20-authorization-flow-to-access-apollo-user-information-partners) externally. Provide the resulting access token; requests send it as an `Authorization: Bearer` credential. Tokens expire after 30 days. Renew them externally and update the connection before expiration. Apollo rotates refresh tokens and revokes the previous tokens when refreshing, so your external token manager must persist each replacement. Filament does not perform the browser flow, token exchange, or automatic refresh for this connector. Both methods use `https://api.apollo.io/api/v1`. Connection testing searches contacts, so contact-search permission is required even when selecting other resources. OAuth apps need the scopes for their selected endpoints and access is limited by the authorizing user's permissions. Existing connections continue to use API Key authentication by default. | Default resource | API key endpoint access | | - | - | | `contacts` | `api/v1/contacts/search` | | `accounts` | `api/v1/accounts/search` | | `sequences` | `api/v1/emailer_campaigns/search` | The defaults use credit-free endpoints and do not require a Master API key. Optional resources need their own endpoint permissions and any associated plan features. When using API Key authentication, `calls` and `email_stats` require a Master API key. Consult the [Apollo API reference](https://docs.apollo.io/reference/apollo-api) for the selected endpoints. `conversation_details` consumes one credit for each conversation with AI insights; conversations without AI insights cost no credits. ## Resources Contacts, accounts, and sequences are selected by default. All other resources are optional. Selecting a child also reads its parent to discover IDs, but only selected resources are written. | Resource | Endpoint | Parent | | - | - | - | | `contacts` | `POST /api/v1/contacts/search` | | | `accounts` | `POST /api/v1/accounts/search` | | | `sequences` | `POST /api/v1/emailer_campaigns/search` | | | `deals` | `GET /api/v1/opportunities/search` | | | `tasks` | `POST /api/v1/tasks/search` | | | `account_stages` | `GET /api/v1/account_stages` | | | `contact_stages` | `GET /api/v1/contact_stages` | | | `deal_stages` | `GET /api/v1/opportunity_stages` | | | `lists` | `GET /api/v1/labels` | | | `users` | `GET /api/v1/users/search` | | | `email_schedules` | `GET /api/v1/emailer_schedules` | | | `email_accounts` | `GET /api/v1/email_accounts` | | | `fields` | `GET /api/v1/fields` | | | `custom_fields` | `GET /api/v1/typed_custom_fields` | | | `notes` | `GET /api/v1/notes` | | | `calls` | `GET /api/v1/phone_calls/search` | | | `emails` | `GET /api/v1/emailer_messages/search` | | | `email_content` | `POST /api/v1/emailer_messages/get_content` | `emails` | | `email_stats` | `GET /api/v1/emailer_messages/{id}/activities` | `emails` | | `conversations` | `POST /api/v1/conversations/search` | | | `current_user` | `GET /api/v1/users/api_profile` | | | `credit_usage` | `POST /api/v1/usage_stats/credit_usage_stats` | | | `api_usage` | `POST /api/v1/usage_stats/api_usage_stats` | | | `contact_sequence_activity` | `POST /api/v1/emailer_campaigns/activity_feed` | `contacts` | | `conversation_details` | `GET /api/v1/conversations/{id}` | `conversations` | Each record resource emits one row per Apollo ID. Nested account data, custom field values, lists, recipients, and other structures remain JSON. Fields not projected into columns are retained in `raw`. `email_content` fetches stored HTML for sent messages; Apollo omits IDs that do not match a sent email. `email_stats` emits one row per email with its activities in a JSON array. `contact_sequence_activity` emits one row per contact containing at most the latest 50 events across its sequences. Apollo provides no pagination for older events. `conversation_details` includes transcript and recording metadata; it does not download recordings. Usage resources each emit one snapshot row, retaining the endpoint-keyed API usage object in `raw`. This connector reads your saved records rather than searching Apollo's global people and organization database. Global prospect searches, enrichment, company news and job postings, custom analytics report queries, asynchronous exports, webhook-result polling, and write operations are not included. Separate CRM record detail lookups and send-status polling are not exposed; list responses supply those records. ## Modes All resources support **full reads**. The documented CRM searches lack an updated-since filter. Sorting by `updated_at` does not restrict a read to changed records. Notes filter by creation date, and call, email, and conversation date filters do not reliably capture later edits, so these resources also use full reads. `credit_usage` and `api_usage` have no stable row key. Use full-replace writes for their snapshots. Full reads do not emit deletion events; use full-replace writes when the destination must remove records no longer returned by Apollo. ## Behavior * **Auth:** Static API key authentication. This connector does not implement Apollo's partner OAuth authorization or token refresh flow. Permission and plan errors fail the read. * **Pagination:** Contacts and accounts send page numbers and a page size of 100 in JSON bodies. Conversations use body pagination with 25 results per page. Other paginated searches use query page numbers with 100 results per page. Notes use `skip` and `limit`. Reference lists and snapshots use the endpoint's unpaginated response. * **Search limits:** Apollo caps contact, account, and outreach-email searches at 50,000 records. The connector does not partition searches to bypass that cap. Larger datasets cannot be treated as complete exports. See [contact search](https://docs.apollo.io/reference/search-for-contacts), [account search](https://docs.apollo.io/reference/search-for-accounts), and [outreach email search](https://docs.apollo.io/reference/search-for-outreach-emails). * **Parent reads:** Optional email content, email statistics, contact activity, and conversation details make one request per parent record. Their coverage is limited to records discoverable through the parent search. Repeated full reads of conversation details can consume credits again. * **Rate limits:** Apollo applies per-endpoint minute, hour, and day limits that vary by plan. The shared HTTP retry policy handles retryable failures, but the connector does not coordinate plan-specific quota budgets. `api_usage` exposes current usage and limits when your key has access. * **Consistency:** Page-based searches are not point-in-time snapshots. Records changing during a read can affect page membership and ordering. # Asana source connector Source: https://filament.getgalaxy.io/pages/connectors/sources/asana Read workspaces, projects, sections, tasks, users, tags, and custom fields from Asana with Filament. Connector ID `asana` The Asana source reads workspaces, users, teams, projects, sections, tasks, tags, and custom field definitions. It uses an [HTTP manifest](/pages/connectors/building-a-connector/http-manifests). This connector is in preview. It has been validated against a live Asana workspace with a personal access token. It targets API version `1.0`. ## Configuration | Field | Scope | Default | Description | | - | - | - | - | | `access_token` | Connection | | Required. Secret. Asana personal access token or service account token. | Create a personal access token in the [Asana developer console](https://app.asana.com/0/my-apps). It reads what its user can see. A service account token, available to Enterprise administrators, reads every object in the organization. See [Asana authentication](https://developers.asana.com/docs/authentication). Connection testing calls `GET /workspaces`. Every request goes to `https://app.asana.com/api/1.0`. ## Resources All resources except `teams` are selected by default. Selecting a child also reads its parents, but only selected resources are written to the destination. | Resource | Endpoint | Parent | | - | - | - | | `workspaces` | `GET /workspaces` | | | `users` | `GET /users?workspace={workspace_gid}` | `workspaces` | | `teams` | `GET /workspaces/{workspace_gid}/teams` | `workspaces` | | `projects` | `GET /workspaces/{workspace_gid}/projects` | `workspaces` | | `sections` | `GET /projects/{project_gid}/sections` | `projects` | | `tasks` | `GET /tasks?project={project_gid}` | `projects` | | `tags` | `GET /workspaces/{workspace_gid}/tags` | `workspaces` | | `custom_fields` | `GET /workspaces/{workspace_gid}/custom_fields` | `workspaces` | IDs are Asana `gid` strings. Child tables carry their parent's `workspace_gid` or `project_gid`. A user who belongs to several workspaces has one row per workspace, keyed by `workspace_gid` and `gid`. A task that belongs to several projects has one row per project, keyed by `project_gid` and `gid`. Tasks include assignee, dates, completion, notes, memberships, tags, followers, and custom field values. The parent task of a subtask is the `parent_task` JSON column. Projects include their owner, team, status update, and custom field values. References to other objects remain JSON columns, and every resource includes a `raw` column for unmapped fields. Asana returns only requested fields, so `raw` does not contain the full object. `teams` is optional because teams exist only in organizations. Select it only when the token's workspaces are organizations. ### Coverage limits * **Tasks outside projects**. Tasks are read through their projects. Tasks that belong to no project, such as private tasks in a user's My Tasks list, are not read. * **Subtasks**. Subtasks are read only when they are also added to a project. Reading every subtask needs a request per task and is not included. * **Comments and attachments**. Task stories, comments, and attachments need a request per task and are not included. * **Portfolios and goals**. Portfolios can only be listed by owner, and goals require a paid plan. Neither is included. * **Large organizations**. Asana notes that listing projects in a workspace may time out for very large domains. * **Visibility**. Reads reflect what the token's user can see. Removed records and records hidden by permissions are not available as deletion events. ## Modes `tasks` supports incremental reads on `modified_at`, sent to Asana as `modified_since`. Asana treats assigning, renaming, completing, commenting on, or adding a task to a project as modifying it. Changes to a task's subtasks do not modify the parent task. Tasks in every project share one watermark, and each run re-reads the five minutes before it to cover tasks modified while the scan runs. A project that becomes visible to the token later is read only from the current watermark, so its older tasks are missed until a full read. All other resources perform full reads. Use **full upsert** to refresh rows, or **full replace** to remove rows no longer returned. Incremental task reads do not detect deleted tasks. Run a periodic full replace of `tasks` to remove them. ## Behavior * **Auth**. Every request sends the token as a Bearer credential. Authentication and permission errors fail the read. * **Pagination**. Every endpoint is read 100 records at a time and follows `next_page.offset` until `next_page` is null. * **Fields**. Each request names its fields with `opt_fields`, because Asana returns compact records by default. * **Rate limiting**. Requests are paced at two per second with a burst of one, below the 150-per-minute limit for free domains. Paid domains allow 1,500 per minute. Limits apply per token and are shared with other clients using it. The HTTP engine retries throttled requests and honors `Retry-After`. * **Parent selection**. Sections and tasks need one request per project, and projects, users, tags, and custom fields need one per workspace. See [Asana pagination](https://developers.asana.com/docs/pagination) and [rate limits](https://developers.asana.com/docs/rate-limits) for service limits. # Attio source connector Source: https://filament.getgalaxy.io/pages/connectors/sources/attio Read CRM records, lists, notes, tasks, meetings, and call transcripts from Attio Connector ID `attio` The Attio source reads CRM objects and records, lists, notes, tasks, meetings, and call transcripts. It is built with an [HTTP manifest](/pages/connectors/building-a-connector/http-manifests). Its resources and columns may change between releases. It targets API version `v2`. ## Configuration | Field | Scope | Default | Description | | - | - | - | - | | `api_key` | Connection | | Required. Secret. Attio workspace API key. | ## Resources | Resource | Parent | Notes | | - | - | - | | `objects` | | Object definitions. Captures `api_slug` for children | | `records` | `objects` | One `POST /records/query` walk per object | | `object_attributes` | `objects` | Attribute schema per object | | `object_views` | `objects` | Views per object | | `record_entries` | `records` | List memberships, one request per record | | `files` | `records` | Files attached to a record, one request per record | | `threads` | `records` | Comment threads, one request per record | | `lists` | | Captures each list's `api_slug` for children | | `entries` | `lists` | One `POST /entries/query` walk per list | | `list_attributes` | `lists` | Attribute schema per list | | `list_views` | `lists` | Views per list | | `workspace_members` | | Single unpaginated page | | `notes` | | Workspace-wide notes | | `tasks` | | Workspace-wide tasks | | `meetings` | | Captures `meeting_id` for recordings | | `call_recordings` | `meetings` | One request per meeting | | `transcripts` | `call_recordings` | One transcript per recording | | `webhooks` | | Webhook subscriptions | | `people`, `companies`, `deals`, `users`, `workspaces` | | Query the standard objects directly, without the `objects` fan-out | Some selections produce many API calls. `objects` feeds `records`, which feed `record_entries`, `files`, and `threads`; meetings similarly feed recordings and transcripts. Selecting the three per-record children for 50,000 records requires at least 150,000 child requests. Select only the resources you need. ## Modes Full only. The manifest declares no `incremental` blocks, so every run re-reads every selected resource from the start. Full runs checkpoint their pagination cursor per top-level resource and resume from the last completed page. Child resources always restart with their parent. ## Behavior * **Auth**: bearer token from `api_key` on every request. * **Pagination**: offset paging on the query endpoints (injected into the POST body for `records` and `entries`, into the query string for attribute and entry lists), cursor paging with null termination on views, files, meetings, and call recordings, and single-page responses elsewhere. * **Rate limiting**: the manifest configures no client-side rate limit. The engine still backs off on 429 responses, honoring `Retry-After` for up to 10 attempts, but deeply nested resources still send requests as fast as Attio accepts them. Large workspaces may be throttled frequently. * Every resource carries a `raw` remainder column preserving fields the manifest does not project. # FHIR source connector Source: https://filament.getgalaxy.io/pages/connectors/sources/fhir Read clinical resources from a FHIR R4 server with Filament, the open-source data movement engine. Connector ID `fhir` The FHIR source reads clinical resources from any FHIR R4 server: patients, observations, conditions, encounters, medication requests, allergy intolerances, immunizations, and procedures. It is built with an [HTTP manifest](/pages/connectors/building-a-connector/http-manifests). It targets FHIR R4. ## Configuration | Field | Scope | Default | Description | | - | - | - | - | | `base_url` | Connection | `https://hapi.fhir.org/baseR4` | FHIR server base URL. Point it at your own server for real data. | ## Resources Each resource runs a FHIR search (`GET /`) and returns one row per Bundle entry. Every row carries `id` (the resource ID), `last_updated` (`meta.lastUpdated`, when the server provides it), and the full `resource` as JSON so no clinical detail is lost in projection. | Resource | Endpoint | Parent | | - | - | - | | `patients` | `GET /Patient` | | | `observations` | `GET /Observation` | | | `conditions` | `GET /Condition` | | | `encounters` | `GET /Encounter` | | | `medication_requests` | `GET /MedicationRequest` | | | `allergy_intolerance` | `GET /AllergyIntolerance` | | | `immunizations` | `GET /Immunization` | | | `procedures` | `GET /Procedure` | | The picker defaults to patients, observations, conditions, encounters, and medication requests. The other three resources are opt-in. ## Modes All resources support full reads and incremental reads. Incremental sync tracks `last_updated` (`meta.lastUpdated`) per resource and re-requests with `_lastUpdated=ge` — the `ge` prefix carries "greater or equal" semantics; a bare timestamp would mean "equal" and silently return the wrong result set. A 5-minute overlap window re-fetches recently updated records so retroactive updates are not missed. If interrupted, a full read of a top-level resource resumes after its last completed page. ## Behavior * **Auth**: none. v1 targets unauthenticated servers such as the public HAPI test server. Authenticated servers (OAuth2 client credentials, SMART Backend Services) are a planned follow-up. * **Pagination**: each resource walks every page (`_count=100` per request) by following the Bundle `link` entry whose `relation` is `"next"`. The walk ends on the page with no `next` link. * **Rate limiting**: five requests per second, a polite default for the shared public HAPI server. Lower it further for smoke tests; do not backfill against the public server. * **Response shape**: FHIR search returns a Bundle; rows come from `Bundle.entry[].resource`. Empty result sets emit no rows. * The public HAPI server holds synthetic test data only. Point `base_url` at your own FHIR server for real records. # GitHub source connector Source: https://filament.getgalaxy.io/pages/connectors/sources/github Read repository, community, and collaboration data from a GitHub organization Connector ID `github` The GitHub source reads repositories, stars, watchers, and collaboration data for one organization. It is built with an [HTTP manifest](/pages/connectors/building-a-connector/http-manifests). Its resources are stable, though future releases may add columns. It targets API version `2022-11-28`. ## Configuration | Field | Scope | Default | Description | | - | - | - | - | | `token` | Connection | | Required. Secret. Personal access token or GitHub App installation token. | | `organization` | Connection | | Required. GitHub organization login. | ## Resources `repositories` lists all repositories in the organization. For every repository, Filament then requests its issues and pull requests and adds the repository name to each row. Both include open and closed items. GitHub's issues endpoint also returns pull requests, so issue rows retain a `pull_request` marker that lets you distinguish them. Additional resources cover comments, reactions, releases, code, members, teams, Actions, deployments, traffic, statistics, Projects, security, and Discussions. Only selected resources are emitted; their parents are scanned as needed. The picker defaults to repositories, repository details, star history, forks, issues, pull requests, issue and review comments, labels, milestones, contributors, and languages. All other resources are opt-in. `stargazers` includes `starred_at`. Actual watchers are subscribers, counted by `repository_details.subscribers_count`; GitHub's `watchers_count` counts stars. ## Modes All resources support full reads. If interrupted, a full read of a top-level resource resumes after its last completed page. `issues`, `issue_comments`, and `pull_request_review_comments` support incremental reads: | | | | - | - | | Cursor field | `updated_at` | | Request parameter | `since` (query) | | Comparator | `time` | | Checkpoint key | `_updated_at` | | Overlap | 300 seconds | The cursor field is fixed by the manifest. Only a lookback window is user-configurable, and only because the comparator is `time`. Each resource shares a single durable watermark across repositories. The 300-second overlap re-reads a window to cover repositories that changed during the scan. All other resources are read in full. Use full replace for current membership such as stars and watchers, and for keyless `issue_timeline` rows. Use full upsert for `traffic_views` and `traffic_clones` to retain history beyond GitHub's 14-day window. ## Behavior * **Auth**: bearer token from `token` on every request, with read permissions for selected resources. Teams require Organization Members read access; star and watcher identities require repository admin or collaborator access. Restricted identity listings can be empty. * **Pagination**: RFC 5988 `Link` headers (`rel="next"`), with `per_page=100` set as a default query parameter. Star history uses 30; Discussions use GraphQL cursors. * **API version**: pinned via `X-GitHub-Api-Version: 2022-11-28`, so response fields do not change with GitHub's rolling default. * **Rate limiting**: one request per second, with manifest-defined throttling rules honoring `Retry-After` and configured budget-reset headers. * **Statistics**: pending responses are retried; results preserve their native JSON shape. GitHub's endpoint-specific history and size limits still apply. * Every resource carries a `raw` remainder column preserving fields the manifest does not project. ## Related guides * [Sync GitHub to Postgres](https://www.getgalaxy.io/articles/best-way-to-sync-github-to-postgres-2026) # Gong source connector Source: https://filament.getgalaxy.io/pages/connectors/sources/gong Read calls, transcripts, users, and reference data from Gong with Filament, the open-source data movement engine. Connector ID `gong` The Gong source reads conversation data and the users, workspaces, and settings associated with it. It uses an [HTTP manifest](/pages/connectors/building-a-connector/http-manifests). It has been checked against Gong's API docs and tested with mock responses, but has not yet been tested against a live account. It targets API version `v2`. ## Configuration | Field | Scope | Default | Description | | - | - | - | - | | `access_key` | Connection | | Required. Secret. Gong API access key. | | `access_key_secret` | Connection | | Required. Secret. Secret paired with the access key. | | `base_url` | Connection | | Required. API base URL from your Gong API settings. | A Gong technical administrator can create credentials under **Company settings → Ecosystem → API**. Copy the base URL shown there for your account, along with the key and secret. See [Gong's API introduction](https://help.gong.io/apidocs/introduction-2) for setup and access requirements. The key needs access to each selected resource. Connection testing makes a request to the users endpoint, so user-read access is also required. | Resources | Required scope | | - | - | | `users` | `api:users:read` | | `calls` | `api:calls:read:extensive` | | `transcripts` | `api:calls:read:transcript` | | `workspaces` | `api:workspaces:read` | | `keyword_trackers` | `api:settings:trackers:read` | | `scorecards` | `api:settings:scorecards:read` | | `library_folders`, `library_folder_contents` | `api:library:read` | ## Resources | Resource | Endpoint | Parent | | - | - | - | | `users` | `GET /v2/users` | | | `calls` | `POST /v2/calls/extensive` | | | `transcripts` | `POST /v2/calls/transcript` | | | `workspaces` | `GET /v2/workspaces` | | | `keyword_trackers` | `GET /v2/settings/trackers` | | | `scorecards` | `GET /v2/settings/scorecards` | | | `library_folders` | `GET /v2/library/folders` | | | `library_folder_contents` | `GET /v2/library/folder-content` | `library_folders` | Users, calls, and transcripts are selected by default. The other resources are optional. Filament only writes the resources you select. To read folder contents, it also lists folders, even when you haven't selected the folder resource. `calls` includes call metadata, participants, extended CRM context, summaries, topics, trackers, interaction statistics, and public comments. Nested data stays together in JSON columns. Media download URLs are not requested. See [Gong's call data reference](https://help.gong.io/apidocs/retrieve-detailed-call-data-by-various-filters-v2callsextensive-2) for field availability. `transcripts` has one row per call, keyed by `call_id`. Its JSON transcript array keeps speakers, topics, sentences, and relative timestamps together. Transcripts are read directly in bulk, without a separate request for each call. `keyword_trackers` and `scorecards` contain definitions, including keyword rules and scorecard questions. Scorecards do not include submitted answers or scores. The library lists public, non-archived folders. `library_folder_contents` has one row per folder, with a JSON array of its calls and snippets. A call can appear more than once in that array, with a different snippet each time. IDs are stored as strings. Optional fields are nullable, timestamps include time zones, and the `raw` column keeps fields that aren't mapped to their own columns. ## Modes All resources support full reads. Calls and transcripts are requested without date bounds. Use **full upsert** to refresh existing rows, or **full replace** to also remove rows that are no longer returned by Gong. Incremental reads are not supported. Gong's call date filters track when a call took place, rather than when its transcript, summary, or CRM context last changed. Using those dates as an update cursor could miss later edits to older calls. ## Behavior * **Auth**: every request uses HTTP Basic authentication with the access key and secret, against your configured base URL. * **Pagination**: users, calls, and transcripts follow `records.cursor` until it is missing or empty. The other endpoints do not use pagination. * **Recovery**: interrupted top-level reads can resume from a saved page cursor. If that request fails, the existing HTTP engine retries the resource from the beginning. Library contents always restart from the folder listing. * **Rate limiting**: three requests per second, shared across resources in this connection. Gong's default allowance is also 10,000 requests per company per day, shared with other API clients. Filament honors `Retry-After` on throttled requests but does not track the daily allowance. * **Empty results**: calls and transcripts accept a `404` only when Gong's `errors` array contains exactly `No calls found corresponding to the provided filters`. Other errors still fail the read. Gong also documents empty-result `404` responses for scorecards and library folders. Those remain errors until their exact bodies have been verified. This version covers conversation data and its reference tables. Activity and coaching reports, answered scorecards, audit logs, Engage, CRM imports, and media downloads are outside its scope. # Granola source connector Source: https://filament.getgalaxy.io/pages/connectors/sources/granola Read meeting notes, AI summaries, transcripts, folders, and webhook configuration from Granola Connector ID `granola` The Granola source reads meeting notes, summaries, transcripts, and folders that your API key can access. It uses an [HTTP manifest](/pages/connectors/building-a-connector/http-manifests). It has been checked against Granola's API docs and tested with mock responses, but has not yet been tested against a live account. It targets API version `v1`. ## Configuration | Field | Scope | Default | Description | | - | - | - | - | | `api_key` | Connection | | Required. Secret. Personal or workspace API key. | Create a key in **Settings → Connectors → API keys** in Granola. API access requires a Business or Enterprise plan. On Enterprise, admins choose which access scopes members can use. A personal key can read notes covered by the scopes you chose when creating it. A workspace key can read public workspace notes and notes in spaces with API access enabled. See [Granola's API guide](https://docs.granola.ai/introduction) for setup details. ## Resources | Resource | Endpoint | Parent | | - | - | - | | `notes` | `GET /v1/notes` | | | `note_details` | `GET /v1/notes/{note_id}` | `notes` | | `transcripts` | `GET /v1/notes/{note_id}/transcript` | `notes` | | `folders` | `GET /v1/folders` | | | `webhook_endpoints` | `GET /v1/webhook-endpoints` | | Notes, note details, transcripts, and folders are selected by default. You can also select webhook configuration. Filament only writes the resources you select, though it still lists notes to fetch their details or transcripts. `notes` contains IDs, titles, owners, and timestamps. `note_details` adds summaries in text and Markdown, private notes, calendar details, attendees, and folder membership. Private notes are only returned when the key belongs to the note's creator. Otherwise, those fields are null. Nested objects and arrays are stored as JSON. `transcripts` returns one row per transcript item, with the note ID, speaker, text, and start and end times. The speaker field keeps any names, attribution, and anonymous speaker labels Granola provides. Transcripts are fetched in pages so long meetings can be read in full. `folders` includes `parent_folder_id` so you can follow the folder hierarchy. `webhook_endpoints` lists webhook URLs, subscribed events, scopes, folder filters, and whether each endpoint is enabled. It only reads this configuration. It does not create webhooks or receive their events. The [Enterprise Audit API](https://docs.granola.ai/audit) uses a separate audit-only key and is not included in this connector. ## Modes All resources support full reads. `notes` also supports incremental reads using `updated_at`. Each run sends the saved timestamp as `updated_after`, with a five-minute lookback by default. This re-reads recently updated notes to help catch changes around the last run. You can adjust the lookback, but the cursor field is fixed. The checkpoint key is `notes_updated_at` and uses the `time` comparator. Details, transcripts, folders, and webhook configuration are read in full. Use **full replace** for transcripts. Granola does not give transcript items stable IDs, and speaker names and timestamps are not guaranteed to be unique. Full replacement also removes deleted notes and refreshes folder membership. Incremental note reads cannot detect deletions. They can also miss newly shared notes if those notes were last updated before the lookback window. ## Behavior * **Auth**: every request uses `api_key` as a bearer token and goes to `https://public-api.granola.ai`. * **Pagination**: notes and folders request 30 items per page. Transcripts request 100. Filament passes the returned `cursor` to the next request and stops when `hasMore` is false. Details and webhook configuration do not use pagination. * **Rate limiting**: five requests per second, shared across resources in the connection. Granola applies its limit per user or workspace, so other clients using that quota can cause throttling. * **Availability**: notes only appear in the API once they have a generated summary and transcript. Notes still being processed are not returned. * The `raw` column keeps any fields that are not mapped to their own columns. # HeyReach source connector Source: https://filament.getgalaxy.io/pages/connectors/sources/heyreach Read campaigns, leads, lists, conversations, and analytics from HeyReach Connector ID `heyreach` The HeyReach source reads workspace outreach data through an [HTTP manifest](/pages/connectors/building-a-connector/http-manifests). The manifest has been checked against HeyReach's published API collection, but has not been tested against a live workspace. ## Configuration | Field | Scope | Default | Description | | - | - | - | - | | `api_key` | Connection | | Required. Secret. HeyReach workspace API key. | | `stats_start_date` | Connection | | ISO 8601 start date. Required when selecting either statistics resource. | | `stats_end_date` | Connection | | ISO 8601 end date. Required when selecting either statistics resource. | Use your workspace API key from HeyReach's API settings. Requests send it in the `X-API-KEY` header to `https://api.heyreach.io/api/public`. Keys do not expire, but can be revoked. Connection testing lists campaigns. See the [official API reference](https://documenter.getpostman.com/view/23808049/2sA2xb5F75). Organization management uses a separate organization key and is outside this connector's scope. A workspace key is sufficient for the core defaults. ## Resources Campaigns, LinkedIn accounts, lead lists, list leads, campaign leads, and conversations are selected by default. Other resources are optional. Selecting a child also reads its parent to discover IDs; only selected resources are written. | Resource | Endpoint | Parent | | - | - | - | | `campaigns` | `POST /api/public/campaign/GetAll` | | | `linkedin_accounts` | `POST /api/public/li_account/GetAll` | | | `lead_lists` | `POST /api/public/list/GetAll` | | | `company_lists` | `POST /api/public/list/GetAll` | | | `list_leads` | `POST /api/public/list/GetLeadsFromList` | `lead_lists` | | `list_companies` | `POST /api/public/list/GetCompaniesFromList` | `company_lists` | | `campaign_leads` | `POST /api/public/campaign/GetLeadsFromCampaign` | `campaigns` | | `conversations` | `POST /api/public/inbox/GetConversationsV3` | | | `chatrooms` | `GET /api/public/inbox/GetChatroom/{accountId}/{conversationId}` | `conversations` | | `lead_details` | `POST /api/public/lead/GetLead` | `list_leads` | | `account_status` | `GET /api/public/li_account/GetAccountStatus/{accountId}` | `linkedin_accounts` | | `proxy_countries` | `GET /api/public/li_account/GetProxyCountries` | | | `webhooks` | `POST /api/public/webhooks/GetAllWebhooks` | | | `blacklisted_leads` | `POST /api/public/blacklist/GetLeads` | | | `blacklisted_companies` | `POST /api/public/blacklist/GetCompanies` | | | `overall_stats` | `POST /api/public/stats/GetOverallStats` | | | `campaign_stats` | `POST /api/public/stats/GetOverallStatsByCampaign` | | Lead and company lists are fetched separately by list type. `list_leads` emits one row per list and profile URL; `campaign_leads` emits one row per campaign and lead entry. `lead_details` fetches the richer lead profile for each list member, including existing enrichment data. It does not start an enrichment job. Company list entries have no documented stable identifier, so `list_companies` has no primary key. Conversations and chatrooms use the sender account and conversation ID as their key. Messages stay nested in JSON, along with sender and correspondent profiles. `chatrooms` fetches each conversation individually using the documented detail endpoint. The API reference does not specify a separate message paginator or promise unlimited history; the connector preserves the returned message array. The v3 conversation listing omits correspondent emails and custom fields. `lead_details` retrieves those fields for leads discovered in lead lists. Statistics resources each emit one snapshot for the configured date range, with daily and overall results retained as JSON. `campaign_stats` groups those results by campaign, including the API's deleted-campaign indicator. Unprojected fields are retained in each resource's `raw` column. Organization workspaces, users, and cross-workspace senders are not included. API-key inventories, proxy credentials, enrichment jobs, and write operations are also excluded. Reverse lead-to-list and lead-to-campaign lookup endpoints are not separate resources; membership is read from each list or campaign. Campaign sequences are excluded because the API can return a bodyless 200 for campaigns without a sequence. My Network is excluded because its documented zero-based page numbering does not fit the current page paginator. ## Modes All resources support **full reads**. Lead list filters use creation time. Campaign lead filters use action or failure times, and conversation filters use last-message time. These do not reliably capture edits to older records, tags, read status, or other metadata, so the connector does not advertise incremental reads. Use full-replace writes for `list_companies`, `overall_stats`, and `campaign_stats`, which have no stable row key. Full reads do not emit deletion events; use full-replace writes when records removed upstream should disappear downstream. ## Behavior * **Pagination:** Campaigns, accounts, lists, memberships, blacklists, and webhooks use JSON-body offset pagination with 100 records per request. Conversations use the v3 cursor endpoint with 100 records per request and its `hasNextPage` signal. Details, reference data, and statistics use single responses. * **Rate limits:** HeyReach documents a shared limit of 300 requests per minute. The connector limits requests to four per second to leave room below that ceiling. Other clients using the same quota can still cause throttling. * **Coverage:** Campaign lead results include only pending leads already queued for execution, not all pending members of the campaign's source list. Read `list_leads` to obtain that list's membership separately. * **Parent reads:** Lead details, chatrooms, and account status make one request per parent. List and campaign memberships are scoped by their parent IDs. Live validation of these child requests remains pending, including the API's acceptance of numeric parent IDs serialized as decimal strings. * **Errors:** Permission, invalid-ID, and not-found errors fail the read. The connector does not treat them as empty datasets. * **Webhooks:** Reads webhook configuration with custom headers disabled. It does not receive or replay webhook events. * **Consistency:** Offset reads are not snapshots. Concurrent inserts, removals, or reordering can affect page membership during a run. # HubSpot source connector Source: https://filament.getgalaxy.io/pages/connectors/sources/hubspot Full and incremental reads of HubSpot CRM records and custom objects with Filament, the open-source data movement engine. Connector ID `hubspot` The HubSpot source reads CRM records, activities, commerce objects, and owners. Custom objects are discovered as separate resources. ## Configuration | Field | Scope | Description | | - | - | - | | `api_key` | Connection | Required. Secret. HubSpot service key or static app access token. | Grant read access to the selected objects and their property definitions. Custom objects also require access to their schemas. Resources unavailable under the account's permissions or subscription cannot be selected. ## Resources Enabled by default: **contacts, companies, deals, owners, calls, meetings, notes, and tasks**. Optional resources include: * **CRM:** tickets, leads, goals, feedback submissions, and CRM users. * **Activities:** emails, communications, and postal mail. * **Commerce:** products, line items, quotes, invoices, payments, subscriptions, orders, carts, discounts, fees, and taxes. * **Additional objects:** appointments, courses, listings, services, and projects. Each custom object has a stable resource name such as `custom_objects_2_123` and displays its HubSpot label. Custom objects are optional. ## Properties Records have typed `id`, `created_at`, `updated_at`, `modified_at`, `archived`, and `archived_at` columns. Standard and custom properties are discovered automatically and preserved in a `properties` JSON column, using their HubSpot internal names. Newly added properties are included on the next run; records already synced need an update or a full refresh to pick up those values. Sensitive properties and property history are not included. Owners keep their details and team memberships in `properties` and have no `modified_at` column. ## Incremental All CRM object resources support full and incremental reads. Owners are full-only. Use incremental upsert to reconcile repeated records. The first incremental run reads all active records. Later runs search by `modified_at`, using a fixed upper timestamp and a lookback to account for HubSpot's indexing delay. The default lookback is five minutes. Reads advance by object ID within the interval to avoid Search's 10,000-result paging limit. A resource's watermark advances only when its read completes and the destination commits. Interrupted or limited reads replay from the previous watermark. Interrupted initial reads restart from the beginning. Empty intervals retain their watermark. ## Limitations This version covers CRM object records. Associations, archived-record feeds, marketing, and CMS resources are not included. Incremental reads do not propagate deletions, and indexing delays longer than the lookback can require a full refresh. Requests use HubSpot's `2026-09` APIs and are paced at five per second per source instance. Rate limits and server errors are retried; concurrent pipelines sharing an account can still be throttled. # Instantly source connector Source: https://filament.getgalaxy.io/pages/connectors/sources/instantly Read campaigns, leads, emails, accounts, and analytics from Instantly with Filament, the open-source data movement engine. Connector ID `instantly` The Instantly source reads outreach and workspace data through an [HTTP manifest](/pages/connectors/building-a-connector/http-manifests). It targets API v2. The manifest has been checked against Instantly's official API schema, but has not been tested against a live workspace. ## Configuration | Field | Scope | Default | Description | | - | - | - | - | | `api_key` | Connection | | Required. Secret. Instantly API v2 key with read scopes for the selected resources. | Create a v2 key in your workspace's API settings. Keys are scoped to a workspace; select the permissions needed for your resources. Requests use `https://api.instantly.ai/api/v2`. See the [Instantly quickstart](https://developer.instantly.ai/quickstart). Connection testing lists campaigns, so the key needs campaign-read access even when you select other resources. | Default resource | Read scope | | - | - | | `campaigns` | `campaigns:read` | | `accounts` | `accounts:read` | | `leads` | `leads:read` | | `lead_lists` | `lead_lists:read` | | `emails` | `emails:read` | Optional resources require their endpoint-specific scopes and any associated account features. For example, audit logs require `audit_logs:read`, billing requires `workspace_billing:read`, and workspace members require `workspace_members:read`. AI endpoints have distinct scopes: some accept `ai_agents:read`, while others require `ai_sdr:read`, `ai_sdr_replies:read`, `ai_inbox_manager_analytics:read`, or broader access. Consult the [endpoint reference](https://developer.instantly.ai/llms.txt) for each selected resource rather than granting administrative access for the core defaults. ## Resources Campaigns, accounts, leads, lead lists, and emails are selected by default. All other resources are optional. Only selected resources are written, although child reads also fetch their parents to discover IDs. | Resource | Endpoint | Parent | | - | - | - | | `campaigns` | `GET /api/v2/campaigns` | | | `campaign_exports` | `POST /api/v2/campaigns/{id}/export` | `campaigns` | | `accounts` | `GET /api/v2/accounts` | | | `leads` | `POST /api/v2/leads/list` | | | `lead_lists` | `GET /api/v2/lead-lists` | | | `emails` | `GET /api/v2/emails` | | | `lead_labels` | `GET /api/v2/lead-labels` | | | `custom_tags` | `GET /api/v2/custom-tags` | | | `custom_tag_mappings` | `GET /api/v2/custom-tag-mappings` | | | `block_list_entries` | `GET /api/v2/block-lists-entries` | | | `block_list_entries_export` | `GET /api/v2/block-lists-entries/download` | | | `subsequences` | `GET /api/v2/subsequences` | | | `audit_logs` | `GET /api/v2/audit-logs` | | | `webhooks` | `GET /api/v2/webhooks` | | | `webhook_events` | `GET /api/v2/webhook-events` | | | `workspace_members` | `GET /api/v2/workspace-members` | | | `workspace_group_members` | `GET /api/v2/workspace-group-members` | | | `inbox_placement_tests` | `GET /api/v2/inbox-placement-tests` | | | `agent_items` | `GET /api/v2/agent-items` | | | `dfy_email_account_orders` | `GET /api/v2/dfy-email-account-orders` | | | `workspace` | `GET /api/v2/workspaces/current` | | | `workspace_plan` | `GET /api/v2/workspace-billing/plan-details` | | | `workspace_subscription` | `GET /api/v2/workspace-billing/subscription-details` | | | `phone_numbers` | `GET /api/v2/crm-actions/phone-numbers` | | | `account_campaign_mappings` | `GET /api/v2/account-campaign-mappings/{email}` | `accounts` | | `account_warmup_analytics` | `POST /api/v2/accounts/warmup-analytics` | `accounts` | | `account_daily_analytics` | `GET /api/v2/accounts/analytics/daily` | | | `campaign_analytics` | `GET /api/v2/campaigns/analytics` | | | `campaign_analytics_overview` | `GET /api/v2/campaigns/analytics/overview` | | | `campaign_daily_analytics` | `GET /api/v2/campaigns/analytics/daily` | `campaigns` | | `campaign_steps_analytics` | `GET /api/v2/campaigns/analytics/steps` | `campaigns` | | `campaign_sending_status` | `GET /api/v2/campaigns/{id}/sending-status` | `campaigns` | | `subsequence_analytics` | `GET /api/v2/subsequences/analytics` | `campaigns` | | `subsequence_steps_analytics` | `GET /api/v2/subsequences/{id}/analytics/steps` | `subsequences` | | `lead_list_verification_stats` | `GET /api/v2/lead-lists/{id}/verification-stats` | `lead_lists` | | `inbox_placement_analytics` | `GET /api/v2/inbox-placement-analytics` | `inbox_placement_tests` | | `inbox_placement_reports` | `GET /api/v2/inbox-placement-reports` | `inbox_placement_tests` | | `ai_sales_agents` | `GET /api/v2/ai-agents/sales` | | | `ai_inbox_managers` | `GET /api/v2/ai-agents/inbox-manager` | | | `ai_lead_finders` | `GET /api/v2/ai-agents/lead-finder` | | | `ai_sales_activities` | `GET /api/v2/ai-agents/sales/{id}/activities` | `ai_sales_agents` | | `ai_sales_guidance_rules` | `GET /api/v2/ai-agents/sales/{id}/guidance-rules` | `ai_sales_agents` | | `ai_inbox_guidances` | `GET /api/v2/ai-agents/inbox-manager/{id}/guidances` | `ai_inbox_managers` | | `ai_inbox_replies` | `GET /api/v2/ai-agents/inbox-manager/{id}/replies` | `ai_inbox_managers` | | `ai_lead_finder_activities` | `GET /api/v2/ai-agents/lead-finder/{id}/activities` | `ai_lead_finders` | | `ai_sales_analytics` | `GET /api/v2/ai-agents/sales/{id}/analytics` | `ai_sales_agents` | | `ai_sales_opportunities` | `GET /api/v2/ai-agents/sales/{id}/opportunities/summary` | `ai_sales_agents` | | `ai_inbox_analytics` | `GET /api/v2/ai-agents/inbox-manager/{id}/analytics/summary` | `ai_inbox_managers` | | `ai_lead_finder_stats` | `GET /api/v2/ai-agents/lead-finder/{id}/stats` | `ai_lead_finders` | | `saved_searches` | `GET /api/v2/supersearch-enrichment/saved-searches` | | Campaigns include schedules and sequences. Lead custom data is retained in `payload` and `raw`. Email reads request full bodies, all inbox modes, and all messages rather than only the latest message of each thread. Account reads include tags. No status, campaign, or lead-list filter is applied to core reads. AI Sales Agent campaigns are explicitly included in `campaigns`. Nested data stays in JSON columns, IDs are strings, and declared date-time fields use timestamps with time zones. Every resource includes a `raw` column for returned fields that are not projected separately. Warmup analytics retain the provider's maps of account and date metrics in a snapshot for each account. The optional `block_list_entries_export` resource downloads all blocked emails and domains in one CSV response using the bulk export reader. Each row contains `bl_value` and `timestamp_created`, mapped from the CSV's `Blocked Email` and `Date` columns. It requires `block_list_entries:read` (or a broader accepted scope). The export omits record IDs and organization metadata, so use full replace; `block_list_entries` remains available for the richer paginated records. See [block-list CSV download](https://developer.instantly.ai/api-reference/blocklistentry/download-all-block-list-entries-as-csv). The optional `campaign_exports` resource reads one campaign configuration object per campaign, including schedules and sequences, using `campaigns:read`. [Campaign export](https://developer.instantly.ai/api-reference/campaign/export-campaign-to-json-format) returns JSON immediately. It does not export campaign leads. The documented [lead read endpoint](https://developer.instantly.ai/api-reference/lead/list-leads) uses pagination; this connector does not use undocumented bulk lead endpoints. This version does not include API-key data, background-job tracking, DFY mailbox credentials, domain administration, OAuth connection flows, individual email verification lookups, AI Deliverability Agents, company-list builders and members, or SuperSearch enrichment execution/history. Some AI detail and additional analytics endpoints are also outside this version. It reads saved searches and the listed AI resources; it does not run agents, start tests, buy domains, send emails, or receive webhook events. Attachments remain metadata. ## Modes All resources use full reads. Although several records contain update timestamps, their list endpoints do not expose a corresponding update-time filter. Email creation filters would miss later changes to read flags, status, and other fields. A pagination cursor is used only to walk the current result set; it is not an incremental watermark. Use full upsert for keyed resources, or full replace to remove rows no longer returned by Instantly. The following resources have no stable primary key declared and require full replace: `block_list_entries_export`, `dfy_email_account_orders`, `workspace_plan`, `workspace_subscription`, `account_campaign_mappings`, `account_warmup_analytics`, `account_daily_analytics`, `campaign_analytics_overview`, `campaign_steps_analytics`, `subsequence_analytics`, `subsequence_steps_analytics`, `ai_sales_analytics`, `ai_sales_opportunities`, `ai_inbox_analytics`, `ai_lead_finder_stats`. ## Behavior * **Auth**: every request uses the workspace's v2 API key as a Bearer token. Missing scopes, unavailable features, and other upstream errors fail the read. * **Pagination**: list resources request up to 100 rows, respecting lower endpoint maxima, and pass `next_starting_after` into the next request. Pagination ends when that cursor is absent, empty, or null. For leads, the cursor and limit are JSON body fields on the read-only `POST /leads/list` request. * **Rate limiting**: email listing is limited to 20 requests per minute. This connector uses a shared limit of 0.3 requests per second (18 per minute), which also slows other resources. The workspace-wide limits are 100 requests per second and 6,000 per minute, shared with other clients. HTTP 429 responses are retried; the limiter cannot reserve capacity against other integrations. See [email listing](https://developer.instantly.ai/api-reference/email/list-email) and [rate limits](https://developer.instantly.ai/getting-started/rate-limit). * **Analytics**: no date bounds are supplied, so endpoints use their provider defaults. Campaign daily and step analytics are requested per campaign. These are refreshed snapshots, not append-only events. Overview interest metrics use the provider's first-occurrence behavior. * **Ordering**: lead results use the provider's cursor. Instantly notes that leads created before October 15, 2025 may not appear chronologically when sorted by ID. * **Recovery**: top-level cursor reads can resume interrupted walks. Child reads restart from their parent listings. Deletes are reconciled through full replace, not emitted as deletion events. * **Bulk download**: the CSV download uses authenticated HTTPS on the API origin with a ten-minute deadline. It creates no background job and does not paginate. Interrupted downloads replay from the beginning and can reflect changes since the first attempt; there is no immutable snapshot token. Missing permissions and HTTP 404 responses fail the read rather than becoming empty exports. # Jira source connector Source: https://filament.getgalaxy.io/pages/connectors/sources/jira Read projects, issues, users, and reference data from Jira Cloud with Filament. Connector ID `jira` The Jira source reads projects, issues, users, issue types, statuses, priorities, resolutions, and field definitions from Jira Cloud. It uses an [HTTP manifest](/pages/connectors/building-a-connector/http-manifests). This connector is in preview. It has been validated against a live Jira Cloud site with a personal API token. The live run covered the connection probe, all nine resources, the `nextPageToken` walk on issue search, and an incremental read that returned only the issue updated after the watermark. It targets Jira Cloud platform REST API version `3`. ## Configuration | Field | Scope | Default | Description | | - | - | - | - | | `site` | Connection | | Required. Jira Cloud site subdomain, the part before `.atlassian.net`. For `https://example.atlassian.net` enter `example`. | | `email` | Connection | | Required. Email address of the Atlassian account that owns the API token. | | `api_token` | Connection | | Required. Secret. Classic Atlassian API token created at `id.atlassian.com`. Scoped tokens do not work with Basic auth. | Create a classic API token in your [Atlassian account security settings](https://id.atlassian.com/manage-profile/security/api-tokens). Scoped tokens are for OAuth and fail here with a 401. The token reads what its account can see. Use a service account token for unattended syncs so the data does not change when a person leaves the team. See [Basic auth for REST APIs](https://developer.atlassian.com/cloud/jira/platform/basic-auth-for-rest-apis/). Connection testing calls `GET /rest/api/3/myself`. Every request goes to `https://.atlassian.net`. ## Resources All resources except `myself` are selected by default. | Resource | Endpoint | Parent | | - | - | - | | `myself` | `GET /rest/api/3/myself` | | | `projects` | `GET /rest/api/3/project/search` | | | `issues` | `POST /rest/api/3/search/jql` | | | `users` | `GET /rest/api/3/users/search` | | | `issue_types` | `GET /rest/api/3/issuetype` | | | `statuses` | `GET /rest/api/3/status` | | | `priorities` | `GET /rest/api/3/priority/search` | | | `resolutions` | `GET /rest/api/3/resolution/search` | | | `fields` | `GET /rest/api/3/field` | | IDs are Jira ID strings. Issues carry their project ID and key, and the account IDs of their assignee, reporter, and creator. References to other objects remain JSON columns, and every resource includes a `raw` column for unmapped fields. Issues return a fixed field list, so `raw` does not contain custom field values. `myself` returns one row for the account that owns the API token. It is also the connection test. It is not selected by default. ### Coverage limits * **Issue comments, worklogs, and attachments**. Comments, worklogs, and attachments need a request per issue and are not included. * **Custom fields**. Issue search requests a fixed list of standard fields. Custom field values are not returned. * **Boards, sprints, and versions**. Agile boards, sprints, and versions live under the Jira Software API and are not included. * **Changelogs**. Issue history needs a request per issue and is not included. * **Visibility**. Reads reflect what the token's account can see. Removed records and records hidden by permissions are not available as deletion events. ## Modes All resources report their read mode in the connector settings. Use **full upsert** to refresh rows, or **full replace** to remove rows no longer returned. `issues` supports incremental reads on `updated`. The first run reads from the start of time, and later runs ask Jira for issues updated since the last stored watermark, with a five minute overlap so edits made while a run is in flight are not missed. JQL takes the watermark as an unquoted epoch-milliseconds number. Incremental reads do not detect deleted issues. Run a periodic full replace of `issues` to remove them. ## Behavior * **Auth**. Every request sends the account email and API token as HTTP Basic credentials. Authentication and permission errors fail the read. * **Pagination**. Issue search follows `nextPageToken` in the request body until the token is absent. Project, user, priority, and resolution lists page with `startAt` and `maxResults`. Issue type, status, and field lists return one page. * **Fields**. Issue search requests a fixed list of standard fields. Other resources return their full objects. * **Rate limiting**. Requests are paced at five per second with a burst of one, below the 100-per-second burst limit for API token traffic. The HTTP engine retries throttled requests and honors `Retry-After`. * **Jira Cloud only**. Jira Server and Data Center use a different API version and are not supported. See [Jira Cloud platform REST API](https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/) and [rate limiting](https://developer.atlassian.com/cloud/jira/platform/rate-limiting/) for service limits. # Kafka source connector Source: https://filament.getgalaxy.io/pages/connectors/sources/kafka Consume Kafka message envelopes into Filament, the open-source data movement engine, with certified partition checkpoints. Connector ID `kafka` `connectors/kafka` registers a bounded and continuous message source. Topics are resources, and topic partitions have independent next-offset checkpoints. The first implementation uses direct partition assignment to one Filament owner. It does not join a consumer group or write Kafka group offsets. ## Configuration ```json theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} { "brokers": ["localhost:9092"], "topics": ["orders", "customers"], "start_position": "earliest" } ``` `topics` supplies default resources when none are explicitly selected. Discovery lists accessible noninternal topics. `start_position` is `earliest` (default) or `latest` for partitions without a checkpoint. Existing certified offsets always win. Initial frontiers, including idle partitions, are emitted for certification before reading records. Until that first certificate is durable, an unsuccessful startup may resolve the initial frontier again. | Connection field | Description | | - | - | | `brokers` | Required list of bootstrap `host:port` addresses | | `client_id` | Kafka client identifier; default `filament` | | `tls_enabled` | Enable certificate-verified TLS | | `tls_ca_pem` | Optional pasted PEM CA certificates; stored as a secret | | `tls_cert_pem`, `tls_key_pem` | Optional pasted PEM client certificate chain and matching private key; both stored as secrets | | `sasl_mechanism` | Authentication dropdown: `none` (default), `PLAIN`, `SCRAM-SHA-256`, or `SCRAM-SHA-512` | | `sasl_username`, `sasl_password` | SASL credentials; password is a secret | No files need to be mounted on workers. Enable TLS to use the system trust store; provide `tls_ca_pem` only for a private CA. For mutual TLS, paste both the client certificate chain and private key. PEM inputs preserve multiline pastes and use Filament's secret storage. Certificate fields require `tls_enabled=true`. Selecting a SASL mechanism shows required username/password fields. Use TLS with PLAIN authentication. The integration test brokers use neither TLS nor authentication. Existing `tls_ca_file`, `tls_cert_file`, and `tls_key_file` settings are rejected: replace them with the corresponding `_pem` fields containing the actual contents. Connection testing authenticates and requests metadata without joining a consumer group or publishing records. Workers need topic metadata and read access; consumer-group permissions are not required for this direct-assignment profile. ## Integration tests Run `just test-integration` from the repository root. The Kafka tests provision Kafka through Testcontainers, create topics, publish test records, and clean up their containers. No separately running broker or publisher is needed. ## Bounded reads Choose bounded execution with **Full** reads and an append or replace destination write policy. Each run captures the retained beginning and the read-committed end (last stable offset) of every selected partition before extraction. It reads that fixed window and finishes, even if producers keep publishing. Transactions still open when the window is captured and messages appended afterward are excluded. This is a set of partition windows, not an atomic snapshot across topics. Bounded full reads always begin at the retained start; `start_position` applies only to continuous execution. Each new run rereads the retained log, so append runs can duplicate earlier output. Bounded runs do not advance continuous checkpoints or Kafka consumer-group offsets and do not support incremental or checkpointed resume. A retry captures a new window. Compaction may remove records within the window; the run reads the records still retained when fetched. Resource planning infers payload columns before typed destination tables are prepared. The first retained message fixes each topic's schema, including the same tombstone/raw-payload behavior described below. Empty topics finish without waiting for new records. Retention loss or topic recreation affecting unread partitions fails the run instead of silently resetting offsets. Partitions added after planning are outside the captured window. ## Schema and checkpoints Kafka and NATS sources decode JSON object payloads into top-level, source-owned columns. For example, `{"event_id":"order-1","amount":100}` produces `event_id` and `amount` columns alongside Filament's `_filament_event_id` and checkpoint identity. There is no `_filament_payload` column. Nested objects and arrays remain JSON values; numbers retain their JSON precision. Kafka adds `topic`, `partition`, `offset`, and `tombstone` transport columns; NATS adds `subject`. Both retain `_filament_event_id`, `_filament_event_identity`, `_filament_event_ts`, `_filament_headers`, and `_filament_key` event metadata. Payload names must not collide with transport fields (case-insensitive) or use the reserved `_filament_` prefix. Duplicate JSON keys are rejected. The first message fixes the column schema for each resource during a run. Missing fields become null; new fields and incompatible string/bool type changes fail before progress is certified. JSON-typed fields accept any JSON value. Discovery exposes transport/event metadata; payload columns appear on the first read. Non-object JSON and binary messages use a source-owned binary `payload` column. Mixing raw and object payloads in a resource requires a new compatible schema and is rejected within a run. Kafka tombstones set `tombstone=true` and leave decoded payload columns null. If the first message is a tombstone, the resource uses the raw `payload` schema. Keys, timestamps, and ordered duplicate headers are preserved. Existing output tables may need a new destination or schema migration for this column layout. The source uses `read_committed` isolation. A record at offset `n` has progress position `n+1`, encoded by `kafka.partition.next_offset` version 0. Offset zero is a valid initial frontier. Domain incarnation combines the stable Filament source connection ID, Kafka cluster ID, and topic ID. Brokers without stable cluster and topic IDs are rejected. Recreated topics cannot reuse an old checkpoint. Filament certificates own durable progress. `Acknowledge` checks exact coverage and current Filament authority; there is no broker acknowledgment to advance. The source refuses another read while coverage is pending. Retries resume from certified offsets, including when the previous worker stopped before its local acknowledgment completed. Offset gaps from compaction or transactional records are valid. Replay covers retained records, not every event ever produced. Positions outside the retained range fail instead of resetting to the beginning or end. The connector also rejects topic recreation and partition membership changes during a session. These checks cannot reconstruct records lost through broker log corruption or unclean election followed by regrowth; configure broker durability accordingly. ## Initial release limits The source supports bounded full reads and continuous execution. Consumer groups, bounded incremental/resumable reads, distributed partition handoff, and Schema Registry decoding remain follow-up work. The [sink](/pages/connectors/sinks/kafka) supports both bounded and continuous execution. The continuous source processes one record per epoch initially and advertises no end-to-end ordering guarantee. Normal fetches use a 4 MiB request limit, 1 MiB partition limit, and one concurrent fetch. Kafka may return an oversized first record, so these are not hard total-memory limits. Topic membership changes require stopping and restarting the stream; saved domains must remain present. ## Tested profiles The connector integration suite tests Kafka **4.0.2** using single-broker plaintext fixtures. It checks both sink execution modes, partition routing, tombstones, source resume, retention loss, topic recreation, and live partition changes. Bounded tests cover fixed windows, JSON schemas, limits, empty partitions, transactions, and retention loss. TLS/SASL configuration has unit coverage; secured-cluster and multi-broker fault tests remain follow-up work. # Linear source connector Source: https://filament.getgalaxy.io/pages/connectors/sources/linear Read teams, users, projects, and issues from Linear's GraphQL API with Filament, the open-source data movement engine. Connector ID `linear` The Linear source reads teams, users, projects, and issues through Linear's GraphQL API. It is built with an [HTTP manifest](/pages/connectors/building-a-connector/http-manifests). Its resources are stable, though future releases may add columns. ## Configuration | Field | Scope | Default | Description | | - | - | - | - | | `api_key` | Connection | | Required. Secret. Linear API key. | ## Resources Each resource has its own GraphQL query, reads 100 rows per page, and includes archived records. Issue relationships such as team, state, assignee, creator, and project are available both as flat ID columns and compact JSON objects. Issue rows include up to the first 50 labels. ## Modes All resources support full reads. If interrupted, a full read resumes after the last completed page. All four resources are incremental, following the same pattern. | Resource | Cursor field | Request parameter | Checkpoint key | | - | - | - | - | | `teams` | `updated_at` | `variables.updatedAfter` (body) | `teams_updated_at` | | `users` | `updated_at` | `variables.updatedAfter` (body) | `users_updated_at` | | `projects` | `updated_at` | `variables.updatedAfter` (body) | `projects_updated_at` | | `issues` | `updated_at` | `variables.updatedAfter` (body) | `issues_updated_at` | The first incremental run uses `1970-01-01T00:00:00Z`, so it also backfills existing records. Later runs send the saved `updated_at` value as `updatedAfter`. The manifest fixes the cursor field, but the pipeline can add a lookback window if needed. ## Behavior * **Auth**: the API key is sent as a raw `Authorization` header value, with no `Bearer` prefix. This is Linear's personal-key convention. * **Pagination**: Relay-style cursors. `pageInfo.endCursor` from each response feeds `variables.after` in the next request body, terminating when `pageInfo.hasNextPage` is false. * **Errors**: GraphQL returns HTTP 200 for query failures, so the manifest declares an error envelope. Any response with an `errors` array fails the run with the first error's message. * **Rate limiting**: no client-side limiter is configured. The engine backs off on 429 responses using `Retry-After`. * Every resource carries a `raw` remainder column preserving fields the manifest does not project. # Mailchimp source connector Source: https://filament.getgalaxy.io/pages/connectors/sources/mailchimp Read audiences, members, campaigns, reports, and commerce data from Mailchimp Connector ID `mailchimp` The Mailchimp source reads Marketing API 3.0 data through an [HTTP manifest](/pages/connectors/building-a-connector/http-manifests). The manifest has been checked against Mailchimp's official API schema, but has not been tested against a live account. ## Configuration | Field | Scope | Default | Description | | - | - | - | - | | `auth_method` | Connection | `api_key` | Choose **API Key** or **OAuth Access Token**. Only the selected method's credential field is shown. | | `api_key` | Connection | | Secret. Required for API Key authentication. | | `access_token` | Connection | | Secret. Required for OAuth Access Token authentication; omit the Bearer prefix. | | `server` | Connection | | Required. Account data center prefix, such as `us6`. | For **API Key**, create a key in your Mailchimp account's **Extras → API keys** settings. Set `server` to the suffix after the last hyphen in the key. For **OAuth Access Token**, complete Mailchimp's [authorization-code flow](https://mailchimp.com/developer/marketing/guides/access-user-data-oauth-2/) externally and provide the resulting access token. Retrieve the account's server prefix from the `dc` field returned by `GET https://login.mailchimp.com/oauth2/metadata` using that token. Mailchimp OAuth access tokens do not expire; they remain valid until revoked. Filament does not host the authorization redirect or exchange codes. Both methods send a Bearer credential to `https://.api.mailchimp.com/3.0`. Access follows the authorizing user's permissions and the account's plan. See [Mailchimp's authentication guide](https://mailchimp.com/developer/marketing/docs/fundamentals/#connecting-to-the-api). Connection testing reads the API root account endpoint. Existing connections continue to use API Key authentication by default. ## Resources Lists (audiences), members, campaigns, reports, and merge-field definitions are selected by default. All other resources are optional, including commerce, automations, SMS campaigns, account administration, and per-member detail reads. Selecting a child resource also reads its parents, but only selected resources are written to the destination. | Resource | Endpoint | Parent | | - | - | - | | `account` | `GET /3.0/` | | | `lists` | `GET /3.0/lists` | | | `members` | `GET /3.0/lists/{list_id}/members` | `lists` | | `member_tags` | `GET /3.0/lists/{list_id}/members/{subscriber_hash}/tags` | `lists (through member index)` | | `member_notes` | `GET /3.0/lists/{list_id}/members/{subscriber_hash}/notes` | `lists (through member index)` | | `member_events` | `GET /3.0/lists/{list_id}/members/{subscriber_hash}/events` | `lists (through member index)` | | `member_activity` | `GET /3.0/lists/{list_id}/members/{subscriber_hash}/activity` | `lists (through member index)` | | `member_activity_feed` | `GET /3.0/lists/{list_id}/members/{subscriber_hash}/activity-feed` | `lists (through member index)` | | `merge_fields` | `GET /3.0/lists/{list_id}/merge-fields` | `lists` | | `segments` | `GET /3.0/lists/{list_id}/segments` | `lists` | | `interest_categories` | `GET /3.0/lists/{list_id}/interest-categories` | `lists` | | `list_growth_history` | `GET /3.0/lists/{list_id}/growth-history` | `lists` | | `list_activity` | `GET /3.0/lists/{list_id}/activity` | `lists` | | `list_clients` | `GET /3.0/lists/{list_id}/clients` | `lists` | | `list_locations` | `GET /3.0/lists/{list_id}/locations` | `lists` | | `list_abuse_reports` | `GET /3.0/lists/{list_id}/abuse-reports` | `lists` | | `list_webhooks` | `GET /3.0/lists/{list_id}/webhooks` | `lists` | | `signup_forms` | `GET /3.0/lists/{list_id}/signup-forms` | `lists` | | `segment_members` | `GET /3.0/lists/{list_id}/segments/{segment_id}/members` | `segments` | | `interests` | `GET /3.0/lists/{list_id}/interest-categories/{interest_category_id}/interests` | `interest_categories` | | `campaigns` | `GET /3.0/campaigns` | | | `campaign_content` | `GET /3.0/campaigns/{campaign_id}/content` | `campaigns` | | `campaign_feedback` | `GET /3.0/campaigns/{campaign_id}/feedback` | `campaigns` | | `campaign_folders` | `GET /3.0/campaign-folders` | | | `reports` | `GET /3.0/reports` | | | `report_clicks` | `GET /3.0/reports/{campaign_id}/click-details` | `reports` | | `report_opens` | `GET /3.0/reports/{campaign_id}/open-details` | `reports` | | `report_email_activity` | `GET /3.0/reports/{campaign_id}/email-activity` | `reports` | | `report_recipients` | `GET /3.0/reports/{campaign_id}/sent-to` | `reports` | | `report_unsubscribes` | `GET /3.0/reports/{campaign_id}/unsubscribed` | `reports` | | `report_abuse` | `GET /3.0/reports/{campaign_id}/abuse-reports` | `reports` | | `report_domains` | `GET /3.0/reports/{campaign_id}/domain-performance` | `reports` | | `report_locations` | `GET /3.0/reports/{campaign_id}/locations` | `reports` | | `report_product_activity` | `GET /3.0/reports/{campaign_id}/ecommerce-product-activity` | `reports` | | `report_subreports` | `GET /3.0/reports/{campaign_id}/sub-reports` | `reports` | | `report_click_members` | `GET /3.0/reports/{campaign_id}/click-details/{link_id}/members` | `report_clicks` | | `templates` | `GET /3.0/templates` | | | `template_folders` | `GET /3.0/template-folders` | | | `template_default_content` | `GET /3.0/templates/{template_id}/default-content` | `templates` | | `files` | `GET /3.0/file-manager/files` | | | `file_folders` | `GET /3.0/file-manager/folders` | | | `connected_sites` | `GET /3.0/connected-sites` | | | `authorized_apps` | `GET /3.0/authorized-apps` | | | `account_exports` | `GET /3.0/account-exports` | | | `batch_webhooks` | `GET /3.0/batch-webhooks` | | | `verified_domains` | `GET /3.0/verified-domains` | | | `stores` | `GET /3.0/ecommerce/stores` | | | `customers` | `GET /3.0/ecommerce/stores/{store_id}/customers` | `stores` | | `products` | `GET /3.0/ecommerce/stores/{store_id}/products` | `stores` | | `orders` | `GET /3.0/ecommerce/stores/{store_id}/orders` | `stores` | | `carts` | `GET /3.0/ecommerce/stores/{store_id}/carts` | `stores` | | `promo_rules` | `GET /3.0/ecommerce/stores/{store_id}/promo-rules` | `stores` | | `order_lines` | `GET /3.0/ecommerce/stores/{store_id}/orders/{order_id}/lines` | `orders` | | `cart_lines` | `GET /3.0/ecommerce/stores/{store_id}/carts/{cart_id}/lines` | `carts` | | `product_variants` | `GET /3.0/ecommerce/stores/{store_id}/products/{product_id}/variants` | `products` | | `product_images` | `GET /3.0/ecommerce/stores/{store_id}/products/{product_id}/images` | `products` | | `promo_codes` | `GET /3.0/ecommerce/stores/{store_id}/promo-rules/{promo_rule_id}/promo-codes` | `promo_rules` | | `automations` | `GET /3.0/automations` | | | `automation_emails` | `GET /3.0/automations/{workflow_id}/emails` | `automations` | | `automation_queue` | `GET /3.0/automations/{workflow_id}/emails/{workflow_email_id}/queue` | `automation_emails` | | `automation_removed_subscribers` | `GET /3.0/automations/{workflow_id}/removed-subscribers` | `automations` | | `sms_campaigns` | `GET /3.0/sms-campaigns` | | | `sms_campaign_content` | `GET /3.0/sms-campaigns/{sms_campaign_id}/content` | `sms_campaigns` | `members` includes contact status, merge fields, interests, tags, marketing permissions, and statistics. `campaign_content` reads HTML and plain text. Reports include delivery, engagement, and commerce summaries, with separate optional resources for recipients, opens, clicks, and email activity. Commerce IDs are scoped to their store. Line items, product variants, images, and promo codes have separate paginated resources in addition to nested JSON returned by their parents. File and account-export resources contain metadata and URLs; they do not download files or create export jobs. IDs are strings. Nested objects and arrays remain JSON. Most date fields remain strings so that empty provider values are preserved; the incremental member cursor is a timestamp with a time zone. Each resource has a `raw` column for returned fields that are not projected separately. The connector does not include Transactional/Mandrill, Open Commerce, beta omni-channel audiences, landing pages, surveys, Facebook ads, conversations, member goals, or batch-operation jobs. Alternate lookup/search endpoints and campaign send checks are not separate resources. It does not send campaigns, modify subscriptions, or receive webhook events. ## Modes All resources support full reads. `members` also supports incremental reads using `last_changed` with the `since_last_changed` filter and a 60-second overlap. Each audience is listed on every run. Member detail resources use a separate full member index, so selecting incremental members does not hide older contacts whose notes, tags, or activity need to be read. The member cursor tracks changes to contact information. It is not a change feed for every engagement statistic or related resource. Use periodic full reads to refresh those values and reconcile archived or deleted members. Incremental reads do not remove destination rows. Campaigns, reports, segments, and commerce remain full-read because creation or send dates do not capture later changes. Use full replace for `member_events`, `member_activity`, `member_activity_feed`, `signup_forms`, `report_locations`, and `report_product_activity`: these have no stable primary key declared. Keyed resources support full upsert or full replace. ## Behavior * **Auth**: requests use Bearer authentication with the API key. The credential inherits its owner's role and is revoked when that user loses account access. * **Pagination**: endpoints that document both `count` and `offset` are read in pages of 100 until a short page. Other endpoints use their documented single response. Offset pagination is not a consistent snapshot during concurrent edits. * **Dependencies**: optional per-member reads can require one request per contact. Child reads use two concurrent requests. Hidden member indexing reads IDs only. * **Rate limiting**: Mailchimp permits ten simultaneous connections. The engine retries HTTP 429 responses and honors `Retry-After`; it does not impose an account-wide connection cap shared with other clients. Select smaller resource groups if broad parallel reads exhaust that allowance. Permission errors remain failures rather than becoming empty results. * **History**: `member_activity` returns the last 50 events per member, not an unlimited event archive. Report arrays contain the activity returned by Mailchimp, with no promise of events outside its retention or tracking settings. * **Access**: optional resources can require account features, historical classic automations, or additional permissions. Static resource discovery does not validate those permissions. Endpoint failures remain visible. # Metronome source connector Source: https://filament.getgalaxy.io/pages/connectors/sources/metronome Read Metronome customers, contracts, billing, usage, and reference data with Filament. Connector ID `metronome` The Metronome source provides 46 selectable resources through an [HTTP manifest](/pages/connectors/building-a-connector/http-manifests). It targets Contracts v2 with the shared v1 endpoints and optional legacy Plans reads. Use `metronome@v2` to pin this API selection. `metronome` resolves to it. The connector is in preview. Its API contracts and shared engine have been checked locally, but live account reads have not been validated. ## Configuration | Field | Scope | Default | Description | | - | - | - | - | | `api_token` | Connection | | Required secret. API token with access to selected resources. | | `customer_archived_states` | Connection | `false,true` | Active and archived customers. `false` selects active only and `true` selects archived only. Also controls customer-dependent reads. | | `start_date` | Pipeline | | Inclusive UTC date for usage, invoice breakdowns, spend breakdowns, and legacy costs. | | `end_date` | Pipeline | | Exclusive UTC date for the same resources. Must be later than `start_date`. | Dates use `YYYY-MM-DD` and are sent at UTC midnight. Windowed resources require both `start_date` and `end_date`. Other resources do not require a date window. Create a token under **Developer → API tokens** in the Metronome app. Tokens inherit their creator's permissions unless Metronome applies narrower access. Use a read-only token for the intended environment and grant access to each selected endpoint, including POST reads. See [API authentication](https://docs.metronome.com/api-reference/authentication). Connection testing reads one billable-metrics page and requires access to that endpoint. Discovery alone does not test access. ## Resources The default selection includes billable metrics, customers, products, rate cards, pricing units, custom field keys, account billing providers, customer billing configurations, contracts, commits, credits, packages, and invoices. All other resources are opt-in. ### Customers and reference data | Resource | Endpoint | Parent | | - | - | - | | `billable_metrics` | `GET /v1/billable-metrics` | | | `customers` | `GET /v1/customers` | | | `products` | `POST /v1/contract-pricing/products/list` | | | `rate_cards` | `POST /v1/contract-pricing/rate-cards/list` | | | `pricing_units` | `GET /v1/credit-types/list` | | | `custom_field_keys` | `POST /v1/customFields/listKeys` | | | `billing_providers` | `POST /v1/listConfiguredBillingProviders` | | | `customer_billing_configurations` | `POST /v1/getCustomerBillingProviderConfigurations` | `customers` | | `customer_billable_metrics` | `GET /v1/customers/{customer_id}/billable-metrics` | `customers` | ### Contracts, commitments, and packages | Resource | Endpoint | Parent | | - | - | - | | `contracts` | `POST /v2/contracts/list` | `customers` | | `contract_edit_history` | `POST /v2/contracts/getEditHistory` | `contracts` | | `commits` | `POST /v1/contracts/customerCommits/list` | `customers` | | `credits` | `POST /v1/contracts/customerCredits/list` | `customers` | | `balances` | `POST /v1/contracts/customerBalances/list` | `customers` | | `seat_balances` | `POST /v1/contracts/seatBalances/list` | `contracts` | | `subscriptions` | `POST /v2/contracts/get` | `contracts` | | `subscription_quantity_history` | `POST /v1/contracts/getSubscriptionQuantityHistory` | `subscriptions` | | `subscription_seats_history` | `POST /v1/contracts/getSubscriptionSeatsHistory` | `subscriptions` | | `packages` | `POST /v1/packages/list` | | | `package_contracts` | `POST /v1/packages/listContractsOnPackage` | `packages` | ### Invoices, usage, and rates | Resource | Endpoint | Parent | | - | - | - | | `invoices` | `GET /v1/customers/{customer_id}/invoices` | `customers` | | `invoice_breakdowns` | `GET /v1/customers/{customer_id}/invoices/breakdowns` | `customers` | | `usage` | `POST /v1/usage` | | | `rate_card_rate_schedules` | `POST /v1/contract-pricing/rate-cards/getRateSchedule` | `rate_cards` | | `contract_rates` | `POST /v1/contracts/getContractRateSchedule` | `contracts` | | `net_balances` | `POST /v1/contracts/customerBalances/getNetBalance` | `customers, pricing_units` | | `net_quantity_balances` | `POST /v1/contracts/customerBalances/getNetBalance` | `customers` | ### Notifications | Resource | Endpoint | Parent | | - | - | - | | `threshold_notifications` | `POST /v1/customer-alerts/list` | `customers` | | `offset_notifications` | `POST /v2/notifications/offset/list` | | | `system_notifications` | `POST /v2/notifications/system/list` | | ### Administration | Resource | Endpoint | Parent | | - | - | - | | `services` | `GET /v1/services` | | ### Account-specific features | Resource | Endpoint | Parent | | - | - | - | | `approval_requests` | `GET /v1/approval_requests` | | | `customer_revenue_configurations` | `POST /v1/getCustomerRevenueSystemConfigurations` | `customers` | | `historical_balances` | `POST /v1/contracts/historicalBalances/list` | `customers` | | `spend_invoice_breakdowns` | `POST /v1/customers/{customer_id}/invoices/spend-breakdowns` | `customers` | | `contract_named_schedules` | `POST /v1/contracts/listNamedSchedules` | `customers` | ### Legacy Plans and amendments | Resource | Endpoint | Parent | | - | - | - | | `legacy_contracts` | `POST /v1/contracts/list` | `customers` | | `plans` | `GET /v1/plans` | | | `plan_details` | `GET /v1/planDetails/{plan_id}` | `plans` | | `plan_charges` | `GET /v1/planDetails/{plan_id}/charges` | `plans` | | `plan_customers` | `GET /v1/planDetails/{plan_id}/customers` | `plans` | | `customer_plans` | `GET /v1/customers/{customer_id}/plans` | `customers` | | `customer_plan_adjustments` | `GET /v1/customers/{customer_id}/plans/{customer_plan_id}/priceAdjustments` | `customer_plans` | | `credit_grants` | `POST /v1/credits/listGrants` | | | `credit_ledger_entries` | `POST /v1/credits/listEntries` | | | `customer_costs` | `GET /v1/customers/{customer_id}/costs` | `customers` | Each list emits one row per returned object. Related line items, ledgers, contract terms, subscription schedules, package terms, and notification policies remain JSON arrays or objects. IDs remain strings, amounts and fractional quantities use decimal projections, and timestamps carry time zones. Every resource includes a `raw` remainder for additional fields. Contract responses can truncate embedded commits and credits. Use `commits` and `credits` for their complete paginated lists, including contract-level and archived records with ledgers and balances. `balances` provides the combined view. `seat_balances` includes all returned seats with their credits, commits, and ledgers. See [list customer contracts](https://docs.metronome.com/api-reference/contracts/list-customer-contracts-v2) and [list seat balances](https://docs.metronome.com/api-reference/credits-and-commits/list-seat-balances). `subscriptions` reads the subscription array from each contract detail. Quantity history includes past changes, while future quantity schedules remain on the subscription. Seat history returns schedule segments and assigned seat IDs. `net_balances` queries each customer and pricing unit separately, including custom units. `net_quantity_balances` queries quantity-based balances separately. These are current snapshots and include draft invoice deductions under the API default. `usage` reads daily aggregates for all customers and metrics in the selected window without requesting truncated inline groupings. Rate card schedules include every past and future segment. Contract rates reflect the schedule in effect when the read runs. Invoice breakdowns emit daily windows. Spend breakdowns use the API's default presentation groups. Approval requests, revenue system configurations, historical balances, spend breakdowns, and named schedules come from the [official OpenAPI specification](https://api.metronome.com/v1/docs/openapi). These include feature-gated and private-preview APIs. Enable only resources your account supports. Contract named schedules use the listing endpoint and retain property-qualified schedules and all segments. Legacy Plans resources are optional for accounts that still use that deprecated product. `legacy_contracts` retains the v1 initial, current, and amendment views. `plan_details` adds minimums, overage rates, and plan credit-grant definitions. `plan_customers` includes past, current, and upcoming assignments. Legacy grants and ledgers exclude voided grants upstream. Legacy costs do not support plans with UNIQUE billable metrics. See the [legacy Plans reference](https://docs.metronome.com/api-reference/plans/list-plans). ### Coverage boundaries The resource set reconciles the published Contracts and legacy Plans indexes with the official OpenAPI read operations. Individual lookups for customers, billable metrics, products, rate cards, invoices, packages, approval requests, contracts, offset notifications, and contract named schedules repeat data available through the included lists. Threshold-notification lists include customer evaluation status and configuration. Filtered point-in-time lookup variants are not separate resources. Audit logs, invoice PDF downloads, and generated embeddable dashboard URLs are not replicated. Write operations, invoice simulations, webhook reception, and endpoints without published request and response contracts are outside this source. Lookups that need IDs or names the API cannot list are not replicated. These cover event search by transaction ID, webhook delivery history, usage by a single grouping key, customer and rate card named schedules, and point-in-time rate lookups. The API offers no raw-event listing. For raw events and large accounts, use Metronome's [data export](https://docs.metronome.com/guides/reporting-insights/data-export/overview) to a warehouse or object store. ## Modes All resources use full reads. Creation dates, usage windows, and effective dates do not establish update-watermark semantics for mutable billing records. Repeated full reads refresh edited invoices, balances, ledgers, and contracts. Windowed reads cover only the configured interval. Use full replace for keyless resources. These include rate rows, usage aggregates, invoice breakdowns, seat-history segments, threshold and system notifications, named schedules, plan assignments and adjustments, legacy ledger batches, and legacy daily costs. Their upstream rows do not expose a suitable stable row ID. Other resources support upsert by the declared ID or parent-scoped key. Full upsert does not remove absent records. Full replace can reflect removals only within the selected visibility, interval, and upstream retention. ## Behavior * **Auth** uses bearer authentication against `https://api.metronome.com`. * **Pagination** follows URL `next_page`, body `next_page`, or body `cursor` as specified by each endpoint. Null cursors end a read. General listings request 50 rows, contracts request 20, commitment lists request 25, and seat history requests 10. Short pages do not end a read while a continuation cursor exists. * **System notifications** use the documented single-request endpoint. Its schema contains a nullable cursor but documents no continuation parameter. A nonempty cursor fails the read instead of silently dropping more data. Such a response requires upstream clarification of the continuation contract. * **Parents** are fetched for selected child resources even when the parent is not selected for output. Customer reads walk active and archived lists by default. Products, packages, contracts, commitments, billing configurations, and threshold notifications explicitly request archived data where supported. Other listings retain upstream visibility defaults. * **Recovery** restarts child reads and configured lookup loops. Ordinary top-level cursor reads can resume saved pagination state. These checkpoints are not update-based incremental replication. * **Rate limits** use the shared HTTP retry handling for 429 responses and server errors, honoring `Retry-After` when supplied. Metronome reports whether a throttle applies to the client or customer through `X-Metronome-Rate-Limit-Type`. See [API status codes](https://docs.metronome.com/api-reference/status-codes). * **Errors** remain visible. Missing permissions and unavailable account features are not converted into empty data. * **Consistency** follows the upstream reads. Requests across customers and API families do not form an atomic billing snapshot. Archived status can change while active and archived customer passes are running. # monday.com source connector Source: https://filament.getgalaxy.io/pages/connectors/sources/monday Read boards, items, updates, documents, and account data from monday.com Connector ID `monday` The monday.com source reads work records and account data through monday.com's GraphQL API. It uses an [HTTP manifest](/pages/connectors/building-a-connector/http-manifests). Queries have been checked against the published API schema. The default resources and item and document pagination have been tested with a small live account; non-empty audit incremental reads remain unverified. It targets API version `2026-07`. ## Configuration | Field | Scope | Default | Description | | - | - | - | - | | `api_token` | Connection | | Required. Secret. Personal monday.com API token. | Find your token under **Developers → API token → Show** in your profile menu. The token reads whatever that user can access. See [monday.com's authentication guide](https://developer.monday.com/api-reference/docs/authentication). Connection testing makes one account query; it does not verify access to every optional resource. ## Resources | Group | Resources | | - | - | | Account | `account`, `users`, `teams`, `account_roles`, `departments` | | Workspaces | `workspaces`, `folders`, `workspace_users`, `workspace_owners`, `workspace_teams`, `workspace_team_owners` | | Boards | `boards`, `archived_boards`, `deleted_boards`, `columns`, `groups`, `views`, `board_team_owners`, `board_team_subscribers`, `board_validations` | | Items | `items`, `subitems`, `item_assets`, `subitem_assets`, `item_description_blocks`, `subitem_description_blocks` | | Updates | `updates`, `board_updates`, `update_viewers` | | Documents | `docs`, `doc_blocks` | | Reference data | `tags`, `managed_columns`, `object_schemas`, `directory_resources` | | Product features | `notetaker_meetings`, `custom_activities`, `timeline_items`, `subitem_timeline_items`, `sequences` | | User settings | `favorites`, `notifications`, `notification_settings`, `board_notification_settings` | | Administration | `webhooks`, `audit_logs`, `audit_event_catalogue`, `api_usage` | Selected by default: `account`, `users`, `teams`, `workspaces`, `folders`, `boards`, `columns`, `groups`, `views`, `items`, `subitems`, `updates`, `docs`, `doc_blocks`, and `tags`. The rest are optional and may require additional permissions, a paid plan, or access to the corresponding product. Audit logs require Enterprise admin access and the `manage_account_security` permission. Selecting a child resource fetches its parents automatically. Parent rows are only written when also selected. IDs are strings; child records use parent IDs in their keys where needed. Nested structures remain JSON. `items` reads active top-level items on classic and multi-level boards. `subitems` reads their descendants with parent and board IDs. Item rows include column definitions and values, but evaluated formula values are not requested. Archived and deleted boards contain metadata only; their items are not read. Updates include replies, reactions, and file metadata. Optional `board_updates` adds board IDs to board-level posts, which can also appear in `updates`. Document and item-description blocks are read separately. Assets contain metadata, not file contents. Not included: board and user activity histories, dashboards and workflows, knowledge-base articles, WorkForms definitions, app-developer APIs, document version history, and reply viewers. Webhook configuration is read without creating subscriptions or receiving events. ## Modes All resources support full reads. Only `audit_logs` supports incremental reads. | Resource | Cursor field | Request parameter | Checkpoint key | | - | - | - | - | | `audit_logs` | `timestamp` | `variables.since` (body) | `audit_logs_timestamp` | The first incremental run reads available audit history. Later runs send the saved timestamp through monday.com's `start_time` filter. Audit logs have no unique event ID: use **incremental append**, accepting possible duplicates at the checkpoint boundary or from a configured lookback. The default lookback is zero. Verify timestamp and boundary behavior against your account before scheduling incremental runs. See the [audit log reference](https://developer.monday.com/api-reference/reference/audit-logs). Items and updates remain full reads because their documented filters do not provide a reliable saved-timestamp cursor for all edits. Use **full replace** to remove records that the API no longer returns. `audit_logs`, `audit_event_catalogue`, `notification_settings`, `api_usage`, and `update_viewers` have no primary key; use full replace for their snapshot reads. ## Behavior * **Auth**: the token is sent as a raw `Authorization` header value. Requests use `POST /v2` with API version `2026-07`. * **Pagination**: numbered lists generally request 50 rows per page. Items, directory resources, timelines, Notetaker, and notifications use cursors. Audit logs use `has_more_pages` to continue through short pages. Item cursors expire after 60 minutes; an expired cursor fails the run. * **Errors**: GraphQL errors fail extraction, including HTTP 200 responses containing partial data. Permission errors are not treated as empty resources. * **Rate limiting**: two requests per second per connection. The engine retries throttled requests using `Retry-After`; monday.com also applies shared usage and query-complexity limits. See [rate limits](https://developer.monday.com/api-reference/docs/rate-limits). * Every resource carries a `raw` remainder column preserving requested fields that the manifest does not project. # MySQL source connector Source: https://filament.getgalaxy.io/pages/connectors/sources/mysql Keyset snapshot, incremental watermark, and binlog CDC reads from MySQL 8.0+ Connector ID `mysql` The MySQL source reads from MySQL 8.0+ with resumable keyset snapshots, timestamp-watermark incremental reads, and binlog CDC. ## Configuration | Field | Scope | Default | Description | | - | - | - | - | | `connection_method` | Connection | `fields` | `fields` or `url`. Unset with a `dsn` present implies `url`. | | `dsn` | Connection | | go-sql-driver DSN or `mysql://`/`mariadb://` URL. Required in `url` mode. Secret. | | `host` | Connection | | Server hostname. Required in `fields` mode. | | `port` | Connection | `3306` | Server port. | | `username` | Connection | | Required in `fields` mode. | | `password` | Connection | | Required in `fields` mode. Secret. | | `database_name` | Connection | | Database to connect to. Required in `fields` mode. | | `tls_mode` | Connection | `preferred` | One of `false`, `preferred`, `true`, `skip-verify`. | | `replication` | Connection | `standard` | `standard` for query-based full and incremental reads, `cdc` for binlog streaming. | | `database` | Pipeline | DSN database | Database to read tables from. Error when neither this nor the DSN sets one. | | `page_size` | Pipeline | `1000` | Rows to target per read page. | | `shard_pages` | Pipeline | `16384` | InnoDB pages per parallel shard (≈256 MiB at 16 KiB pages). `0` disables sharding. | | `max_conns` | Pipeline | | Maximum source connections. | | `server_id` | Pipeline | `62347` | Replication client `server_id` for CDC. Must be unique in the replica topology. | | `snapshot_mode` | Pipeline | `initial` | CDC only. `initial` reads a table in full before streaming it, `none` streams from the current position only. | ## Snapshot reads Tables with a primary key use ordered keyset reads. This works well with InnoDB because the primary key also determines physical row order. Filament saves the last key so an interrupted read can resume. Large tables can be divided into as many as 64 primary-key ranges. Integer keys use numeric boundaries; UUID, text, and datetime keys use sampled ranges with roughly equal row counts. Composite keys are also supported. Each range uses its own consistent, read-only snapshot. Parallel ranges may therefore observe the table at slightly different moments; the MySQL source does not provide one shared snapshot across the entire run. Binary values remain raw bytes when they are written into Arrow batches. A table without a primary key is read in a single streaming pass. That pass is not resumable, so a resume re-reads the whole table. ## Incremental reads Incremental resources require both a primary key and a non-null `DATETIME` or `TIMESTAMP` cursor column. Conventional names such as `updated_at`, `modified_at`, and `last_modified_at` are recommended automatically; a cursor can also be selected per pipeline resource. The column must advance on every insert and update that the pipeline needs to observe. The first incremental run captures the current `(cursor, primary key...)` high watermark, then performs a resumable primary-key backfill. After that backfill completes, scheduled runs page by the compound watermark, which keeps rows sharing the same timestamp deterministic. Each run bounds itself at a high watermark inside a consistent-snapshot transaction. The default lookback is zero, so incremental append does not duplicate an overlap window. Configure a positive per-resource lookback to catch late commits; when a lookback is enabled, incremental upsert is the recommended write policy because recent rows are deliberately re-read. For large tables, an index beginning with the cursor and followed by the primary-key columns avoids an incremental filesort, for example: ```sql theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} CREATE INDEX users_incremental_idx ON users (updated_at, id); ``` ## CDC CDC connects as a binlog replica (go-mysql `BinlogSyncer`) and decodes insert, update, and delete events into the same columns the snapshot reader produces. Runs have catch-up semantics. Each captures the server's current binlog position as a watermark, streams from the checkpoint up to it, and returns. Continuous CDC is a re-request loop, so it can run on a schedule. No-change runs still persist the watermark. | Binlog position | When it is used | Operational effect | | - | - | - | | GTID set | `gtid_mode=ON` | Preferred because it survives replica promotion | | File and position | GTID is disabled | Tied to the current binlog file sequence | An existing file-position checkpoint keeps that format if GTID is enabled later. GTID checkpoints advance after a committed transaction. A crash during a transaction replays the whole transaction, so use merge writes that converge by primary key. When a selected table has no CDC checkpoint, the run first reads it in full through a consistent snapshot, and the change stream then continues from the binlog position captured just before that snapshot opened. To make the two agree, the run takes read locks on those tables in a side session for the instant between capturing the position and opening the snapshot. Writers of those tables wait for a couple of round trips and nothing else is blocked. The baseline and the stream then share one exact point in both cursor modes, so a pipeline can start on CDC alone without a separate full run. Run row limits do not apply to this bootstrap read. The tables must use InnoDB, since only a transactional engine gives the snapshot one point in time. Binlog retention must cover the time the bootstrap read takes, or the stream cannot start from the captured position. `snapshot_mode=none` skips that read. A table without a checkpoint streams from the binlog position at the start of its first run, so the sink starts empty and fills in as rows change. Updates carry the full row, so a merge sink upserts rows it has never seen; deletes of unseen rows are no-ops. This mode needs neither `LOCK TABLES` nor InnoDB. Requirements: * `ROW` binlog format (the 8.0+ default) * Binlog retention covering the resume window * `REPLICATION SLAVE` and `REPLICATION CLIENT` privileges * `LOCK TABLES` and `SELECT` on the CDC tables, held for a moment when a table is first bootstrapped * A TCP connection (unix sockets are rejected for CDC) Behavior worth knowing: * A primary-key-changing update is emitted as a delete of the old row plus an insert of the new one. * Column names are not in the binlog. Each table's column list is read from `information_schema` (this works with `binlog_row_metadata=MINIMAL`) and the cache is invalidated on any DDL event. * A column-count mismatch between a binlog event and the cached schema fails the run rather than mis-mapping values. Re-snapshot the table after incompatible DDL. See [Replication modes](/pages/guides/concepts/replication-modes) for how modes map to write policies. ## Related guides * [Replicate MySQL to Snowflake with CDC](/pages/how-to/mysql-to-snowflake) * [MySQL binlog CDC explained](https://www.getgalaxy.io/articles/mysql-cdc-binlog-replication-explained) * [MySQL to Snowflake replication guide](https://www.getgalaxy.io/articles/mysql-to-snowflake-the-complete-replication-guide) * [MySQL to ClickHouse replication guide](https://www.getgalaxy.io/articles/mysql-to-clickhouse-the-complete-replication-guide) * [MySQL to Postgres migration and replication](https://www.getgalaxy.io/articles/mysql-to-postgres-migration-and-replication-guide) # NATS JetStream source connector Source: https://filament.getgalaxy.io/pages/connectors/sources/nats Consume retained subject messages with certified epoch acknowledgements Connector ID `nats` The `nats` source supports continuous execution. Select subject resources such as `orders.>` to let Filament manage durable filtered consumers. Configure the NATS `url` and authentication using the [shared connection settings](/pages/connectors/sinks/nats#configuration). Bounded extraction is unsupported. ## Payload columns JSON object members become source columns alongside the subject and Filament event metadata. By default, the first message fixes each resource's schema. Missing fields become null. Incompatible payload changes fail before certification. Non-object payloads remain raw bytes in a source-owned `payload` column. ### Live nullable fields With a PostgreSQL sink, set its `schema_evolution` option to `nullable_add` to accept newly observed payload fields during continuous execution. Filament buffers and probes every message in an epoch before encoding any rows. The buffer is bounded by the epoch limits and the consumer's pending-message credit. Heartbeats keep buffered messages alive while schema checks or migrations are waiting. An initial message such as `{"id": 1}` can therefore be followed by `{"id": 2, "email": "a@example.com"}`. The sink adds a nullable `email` column. Earlier rows and later messages without `email` have null in that column. Absence never removes an accepted field or makes it required. Strings and booleans use their scalar types. Numbers, objects, arrays, and null-only fields use JSON to preserve their values without guessing a narrower type. JSON fields can later contain other JSON values. An incompatible change to an accepted scalar field blocks the entire epoch before row emission. Raw-byte payloads cannot automatically switch to object columns or vice versa. Use `strict` to establish the layout from the initial whole batch and block later additions. Leave `schema_evolution` disabled to retain first-message inference. Resources spanning several physical streams share one accepted layout. The accepted payload layout is stored in the epoch certificate alongside source progress. A restarted worker restores it even when the first replayed message omits previously seen fields. The source acknowledges only after both destination commit and checkpoint persistence succeed. Destination and checkpoint commits remain separate, so existing duplicate-delivery and uncertain-commit recovery limitations still apply. Streams with earlier checkpoints that contain no accepted layout must start a new generation before enabling live evolution. Resuming saved layouts requires the same pipeline version and enabled schema negotiation. A schema block keeps the last certified progress unchanged and suppresses automatic retries. Resolve the issue before requesting another attempt. ## Retention and recovery Managed filtered consumers read **retained matching messages**. A stream can also hold unrelated subjects, so gaps in its sequence numbers are expected. Filament does not treat stream-wide deleted IDs or a moved first sequence as proof that a matching message was lost. JetStream's stream-wide retention metadata cannot establish which subject a deleted message belonged to. Matching messages removed before consumption or recovery can therefore be lost without detection. Size retention for the longest processing lag and recovery outage you need to support. Certification and delayed acknowledgements protect delivered input; they cannot recover input the server has already removed. Recovery can replay input, so destinations must tolerate duplicates. Explicit stream/consumer bindings use an unfiltered durable pull consumer with explicit acknowledgement, deliver-all, unlimited delivery attempts, `MaxAckPending=1`, and `AckWait` of at least one second. These consumers retain strict stream-sequence gap detection and stop when continuity cannot be proven. ## Epoch batching With a reusable sink, workers default to 1,000 records and a one-second read budget. Sinks that reopen per boundary default to 100,000 records and 30 seconds. These are soft targets. Consumer credit can produce smaller batches. Embedded callers can override these values through `RunOptions.EpochBoundary`. Provide positive `MaxRecords` and `MaxWait`. `MaxBytes` and `MaxAge` can further limit NATS reads. These settings are persisted in the admitted run specification. Managed consumers allow up to 1,000 pending messages and older single-credit managed consumers are upgraded in place. A consumer's credit caps each batch; explicit user-owned consumers keep their single-message credit. Multiple physical streams are serviced in turn, with one consumer contributing to each epoch. All delivered messages in a batch receive heartbeat extensions and remain unacknowledged until the destination commit and Filament's epoch certification succeed. Failed or canceled reads do not acknowledge their tentative batch. # Notion source connector Source: https://filament.getgalaxy.io/pages/connectors/sources/notion Read databases, pages, users, and blocks from a Notion workspace with Filament, the open-source data movement engine. Connector ID `notion` The Notion source reads databases, their pages and blocks, and workspace users. It is built with an [HTTP manifest](/pages/connectors/building-a-connector/http-manifests). Its resources are stable, though future releases may add columns. It targets API version `2022-06-28`. ## Configuration | Field | Scope | Default | Description | | - | - | - | - | | `api_key` | Connection | | Required. Secret. Notion integration secret. | ## Resources ```text theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} databases → pages → blocks users ``` Filament searches for databases, requests the pages in each database, and then requests the child blocks for each page. Users are read independently. Selecting blocks therefore adds at least one API request per page in the workspace. ## Modes All resources support full reads. If interrupted, a top-level resource resumes after its last completed page. Child resources (`pages`, `blocks`) always restart with their parent. `pages` is the one incremental resource. | | | | - | - | | Cursor field | `last_edited_time` | | Request parameter | `filter.last_edited_time.on_or_after` (body) | | Comparator | `time` | | Initial value | `1970-01-01T00:00:00Z` | | Checkpoint key | `pages_last_edited_time` | | Overlap | 300 seconds | The cursor field is fixed by the manifest. Only a lookback window is user-configurable, and only because the comparator is `time`. Pages fan out across databases but share a single durable watermark for the whole resource. The 300-second overlap re-reads a window each run to cover databases edited while earlier ones were being scanned. `blocks` has no incremental block. When it is selected, every page's children are re-read in full. ## Behavior * **Auth**: bearer token from `api_key` on every request. * **API version**: pinned via `Notion-Version: 2022-06-28`, so response fields do not drift with Notion's rolling default. * **Pagination**: cursor paging throughout. `next_cursor` from each response feeds `start_cursor` in the next request (in the body for the POST endpoints, in the query string for `users` and `blocks`), terminating when `has_more` is false. * **Rate limiting**: no client-side limiter is configured. The engine backs off on 429 responses using `Retry-After`. * `databases` and `pages` keep the entire response object in `raw`, while `users` and `blocks` keep only unprojected fields as a remainder. # Pipedrive source connector Source: https://filament.getgalaxy.io/pages/connectors/sources/pipedrive Read deals, leads, contacts, activities, and reference data from Pipedrive Connector ID `pipedrive` The Pipedrive source reads CRM records and the reference data needed to interpret them. It uses an [HTTP manifest](/pages/connectors/building-a-connector/http-manifests). It has been checked against Pipedrive's API reference and tested with mock responses and a small live account. It targets API version `v2`, with users, leads, notes, files, and reference data still read from `v1` endpoints. ## Configuration | Field | Scope | Default | Description | | - | - | - | - | | `api_token` | Connection | | Required. Secret. Personal API token. | | `host` | Connection | `https://api.pipedrive.com` | API host. Your company domain host is faster. | Find your token under your account name → **Company settings → Personal preferences → API**. The token reads whatever that user can see in Pipedrive. If the API tab is missing, an admin must [enable API access](https://pipedrive.readme.io/docs/enabling-api-for-company-users). Pipedrive recommends `https://.pipedrive.com` as the host, where `` is the subdomain you sign in with. The default host works for every account. Connection testing makes one request to the users endpoint. ## Resources | Resource | Endpoint | Modes | | - | - | - | | `users` | `GET /api/v1/users` | Full | | `deals` | `GET /api/v2/deals` | Full, incremental | | `deals_archived` | `GET /api/v2/deals/archived` | Full, incremental | | `persons` | `GET /api/v2/persons` | Full, incremental | | `organizations` | `GET /api/v2/organizations` | Full, incremental | | `activities` | `GET /api/v2/activities` | Full, incremental | | `leads` | `GET /api/v1/leads` | Full, incremental | | `leads_archived` | `GET /api/v1/leads/archived` | Full | | `notes` | `GET /api/v1/notes` | Full | | `products` | `GET /api/v2/products` | Full, incremental | | `pipelines` | `GET /api/v2/pipelines` | Full | | `stages` | `GET /api/v2/stages` | Full | | `deal_fields` | `GET /api/v2/dealFields` | Full | | `person_fields` | `GET /api/v2/personFields` | Full | | `organization_fields` | `GET /api/v2/organizationFields` | Full | | `activity_fields` | `GET /api/v2/activityFields` | Full | | `product_fields` | `GET /api/v2/productFields` | Full | | `activity_types` | `GET /api/v1/activityTypes` | Full | | `lead_labels` | `GET /api/v1/leadLabels` | Full | | `currencies` | `GET /api/v1/currencies` | Full | | `filters` | `GET /api/v1/filters` | Full | | `projects` | `GET /api/v2/projects` | Full | | `tasks` | `GET /api/v2/tasks` | Full | | `files` | `GET /api/v1/files` | Full | Selected by default: users, deals, persons, organizations, activities, leads, notes, pipelines, stages, the deal, person, and organization field definitions, activity types, and lead labels. The rest are optional. No resource depends on another. Each row is one Pipedrive record. Numeric IDs are `int64` columns, lead and lead label IDs are UUID strings, optional fields are nullable, and the `raw` column keeps fields without their own column. **Custom fields** use 40-character keys. The v2 endpoints return them in a `custom_fields` JSON column keyed by that key. Map a key to its label with the `field_code` and `field_name` columns of the matching field-definition resource. Leads come from the v1 API, so their custom field keys stay in `raw`. See [Pipedrive's custom field guide](https://pipedrive.readme.io/docs/core-api-concepts-custom-fields). `deals` and `leads` exclude deleted and archived records, matching Pipedrive's default listings. The `_archived` resources read archived records with the same columns. `activities` includes attendees. `notes` keeps the HTML body in `content`. `files` rows are metadata and a download URL, not file contents. Pipedrive marks the tasks endpoint as beta. Not included: mail, the recents feed, per-record flow and changelog histories, search, deal products and installments, organization relationships, call logs, goals, roles, permission sets, and webhook configuration, which exposes HTTP auth credentials. ## Modes Deals, archived deals, persons, organizations, activities, products, and leads support incremental reads on `update_time`. Each run sends the saved timestamp as `updated_since`, which Pipedrive applies inclusively, with a one-minute lookback by default. Checkpoint keys are `_update_time` and use the `time` comparator. A returned record without an `update_time` fails the run rather than being skipped. Incremental reads cannot detect deletions. Use **full replace** to remove rows that Pipedrive no longer returns, or **full upsert** to refresh rows in place. Notes are read in full. The v1 notes endpoint accepts `updated_since`, but its `update_time` values use Pipedrive's older `YYYY-MM-DD HH:MM:SS` format, which the incremental engine cannot compare. Every other resource is read in full. ## Behavior * **Auth**: every request sends the token in the `x-api-token` header. An empty list can mean the token's user cannot see those records. * **Pagination**: v2 endpoints follow `additional_data.next_cursor`, 500 records per page. Leads, notes, and files use v1 offset pagination, 100 per page, and stop after a short page. The other v1 endpoints return everything at once. Empty v1 lists can return `"data": null`, which Filament reads as no rows. * **Recovery**: interrupted top-level reads resume from a saved page cursor or offset. If that request fails, the read restarts from the beginning. * **Rate limiting**: five requests per second, shared across resources in this connection. Pipedrive's burst limit is per token and depends on the plan, from 20 requests per 2 seconds on Lite to 120 on Ultimate. Pipedrive also charges a daily token budget per company, 10 tokens per v2 list page and 20 per v1 list page. Filament retries throttled requests but does not track the daily budget. See [Pipedrive's rate limiting guide](https://pipedrive.readme.io/docs/core-api-concepts-rate-limiting). * **Timestamps**: v2 endpoints return RFC 3339. v1 endpoints return `YYYY-MM-DD HH:MM:SS` in UTC, which Filament reads as UTC. * **API versions**: deals, persons, organizations, activities, products, pipelines, stages, and field definitions use v2 endpoints. Pipedrive [stopped supporting their v1 versions](https://developers.pipedrive.com/changelog/post/deprecated-apiv1-endpoints-become-out-of-support) on August 1, 2026. Leads, notes, users, and the remaining reference tables have no v2 equivalent and use their supported v1 endpoints. # PostgreSQL source connector Source: https://filament.getgalaxy.io/pages/connectors/sources/postgres Resumable full-snapshot, incremental, and CDC reads from PostgreSQL with Filament, the open-source data movement engine. Connector ID `postgres` The PostgreSQL source supports full snapshots, timestamp-based incremental reads, and logical-replication CDC. Full reads of tables with primary keys can resume from checkpoints. Keyless tables can be read in full, but an interrupted read starts that table again. ## Configuration | Field | Scope | Default | Description | | - | - | - | - | | `connection_method` | Connection | `fields` | `fields` or `url`. Unset with a `dsn` present implies `url`. | | `dsn` | Connection | | Full connection URL. Required in `url` mode. Secret. | | `host` | Connection | | Server hostname. Required in `fields` mode. | | `port` | Connection | `5432` | Server port. | | `username` | Connection | | Required in `fields` mode. | | `password` | Connection | | Required in `fields` mode. Secret. | | `database_name` | Connection | | Database to connect to. Required in `fields` mode. | | `ssl_mode` | Connection | `prefer` | One of `disable`, `allow`, `prefer`, `require`, `verify-ca`, `verify-full`. | | `replication` | Connection | `standard` | `standard` for snapshot/incremental reads, `cdc` for logical replication. | | `schema` | Connection | `public` | Schema to read tables from. | | `page_size` | Pipeline | `1000` | Rows to target per read page. | | `shard_pages` | Pipeline | `16384` | Heap blocks per parallel shard (≈128 MiB at 8 KiB blocks). `0` disables sharding. | | `max_conns` | Pipeline | pgx default | Maximum source connections. Set to at least the run's parallelism + 1. | | `scan_strategy` | Pipeline | `keyset` | One of `auto`, `keyset`, `bitmap`, `ctid`. See below. | | `encoding` | Pipeline | `native` | `native` (typed binary columns, JSON assembled client-side) or `jsonb` (server-side `to_jsonb`). | | `manage_publication` | Connection | `true` | CDC only. Set `false` when an administrator provisions the publication. | | `publication` | Connection | | CDC only. The publication an administrator provisioned. Applies when `manage_publication` is `false`. Must match `^[a-z_][a-z0-9_]{0,62}$`. | | `snapshot_mode` | Pipeline | `initial` | CDC only. `initial` reads a table in full before streaming it. Applies to bounded and continuous execution. | ## Read strategies `scan_strategy` changes how a full snapshot reads PostgreSQL storage. It does not change whether the pipeline uses a full, incremental, or CDC read. | Strategy | Choose it when | Resume behavior | | - | - | - | | `keyset` | You want the safest default and exact resume | Continues after the last primary key | | `bitmap` | The table is poorly ordered by its primary key | Repeats only the current key range | | `ctid` | You explicitly prefer fast physical scans and accept more replay | Reconciles physical ranges and may re-read rows | | `auto` | You want Filament to choose between keyset and bitmap | Matches the selected strategy | Large tables can be divided into as many as 64 parallel ranges. Filament saves the chosen strategy and range boundaries in the checkpoint, so resuming a run does not silently produce a different read plan. ### keyset (default) Reads the primary-key index in order and saves the last key. Integer keys use numeric ranges; UUID, text, and timestamp keys use sampled ranges with roughly equal row counts. This strategy resumes at the exact next row. ### bitmap Uses the same key ranges but lets PostgreSQL read each range in physical heap order. This can reduce random I/O when row location and primary-key order are poorly correlated. A range is the smallest recovery unit, so an interruption repeats the current range rather than continuing at an exact row. ### ctid Reads physical block ranges and shares one exported snapshot across parallel workers. On resume, Filament checks whether operations such as `VACUUM FULL`, `CLUSTER`, or `TRUNCATE` replaced the table storage. If so, it plans the table again. It also re-reads rows or newly appended blocks when PostgreSQL's transaction metadata shows that doing so is necessary. Choose this strategy only when that extra replay is acceptable. ### auto Uses PostgreSQL statistics to estimate how closely physical row order matches the primary key. A correlation of at least `0.8` in either direction selects keyset; lower correlation selects bitmap. If statistics are missing, Filament runs `ANALYZE` once and falls back to bitmap if the value is still unavailable. The probe itself does not fail the run. ## Incremental Incremental mode requires a primary key and a `timestamp`/`timestamptz` `NOT NULL` cursor column. Filament auto-ranks conventional names (`updated_at`, `modified_at`, `last_modified_at`, `last_updated_at`, `updated`, `modified`) and accepts an explicit per-resource override for anything else. The application must advance the cursor on every insert and update. Static IDs and random UUIDs are not valid watermarks. The watermark is compound, `(cursor, pk...)`, so rows sharing a timestamp are never skipped. Each cycle opens a repeatable-read transaction, captures the high watermark at the snapshot, and pages `low < key <= high` ordered by `(cursor, pk...)`. A default 300-second lookback rewinds the low bound to absorb late commits and clock skew. The resulting duplicates are handled by upsert. The first run captures the high watermark, then performs a keyset backfill in `incremental_backfill` mode. On completion it is promoted to steady-state incremental, so changes committed during the backfill are replayed rather than lost. Hard deletes are not observable through an update watermark. Use CDC when deletes must be replicated. ## CDC CDC streams `pgoutput` over a persistent logical replication slot generated for each durable pipeline route. The slot name is managed by Filament and is not user configuration. CDC requires `wal_level=logical` and a primary key on every selected table. By default the connector creates one publication per route, named after the route's slot, and keeps its table list current with `publish = 'insert, update, delete'`. The publication is dropped with the slot when the route retires. Set `manage_publication=false` and name the `publication` when an administrator provisions one instead. A resource with a column selection reads only those columns in every mode. The selection must keep the primary key and any cursor column. On PostgreSQL 15 and later a managed publication carries the selection as a column list, so the replication stream skips the unselected columns. A table with `REPLICA IDENTITY FULL`, or an identity index the selection does not fully cover, cannot take a column list, so its publication stays whole and the connector drops the unselected columns as it decodes. An administrator's publication must publish every column the pipeline reads. CDC pipeline runs also require a datastore with durable replication-stream admission. The PostgreSQL datastore provides it; the in-memory datastore does not, and compilation fails with a precondition error instead of sharing an unsafe process-local slot. In bounded execution, when a selected table has no CDC checkpoint, the slot is created with an exported snapshot and the table is read in full through that snapshot, so the baseline and the change stream share one consistent point. Run row limits do not apply to this bootstrap read. `snapshot_mode=none` skips that read. A table without a checkpoint streams from the slot's consistent point (or the current WAL position when the slot already exists), so the sink starts empty and fills in as rows change. With `REPLICA IDENTITY FULL` updates carry the full row, so a merge sink upserts rows it has never seen; deletes of unseen rows are no-ops. Bounded runs are catch-up cycles. Each replays from the oldest resource LSN to `pg_current_wal_lsn()` at cycle start, then returns. Schedule these runs when periodic catch-up is sufficient. Zero-change runs still persist the final LSN per resource. A primary-key-changing update is emitted as a delete of the old row plus an insert of the new one. Standby status is reported every 10 seconds, and only the previously durable cursor is acknowledged. ### Continuous execution Continuous CDC keeps one logical replication session open and commits finite write boundaries as changes arrive. It does not repeatedly launch bounded runs. To enable it, set the source connection's `replication` to `cdc`, choose **Continuous** execution for the pipeline, and select the tables explicitly. Use merge for current table state or append for change history when the sink accepts CDC operations. The control datastore must support continuous runs. The PostgreSQL datastore provides that capability. Each selected table needs a primary key, and the source database needs logical replication enabled. No streaming-specific sink implementation is required. The default `snapshot_mode=initial` copies existing rows from a consistent snapshot, then streams changes retained from that snapshot's WAL position. The entire snapshot completes as one write boundary, even if it exceeds the configured boundary limits. A restart before its first checkpoint repeats the snapshot and catches up from retained WAL before certifying progress. Set `snapshot_mode=none` to start with changes only. After a checkpoint is certified, restarts resume from that position without repeating the snapshot. A missing slot or unavailable resume position stops the worker. Write boundaries end only after complete source transactions. A transaction larger than the configured row or byte target stays in one boundary. Source acknowledgments follow destination durability and checkpoint certification. Pause drains the current boundary. Resume uses the saved position. Stop ends the execution. Continuous pipelines do not use cron schedules. Schema changes block the worker when its cached layout no longer matches the replication relation. Review the schema before restarting. Append writes can repeat after a failure between destination success and checkpoint persistence. > [!WARNING] > > CDC has operational sharp edges: > > * When a successor commits, Filament drops retired slots on the same source > connection. If the source connection changed or the pipeline was deleted > without a successor, clean up the old database explicitly; its generated > consumer name is stored in the control database's > `replication_streams.consumer_name` column. > * A "slot is active" error means another client still holds the route's slot. > * A checkpoint older than the slot's confirmed position is a hard error. > The WAL was consumed by another client, and the stream cannot be replayed. > * `TRUNCATE` of a tracked table fails the run. > * An update carrying an unchanged TOAST column with no old value is an > error. Set `REPLICA IDENTITY FULL` on that table. ## Partitioned tables A partitioned table is one resource. Discovery lists the parent and hides its partitions, and every read emits rows under the parent's name. A full read scans each leaf partition, including the leaves of sub-partitions. The `ctid` strategy reads a keyed partitioned table in key order instead, since its storage is split across partitions. A keyless partitioned table reads by ctid under every strategy. A resource may select which partitions to backfill. A full read, and the initial snapshot of a CDC stream, then read only those partitions. The change stream still carries every partition, including partitions created later, so a row changed in an unselected partition reaches the sink without a backfill. Deselect every partition to skip the backfill and stream changes only. A full read with a partition selection is not resumable and repeats in full after an interruption. Incremental reads do not accept a partition selection. CDC on a partitioned table needs PostgreSQL 13 or later. A managed publication sets `publish_via_partition_root`, so changes arrive under the parent's name. An administrator's publication must set it too. Each leaf partition's own replica identity applies, so a leaf with `REPLICA IDENTITY FULL` keeps the publication whole. > [!WARNING] > > Partition maintenance bypasses the change stream in these cases. > > * `ATTACH PARTITION` of a table that already holds rows adds them without > WAL inserts. Resync the resource to read them. > * `DETACH PARTITION` removes rows without WAL deletes. > * A foreign table partition has no WAL and cannot be read by ctid, so a full > read or snapshot that includes one fails. ## Keyless tables A table without a primary key is still readable in full. It falls back to the ctid path with the ctid as the record id. That read is not resumable, so a resume re-reads the whole table. Incremental and CDC both reject keyless tables, since each requires a primary key. See [Replication modes](/pages/guides/concepts/replication-modes) for how modes map to write policies, and [Integrity & checkpoints](/pages/guides/concepts/integrity-and-checkpoints) for why plans are frozen at plan time. ## Related guides * [Replicate PostgreSQL to Snowflake with CDC](/pages/how-to/postgres-to-snowflake) * [Replicate PostgreSQL to ClickHouse](/pages/how-to/postgres-to-clickhouse) * [Replicate PostgreSQL to BigQuery with CDC](/pages/how-to/postgres-to-bigquery) * [Postgres logical replication, the complete guide](https://www.getgalaxy.io/articles/postgres-logical-replication-the-complete-guide) * [Postgres CDC methods compared](https://www.getgalaxy.io/articles/postgres-cdc-every-change-data-capture-method-compared) * [Postgres to Snowflake replication guide](https://www.getgalaxy.io/articles/postgres-to-snowflake-the-complete-replication-guide) * [Postgres to ClickHouse replication guide](https://www.getgalaxy.io/articles/postgres-to-clickhouse-the-complete-replication-guide) # PostHog source connector Source: https://filament.getgalaxy.io/pages/connectors/sources/posthog Read people, groups, cohorts, feature flags, experiments, and session replay metadata from a PostHog project Connector ID `posthog` The PostHog source reads people, groups, cohorts, feature flags, experiments, insights, dashboards, actions, annotations, surveys, notebooks, and session recordings from one project. It is built with an [HTTP manifest](/pages/connectors/building-a-connector/http-manifests). Its resources are stable, though future releases may add columns. ## Configuration | Field | Scope | Default | Description | | - | - | - | - | | `api_key` | Connection | | Required. Secret. Personal API key with read scopes for the synced resources. | | `project_id` | Connection | | Required. The digits after `/project/` in the app URL. | | `host` | Connection | `https://us.posthog.com` | US Cloud, `https://eu.posthog.com`, or a self-hosted origin. | | `session_recordings_start_date` | Pipeline | | Required for session recordings. Earliest timestamp to read, in ISO 8601 format. | `host` must be the app origin, not the `us.i.posthog.com` ingestion host, which does not serve `/api`. ## Resources All resources read from endpoints under `/api/projects/{project_id}/`. `persons` is the endpoint used by an explicit live connection test. The service API's normal config validation does not make that request. Useful IDs from embedded objects are also exposed as columns, such as `experiments.feature_flag_id` and `session_recordings.person_id`. The 13 default resources are `actions`, `annotations`, `cohort_members`, `cohorts`, `dashboards`, `experiments`, `feature_flags`, `groups`, `insights`, `notebooks`, `persons`, `session_recordings`, and `surveys`. Dashboards, experiments, and notebooks fetch details; child resources fetch their parents. Optional resources include activity logs, alerts, archived catalogs, datasets, error tracking, export history, LLM records, property definitions, replay playlists, saved endpoints, subscriptions, and survey responses. Events are excluded. Optional resources require their corresponding read scopes; survey responses need both `survey:read` and `query:read`. Connection tests require `person:read`. ## Modes All resources support full reads. If interrupted, top-level lists resume after the last completed page; child reads restart their parent traversal. Two resources are incremental. | Resource | Cursor field | Request parameter | Checkpoint key | Overlap | | - | - | - | - | - | | `insights` | `last_modified_at` | `date_from` (query) | `insights_modified_at` | 1 s | | `session_recordings` | `start_time` | `date_from` (query) | `session_recordings_start_time` | 86400 s | Both use the `time` comparator. The cursor field is fixed by the manifest. Only a lookback window is user-configurable, and only because the comparator is `time`. Insights overlap by one second to re-read timestamp ties. Their cursor tracks name, description, and query edits; other metadata needs full reads. Session recordings re-read 24 hours for ongoing sessions; older uploads and later metadata changes need full reads. Incremental reads do not propagate deletions. Notebooks retain complete content through full reads. `persons` has no incremental block. The API offers no updated-since filter, so every run is a full snapshot. ## Behavior * **Auth**: bearer token from `api_key` on every request. * **Regional base URL**: `base_url` is templated as `{{ config.host }}` and rendered once at Configure, against config only. One manifest serves US Cloud, EU Cloud, and self-hosted instances. * **Pagination**: most list endpoints return a DRF envelope. The manifest follows the absolute `next` URL rather than computing offsets, with `limit=100` per page. Replay uses an opaque `after` page cursor; survey responses use offset pagination. Detail reads and group types are unpaginated. * **Rate limiting**: a static 0.3 requests/second limiter, sized to the binding constraint (the analytics endpoints share a 1200-requests/hour bucket). Draining an hourly bucket is a run failure, not a slowdown. Retry sleeps cap at 60 seconds, so an hour-long window cannot be waited out. PostHog publishes no rate-limit response headers, so there is no dynamic block. * **Timeout**: `timeout_seconds: 120`, double the engine default, because person and session-recording pages carry large embedded property blobs. * Every resource carries a `raw` remainder column preserving fields the manifest does not project. * **Coverage**: results depend on permissions, product access, and retention. Survey responses include submitted answers. Dashboards read cached tiles; insights and experiments do not calculate fresh results. Replay contains metadata, not media; exports contain job metadata, not files. Organization administration and arbitrary query execution are outside this connector. ## Related guides * [Sync PostHog to Postgres](https://www.getgalaxy.io/articles/best-way-to-sync-posthog-to-postgres-2026) # Pylon source connector Source: https://filament.getgalaxy.io/pages/connectors/sources/pylon Read customer support conversations, accounts, projects, and knowledge-base content from Pylon with Filament. Connector ID `pylon` The Pylon source reads support issues and their messages, customer accounts, contacts, projects, tasks, surveys, and knowledge-base content. It uses an [HTTP manifest](/pages/connectors/building-a-connector/http-manifests). This connector is in preview. Its requests have been checked against the official API reference, but it has not been validated against a live Pylon account. Pylon does not expose an API version selector. ## Configuration | Field | Scope | Default | Description | | - | - | - | - | | `api_token` | Connection | | Required. Secret. Pylon API token. | | `region` | Connection | `us` | `us` or `eu`, matching the organization's hosting region. | An administrator creates tokens under **Settings → Integrations & dev → API tokens**. Tokens use their assigned role or the current role of the user they act as. They do not expire, but deactivating the creating or acted-as user revokes them. An IP allowlist must permit your worker's outbound address. See [Pylon authentication](https://docs.usepylon.com/pylon-docs/developer/api/authentication). US connections use `https://api.usepylon.com`. EU connections use `https://api.eu.usepylon.com`. Connection testing calls `GET /me`. The token must be able to read every selected resource. Use organization-wide survey access for `survey_responses`. Pylon requires additional account and contact filters for scoped survey callers, which this connector does not supply. ## Resources Accounts, contacts, issues, users, teams, and tags are selected by default. All other resources are optional. Selecting a child also reads its parent, but only selected resources are written to the destination. | Resource | Endpoint | Parent | | - | - | - | | `organization` | `GET /me` | | | `accounts` | `GET /accounts` | | | `contacts` | `GET /contacts` | | | `issues` | `POST /issues/search` | | | `users` | `GET /users` | | | `teams` | `GET /teams` | | | `tags` | `POST /tags/search` | | | `account_activities` | `GET /accounts/{id}/activities` | `accounts` | | `account_email_activities` | `GET /accounts/{id}/email-activities` | `accounts` | | `account_relationships` | `GET /accounts/{account_id}/relationships` | `accounts` | | `activity_types` | `GET /activity-types` | | | `issue_messages` | `GET /issues/{id}/messages` | `issues` | | `issue_threads` | `GET /issues/{id}/threads` | `issues` | | `issue_followers` | `GET /issues/{id}/followers` | `issues` | | `issue_survey_responses` | `GET /issues/{id}/survey-responses` | `issues` | | `issue_voice_calls` | `GET /issues/{id}/voice-calls` | Phone issues | | `call_recordings` | `POST /call-recordings/search` | | | `user_roles` | `GET /user-roles` | | | `user_statuses` | `GET /user-statuses` | | | `issue_statuses` | `GET /issue-statuses` | | | `task_statuses` | `GET /task-statuses` | | | `ticket_forms` | `GET /ticket-forms` | | | `macros` | `GET /macros` | | | `macro_groups` | `GET /macro-groups` | | | `email_suppressions` | `GET /email-suppressions` | | | `training_data` | `GET /training-data` | | | `tasks` | `GET /tasks` | | | `task_comments` | `GET /tasks/{id}/comments` | `tasks` | | `projects` | `POST /projects/search` | | | `milestones` | `POST /milestones/search` | | | `surveys` | `GET /surveys` | | | `survey_responses` | `GET /surveys/{id}/responses` | `surveys` | | `knowledge_bases` | `GET /knowledge-bases` | | | `articles` | `GET /knowledge-bases/{id}/articles` | `knowledge_bases` | | `collections` | `GET /knowledge-bases/{id}/collections` | `knowledge_bases` | | `active_themes` | `GET /knowledge-bases/{id}/themes/{theme_id}` | `knowledge_bases` | | `article_feedback` | `GET /article-feedback` | | | `account_custom_fields` | `GET /custom-fields` | | | `issue_custom_fields` | `GET /custom-fields` | | | `contact_custom_fields` | `GET /custom-fields` | | | `task_custom_fields` | `GET /custom-fields` | | | `project_custom_fields` | `GET /custom-fields` | | | `meeting_custom_fields` | `GET /custom-fields` | | | `opportunity_custom_fields` | `GET /custom-fields` | | | `opportunities` | `POST /custom-objects/opportunity/search` | | | `feature_requests` | `POST /feature-requests/search` | | Each row represents one API record. IDs are strings. Child tables carry the parent ID in their key, and followers also include their user or contact type. Status tables use their stable slug. Nested custom fields, relationships, SLA data, survey answers, form definitions, macro actions, training documents, and recording segments remain JSON columns. Every resource includes a `raw` column for unmapped fields. Issue search has no creation-time window, so `issues` reads historical issues without the 365-day window required by `GET /issues`. Messages include internal notes and replies. Threads and followers are separate tables. `issue_voice_calls` scans issues and requests calls only for issues whose source is `phone`. It preserves transcript segments and audio links inside each call's recordings. `call_recordings` reads the separate meeting-recording metadata API. Articles use each knowledge base's default language and include both draft and published HTML and Markdown, with embedded media retained. Collections preserve their parent collection ID. `active_themes` reads the active theme of each knowledge base, including draft and published asset contents. Article feedback is read across knowledge bases. ### Coverage limits * **Feature requests**. `feature_requests` returns at most 1,000 records without their evidence. Pylon's schema exposes a limit but no cursor for this endpoint, despite its description mentioning pagination. It is not a complete backfill for larger accounts. See the [feature request reference](https://docs.usepylon.com/pylon-docs/developer/api/api-reference/feature-requests). * **Lookups by known ID**. Pylon cannot list custom object types, notebook blocks, or inactive themes, so those are not replicated. `opportunities` uses the documented opportunity search alias. Its additional opportunity attributes are preserved in `raw`. * **Translations**. Articles are read in each knowledge base's default language only. Other language codes listed in `knowledge_bases.supported_languages` are not read. * **Milestones**. Pylon excludes milestones belonging to unlaunched projects from search. Those are not discovered by this connector. * **Recordings and files**. Phone recordings appear only after their transcripts finish processing. Meeting recordings contain metadata and summaries, not a downloadable transcript body. Attachment and audio URLs are preserved, but binary files are not downloaded. Phone audio URLs expire. * **Visibility**. Reads reflect the token's role and available product features. Users include deactivated users. Removed records and records hidden by permissions are not available as deletion events. The connector uses bulk list or search endpoints when their response includes the same record as a detail endpoint. It does not duplicate those reads. Account files, account highlights, attachment uploads, and message edits expose write operations rather than independent read collections. They are not separate resources. Audit logs are excluded. See the [full API reference](https://docs.usepylon.com/pylon-docs/developer/api/api-reference) for the upstream surface. ## Modes All resources perform full reads. Incremental reads are not advertised. Changes to nested messages, evidence, transcripts, and related records do not have a verified common update cursor. Use **full upsert** to refresh rows, or **full replace** to remove rows no longer returned within the selected scope. Do not use the capped `feature_requests` as a complete replacement for a feature-request dataset. ## Behavior * **Auth**. Every request sends the token as a Bearer credential to the selected regional API host. Authentication and permission errors fail the read. * **Pagination**. Paginated endpoints follow `pagination.cursor` while `pagination.has_next_page` is true. GET requests put the cursor in the query and POST searches put it in the JSON body. Pages contain 100 records, except account email activities, which use 20. Endpoints documented to return all records without a cursor are read once. Feature-request search is the capped exception described above. * **Rate limiting**. Requests are paced at two per second with a burst of one, matching the 120-per-minute search allowance. Reference endpoints with a 30-per-minute allowance are fetched once per run. Pylon's allowances are per organization and endpoint, shared with other clients. The HTTP engine retries throttled requests and honors `Retry-After`. * **Recovery**. Top-level paginated reads can resume from saved page cursors. Child reads restart from their parent listing. Full upsert avoids duplicate rows when replaying. * **Parent selection**. Optional child reads may require many requests. Phone calls scan issue search separately to select phone issues. Knowledge bases without an active theme do not produce an active-theme request. See [Pylon API conventions](https://docs.usepylon.com/pylon-docs/developer/api/conventions) and [rate limits](https://docs.usepylon.com/pylon-docs/developer/api/rate-limits) for pagination and service limits. # QuickBooks Online Source: https://filament.getgalaxy.io/pages/connectors/sources/qbo Read QuickBooks Online accounting records and optional report snapshots The `qbo` source reads 63 QuickBooks Online accounting resources through the v3 REST API using an [HTTP manifest](/pages/connectors/building-a-connector/http-manifests). The connector supports sandbox and production accounts. The `qbo` alias resolves to `qbo@v3`. Live company reads have not been validated. ## Configuration | Field | Scope | Default | Description | | - | - | - | - | | `client_id` | Connection | | Intuit application client ID. Set all three refresh fields together. | | `client_secret` | Connection | | Secret. Intuit application client secret for the selected environment. | | `realm_id` | Connection | | Required. QuickBooks company ID returned during OAuth authorization. | | `access_token` | Connection | | Secret. Required unless automatic refresh credentials are supplied. OAuth access token with the `com.intuit.quickbooks.accounting` scope. | | `refresh_token` | Connection | | Secret. Initial refresh token obtained through Intuit authorization. Filament saves rotated tokens automatically for saved connections. | | `environment` | Connection | `production` | `production` or `sandbox`. Credentials and company must match the environment. | | `minor_version` | Connection | | Optional numeric Intuit minor version. Empty uses Intuit's default. | | `page_size` | Connection | `500` | Records per request. An integer from 1 to 1000. | | `report_start_date` | Pipeline | | Optional pipeline field. YYYY-MM-DD start for period reports. Set with `report_end_date`, with start before end. | | `report_end_date` | Pipeline | | Optional pipeline field. YYYY-MM-DD end for period reports. | | `report_date` | Pipeline | | Optional pipeline field. YYYY-MM-DD as-of date for aging and customer or vendor balance reports. | | `exchange_rate_currencies` | Pipeline | | Pipeline field required for `exchange_rates`. Comma-separated uppercase currency codes such as `EUR,GBP`. | | `exchange_rate_date` | Pipeline | | Pipeline field required for `exchange_rates`. YYYY-MM-DD effective date. | ### Get credentials with the OAuth Playground Use your own Intuit application. The Developer Portal provides the app's client ID and client secret. The OAuth Playground helps you authorize a company and exchange the authorization code for tokens. Filament does not host the initial authorization callback. 1. Sign in to the [Intuit Developer Portal](https://developer.intuit.com/) and create or select an app with access to the QuickBooks Online Accounting API. 2. Open the app's **Keys & OAuth** or **Keys & Credentials** section. Copy the client ID and client secret for your environment. Use development credentials for a sandbox company and production credentials for a live company. Complete Intuit's production setup requirements before connecting a live company. 3. Check the app's redirect URI settings for the selected environment. The Playground redirect URI may already be registered by default. Add it only if it is missing. ```text theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} https://developer.intuit.com/v2/OAuth2Playground/RedirectUrl ``` 4. Open the [OAuth 2.0 Playground](https://developer.intuit.com/app/developer/playground). Select your app and environment or enter the matching app credentials. Use the registered redirect URI and select the `com.intuit.quickbooks.accounting` scope. 5. Start authorization, sign in to QuickBooks, select the company, and approve access. After the redirect, copy the `realmId`. This is the company ID that Filament calls `realm_id`. 6. Complete the Playground's code exchange step to obtain an access token and a refresh token. The authorization code is temporary and single-use. It is not an access token or refresh token and cannot be entered in either field. 7. Create a saved `qbo` connection in Filament using the values below. | Filament field | Value | | - | - | | `client_id` | The client ID from the app's credential page | | `client_secret` | The matching client secret from the app's credential page | | `realm_id` | The `realmId` returned after company authorization | | `access_token` | Leave empty when using automatic refresh | | `refresh_token` | The refresh token returned by the code exchange | | `environment` | `sandbox` or `production`, matching the app credentials and company | Leave `access_token` empty when using automatic refresh. Filament obtains an access token on the first read and saves replacement tokens for subsequent runs. Store the client secret and refresh token as managed secrets on the saved connection. Once Filament manages the refresh token, avoid refreshing the same token in the Playground or another application. If you perform the code exchange yourself, send a form-encoded POST to `https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer`. Use HTTP Basic authentication with the client ID and client secret. Include `grant_type=authorization_code`, `code`, and the exact `redirect_uri` used for authorization. Save the returned refresh token, not the authorization code. The `realmId` comes from the authorization redirect rather than this exchange. See Intuit's [app credential guide](https://developer.intuit.com/app/developer/qbo/docs/get-started/get-client-id-and-client-secret) and [OAuth Playground guide](https://developer.intuit.com/app/developer/qbo/docs/develop/authentication-and-authorization/oauth-2.0-playground). Access-token-only connections remain supported and require manual renewal. Their connection test reads CompanyInfo. ### Automatic token refresh The HTTP engine uses Filament's shared `oauth` package. Automatic refresh requires a saved connection with a managed `refresh_token` secret in PostgreSQL, SQLite, AWS Secrets Manager, or Google Secret Manager. Tokens remain in the configured manager. Environment-only and inline credentials are not supported for automatic refresh through the runner. Go callers can instead bind an `oauth.Store` with `Source.SetOAuthStore`. The first read exchanges the saved refresh token. The optional `access_token` field is ignored when refresh credentials are configured. Later reads reuse the run’s access token until its expiry is within 30 seconds. If QuickBooks rejects it with HTTP 401, the source refreshes and replays the read once. A second 401 stops the read. Concurrent callers within the run reuse the fresh replacement. Access tokens and expiry stay in memory for one run. Only a changed refresh token is saved to the existing `refresh_token` secret. Rotation does not create a secret or change the connection row. PostgreSQL and SQLite update the encrypted value in place. AWS adds a version under the same name. GCP adds a version and destroys the previous one. Each run loads the saved refresh token once. Calls within the run share token state, while separate runs refresh independently. There are no datastore locks around token exchanges and no coordination table. Token requests have a 30-second timeout and honor cancellation. Configuration validation for automatic-refresh connections is local only. The validation RPC does not exchange tokens. The first move verifies live access. Local catalog discovery remains available without exchanging tokens. A revoked or expired refresh token requires reauthorization. Failed or ambiguous token exchanges are not automatically retried. Save failures stop the read. The run retains a successful exchange for a later save attempt while it remains alive. A process exit between upstream rotation and persistence can still require reauthorization. Tokens and upstream OAuth error descriptions are never emitted in activity or logs. See Intuit's [refresh-token guidance](https://github.com/intuit/oauth-jsclient#refresh-access_token). ## Resources | Family | Resources | Modes | | - | - | - | | Core reference data | `accounts`, `customers`, `vendors`, `items` | Full | | Core transactions | `invoices`, `payments`, `bills`, `bill_payments`, `purchases`, `journal_entries` | Full and incremental | | Additional transactions | `estimates`, `sales_receipts`, `credit_memos`, `refund_receipts`, `purchase_orders`, `vendor_credits`, `deposits`, `transfers` | Full and incremental | | Supporting reference data | `terms`, `payment_methods`, `classes`, `departments`, `tax_codes`, `tax_rates` | Full | | Company settings | `company_info`, `preferences` | Full | | People and time | `employees`, `time_activities` | Full | | Planning | `budgets`, `recurring_transactions` | Full | | Attachments | `attachments` | Full | | Tax and currencies | `tax_agencies`, `company_currencies`, `exchange_rates` | Full | | Reports | 29 `report_*` resources listed below | Full | The ten core resources are enabled by default. All other resources are optional. Account features, region, and permissions determine which resources can be read. Discovery returns a local catalog and does not probe those entitlements. An unavailable selected resource fails the read instead of being silently omitted. Employees are accounting Employee records. Time activities are accounting TimeActivity entries. These do not include Workforce payroll or QuickBooks Time timesheets. Attachments include metadata, notes, and linked entity references. File content is not downloaded. Budgets retain their nested budget details. Recurring transactions retain the transaction wrapper, schedule, lines, and references. They are templates rather than the transactions generated from them. Company currencies list configured currencies. Exchange rates read only the configured source currencies on one explicit date, against the company home currency. Currency reads require multicurrency support. There is no automatic rate-history backfill. Selecting `exchange_rates` requires both exchange-rate pipeline fields, including when selecting every resource. Set both fields or deselect that resource. Missing fields fail resource planning before destination setup and resource start events. ### Reports Each report produces one snapshot row. Header fields have typed columns such as `header_report_name`, `header_time`, and `header_currency`. The `columns` and `rows` JSON columns preserve the dynamic column definitions, nested sections, and subtotals. Empty reports are preserved. The connector does not assign identities to report line positions. | Family | Resources | | - | - | | Financial statements | `report_balance_sheet`, `report_profit_and_loss`, `report_profit_and_loss_detail`, `report_cash_flow`, `report_trial_balance` | | Accounts and ledgers | `report_account_list`, `report_general_ledger`, `report_journal` | | Receivables | `report_aged_receivables`, `report_aged_receivable_detail`, `report_customer_balance`, `report_customer_balance_detail`, `report_customer_income` | | Payables | `report_aged_payables`, `report_aged_payable_detail`, `report_vendor_balance`, `report_vendor_balance_detail`, `report_vendor_expenses` | | Sales | `report_sales_by_class`, `report_sales_by_customer`, `report_sales_by_department`, `report_sales_by_product` | | Inventory and tax | `report_inventory_valuation_detail`, `report_inventory_valuation_summary`, `report_tax_summary` | | Transaction listings | `report_transaction_list`, `report_transaction_list_by_customer`, `report_transaction_list_by_vendor`, `report_transaction_list_with_splits` | Period reports use `report_start_date` and `report_end_date`. Aging reports and customer or vendor balance reports use `report_date` instead. The account list does not use date filters. Omitted dates use the upstream report defaults, not all history. The returned header records the effective period and basis. Accounting basis and other report-specific filters use Intuit's defaults. Report reads call `/reports/{name}` once per selected report. They do not use entity query pagination. An extraction row limit limits snapshots, not the number of lines within a report. Use a smaller date range for large reports. The HTTP engine rejects responses larger than 100 MiB. There is no automatic report partitioning or reconstruction of data omitted by the upstream report service. The catalog follows Intuit's [29 supported report families](https://medium.com/intuitdev/upcoming-changes-to-reports-apis-5083ec9aadce). Display names can differ from endpoint names. Sales reports use `ClassSales`, `CustomerSales`, `DepartmentSales`, and `ItemSales`. The account list uses `AccountList`. Retired and undocumented reports are not added as extra resources. ### Coverage boundaries | API area | Coverage | | - | - | | Accounting entities and settings | The named resources above. Query results retain nested data. | | Accounting reports | The 29 named report families as response snapshots. Availability varies by region and company features. | | Attachments and printable forms | Attachment metadata only. Binary downloads and transaction PDFs are excluded. | | Change data capture and webhooks | Excluded. Query reads do not deliver deletion events. | | Inventory adjustments and change orders | Not implemented. The public collection lists these newer APIs, but their complete read contracts were not established during this expansion. | | Customer types and other SDK-only entity names | Not implemented without a verified public QBO read contract. Desktop SDK types do not establish Online API support. | | Projects and extended custom fields | Separate GraphQL and premium API work. Values returned on the included REST entities remain in the mapped columns or `raw`. | | Workforce, payroll, QuickBooks Time, and Payments processing | Separate product APIs outside this accounting source. Accounting Payment records are included. | | Create, update, delete, send, and batch mutations | Excluded from this read-only source. | Fixture tests verify request construction and response handling. No live company reads have been validated. Company currency queries in particular still need live confirmation of query pagination and inactive-currency visibility. Optional resource failures remain visible. ## Modes All resources support full replacement, upsert, and append. The 14 transaction resources also support incremental upsert and append. Use upsert to reconcile replayed records. The first incremental run reads all currently available records. Later runs filter on `MetaData.LastUpdatedTime`, exposed as `updated_at`. The lower bound is inclusive and stays fixed throughout pagination. The default lookback is five minutes. Boundaries are rounded down to whole seconds so timestamp precision does not skip records. Transaction dates and SyncToken are not incremental cursors. Only a completed resource sends a new watermark through Filament's normal destination acknowledgement path. Interrupted or limited reads retain the previous watermark and replay. Empty results also retain the previous watermark. Full reads restart from the beginning after interruption. Query reads do not capture deleted transactions. Full replacement reconciles records that no longer exist. Upserts alone retain deleted destination rows. Paginated entity queries use `ORDERBY Id ASC` before `STARTPOSITION` and `MAXRESULTS`. Explicit ordering avoids relying on an unspecified response order. Sorting by the immutable ID keeps edits to names and timestamps from changing a record's sort position. See Intuit's [query guidance](https://medium.com/intuitdev/building-smarter-with-intuit-supercharge-your-queries-fde9d771f8fd). Ordering does not provide snapshot isolation. Inserts, deletions, and changes to which records match the filter can still shift offsets between requests, causing skipped or repeated records. The five-minute lookback cannot guarantee recovery from every such change or an arbitrary indexing delay. Use periodic full replacement when a current view is required. The source does not advertise CDC. ## Behavior For entity resources, one row represents one entity. The primary key is `realm_id` and `id`. Company information and preferences each produce one row keyed by the company ID. Each resource has typed columns based on Intuit's [accounting response schemas](https://github.com/intuit/QuickBooks-V3-PHP-SDK/tree/master/src/XSD). Each resource declares its destination mapping in a separate manifest file. Missing and regional fields are nullable. | Data | Example columns | Destination type | | - | - | - | | Identity and references | `id`, `customer_id`, `vendor_id`, `currency_id` | String | | Amounts and quantities | `total_amt`, `balance`, `qty_on_hand` | Decimal with precision 38 and scale 18 | | Exchange rates | `exchange_rate`, `rate` | Decimal with precision 38 and scale 20 | | Dates | `txn_date`, `due_date`, `as_of_date` | Date | | Timestamps | `created_at`, `updated_at` | Timestamp with time zone | | Flags and counts | `active`, `taxable`, `hours`, `due_days` | Boolean or integer | | Contact and address fields | `primary_email_addr_address`, `bill_addr_city` | String | | Nested collections | `line`, `linked_txn`, `custom_field`, `budget_detail` | JSON | Postgres receives numeric, date, boolean, and JSONB columns. Snowflake receives NUMBER, DATE, BOOLEAN, and VARIANT columns through the shared destination type mapping. Amounts never pass through floating point. Values outside the declared decimal precision or scale fail the read instead of being rounded. The trailing `raw` JSON column preserves unprojected fields and unknown nested attributes. JSON columns retain their original numeric precision. Lines remain nested and are not expanded into separate resources. Preferences expose typed setting fields. Recurring templates expose their transaction type, common transaction fields, and schedule, with variant-specific fields retained in `raw`. Company currencies use their currency code as `id`. Exchange rates encode the source currency and effective date into `id`. Recurring templates encode the transaction type and nested entity ID. Reports encode the endpoint, returned period, accounting basis, currency, and request parameters. These composite identities use JSON arrays to avoid delimiter collisions. Report generation time is not part of the key, so upsert replaces the same report snapshot. Use append to retain repeated snapshots or full replacement to retain only the latest extraction. Reports leave entity timestamps and activity flags null. Entity reads use `GET /v3/company/{realm_id}/query`. SQL-like queries page with one-based `STARTPOSITION` and `MAXRESULTS`. The original reference resources and employees explicitly include active and inactive records. Other optional query resources use upstream visibility defaults. Company settings use their singleton endpoints. An empty query response ends the read. Fault envelopes and malformed responses fail visibly. Repeated record IDs across pages fail the resource to avoid advancing its watermark on an inconsistent scan. Resources may read concurrently through a shared limiter of five requests per second per source instance. Other runs share the upstream company quota, so this local limiter does not reserve quota across workers. Server errors receive up to three retries. Throttled requests retry within a ten-attempt request budget. Retry-After is honored when present. A throttled response without that header waits 60 seconds. Cancellation interrupts retry waits. See Intuit's [accounting API collection](https://www.postman.com/intuit-developer/intuit-developer-quickbooks-online-accounting-api/overview), [query builder](https://github.com/intuit/QuickBooks-V3-PHP-SDK/blob/master/src/QueryFilter/QueryMessage.php), [Payment query reference](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/Payment), and [API limits](https://static.developer.intuit.com/output_html/qbo/docs/learn/limits-and-throttles.html). ## Migration from the native source Existing connection fields, resource names, primary keys, typed columns, and report snapshot identities are retained. Saved refresh-token secrets keep their authorization binding and can be reused by the HTTP engine. Incremental checkpoint keys are now qualified by resource. The first incremental run after switching from the native source starts a new backfill. Use upsert to reconcile replayed records. Incremental append would append historical rows again. Full reads restart from the beginning after interruption. The manifest retains 34 entity and settings resources and 29 optional reports. Reports are useful as QuickBooks-calculated totals for reconciliation. Compare the same reporting period or cutoff date and accounting basis across systems. The underlying invoices, payments, credits, and journal entries provide the records needed to investigate differences. Reports use the upstream accounting basis by default and remain nested snapshots rather than flattened report lines. Local checks cover manifest loading, schema preservation, shared OAuth handling, query pagination, exact decimals, response validation, and checkpoint completion. Live checks remain outstanding for populated and empty pages, company-specific resource access, report periods, exchange-rate lookups, and token rotation against Intuit. Unavailable optional resources fail visibly and can be deselected. # Resend source connector Source: https://filament.getgalaxy.io/pages/connectors/sources/resend Read sent and received email, broadcasts, contacts, segments, domains, templates, and webhook deliveries from Resend Connector ID `resend` The Resend source reads sent and received email, attachments, domains, audience data, broadcasts, templates, webhook deliveries, and the API request log. It is built with an [HTTP manifest](/pages/connectors/building-a-connector/http-manifests). Its resources are stable, though future releases may add columns. ## Configuration | Field | Scope | Default | Description | | - | - | - | - | | `api_key` | Connection | | Required. Secret. Full-access API key (`re_…`). Sending-only keys reject the list endpoints. | ## Resources | Resource | Parent | Notes | | - | - | - | | `emails` | | Sent email list, the connection probe | | `email_details` | `emails` | Cardinality one. Only source of rendered body and send-time tags | | `email_attachments` | `emails` | One request per email. `download_url` is signed and expires | | `received_emails` | | Inbound mail | | `received_email_attachments` | `received_emails` | One request per received email | | `domains` | | Sending domains | | `domain_settings` | `domains` | Cardinality one. Tracking settings the list endpoint omits | | `domain_records` | `domains` | Expected DNS records, projected from the same detail payload | | `api_keys` | | Key metadata | | `broadcasts` | | Broadcast sends | | `contacts` | | Audience contacts | | `contact_topics` | `contacts` | One request per contact. Only path to per-contact subscription state | | `contact_properties` | | Custom property definitions | | `segments` | | Audience segments | | `segment_contacts` | `segments` | Segment membership, one request per segment | | `topics` | | Subscription topics | | `suppressions` | | Suppression list | | `webhooks` | | Webhook endpoints | | `webhook_events` | `webhooks` | Events per webhook | | `webhook_event_attempts` | `webhook_events` | One request per event. The highest-cardinality stream | | `templates` | | Template list | | `template_details` | `templates` | Cardinality one. Rendered body and declared variables | | `logs` | | API request log | ## Modes Full only. The manifest declares no `incremental` blocks, so every run re-reads every selected resource from the start. Full runs checkpoint their pagination cursor per top-level resource and resume from the last completed page. Child resources always restart with their parent. ## Behavior * **Auth**: bearer token from `api_key` on every request. * **Pagination**: Resend returns no next-page token. The cursor is the id of the last record on the page (`data.-1.id`), echoed back as the `after` query parameter, with `has_more` as the terminator and `limit=100` per page. Detail resources are single-object requests (`cardinality: one`). * **Rate limiting**: dynamic. A static 8 requests/second limiter holds below Resend's 10 rps team-wide cap, and the IETF-draft `ratelimit-remaining` / `ratelimit-reset` headers (reset counted as seconds from now) tighten it further as the window drains, but never below one request per second. * **Timestamps**: most `created_at`-style columns are typed `string`, not `timestamptz`, because Resend renders them in a non-RFC 3339 Postgres format that fails sink coercion. Only the endpoints that emit real ISO 8601 (received emails, attachment expiries, webhook events and attempts) are typed `timestamptz`. * Four metrics endpoints (`/emails/metrics`, `/segments/metrics`, broadcast metrics and recipients) are deliberately absent. They are private beta and return 404 on most accounts, which would fail the whole run. # Sample source connector Source: https://filament.getgalaxy.io/pages/connectors/sources/sample Synthetic data for testing Filament pipelines without a real upstream, useful for local development and demos. Connector ID `sample` The stable Sample source generates predictable rows without an external system. Use it with the [stdout](/pages/connectors/sinks/standard-output) sink for demos, tests, or checking end-to-end pipeline wiring. ## Configuration | Field | Scope | Default | Description | | - | - | - | - | | `rows` | Pipeline | `3` | Rows to emit per resource. | ## Resources Resource discovery lists `users` and `orders`, both with primary key `id`. A run emits whichever resources it requests. With no resource selection, the source emits one `items` resource. Each record's id is its index, with data: ```json theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} {"resource": "users", "i": 0} ``` `rows` values of zero or less still produce one row per resource. Discovery's estimated row count remains 3 regardless of this setting. ## Modes Full only, with `full_replace` as the only write policy. # ServiceTitan source connector Source: https://filament.getgalaxy.io/pages/connectors/sources/servicetitan Read ServiceTitan exports and supporting operational resources with Filament, the open-source data movement engine. Connector ID `servicetitan` The ServiceTitan source uses the v2 REST APIs. It provides 82 selectable resources across accounting, jobs, inventory, customers, and other ServiceTitan API families. Shared pagination, projection, and checkpoint behavior have regression coverage. Live tenant reads have not been validated. Use `servicetitan@v2` to select API v2. `servicetitan` resolves to this default version. ## Configuration | Field | Default | Description | | - | - | - | | `tenant_id` | | Required. ServiceTitan tenant ID. | | `client_id` | | Required. OAuth client ID. | | `client_secret` | | Required secret. OAuth client secret. | | `app_key` | | Required secret. ServiceTitan application key. | | `environment_suffix` | Empty | Empty selects production. `-integration` selects integration for both the API and token endpoint. | Create an application with read permissions for the resources you select and connect it to the tenant. Credentials and app access must match the environment. Filament obtains and renews a client-credentials access token and sends the application key in `ST-App-Key`. Connection testing reads the first jobs export page. It does not establish access to every API family. See the official [API documentation](https://developer.servicetitan.io/docs/apis). ## Resources The table lists the OAuth read scope required by each endpoint. Resource links open the corresponding ServiceTitan API reference. Enable the scopes for your selected resources on the ServiceTitan application associated with your credentials and tenant. Related resources can share a scope. | Family | Resource | Required read scope | | - | - | - | | Jobs and projects | [`jobs`](https://developer.servicetitan.io/docs/apis/tenant-jpm-v2/endpoints/Export_Jobs) | `tn.jpm.jobs:r` | | Jobs and projects | [`appointments`](https://developer.servicetitan.io/docs/apis/tenant-jpm-v2/endpoints/Export_Appointments) | `tn.jpm.appointments:r` | | Jobs and projects | [`projects`](https://developer.servicetitan.io/docs/apis/tenant-jpm-v2/endpoints/Export_Projects) | `tn.jpm.projects:r` | | Jobs and projects | [`job_notes`](https://developer.servicetitan.io/docs/apis/tenant-jpm-v2/endpoints/Export_JobNotes) | `tn.jpm.jobnotes:r` | | Jobs and projects | [`job_history`](https://developer.servicetitan.io/docs/apis/tenant-jpm-v2/endpoints/Export_JobHistory) | `tn.jpm.jobhistory:r` | | Jobs and projects | [`job_canceled_logs`](https://developer.servicetitan.io/docs/apis/tenant-jpm-v2/endpoints/Export_JobCancelReasons) | `tn.jpm.jobcanceledlogs:r` | | Jobs and projects | [`project_notes`](https://developer.servicetitan.io/docs/apis/tenant-jpm-v2/endpoints/Export_ProjectNotes) | `tn.jpm.projectnotes:r` | | Jobs and projects | [`job_types`](https://developer.servicetitan.io/docs/apis/tenant-jpm-v2/endpoints/JobTypes_GetList) | `tn.jpm.jobtypes:r` | | Customers | [`customers`](https://developer.servicetitan.io/docs/apis/tenant-crm-v2/endpoints/ExportCustomers_GetCustomers) | `tn.crm.customers:r` | | Customers | [`locations`](https://developer.servicetitan.io/docs/apis/tenant-crm-v2/endpoints/ExportLocations_Locations) | `tn.crm.locations:r` | | Customers | [`leads`](https://developer.servicetitan.io/docs/apis/tenant-crm-v2/endpoints/ExportLeads_Leads) | `tn.crm.leads:r` | | Customers | [`bookings`](https://developer.servicetitan.io/docs/apis/tenant-crm-v2/endpoints/ExportBookings_Get) | `tn.crm.bookings:r` | | Customers | [`customer_contacts`](https://developer.servicetitan.io/docs/apis/tenant-crm-v2/endpoints/ExportContacts_CustomersContacts) | `tn.crm.customers:r` | | Customers | [`location_contacts`](https://developer.servicetitan.io/docs/apis/tenant-crm-v2/endpoints/ExportContacts_LocationsContacts) | `tn.crm.locations:r` | | Customer Interactions | [`technician_ratings`](https://developer.servicetitan.io/docs/apis/tenant-customer-interactions-v2/endpoints/Export_TechnicianRatings) | `tn.csi.technicianrating:r` | | Accounting | [`gl_accounts`](https://developer.servicetitan.io/docs/apis/tenant-accounting-v2/endpoints/GlAccounts_GetList) | `tn.acc.glaccounts:r` | | Accounting | [`journal_entries`](https://developer.servicetitan.io/docs/apis/tenant-accounting-v2/endpoints/JournalEntries_GetList) | `tn.acc.journalentries:r` | | Accounting | [`journal_entry_details`](https://developer.servicetitan.io/docs/apis/tenant-accounting-v2/endpoints/JournalEntries_GetDetails) | `tn.acc.journalentries:r` | | Accounting | [`journal_entry_summaries`](https://developer.servicetitan.io/docs/apis/tenant-accounting-v2/endpoints/JournalEntries_GetSummary) | `tn.acc.journalentries:r` | | Accounting | [`invoices`](https://developer.servicetitan.io/docs/apis/tenant-accounting-v2/endpoints/Export_Invoices) | `tn.acc.invoices:r` | | Accounting | [`invoice_items`](https://developer.servicetitan.io/docs/apis/tenant-accounting-v2/endpoints/Export_InvoiceItems) | `tn.acc.invoiceitems:r` | | Accounting | [`payments`](https://developer.servicetitan.io/docs/apis/tenant-accounting-v2/endpoints/Export_Payments) | `tn.acc.payments:r` | | Accounting | [`bank_deposits`](https://developer.servicetitan.io/docs/apis/tenant-accounting-v2/endpoints/Deposits_GetList) | `tn.acc.bankdeposits:r` | | Accounting | [`bank_deposit_transactions`](https://developer.servicetitan.io/docs/apis/tenant-accounting-v2/endpoints/Deposits_GetTransactionsList) | `tn.acc.bankdeposits:r` | | Accounting | [`credit_memos`](https://developer.servicetitan.io/docs/apis/tenant-accounting-v2/endpoints/CreditMemos_GetCreditMemosList) | `tn.acc.creditmemos:r` | | Accounting | [`credit_memo_items`](https://developer.servicetitan.io/docs/apis/tenant-accounting-v2/endpoints/CreditMemos_GetCreditMemosItemsList) | `tn.acc.creditmemos:r` | | Accounting | [`ap_bills`](https://developer.servicetitan.io/docs/apis/tenant-accounting-v2/endpoints/ApBills_GetListPaginated) | `tn.acc.apbills:r` | | Accounting | [`ap_credits`](https://developer.servicetitan.io/docs/apis/tenant-accounting-v2/endpoints/ApCredits_GetList) | `tn.acc.apcredits:r` | | Accounting | [`ap_payments`](https://developer.servicetitan.io/docs/apis/tenant-accounting-v2/endpoints/ApPayments_GetList) | `tn.acc.appayments:r` | | Accounting | [`expense_transactions`](https://developer.servicetitan.io/docs/apis/tenant-accounting-v2/endpoints/ExpenseTransactions_GetListPaginated) | `tn.acc.expensetransactions:r` | | Accounting | [`inventory_bills`](https://developer.servicetitan.io/docs/apis/tenant-accounting-v2/endpoints/InventoryBills_GetListPaginated) | `tn.acc.inventorybills:r` | | Accounting | [`inventory_bills_export`](https://developer.servicetitan.io/docs/apis/tenant-accounting-v2/endpoints/Export_InventoryBills) | `tn.acc.inventorybills:r` | | Accounting | [`payment_types`](https://developer.servicetitan.io/docs/apis/tenant-accounting-v2/endpoints/PaymentTypes_GetList) | `tn.acc.paymenttypes:r` | | Accounting | [`payment_terms`](https://developer.servicetitan.io/docs/apis/tenant-accounting-v2/endpoints/PaymentTerms_GetList) | `tn.acc.paymentterms:r` | | Accounting | [`tax_zones`](https://developer.servicetitan.io/docs/apis/tenant-accounting-v2/endpoints/TaxZones_GetList) | `tn.acc.taxzones:r` | | Accounting | [`gl_account_types`](https://developer.servicetitan.io/docs/apis/tenant-accounting-v2/endpoints/GlAccounts_GetTypeList) | `tn.acc.glaccounts:r` | | Inventory | [`vendors`](https://developer.servicetitan.io/docs/apis/tenant-inventory-v2/endpoints/Vendors_GetList) | `tn.inv.vendors:r` | | Inventory | [`inventory_templates`](https://developer.servicetitan.io/docs/apis/tenant-inventory-v2/endpoints/InventoryTemplates_GetList) | `tn.inv.inventorytemplates:r` | | Inventory | [`inventory_adjustments`](https://developer.servicetitan.io/docs/apis/tenant-inventory-v2/endpoints/Export_Adjustments) | `tn.inv.adjustments:r` | | Inventory | [`purchase_orders`](https://developer.servicetitan.io/docs/apis/tenant-inventory-v2/endpoints/Export_PurchaseOrders) | `tn.inv.purchaseorders:r` | | Inventory | [`inventory_returns`](https://developer.servicetitan.io/docs/apis/tenant-inventory-v2/endpoints/Export_Returns) | `tn.inv.returns:r` | | Inventory | [`inventory_transfers`](https://developer.servicetitan.io/docs/apis/tenant-inventory-v2/endpoints/Export_Transfers) | `tn.inv.transfers:r` | | Inventory | [`inventory_receipts`](https://developer.servicetitan.io/docs/apis/tenant-inventory-v2/endpoints/Receipts_GetList) | `tn.inv.receipts:r` | | Inventory | [`inventory_receipts_export`](https://developer.servicetitan.io/docs/apis/tenant-inventory-v2/endpoints/Export_Receipts) | `tn.inv.receipts:r` | | Equipment Systems | [`installed_equipment`](https://developer.servicetitan.io/docs/apis/tenant-equipment-systems-v2/endpoints/Export_ExportInstalledEquipment) | `tn.eqs.installedequipment:r` | | Equipment Systems | [`equipment_systems`](https://developer.servicetitan.io/docs/apis/tenant-equipment-systems-v2/endpoints/Export_ExportEquipmentSystems) | `tn.eqs.equipmentsystems:r` | | Pricebook | [`pricebook_categories`](https://developer.servicetitan.io/docs/apis/tenant-pricebook-v2/endpoints/Export_Categories) | `tn.pb.categories:r` | | Pricebook | [`pricebook_services`](https://developer.servicetitan.io/docs/apis/tenant-pricebook-v2/endpoints/Export_Services) | `tn.pb.services:r` | | Pricebook | [`pricebook_equipment`](https://developer.servicetitan.io/docs/apis/tenant-pricebook-v2/endpoints/Export_Equipment) | `tn.pb.equipment:r` | | Pricebook | [`pricebook_materials`](https://developer.servicetitan.io/docs/apis/tenant-pricebook-v2/endpoints/Export_Materials) | `tn.pb.materials:r` | | Settings | [`employees`](https://developer.servicetitan.io/docs/apis/tenant-settings-v2/endpoints/Export_Employees) | `tn.stt.employees:r` | | Settings | [`technicians`](https://developer.servicetitan.io/docs/apis/tenant-settings-v2/endpoints/Export_Technicians) | `tn.stt.technicians:r` | | Settings | [`business_units`](https://developer.servicetitan.io/docs/apis/tenant-settings-v2/endpoints/Export_BusinessUnits) | `tn.stt.businessunits:r` | | Settings | [`tag_types`](https://developer.servicetitan.io/docs/apis/tenant-settings-v2/endpoints/Export_TagTypes) | `tn.stt.tagtypes:r` | | Marketing | [`campaigns`](https://developer.servicetitan.io/docs/apis/tenant-marketing-v2/endpoints/Campaigns_GetList) | `tn.mrk.campaigns:r` | | Marketing | [`campaign_costs`](https://developer.servicetitan.io/docs/apis/tenant-marketing-v2/endpoints/CampaignCosts_GetList) | `tn.mrk.costs:r` | | Marketing | [`campaign_categories`](https://developer.servicetitan.io/docs/apis/tenant-marketing-v2/endpoints/CampaignCategories_GetList) | `tn.mrk.categories:r` | | Calls | [`calls`](https://developer.servicetitan.io/docs/apis/tenant-telecom/endpoints/Export_Calls) | `tn.tlc.calls:r` | | Timesheets | [`timesheet_activities`](https://developer.servicetitan.io/docs/apis/tenant-timesheets-v2/endpoints/Export_Activities) | `tn.tms.activities:r` | | Timesheets | [`timesheet_activity_categories`](https://developer.servicetitan.io/docs/apis/tenant-timesheets-v2/endpoints/Export_ActivityCategories) | `tn.tms.activitycategories:r` | | Timesheets | [`timesheet_activity_types`](https://developer.servicetitan.io/docs/apis/tenant-timesheets-v2/endpoints/Export_ActivityTypes) | `tn.tms.activitytypes:r` | | Payroll | [`job_timesheets`](https://developer.servicetitan.io/docs/apis/tenant-payroll-v2/endpoints/Export_Timesheets) | `tn.prl.jobs:r` | | Payroll | [`job_splits`](https://developer.servicetitan.io/docs/apis/tenant-payroll-v2/endpoints/Export_JobSplits) | `tn.prl.jobs:r` | | Payroll | [`payroll_adjustments`](https://developer.servicetitan.io/docs/apis/tenant-payroll-v2/endpoints/Export_PayrollAdjustments) | `tn.prl.payrolladjustments:r` | | Payroll | [`gross_pay_items`](https://developer.servicetitan.io/docs/apis/tenant-payroll-v2/endpoints/Export_GrossPayItems) | `tn.prl.grosspayitems:r` | | Payroll | [`timesheet_codes`](https://developer.servicetitan.io/docs/apis/tenant-payroll-v2/endpoints/Export_TimesheetCodes) | `tn.prl.timesheetcodes:r` | | Payroll | [`activity_codes`](https://developer.servicetitan.io/docs/apis/tenant-payroll-v2/endpoints/Export_ActivityCodes) | `tn.prl.activitycodes:r` | | Payroll | [`payroll_settings`](https://developer.servicetitan.io/docs/apis/tenant-payroll-v2/endpoints/Export_PayrollSettings) | `tn.prl.payrollsettings:r` | | Payroll | [`non_job_timesheets`](https://developer.servicetitan.io/docs/apis/tenant-payroll-v2/endpoints/Timesheets_GetNonJobTimesheets) | `tn.prl.nonjobtimesheets:r` | | Payroll | [`payrolls`](https://developer.servicetitan.io/docs/apis/tenant-payroll-v2/endpoints/Payrolls_GetList) | `tn.prl.payrolls:r` | | Dispatch | [`appointment_assignments`](https://developer.servicetitan.io/docs/apis/tenant-dispatch-v2/endpoints/Export_AppointmentAssignments) | `tn.dis.appointmentassignments:r` | | Dispatch | [`non_job_appointments`](https://developer.servicetitan.io/docs/apis/tenant-dispatch-v2/endpoints/NonJobAppointments_GetList) | `tn.dis.nonjobappointments:r` | | Dispatch | [`technician_shifts`](https://developer.servicetitan.io/docs/apis/tenant-dispatch-v2/endpoints/TechnicianShifts_GetList) | `tn.dis.technicianshifts:r` | | Memberships | [`membership_types`](https://developer.servicetitan.io/docs/apis/tenant-memberships-v2/endpoints/Export_MembershipTypes) | `tn.mem.membershiptypes:r` | | Memberships | [`recurring_service_types`](https://developer.servicetitan.io/docs/apis/tenant-memberships-v2/endpoints/Export_RecurringServiceTypes) | `tn.mem.recurringservicetypes:r` | | Memberships | [`memberships`](https://developer.servicetitan.io/docs/apis/tenant-memberships-v2/endpoints/Export_Memberships) | `tn.mem.memberships:r` | | Memberships | [`invoice_templates`](https://developer.servicetitan.io/docs/apis/tenant-memberships-v2/endpoints/Export_InvoiceTemplates) | `tn.mem.invoicetemplates:r` | | Memberships | [`recurring_services`](https://developer.servicetitan.io/docs/apis/tenant-memberships-v2/endpoints/Export_LocationRecurringServices) | `tn.mem.recurringservices:r` | | Memberships | [`recurring_service_events`](https://developer.servicetitan.io/docs/apis/tenant-memberships-v2/endpoints/Export_LocationRecurringServiceEvents) | `tn.mem.recurringserviceevents:r` | | Memberships | [`membership_status_changes`](https://developer.servicetitan.io/docs/apis/tenant-memberships-v2/endpoints/Export_MembershipStatusChanges) | `tn.mem.memberships:r` | | Estimates | [`estimates`](https://developer.servicetitan.io/docs/apis/tenant-salestech-v2/endpoints/EstimatesExport_Estimates) | `tn.sal.estimates:r` | | Service Agreements | [`service_agreements`](https://developer.servicetitan.io/docs/apis/tenant-service-agreements-v2/endpoints/Export_ServiceAgreements) | `tn.sa.serviceagreements:r` | The default selection includes jobs, customers, common exports, and reference streams. The added export feeds, bank deposits, credit memos, AP transactions, expense transactions, inventory bills and receipts, journal summaries, and payment and tax reference tables are available to select individually. Grant each selected resource's read scope on the ServiceTitan application. Other ServiceTitan resources, including reporting and forms, are outside this resource set. ### Accounting and inventory relationships `journal_entries` provides `syncStatus`, including `OutOfSync`, plus `versionId` and `lastSyncVersionId` for checking whether an entry changed after sync. `journal_entry_details` provides account, transaction, job, and pricebook item detail. `journal_entry_summaries` provides totals by account and business unit. The detail and summary endpoints are read for each journal entry with an ID. Their rows include `journalEntryId` but have no API-provided line ID. `bank_deposit_transactions` reads each deposit's transactions and includes `bankDepositId`. `credit_memo_items` links to `credit_memos` through `creditMemoId`. AP bills and expense transactions include their items as JSON. `inventory_receipts` uses the receipt list, which includes item GL accounts. `inventory_receipts_export` uses the export feed, which includes serial numbers on items but omits item GL accounts. The inventory bill list and export feed are also separate selectable resources. The `ap_bills` resource selects ServiceTitan's `ApBill` bill type, while `inventory_bills` has no bill type filter. `vendors`, `gl_accounts`, `inventory_templates`, `installed_equipment`, and `equipment_systems` provide reference and equipment data for interpreting transactions and jobs. Vendor addresses, contact details, custom fields, and external data remain JSON. Vendor external data for a particular application requires an `externalDataApplicationGuid` selector, which this connector does not expose. ## Modes All 82 resources support full reads. Incremental reads are available for 53 export and timestamp based resources. ServiceTitan export feeds use the opaque `continueFrom` token. `non_job_timesheets` and `payrolls` use `modifiedOnOrAfter` and sort by modification time. Use incremental upsert for mutable export records. The first incremental run reads the complete export before saving a checkpoint. Full reads are the only supported mode for these resources: * Accounting resources other than `invoices`, `invoice_items`, `payments`, and `inventory_bills_export`. * `vendors`, `inventory_templates`, and `inventory_receipts`. * `job_types`, `campaigns`, `campaign_costs`, `campaign_categories`, `technician_shifts`, `non_job_appointments`, and `membership_status_changes`. * `technician_ratings` and `payroll_settings`, which have no documented stable row ID. Use full replace when writing these resources. Use full replace for `journal_entries`, `journal_entry_details`, `journal_entry_summaries`, and `payment_terms`. ServiceTitan allows null IDs for journal entries and payment terms, so these resources have no primary key. Neither journal entry child resource has a stable line key. Full replace also removes rows missing from current-state lists when ServiceTitan deletes records. Use it for `technician_shifts`, which can be deleted upstream. `inventory_bills_export` and `inventory_receipts_export` support incremental reads. Their corresponding list resources support full reads only. ## Behavior Export requests use `includeRecentChanges=false`, accepting ServiceTitan's approximately 15-minute export visibility delay. A saved export token advances only after a successful run. Failed runs replay from the previous checkpoint. Append writes can retain duplicates after a replay, so use upsert for mutable export records. Where supported, list requests include inactive records with `active=Any` or `activeOnly=false`. Paginated lists use `hasMore`. Export feeds use `continueFrom`. Requests share a 45-per-second limiter within each run and retry throttling and server errors. Nested arrays and objects remain JSON. Dates and times remain strings. Integer IDs use 64-bit integers. Many accounting amounts are projected as strings to preserve their decimal representation. The `raw` column retains unprojected properties. `job_history` contains one row per job, with the complete `history` array. Export upserts use Filament's insertion-order version policy. If an export returns an older version after a newer one, the older record can replace the newer destination row. Keep separate tenants in separate destination tables or namespaces. # Slack source connector Source: https://filament.getgalaxy.io/pages/connectors/sources/slack Read conversations, messages, thread replies, files, and workspace metadata from Slack Connector ID `slack` The Slack source reads workspace information, users, conversations, messages, thread replies, files, bookmarks, and pins visible to its token. It is built with an [HTTP manifest](/pages/connectors/building-a-connector/http-manifests). Its resources and columns may change between releases. ## Configuration | Field | Scope | Default | Description | | - | - | - | - | | `token` | Connection | | Required. Secret. Bot or user OAuth token. | | `conversation_types` | Connection | `[public_channel]` | Conversation types to include. Any of `public_channel`, `private_channel`, `mpim`, `im`. | ## Resources `team` is a cardinality-one snapshot of the workspace. `users` and `user_groups` are top-level lists. `conversations` uses `users.conversations` rather than `conversations.list`. That gives a membership-aware inventory, because `conversations.history` rejects channels the bot can discover but has not joined. It captures each channel id, and `messages` (one history walk per conversation), `bookmarks`, and `pins` fan out from it. `thread_replies` fans out from a capture-only `threads` walk of `conversations.history`, not from `messages`. Slack reveals new replies on an old thread only through the parent message's `latest_reply`, and history has no updated-since filter, so the walk reads every message in every enabled conversation on every run. It emits nothing. `thread_replies` then calls `conversations.replies` only for parents whose `latest_reply` is at or past the saved replies watermark, so messages that never started a thread and threads with no new activity cost no request. `files` is an independent top-level list. ## Modes All resources support full reads. If interrupted, a top-level resource resumes after its last completed page. Children (`messages`, `thread_replies`, `bookmarks`, `pins`) always restart with their parent. Three resources are incremental. | Resource | Cursor field | Request parameter | Checkpoint key | | - | - | - | - | | `messages` | `ts` | `oldest` (query) | `messages_since` | | `thread_replies` | `ts` | `oldest` (query) | `replies_since` | | `files` | `created` | `ts_from` (query) | `files_created` | All use the `numeric` comparator (Slack timestamps are epoch numbers) and declare no overlap window. The cursor field is fixed by the manifest. Only a lookback window is user-configurable, which the numeric comparator supports. All conversations share one saved `messages` cursor, and all threads share one saved `replies_since` cursor. For example, Filament may finish scanning a busy channel after a newer message was posted to a quiet channel that it already scanned. Without a lookback, that quiet-channel message can fall before the next run's starting cursor. The same race applies to a reply posted in one thread while a later thread is still being read. Configure a lookback of at least one run's duration on `messages` and `thread_replies` if late arrivals matter. An incremental `thread_replies` run still walks the full history of every enabled conversation to find threads that moved. On a Tier 3 token that is about one request per thousand messages at fifty or more requests a minute. Edits and deletions of messages and replies are never observed, because Slack keeps the original `ts` and history exposes no change filter. ## Behavior * **Auth**: bearer token from `token` on every request. * **Errors**: Slack returns HTTP 200 with `{"ok": false, "error": …}` on failure, so the manifest declares an error envelope. Any response carrying an `error` field fails the run with that value as the message. * **Pagination**: cursor paging via `response_metadata.next_cursor` for users, conversations, messages, and thread replies. `files.list` is the exception. It uses page-number pagination (`page`/`count`, 100 per page, bounded by `paging.pages`). * **Rate limiting**: no client-side limiter is configured. The engine backs off on 429 responses using `Retry-After`. Use a token from an app you created in your own workspace. Since May 2025 Slack limits apps distributed commercially outside the Slack Marketplace to one `conversations.history` or `conversations.replies` request per minute with fifteen messages per page, which makes every message resource unusable at scale. Internal apps and Marketplace apps keep the standard Tier 3 limits. * Every resource carries a `raw` remainder column preserving fields the manifest does not project. # Stripe source connector Source: https://filament.getgalaxy.io/pages/connectors/sources/stripe Read charges, payment intents, invoices, subscriptions, and the balance ledger from a Stripe account Connector ID `stripe` The Stripe source reads customers, payments, invoices, subscriptions, catalog objects, balance transactions, and events. It is built with an [HTTP manifest](/pages/connectors/building-a-connector/http-manifests). Its resources are stable, though future releases may add columns. It targets API version `2026-07-29.dahlia`. ## Configuration | Field | Scope | Default | Description | | - | - | - | - | | `api_key` | Connection | | Required. Secret. Restricted key (`rk_…`) with read permissions on the extracted resources, or a secret key (`sk_…`). | ## Resources | Resource | Parent | Notes | | - | - | - | | `customers` | | Connection probe | | `charges` | | Incremental | | `payment_intents` | | Incremental. `raw` preserves `client_secret` | | `refunds` | | Incremental. `status` settles after creation | | `disputes` | | Incremental | | `balance_transactions` | | Incremental. Ledger with per-transaction fee splits | | `payouts` | | Incremental | | `invoices` | | Incremental. Embedded `lines` truncates at 10 | | `invoice_line_items` | `invoices` | One request per invoice. The complete line set | | `credit_notes` | | Incremental | | `subscriptions` | | `status=all` keeps canceled subscriptions. Embedded `items` truncates at 10 | | `subscription_items` | `subscriptions` | One request per subscription. Only source of the item-level billing period | | `products`, `prices`, `coupons`, `promotion_codes` | | Catalog objects | | `checkout_sessions` | | Incremental | | `setup_intents` | | `raw` preserves `client_secret` | | `payment_methods` | | No `created` list filter, so never incremental | | `tax_rates` | | | | `events` | | Incremental. 30-day retention | The two fan-out children exist because Stripe embeds `lines` and `items` as lists that truncate at 10 with their own `has_more`. The parent keeps the embedded copy as `raw` JSON for reference, and the child resource is the complete set. > [!WARNING] > > `payment_intents.raw` and `setup_intents.raw` contain `client_secret`. Treat > those destination tables as sensitive. Stripe retains events for 30 days, so > a pipeline paused longer than that cannot recover the missing event history. ## Modes All resources support full reads. If interrupted, a full read of a top-level resource resumes after its last completed page. The incremental resources are `charges`, `payment_intents`, `refunds`, `disputes`, `balance_transactions`, `payouts`, `invoices`, `credit_notes`, `checkout_sessions`, and `events`. All follow the same pattern. | | | | - | - | | Cursor field | `created` (Unix epoch, `int64`) | | Request parameter | `created[gte]` (query) | | Comparator | `numeric` | | Checkpoint key | `_created` (e.g. `charges_created`) | | Overlap | none by default | The cursor field is fixed by the manifest. Only a lookback window is user-configurable, which the numeric comparator supports. A lookback matters here because `created` never changes. A refund that settles from `pending` to `succeeded`, or a dispute that resolves, is not re-read by an incremental run unless a lookback window covers it. Use full runs or the `events` feed to capture post-creation mutations. ## Behavior * **Auth**: HTTP basic with the API key as the username and no password, matching `curl -u sk_test_…:`. * **Pagination**: Stripe returns no next-page token. The cursor is the id of the last record on the page (`data.-1.id`), echoed back as `starting_after`, with `has_more` as the terminator and `limit=100` per page. * **API version**: pinned via `Stripe-Version: 2026-07-29.dahlia`, so payload response schema is set by the manifest, not the account's dashboard setting. The exception is `events.data.object`, which is rendered at the version current when each event was created. * **Rate limiting**: a static 8 requests/second limiter, held below Stripe's 25 rps sandbox ceiling since one limiter is shared across all concurrently extracting resources. Stripe publishes no rate-limit response headers, so there is no dynamic block. * **Timestamps**: every Stripe timestamp is a Unix epoch integer typed `int64`, not `timestamptz`. ## Related guides * [Sync Stripe to Snowflake](https://www.getgalaxy.io/articles/best-way-to-sync-stripe-to-snowflake-2026) # Typeform source connector Source: https://filament.getgalaxy.io/pages/connectors/sources/typeform Read account details, workspaces, forms, form details, responses, themes, images, and webhooks from Typeform Connector ID `typeform` The Typeform source reads account details, workspaces, form definitions, and submissions from Typeform. It uses an [HTTP manifest](/pages/connectors/building-a-connector/http-manifests). It has been verified against Typeform's official REST API documentation and validated against a live Typeform account. It targets the unversioned REST API. ## Configuration | Field | Scope | Default | Description | | - | - | - | - | | `token` | Connection | | Required. Secret. Typeform personal access token or OAuth access token. | | `base_url` | Connection | `https://api.typeform.com` | API host URL. Select the European data center host if your account stores responses in the EU. | Create a personal access token in **Account → Personal tokens** inside your Typeform settings. OAuth 2.0 access tokens with appropriate scopes (`forms:read`, `responses:read`, `workspaces:read`, `themes:read`, `webhooks:read`) are also accepted. ## Resources | Resource | Endpoint | Parent | | - | - | - | | `account` | `GET /me` | | | `workspaces` | `GET /workspaces` | | | `forms` | `GET /forms` | | | `form_details` | `GET /forms/{form_id}` | `forms` | | `responses` | `GET /forms/{form_id}/responses` | `forms` | | `themes` | `GET /themes` | | | `images` | `GET /images` | | | `webhooks` | `GET /forms/{form_id}/webhooks` | `forms` | `account`, `workspaces`, `forms`, `form_details`, and `responses` are selected by default. `themes`, `images`, and `webhooks` are optional. `account` queries `/me` to fetch the user ID, alias, email, and language. `workspaces` returns workspace metadata, sharing status, and form counts. `forms` lists form titles, update timestamps, and public access settings. `form_details` retrieves the complete form definition for each form, including fields, logic jumps, welcome screens, and thank you screens. `responses` extracts individual form submissions, submitted timestamps, browser metadata, and answer payloads. `themes` lists custom themes, fonts, colors, and background designs. `images` lists image assets uploaded to your account. `webhooks` retrieves webhook configurations and delivery URLs for each form. ## Modes All resources use full reads. Typeform list endpoints do not provide filter watermarks for incremental synchronization across multiple parent forms. Use **full replace** write mode to capture updated form structures, newly submitted responses, and workspace changes. ## Behavior * **Auth**: requests send the token as an HTTP Bearer credential in the `Authorization` header to the configured API host. * **Pagination**: `workspaces`, `forms`, and `themes` use page pagination requesting up to 200 items per page until `page_count` is reached. `responses` uses cursor pagination passing the last item's `response_id` into the `before` parameter with a page size of 100 until no further items return. * **Rate limiting**: throttled at 2 requests per second with a burst allowance of 5 requests to stay within Typeform fair use guidelines. * **Dependencies**: `form_details`, `responses`, and `webhooks` depend on `forms` to provide parent form IDs. * The `raw` column preserves unmapped response fields as JSON. # Webhook source connector Source: https://filament.getgalaxy.io/pages/connectors/sources/webhook Receive signed event envelopes through a durable JetStream inbox Connector ID `webhook` The webhook source accepts event deliveries over HTTP and consumes them in a continuous run. Each configured resource produces append-only rows. A webhook event does not update a snapshot table on its own. ## Setup Enable [webhooks](/pages/guides/deployment/configuration#webhooks) on the server and use PostgreSQL for the shared datastore. Set `WEBHOOK_PUBLIC_BASE_URL` so the endpoint reports full delivery URLs. In the web UI, creating a webhook source generates its signing key. Filament shows the key once with the delivery URL. Copy it into the sender before you close the dialog. To replace the key, open the source and choose **Rotate** in its **Secrets** section. The new key is shown once and the previous key keeps verifying for 72 hours. A source without a key shows **Generate** there instead. Create a continuous pipeline that reads the source. On the **Select resources** step, add each resource by name with **Add resource**. Enter `issues`, not `/issues`. Filament builds the path `/hooks//issues`. Creating the pipeline registers those resources on the endpoint and turns it on. Resources added later on the canvas are registered when the pipeline is saved, and saving it with none turns the endpoint off. The source has no separate switch. Run the pipeline to start receiving deliveries. Until it runs, senders get `503` and retry. The source's **Endpoints** section shows the endpoint status and copies the URL for each resource. For local development, run `just infra` followed by `just dev`. The dev recipe enables webhooks with a single-replica inbox and starts the worker, control plane, API, and UI. The UI runs at `http://localhost:5173` and the receiver listens on `http://localhost:8080`. ## Endpoint API `PutWebhookEndpoint` configures the endpoint without the web UI. The endpoint lists resource names only. The pipeline decides where each resource is written. `DiscoverResources` lists the names already registered on a saved endpoint. The endpoint can be created disabled before the pipeline exists. To enable it, set `pipelineId` and `routeKey` to a persisted continuous route. The route does not need to be running. Once a run starts, `routeReady` reports whether the route reads every registered resource. Send the last returned `revision` as `expectedRevision` on every update. With `WEBHOOK_PUBLIC_BASE_URL` set, the endpoint returns `deliveryUrl`, the full URL without the resource. Supply `importedSecret` for a sender's signing key or set `mintSecret` to have Filament create one. A minted key appears only in that write response. Read operations return `hasSigningSecret` and never return the key. A rotation keeps the replaced key valid for 72 hours so senders can switch over. `previousKeyExpiresAt` reports when it stops verifying. Configuration changes reach every server replica within 15 seconds. ## Sending deliveries Send a POST request to `/hooks//` with the original body, an `X-Filament-Delivery-Id` header, an `X-Filament-Timestamp` header containing a Unix timestamp, and an `X-Filament-Signature` header. Sign the UTF-8 bytes of `..` with HMAC-SHA256 under the signing key. Send the signature as `sha256=` followed by lowercase hexadecimal. The receiver returns the configured success status only after the inbox confirms storage. The default is `202`. A repeated delivery ID with identical bytes returns its original receipt while retained. ## Delivery lifecycle An enabled endpoint accepts deliveries for its registered resources while a pipeline that reads its source is running or paused. Pausing leaves deliveries waiting in the inbox. When every pipeline that reads the source is stopped, new deliveries get `503` with `Retry-After`, so senders keep them and retry. A stopped pipeline that starts again resumes from its certified position. Disabling the endpoint stops acceptance. New requests then return `404`, while authenticated retries of retained deliveries still resolve their original receipt. Deliveries carry no pipeline routing. The consuming run decides where each one goes. A new pipeline version reads every delivery its predecessor had not certified. A new stream generation, such as one created by changing the destination connection, starts with no certified position and reads every delivery still in the inbox. A delivery for a resource the stream does not select is skipped with a warning in the worker log and counts as processed. ## Message columns With a PostgreSQL destination, set the sink's `schema_evolution` to `strict` or `nullable_add` to project JSON object members into Arrow and PostgreSQL columns. Filament discovers the layout from a complete accepted batch before writing any rows. Strings and booleans use native types. Numbers, arrays, and nested objects use JSON so their values retain their shape and precision. With `nullable_add`, later batches may add nullable fields. Incompatible changes block the consuming attempt for review. Every projected row also carries `delivery_id`, `provider_delivery_id`, `received_at`, `metadata`, `tenant_id`, `source_connection_id`, and Filament event identity columns. The pipeline adds its run audit columns. The original body remains in the JetStream inbox for the retention period. A non-object body uses a `payload` byte column. When schema evolution is disabled, the source keeps the original envelope layout with `delivery_id`, `provider_delivery_id`, `received_at`, `payload`, and `metadata`. In PostgreSQL, read the payload as JSON with `convert_from(payload, 'UTF8')::jsonb`. A stream that has already certified this layout needs a new stream generation before switching to projected message columns. ## Batch settings The webhook source connection controls when the worker commits accepted deliveries. The first limit reached closes the batch. | Setting | Default | Effect | | - | - | - | | `batch_max_records` | `1000` | Commit after this many deliveries | | `batch_max_bytes` | `4194304` | Commit after this many raw payload bytes | | `batch_max_wait` | `1s` | Commit a partial batch this long after its first delivery | The receiver still responds as soon as JetStream stores a valid delivery. The worker then reads up to these limits, writes them in one sink transaction, and certifies the whole group. The certified position is the only record of progress. The worker keeps no consumer state in NATS. A larger batch improves throughput but delays visibility in the destination. The limits are saved on the source connection and apply to new continuous executions. The worker prefetches up to 512 deliveries ahead of the batch it is building. The prefetch holds at most 8 MiB, or two of the largest inbox messages when that is more. ## Recovery and limits The receiver stores one immutable message per accepted delivery in the file-backed `WEBHOOK_INBOX` stream. The source commits destination writes and then certifies an epoch. A crash before certification may repeat destination effects. Configure the destination for idempotent event identities where duplicate effects matter. The control plane purges a delivery once it is older than the retention period and every stream that can resume reading its source has certified it. That includes running, paused and stopped streams. A delivery no stream has certified is kept for at most the hold period, 30 days by default. Past it the delivery is dropped, counted in `filament_webhook_expired_total`, and logged with its source. `filament_webhook_oldest_unreleased_seconds` reports how long the oldest waiting delivery has waited. Alert on it well before the hold period ends. A delivery for a deleted source, or for a source no stream can resume, is purged on age alone. Once a deleted source's deliveries are all purged, its endpoint record is removed too. A purged delivery no longer deduplicates, so set retention longer than any sender's retry horizon. Size the inbox for the retention period plus the longest expected backlog. A full inbox answers every delivery with `503`. Automatic resource creation from incoming requests, provider-specific signing profiles, bounded extraction, and webhooks in standalone mode are not available. # Zendesk Support source connector Source: https://filament.getgalaxy.io/pages/connectors/sources/zendesk Read tickets, users, organizations, groups, brands, and ticket comments from Zendesk Support with Filament. Connector ID `zendesk` The Zendesk Support source reads users, tickets, organizations, groups, ticket fields, brands, custom roles, satisfaction ratings, tags, and ticket comments from the Zendesk Support REST API. It uses an [HTTP manifest](/pages/connectors/building-a-connector/http-manifests). This connector is in preview. It targets API version `v2`. ## Configuration | Field | Scope | Default | Description | | - | - | - | - | | `subdomain` | Connection | | Required. Zendesk subdomain, such as `mycompany` for `mycompany.zendesk.com`. | | `auth_method` | Connection | `api_token` | Optional. Choose `api_token` for Basic Auth or `oauth_access_token` for an OAuth Bearer token. | | `email` | Connection | | Required when using `api_token`. Email address of an admin or agent account. | | `api_token` | Connection | | Required when using `api_token`. Secret. API token generated in Zendesk Admin Center. | | `access_token` | Connection | | Required when using `oauth_access_token`. Secret. OAuth access token generated via a Zendesk OAuth client. | Connection testing calls `GET /api/v2/users.json?page[size]=100`. Requests target `https://{subdomain}.zendesk.com`. ## Resources All resources except `custom_roles`, `satisfaction_ratings`, and `ticket_comments` are selected by default. `custom_roles` requires a Zendesk Enterprise plan or higher, and `satisfaction_ratings` requires administrator credentials. Selecting `ticket_comments` fans out across parent tickets. | Resource | Endpoint | Primary Key | Parent | | - | - | - | - | | `users` | `GET /api/v2/users.json` | `id` | | | `tickets` | `GET /api/v2/tickets.json` | `id` | | | `organizations` | `GET /api/v2/organizations.json` | `id` | | | `groups` | `GET /api/v2/groups.json` | `id` | | | `ticket_fields` | `GET /api/v2/ticket_fields.json` | `id` | | | `brands` | `GET /api/v2/brands.json` | `id` | | | `custom_roles` | `GET /api/v2/custom_roles.json` | `id` | | | `satisfaction_ratings` | `GET /api/v2/satisfaction_ratings.json` | `id` | | | `tags` | `GET /api/v2/tags.json` | `name` | | | `ticket_comments` | `GET /api/v2/tickets/{ticket_id}/comments.json` | `id` | `tickets` | ## Modes All resources perform full reads. Use **full upsert** to refresh rows or **full replace** to remove rows that are no longer returned by Zendesk. When using full replace, consider these Zendesk API boundaries: * **Archived tickets**. Zendesk automatically archives tickets approximately 120 days after closure (three days on sandboxes, or earlier on high-volume accounts) and excludes them from `GET /api/v2/tickets.json`. A full replace removes archived tickets and their comments from destination storage. * **Tag limits**. Zendesk lists at most the 20,000 most popular tags from the preceding 60 days. A full replace drops older or less frequent tags that fall outside this window. ## Behavior * **Auth**. Every request sends either HTTP Basic Authentication with `{email}/token` and `api_token`, or a Bearer token when `auth_method` is `oauth_access_token`. * **Pagination**. Endpoints use cursor-based pagination with `page[size]=100`, walking `page[after]` from `meta.after_cursor` until `meta.has_more` is false. * **Rate limiting**. Zendesk rate limits vary by subscription tier. Team plans allow 200 requests per minute, Growth allows 400, and Professional and Enterprise allow 700 or more. The connector paces requests at 3 requests per second with a burst allowance of 5 requests so smaller plan tiers do not experience throttling. # Zoho CRM source connector Source: https://filament.getgalaxy.io/pages/connectors/sources/zoho Read CRM and inventory records, custom modules, relationships, and administrative data from Zoho CRM Connector ID `zoho` The Zoho CRM source reads sales, activity, inventory, and scheduling records, module metadata, relationships, and optional administrative data. It uses an [HTTP manifest](/pages/connectors/building-a-connector/http-manifests). It targets API version `v8`. The manifest has been checked against Zoho's API reference and exercised against a live account, including a synthetic lead created through the CRM UI. Resources without enabled features or populated parent records have not received the same level of live verification. ## Configuration | Field | Scope | Default | Description | | - | - | - | - | | `auth_method` | Connection | `access_token` | Choose `access_token`, `client_credentials`, or `refresh_token`. | | `access_token` | Connection | | Secret. Required for `access_token`; omit the authorization prefix. | | `client_id` | Connection | | Required for `client_credentials` and `refresh_token`. | | `client_secret` | Connection | | Secret. Required for `client_credentials` and `refresh_token`. | | `refresh_token` | Connection | | Secret. Required for `refresh_token`; obtain through Zoho authorization first. | | `accounts_url` | Connection | `https://accounts.zoho.com` | Accounts origin matching your data center, such as `https://accounts.zoho.eu`. | | `oauth_scope` | Connection | | Multi-select read scopes required for `client_credentials`. Include `ZohoCRM.users.READ` for the connection probe. Select all for broad resource testing. | | `soid` | Connection | | Required for `client_credentials`, formatted as `ZohoCRM.`. Find the Org ID in your Zoho profile menu. | | `host` | Connection | `https://www.zohoapis.com` | API domain returned with the token, without `/crm/v8`. | | `module_api_name` | Pipeline | `Leads` | Module API name used by the `module_*` resources. | | `related_list_api_name` | Pipeline | `Notes` | Related list used by `module_related_records`. | | `related_fields` | Pipeline | `id` | Comma-separated fields for related records, up to 50. The default returns membership IDs only. | | `report_from` | Pipeline | | Start date for `workflow_usage`, in `YYYY-MM-DD` format. | | `report_to` | Pipeline | | End date for `workflow_usage`, in `YYYY-MM-DD` format. | | `notification_channel_id` | Pipeline | | Existing channel ID required for `notification_subscriptions`. | | `wizard_id` | Pipeline | | Wizard ID required for `wizard_layout_details`. | | `wizard_layout_id` | Pipeline | | Associated layout ID required for `wizard_layout_details`; listed in wizard containers. | Select `auth_method` to show only the configuration fields for that method: * **Access token:** supply an existing token. Tokens expire after an hour; replace it externally before it expires. * **Client credentials:** supply your client ID, client secret, scopes, and `soid`. Filament obtains and caches an access token and requests another when it expires. Zoho recommends this flow for one-time tasks such as migration and testing. * **Refresh token:** supply your client ID, client secret, and a previously authorized refresh token. Filament obtains access tokens automatically as needed. This is the preferred option for recurring ingestion; the initial browser authorization or self-client grant exchange must be completed outside Filament. See Zoho's [client credentials flow](https://www.zoho.com/crm/developer/docs/api/v8/client-credentials.html), [initial authorization](https://www.zoho.com/crm/developer/docs/api/v8/access-refresh.html), and [refresh-token instructions](https://www.zoho.com/crm/developer/docs/api/v8/refresh.html). Set `accounts_url` for your data center and `host` to the returned `api_domain`, without `/crm/v8`. The token's organization and environment must match the API host. Existing connections continue to use access-token authentication by default. Use read scopes for the selected modules and settings. Broad read access uses `ZohoCRM.modules.READ`, `ZohoCRM.settings.READ`, `ZohoCRM.users.READ`, and `ZohoCRM.org.READ`; narrower scopes are listed on each endpoint in the [API reference](https://www.zoho.com/crm/developer/docs/api/v8/api-references.html). Connection testing calls the users endpoint and requires `ZohoCRM.users.READ`. Additional scope families apply to these optional resources: | Resources | Required scope | | - | - | | Email templates and details | `ZohoCRM.templates.email.READ` | | Inventory templates and details | `ZohoCRM.templates.inventory.READ` | | Currencies | `ZohoCRM.settings.currencies.READ` | | Fiscal year | `ZohoCRM.settings.fiscal_year.READ` | | Recycle bin | `ZohoCRM.settings.recycle_bin.READ` | | Audit export metadata | `ZohoCRM.settings.audit_logs.READ` | | Record sharing | `ZohoCRM.share.READ` and parent module access | | Enrichment configuration | `ZohoCRM.Zia.enrichment.READ` | | Backup metadata and URLs | `ZohoCRM.bulk.backup.READ` | | Notification subscriptions | `ZohoCRM.notifications.READ` | User permissions, edition, and enabled features still control visibility. Notes require administrator access. Portals, territories, multi-currency, scoring, enrichment, and automation resources may require additional features or administrative privileges. Errors remain visible when a selected resource is unavailable. ## Resources Users, leads, accounts, contacts, deals, tasks, events, calls, campaigns, modules, and the four named field resources are selected by default. Everything else is optional. Selecting a child also reads its parents, but only selected resources are written. Internal record indexes are not selectable. Sales, activity, inventory, and scheduling record resources list IDs and then fetch each record individually. Notes use a paginated listing of note fields. This preserves returned custom fields, inventory line items, and nested values in `raw`, alongside typed columns where defined. `events` represents meetings. Leads include converted records. Detail reads cost one additional API call per record; they remain subject to the nested-data limits described below. **CRM records** | Resource | Endpoint | Parent | | - | - | - | | `users` | `GET /crm/v8/users` | | | `leads` | `GET /crm/v8/Leads → GET /crm/v8/Leads/{record_id}` | | | `accounts` | `GET /crm/v8/Accounts → GET /crm/v8/Accounts/{record_id}` | | | `contacts` | `GET /crm/v8/Contacts → GET /crm/v8/Contacts/{record_id}` | | | `deals` | `GET /crm/v8/Deals → GET /crm/v8/Deals/{record_id}` | | | `tasks` | `GET /crm/v8/Tasks → GET /crm/v8/Tasks/{record_id}` | | | `events` | `GET /crm/v8/Events → GET /crm/v8/Events/{record_id}` | | | `calls` | `GET /crm/v8/Calls → GET /crm/v8/Calls/{record_id}` | | | `campaigns` | `GET /crm/v8/Campaigns → GET /crm/v8/Campaigns/{record_id}` | | | `products` | `GET /crm/v8/Products → GET /crm/v8/Products/{record_id}` | | | `cases` | `GET /crm/v8/Cases → GET /crm/v8/Cases/{record_id}` | | | `solutions` | `GET /crm/v8/Solutions → GET /crm/v8/Solutions/{record_id}` | | | `notes` | `GET /crm/v8/Notes` | | | `vendors` | `GET /crm/v8/Vendors → GET /crm/v8/Vendors/{record_id}` | | | `price_books` | `GET /crm/v8/Price_Books → GET /crm/v8/Price_Books/{record_id}` | | | `quotes` | `GET /crm/v8/Quotes → GET /crm/v8/Quotes/{record_id}` | | | `sales_orders` | `GET /crm/v8/Sales_Orders → GET /crm/v8/Sales_Orders/{record_id}` | | | `purchase_orders` | `GET /crm/v8/Purchase_Orders → GET /crm/v8/Purchase_Orders/{record_id}` | | | `invoices` | `GET /crm/v8/Invoices → GET /crm/v8/Invoices/{record_id}` | | | `services` | `GET /crm/v8/Services__s → GET /crm/v8/Services__s/{record_id}` | | | `appointments` | `GET /crm/v8/Appointments__s → GET /crm/v8/Appointments__s/{record_id}` | | | `appointments_rescheduled_history` | `GET /crm/v8/Appointments_Rescheduled_History__s` | | | `deal_contact_roles` | `GET /crm/v8/Deals → GET /crm/v8/Deals/{record_id}/Contact_Roles` | | | `lead_conversion_options` | `GET /crm/v8/Leads → GET /crm/v8/Leads/{record_id}/__conversion_options` | | **Configured module** Set `module_api_name` to a standard or custom module API name. These resources read one configured module per Pipeline; they do not automatically traverse all custom modules or related lists. Use separate destination tables when changing the module or relation. Select only endpoints supported by that module. `module_related_lists` identifies available relationships. Set `related_list_api_name` and `related_fields` for ordinary related-record lists; use the dedicated email, attachment, and timeline resources for those APIs. The generic related-record resource returns selected fields, not full details. | Resource | Endpoint | Parent | | - | - | - | | `module_records` | `GET /crm/v8/{module} → GET /crm/v8/{module}/{record_id}` | | | `module_fields` | `GET /crm/v8/settings/fields?module={module}` | | | `module_layouts` | `GET /crm/v8/settings/layouts?module={module}` | | | `module_related_lists` | `GET /crm/v8/settings/related_lists?module={module}` | | | `module_custom_views` | `GET /crm/v8/settings/custom_views?module={module}` | | | `module_tags` | `GET /crm/v8/settings/tags?module={module}` | | | `module_record_locking` | `GET /crm/v8/settings/record_locking_configurations?module={module}` | | | `module_metadata` | `GET /crm/v8/settings/modules/{module}` | | | `module_deleted_records` | `GET /crm/v8/{module}/deleted` | | | `module_attachments` | `GET /crm/v8/{module} → GET /crm/v8/{module}/{record_id}/Attachments` | | | `module_rich_text` | `GET /crm/v8/{module} → GET /crm/v8/{module}/{record_id}/actions/fetch_full_data` | | | `module_email_drafts` | `GET /crm/v8/{module} → GET /crm/v8/{module}/{record_id}/__email_drafts` | | | `module_record_sharing` | `GET /crm/v8/{module} → GET /crm/v8/{module}/{record_id}/actions/share` | | | `module_entity_scores` | `GET /crm/v8/{module} → GET /crm/v8/{module}/{record_id}/Entity_Scores__s` | | | `module_related_records` | `GET /crm/v8/{module} → GET /crm/v8/{module}/{record_id}/{related_list}` | | | `module_connected_workflow_rules` | `GET /crm/v8/settings/connected_workflows/{parent_id}/rules?module={module}` | `connected_workflows` | | `module_map_dependencies` | `GET /crm/v8/settings/layouts/{layout_id}/map_dependency?module={module}` | `module_layouts` | | `module_timeline` | `GET /crm/v8/{module} → GET /crm/v8/{module}/{record_id}/__timeline` | | | `module_blueprints` | `GET /crm/v8/{module} → GET /crm/v8/{module}/{record_id}/actions/blueprint` | | | `module_emails` | `GET /crm/v8/{module} → GET /crm/v8/{module}/{record_id}/Emails` | | | `module_email_details` | `GET /crm/v8/{module}/{record_id}/Emails/{message_id}` | `module_emails` | | `module_email_sharing` | `GET /crm/v8/{module} → GET /crm/v8/{module}/{record_id}/__emails_sharing_details` | | | `module_workflow_configuration` | `GET /crm/v8/workflow_configurations?module={module}` | | | `module_threshold_unassigned_users` | `GET /crm/v8/settings/automation/assignment_thresholds/actions/unassigned_users?module={module}` | | | `module_picklist_values` | `GET /crm/v8/settings/fields/{field_id}/pick_list_values?module={module}` | Picklist field listing | | `module_map_dependency_details` | `GET /crm/v8/settings/layouts/{layout_id}/map_dependency/{dependency_id}?module={module}` | `module_map_dependencies` | | `module_connected_workflow_rule_details` | `GET /crm/v8/settings/connected_workflows/{workflow_id}/rules/{rule_id}` | `module_connected_workflow_rules` | | `module_custom_view_details` | `GET /crm/v8/settings/custom_views/{id}?module={module}` | `module_custom_views` | **Reference data and templates** | Resource | Endpoint | Parent | | - | - | - | | `modules` | `GET /crm/v8/settings/modules` | | | `organization` | `GET /crm/v8/org` | | | `roles` | `GET /crm/v8/settings/roles` | | | `profiles` | `GET /crm/v8/settings/profiles` | | | `profile_details` | `GET /crm/v8/settings/profiles/{parent_id}` | `profiles` | | `currencies` | `GET /crm/v8/org/currencies` | | | `lead_fields` | `GET /crm/v8/settings/fields?module=Leads` | | | `account_fields` | `GET /crm/v8/settings/fields?module=Accounts` | | | `contact_fields` | `GET /crm/v8/settings/fields?module=Contacts` | | | `deal_fields` | `GET /crm/v8/settings/fields?module=Deals` | | | `deal_layouts` | `GET /crm/v8/settings/layouts?module=Deals` | | | `pipelines` | `GET /crm/v8/settings/pipeline?layout_id={layout_id}` | `deal_layouts` | | `contact_roles` | `GET /crm/v8/Contacts/roles` | | | `variables` | `GET /crm/v8/settings/variables` | | | `variable_groups` | `GET /crm/v8/settings/variable_groups` | | | `global_picklists` | `GET /crm/v8/settings/global_picklists` | | | `global_picklist_associations` | `GET /crm/v8/settings/global_picklists/{parent_id}/actions/associations` | `global_picklists` | | `global_picklist_option_associations` | `GET /crm/v8/settings/global_picklists/{picklist_id}/actions/pick_list_values_associations` | `global_picklists` | | `wizards` | `GET /crm/v8/settings/wizards` | | | `wizard_layout_details` | `GET /crm/v8/settings/wizards/{wizard_id}?layout_id={layout_id}` | | | `unsubscribe_links` | `GET /crm/v8/settings/unsubscribe_links` | | | `unsubscribe_link_associations` | `GET /crm/v8/settings/unsubscribe_link/actions/associations` | | | `email_templates` | `GET /crm/v8/settings/email_templates` | | | `email_template_details` | `GET /crm/v8/settings/email_templates/{template_id}` | `email_templates` | | `inventory_templates` | `GET /crm/v8/settings/inventory_templates` | | | `inventory_template_details` | `GET /crm/v8/settings/inventory_templates/{parent_id}` | `inventory_templates` | | `call_preferences` | `GET /crm/v8/settings/call_preferences` | | | `service_preferences` | `GET /crm/v8/settings/service_preferences` | | | `appointment_preferences` | `GET /crm/v8/settings/appointment_preferences` | | | `duplicate_check_preference` | `GET /crm/v8/settings/duplicate_check_preference?module=Leads` | | | `from_addresses` | `GET /crm/v8/settings/emails/actions/from_addresses` | | **Organization and access** | Resource | Endpoint | Parent | | - | - | - | | `territories` | `GET /crm/v8/settings/territories` | | | `territory_users` | `GET /crm/v8/settings/territories/{parent_id}/users` | `territories` | | `user_territories` | `GET /crm/v8/users/{parent_id}/territories` | `users` | | `user_groups` | `GET /crm/v8/settings/user_groups` | | | `user_group_members` | `GET /crm/v8/settings/user_groups/{group_id}/sources` | `user_groups` | | `user_unavailability` | `GET /crm/v8/settings/users_unavailability` | | | `data_sharing` | `GET /crm/v8/settings/data_sharing` | | | `data_sharing_rules` | `GET /crm/v8/settings/data_sharing/rules` | | | `data_sharing_rule_details` | `GET /crm/v8/settings/data_sharing/rules/{rule_id}` | `data_sharing_rules` | | `portals` | `GET /crm/v8/settings/portals` | | | `portal_user_types` | `GET /crm/v8/settings/portals/{portal_name}/user_type` | `portals` | | `portal_users` | `GET /crm/v8/settings/portals/{portal_name}/user_type/{user_type_id}/users` | `portal_user_types` | | `business_hours` | `GET /crm/v8/settings/business_hours` | `organization` | | `shift_hours` | `GET /crm/v8/settings/business_hours/shift_hours` | `organization` | | `holidays` | `GET /crm/v8/settings/holidays` | `organization` | | `fiscal_year` | `GET /crm/v8/settings/fiscal_year` | | **Automation, enrichment, and export metadata** | Resource | Endpoint | Parent | | - | - | - | | `assignment_rules` | `GET /crm/v8/settings/automation/assignment_rules` | | | `assignment_thresholds` | `GET /crm/v8/settings/automation/assignment_thresholds` | | | `cadences` | `GET /crm/v8/settings/automation/cadences` | | | `scoring_rules` | `GET /crm/v8/settings/automation/scoring_rules` | | | `workflow_rules` | `GET /crm/v8/settings/automation/workflow_rules` | | | `connected_workflows` | `GET /crm/v8/settings/connected_workflows` | | | `field_updates` | `GET /crm/v8/settings/automation/field_updates` | | | `email_notifications` | `GET /crm/v8/settings/automation/email_notifications` | | | `automation_tasks` | `GET /crm/v8/settings/automation/tasks` | | | `webhooks` | `GET /crm/v8/settings/automation/webhooks` | | | `webhook_failures` | `GET /crm/v8/settings/automation/webhook_failures` | | | `audit_log_exports` | `GET /crm/v8/settings/audit_log_export` | | | `recycle_bin` | `GET /crm/v8/settings/recycle_bin` | | | `enrichment_configuration` | `GET /crm/v8/settings/zia/data_enrichment` | | | `organization_enrichment` | `GET /crm/v8/__zia_org_enrichment` | | | `workflow_limits` | `GET /crm/v8/settings/automation/workflow_rules/actions/rules_count` | | | `connected_workflow_configuration` | `GET /crm/v8/settings/connected_workflows/actions/configurations` | | | `workflow_rule_details` | `GET /crm/v8/settings/automation/workflow_rules/{parent_id}` | `workflow_rules` | | `connected_workflow_details` | `GET /crm/v8/settings/connected_workflows/{parent_id}` | `connected_workflows` | | `webhook_details` | `GET /crm/v8/settings/automation/webhooks/{parent_id}` | `webhooks` | | `email_notification_details` | `GET /crm/v8/settings/automation/email_notifications/{parent_id}` | `email_notifications` | | `backup` | `GET /crm/bulk/v8/backup` | | | `backup_history` | `GET /crm/bulk/v8/backup/history` | | | `threshold_configured_users` | `GET /crm/v8/settings/automation/assignment_thresholds/{threshold_id}/restrict_to?module={module}` | `assignment_thresholds` | | `assignment_threshold_modules` | `GET /crm/v8/settings/automation/assignment_thresholds/actions/groups` | | | `email_notification_usage` | `GET /crm/v8/settings/automation/email_notifications/actions/usage_reports` | | | `webhook_usage` | `GET /crm/v8/settings/automation/webhooks/actions/usage_reports` | | | `webhook_associated_modules` | `GET /crm/v8/settings/automation/webhooks/actions/associated_modules` | | | `workflow_usage` | `GET /crm/v8/settings/automation/workflow_rules/{workflow_id}/actions/usage` | `workflow_rules` | | `notification_subscriptions` | `GET /crm/v8/actions/watch` | | | `backup_download_urls` | `GET /crm/bulk/v8/backup/urls` | | | `scoring_rule_details` | `GET /crm/v8/settings/automation/scoring_rules/{id}` | `scoring_rules` | | `assignment_rule_details` | `GET /crm/v8/settings/automation/assignment_rules/{id}?module={module}` | `assignment_rules` | | `field_update_details` | `GET /crm/v8/settings/automation/field_updates/{id}` | `field_updates` | | `automation_task_details` | `GET /crm/v8/settings/automation/tasks/{id}` | `automation_tasks` | IDs are strings. Rows retain additional returned fields in `raw`. Child tables include parent keys where IDs are scoped to a parent. Profile, template, workflow, custom-view, and automation detail resources include fields omitted from their corresponding listings. Nested definitions remain JSON rather than separate tables. ## Modes All resources support full reads. Use **full upsert** for keyed resources or **full replace** to remove rows no longer returned within your visibility. Use **full replace** for resources without a primary key, including configuration snapshots, sharing entries, usage reports, notification subscriptions, and backup URLs. These resources do not invent IDs for rows without a stable upstream key. Incremental reads are not supported. Update timestamps do not establish that relationship changes or newly visible records can be captured incrementally. ## Behavior * **Auth**: requests use `Zoho-oauthtoken` against the configured host. Refresh is external; this is not an unattended OAuth integration. * **Pagination**: record indexes and ordinary related records follow `info.next_page_token`. Email lists use `info.next_index`. Paged collections use numbered pages and their documented completion signal. Most request 200 rows; scoring rules request 50 and organization enrichment requests 100. Detail and unpaged settings endpoints use one request per parent. * **Record limit**: the [Get Records API](https://www.zoho.com/crm/developer/docs/api/v8/get-records.html) permits at most 100,000 records per module in a page-token walk. Larger modules require export or partitioning logic outside this connector. * **Nested data**: individual records can return partial subforms, multi-select lookups, or multi-user lookups. Inspect `$has_more` in `raw`; this connector does not automatically paginate those embedded arrays. Use separately supported subform or linking-module APIs where available. Ordinary record reads truncate rich text to 500 characters; `module_rich_text` fetches the separate full content. * **Relationships**: related records use the configured relation and selected fields. Historical associations such as deal stage history need their own related-list selection. Email details require visibility of the owner's mail. Attachments contain metadata only; binary content is not downloaded. * **History windows**: deleted records cover Zoho's 60-day recycle-bin and 120-day permanent-deletion windows. Appointment rescheduling exposes only the latest 20 changes per appointment. Webhook failures default to 30 days and action usage reports to seven days. Backup history covers the past year. `workflow_usage` requires both dates within Zoho's supported 90-day window. * **Recovery**: top-level paged reads can resume from saved cursors. Zoho page tokens expire after 24 hours and are bound to the user and request parameters. Parent-dependent reads restart from their parent listing. * **Rate limiting**: Zoho enforces [credit and concurrency limits](https://www.zoho.com/crm/developer/docs/api/v8/api-limits.html). Detail reads increase credit usage. Filament retries HTTP 429 and transient server errors; it does not track the organization's rolling credit budget. * **Empty results**: HTTP 204 produces no rows. Permission, feature, and token errors fail the read. Blueprint reads select records whose `$process_flow` flag is true. If a record leaves its process before the detail request, the read fails visibly. This covers the listed JSON read resources, not a complete account backup. Bulk Read and audit export creation, polling, archive download, binary files, images, and attachment content require a driver or a separate export workflow. Backup and audit resources here expose existing job metadata only. Notification resources inspect an existing channel; they do not subscribe to or ingest events. Wizard details read one configured wizard and layout per Pipeline. Administrative counters are not separate resources. Alternate record lookups through external IDs, search, COQL, and Composite API are also not separate tables. Mutation APIs and mutation-job status APIs are outside this source connector. See the [complete API index](https://www.zoho.com/crm/developer/docs/api/v8/api-references.html) when deciding whether this coverage meets your export requirements. # Filament architecture Source: https://filament.getgalaxy.io/pages/guides/concepts/architecture How data, progress, and control move through a Filament run, across the runner, API server, control plane, Postgres, and NATS JetStream. Filament uses the same connector data path whether a run starts in-process, from the standalone binary, or in a Kubernetes worker. Deployment changes where the work runs, not how connectors exchange data. The lifecycle depends on execution mode. Bounded runs finish with one final commit. Continuous runs keep their sessions open and commit successive epochs, each with its own durable progress record. Both use the Arrow handoff and integrity checks described below. ## Follow one batch Suppose a source is reading the `users` table. It opens a typed Arrow builder for a specific `(resource, part)`, writes rows into it, and flushes when the builder reaches a configured limit. The engine then moves the resulting batch through a bounded channel to a writer, which calls the sink: ```text theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} source → typed row builder → bounded Arrow batch → writer pool → sink.Apply ``` A **part** is a unit of source work, such as a snapshot range or stream partition. The source assigns each batch to a part so its progress can be tracked independently. The engine checks the in-memory batch before and after the sink call. A sink that advertises encoded integrity also returns evidence for the exact bytes it serialized. See [Integrity and checkpoints](/pages/guides/concepts/integrity-and-checkpoints) for the boundary each checksum protects. ## Backpressure and parallelism The handoff to writers is deliberately bounded. If `sink.Apply` cannot keep up, the source eventually blocks while flushing a builder. That pressure propagates to extraction and caps queued memory. `snapshot_parallelism` sets the writer-pool size and is also available to the source when it plans snapshot work. It does not automatically split or hash rows. The source still decides how many parts to create. Filament forces the writer count to one when a route contains CDC, incremental, or other checkpointed work so progress and ordering stay unambiguous. ## Bounded commits, aborts, and checkpoints The runner opens the sink before data moves and ends with one of two outcomes: * On success, it calls `Commit`. CDC positions and other progress that depends on a successful commit are saved only after this call succeeds. * On a non-resumable failure or cancellation, it calls `Abort` on a bounded cleanup context. A resumable extraction failure preserves already durable progress instead of aborting it. Whether a route qualifies depends on every resource in that route, not merely on one incremental table. The recovery rules are described in [Runs and recovery](/pages/guides/concepts/runs-and-recovery). ## Continuous commits The continuous coordinator starts an epoch and asks the source to read through a safe boundary. It waits for the pipeline to finish those writes, commits the destination, and saves an epoch certificate before acknowledging the source. It then begins the next epoch using the same open sessions. The source establishes which input is covered; the pipeline establishes that the corresponding writes and integrity checks finished; the sink establishes durability. The coordinator checks that those accounts agree before saving progress. See [Streaming](/pages/guides/concepts/streaming) for a worked example and the consequences of an interruption between those steps. ## Facts and stored state The runner publishes events such as `run.started`, `batch.written`, and `resource.completed`. For bounded runs, the tracker uses those events to update stored progress, totals, and checkpoints. Continuous progress is saved directly through the streaming runtime's epoch commits. Its activity events report that certified progress; replaying events is not what makes it durable. The control plane writes request, pause, resume, and cancellation state directly. Worker events record what actually happened during execution. Keeping those steps separate lets the API accept a control request while a worker is still responding to it. ```mermaid theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} flowchart LR API[API or scheduler] --> State[(run state)] API -- requested/control fact --> Bus[(event bus)] Bus --> Runner[runner.RunOne] Runner -- execution facts --> Bus Bus --> Tracker[tracker] Tracker --> State ``` ## Where the pieces live The root `filament` package defines connector and run contracts. `runner` coordinates bounded runs and continuous epochs, while `pipeline` owns the bounded Arrow handoff and writer pool. Control-plane modules handle scheduling, dispatch, tracking, and stale worker detection. The stream supervisor admits continuous worker attempts and reconciles them with the requested execution state. Connectors register independently and implement only the capabilities they advertise. # Integrity & checkpoints Source: https://filament.getgalaxy.io/pages/guides/concepts/integrity-and-checkpoints What Filament verifies, when progress becomes durable, and where the guarantees end Integrity and checkpoints answer different questions: * **Integrity:** did the batch change while moving through Filament and the sink's serialization boundary? * **Checkpoints:** after an interruption, where is it safe to begin reading again? Neither turns every destination into an exactly-once system. The guarantees depend on the source cursor, the sink's write mode, and when the sink considers an applied batch durable. ## What a batch verification proves Filament moves rows internally as typed Arrow batches. Immediately before `Sink.Apply`, the pipeline calculates a CRC32-C checksum over the batch's Arrow buffers, its row and column counts, and its insert/update/delete operations. The sink recalculates that checksum at its final in-memory boundary and returns it as `WriteReceipt.WriteCRC`. ```text theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} Arrow batch ├─ pipeline CRC └─ sink CRC ── compare before accepting the batch ``` A mismatch means the in-memory batch changed between those boundaries. Filament publishes `batch.chunk_divergence` and fails the run. This check is sensitive to row order, column order, nulls, values, and operations. It is not based only on row counts. ## The encoded boundary Serialization is another place data can change. Sinks that advertise encoded integrity also checksum the exact bytes handed to their transport and return `WriteReceipt.EncodedCRC`. Filament requires that evidence from those sinks and publishes `batch.encoded_integrity_verified` when it is present. The two checks cover different risks: | Evidence | Boundary covered | | - | - | | `WriteCRC` | The borrowed Arrow batch across the call to `Apply` | | `EncodedCRC` | The sink's final serialized payload before transport | These checks do **not** universally read data back from PostgreSQL, S3, Iceberg, or another destination. Destination acknowledgement, transactions, and read-after-write validation remain connector-specific. ## How checkpoints move Suppose an incremental `users` pipeline reads rows ordered by `(updated_at, id)`. Each flushed batch carries the position of its last row. After the sink accepts the batch, Filament includes that position on the `batch.written` fact. The tracker combines those deltas into the resource's current checkpoint. ```text theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} source position → batch.written → tracker → durable checkpoint ``` For bounded runs, Filament keeps two checkpoint scopes: * **Run-scoped checkpoints** allow the same logical run to resume a checkpointed snapshot. * **Route checkpoints** carry incremental or CDC progress from one successful run to the next. They are keyed to an immutable pipeline version and route. The runner creates or reloads the initial checkpoint plan before extraction. That freezes source decisions such as shard boundaries so a resumed attempt does not silently read a different plan. ## When progress becomes durable The rules below describe bounded runs. Continuous runs use the same batch integrity checks, but save progress through an epoch certificate after the destination commits. The certificate connects completed pipeline work to source positions and destination receipts. Only then can the source acknowledge upstream progress. See [Streaming](/pages/guides/concepts/streaming) for that sequence and its replay boundaries. When a checkpoint can be saved depends on when the sink's work is recoverable: * If accepted batches remain recoverable after `Apply`, a fully checkpointed, idempotent run can resume within the same logical run. * Incremental and CDC route checkpoints become durable only at a committed completion or committed pause boundary. A failed run does not advance what the next logical run will use. * If a sink makes data durable only at `Commit`, its progress is not saved before that commit succeeds. As batches are accepted, the tracker updates the run's candidate checkpoint and periodically saves progress that is already safe. It also saves safe progress when a resource or run finishes. This reduces repeated work without moving a cursor past data the sink could lose. ## What recovery looks like For the `users` example: 1. The last successful run ended at `(10:30, id=42)`. 2. The next run plans a bounded incremental read starting there. 3. It writes several batches, then loses its worker before commit. 4. The route checkpoint remains at the last committed boundary. 5. A resume may repeat already accepted rows, so an upsert sink converges by primary key instead of skipping data. This is deliberately at-least-once recovery. Filament prefers a safe re-read to advancing a cursor beyond uncommitted work. ## Types of cursors Connectors use different cursor formats because databases and APIs expose different stable positions. Examples include ordered keys, completed ranges, incremental watermarks with primary-key tie-breakers, and replication log positions. Those encodings are connector details. As an operator, focus on three questions: can the resource resume, can repeated writes safely converge, and does the sink make data durable after each batch or only when the run commits? See [Runs and recovery](/pages/guides/concepts/runs-and-recovery) for the resulting failure, pause, and resume behavior. # Filament concepts overview Source: https://filament.getgalaxy.io/pages/guides/concepts/overview The few concepts you need to reason about data movement in Filament, from connectors and pipelines to runs, checkpoints, and replication modes. Filament moves data from a source to a sink. Most of the product can be understood through five objects: * A **connection** says how to reach a source or sink. Credentials and connector settings live here so they can be reused. * A **pipeline** connects sources to sinks. Each edge is a route with its own replication choices. Saving an edit creates a new immutable version. * A **resource** is one table, stream, or API collection selected from a source. * A **run** is one execution of one route. * A **checkpoint** records durable progress for a resource that can resume. Imagine a `users` table moving from PostgreSQL to a warehouse. The connection answers “which PostgreSQL?” and “which warehouse?” The route answers “copy all users or only changes?” A run is the attempt that performs that work. If the chosen mode supports checkpoints, a retry can continue from confirmed progress. ## The data journey During a run, Filament: 1. Resolves the two connectors and the selected resources; 2. Checks that the requested read and write behavior is supported; 3. Asks the source to write typed rows into Arrow builders; 4. Sends bounded Arrow batches to the sink; 5. Commits or aborts according to the sink contract; and 6. Records facts, totals, integrity evidence, and durable checkpoints. The queue between source and sink has a fixed size. If the sink slows down, the source waits instead of allowing queued data to consume unbounded memory. Incremental and CDC routes write in order through a single writer. ## Choose what to learn next * [Replication modes](/pages/guides/concepts/replication-modes) helps you choose between full, incremental, and CDC reads and their write behavior. * [Transformations](/pages/guides/concepts/transformations) renames, drops, and computes columns on the way to the sink. * [Architecture](/pages/guides/concepts/architecture) follows a batch through the engine and explains backpressure and parallelism. * [Streaming](/pages/guides/concepts/streaming) explains how continuous runs commit work along the way and recover after an interruption. * [Integrity and checkpoints](/pages/guides/concepts/integrity-and-checkpoints) separates data verification from recovery progress. * [Runs and recovery](/pages/guides/concepts/runs-and-recovery) explains states, retries, pause, resume, and cancellation. # Replication modes: full, incremental, and CDC Source: https://filament.getgalaxy.io/pages/guides/concepts/replication-modes Choose how Filament reads a resource, with full loads, incremental watermarks, or change data capture, and how the destination table changes. Start with the change you need to observe, then choose how the destination should represent it. Filament validates that combination before data moves. ## Choose a read mode | Need | Read mode | What the next run reads | | - | - | - | | A fresh copy every time | `full` | Every selected row | | New or changed rows identified by a cursor | `incremental` | Rows beyond durable cursor progress | | Inserts, updates, and deletes from a database log | `cdc` | The ordered change stream from its durable position | An incremental `users` route might use `updated_at` as its cursor. That is lighter than rereading the table, but it cannot see a hard delete. Use CDC when deletes or source transaction order must propagate. A source connection is configured as either standard or CDC. Standard routes choose full or incremental per resource. CDC applies to the whole route and cannot be mixed with standard resources in the same run. Read mode is separate from execution mode. A bounded run finishes after its planned work; a continuous run keeps listening and commits progress repeatedly. CDC support alone does not imply continuous support. See [Streaming](/pages/guides/concepts/streaming) for the connector requirements and recovery behavior of continuous runs. ## Choose destination behavior * `append` keeps each emitted row version. * `replace` produces a new snapshot of the resource. * `upsert` keeps the current row for each primary key. * `merge` applies ordered CDC inserts, updates, and deletes. New pipelines default to upsert for full and incremental reads. Resources with primary keys use upsert; resources without keys use append within the same route. The sink must support append for those resources. Repeated keyless rows accumulate, including when a full read runs again. Select replace when you need a fresh snapshot. CDC routes default to append but may be configured to merge; their key requirements are unchanged. Common combinations look like this: | Goal | Read | Write | Important consequence | | - | - | - | - | | Rebuild a reporting table | full | replace | Restarts from the beginning after failure | | Periodically refresh current users | incremental | upsert | Cursor progress can support resume | | Keep an immutable change history | CDC | append | Deletes remain events rather than removing rows | | Maintain a current replica | CDC | merge | Ordered deletes remove destination rows | ## Reference: resolved modes You can skip this section unless you use the API or build a connector. Internally, each read/write pair becomes an ingestion type such as `full_replace`, `incremental_upsert`, `cdc_append`, or `cdc_merge`. That plan sets the sink mode, key requirement, and checkpoint timing. You usually need the names only when using the API or building a connector. Supported combinations are: | Ingestion type | Primary key | Checkpoint timing | | - | -: | - | | `full_replace` | no | none | | `full_append` | no | none | | `full_upsert` | yes | after each written batch | | `incremental_append` | no | after each written batch | | `incremental_upsert` | yes | after each written batch | | `cdc_append` | yes | after sink commit | | `cdc_merge` | yes | after sink commit | The engine checks the source policy, sink capabilities, primary keys, and cursor configuration while resolving the plan. A connector advertising a mode does not bypass those runtime contracts. ## How incremental upserts choose the latest row For an incremental upsert, the cursor tells the source where the next read begins. The sink also uses that field to decide which version of a row is newer. If you do not choose a cursor, Filament can use the connector's recommendation. Full upserts use insert order instead of a cursor. A checkpoint controls where reading resumes; the version rule controls which row wins at the destination. ## Columns Filament adds Filament reserves the `_filament_` prefix and adds the logical run ID and start time to replicated rows. CDC also adds the operation, source position, and sequence needed to interpret the change stream. These fields are nullable so an existing destination can evolve without rewriting older rows. A source column using a reserved name is rejected rather than overwritten. ## Related guides * [Full load vs incremental vs CDC, which to use](https://www.getgalaxy.io/articles/full-load-vs-incremental-vs-cdc-which-to-use) * [What is change data capture (CDC)?](https://www.getgalaxy.io/articles/what-is-change-data-capture-%28cdc%29-the-complete-guide) # Runs and recovery Source: https://filament.getgalaxy.io/pages/guides/concepts/runs-and-recovery Run states, recovery boundaries, and lifecycle controls, and how Filament resumes interrupted runs from a durable checkpoint. A run is one execution of one pipeline route. The useful question after an interruption is not simply “was there a checkpoint?” It is “can every resource in this route continue without losing or duplicating accepted work?” This page describes bounded runs. Continuous runs save progress in successive epochs and have separate desired and observed execution states. Their pause, stop, retry, and ownership rules are covered in [Streaming](/pages/guides/concepts/streaming). ## Run states | State | What it means | What can happen next | | - | - | - | | `scheduled` | Created for a future schedule | Scheduler requests it | | `requested` | Persisted and waiting for dispatch | Worker starts, or the run is paused/canceled | | `running` | A worker owns the execution | Complete, fail, become partial, pause, or cancel | | `partial` | Extraction failed but all progress is safely resumable | Resume the same run | | `paused` | Work stopped intentionally | Resume or cancel | | `completed` | Sink committed successfully | Terminal, except CDC catch-up can run again | | `failed` | Work cannot safely continue as the same attempt | Terminal | | `canceled` | Work was intentionally aborted | Terminal | An idempotency key derives a stable run ID for a tenant. Repeating the same request does not create another logical attempt once that run has progressed. ## What one attempt does The runner resolves secrets and connectors, plans resources and ingestion behavior, ensures destination schemas, seeds checkpoint state, and starts the Arrow pipeline. It calls `Commit` only after extraction and writes succeed. A non-resumable failure ends with `Abort`. Filament gives cleanup its own short timeout, even when the original run context has already been canceled. Schema preparation is intentionally before extraction. Depending on the sink, `EnsureSchema` may create or evolve destination objects before the final commit; connector docs should state their own visibility and cleanup behavior. ## When failure becomes partial A failed standard run becomes `partial` only when all resources have progress that is safe to preserve: * every resource has checkpoint coverage; * none waits until `Commit` to make its checkpoint durable; * none uses append, where replay could duplicate rows; and * at least one resource is incremental or otherwise checkpointed. This route-wide rule matters for mixed plans. One resumable `users` resource does not make a neighboring full-replace `orders` resource resumable. When the rule is not satisfied, the run fails and a new attempt starts those resources from their normal beginning. CDC saves its stream position only after a successful commit, so a failed attempt is not labeled partial. A later CDC catch-up starts from the last committed position. Even a successful cycle with no changes can advance that position. ## Pause, resume, and cancel `SignalRun` supports all three controls: * Pausing a requested run changes its state immediately. Pausing a running run sends a worker command and waits for the worker's acknowledgement. * A fully checkpointed running route drains accepted rows, commits them, and pauses with progress preserved. A checkpoint-free route aborts and later restarts. A route with mixed checkpoint coverage rejects pause because neither outcome is safe for every resource. * Resuming a paused or partial run returns it to requested. Only checkpointed progress is retained; restart-only work has its execution totals reset. * Canceling a running run stops extraction and aborts the sink before the worker acknowledges cancellation. Requested, paused, and partial runs can be canceled directly. Signals are state-aware and idempotent where repeating the same intent is safe. Invalid transitions, such as resuming a completed non-CDC run, are rejected. ## Resync A run request can name resources to resync. The run forgets their checkpoints before it reads, so each one starts from its normal beginning: a full read for an incremental resource, a new snapshot for a CDC table. Other resources keep their progress. Continuous pipelines handle resync through a handover on the live stream, described in [Streaming](/pages/guides/concepts/streaming). ## Failure containment A source panic is converted to a run error. When a sink error causes extraction to stop, the sink error remains the root cause. Terminal facts are published on a short detached context so cancellation does not leave a run appearing to be active indefinitely. Under Kubernetes dispatch, workers emit heartbeats and the reaper fails stale running jobs. Partial runs are exempt because they are intentionally waiting for a resume request. In-process dispatch does not use the worker heartbeat/reaper path. ## Progress events The event stream includes run lifecycle and control facts, resource progress, batch writes and integrity evidence, cursor/checkpoint changes, and pressure or retry events. Examples include `run.pause_requested`, `run.paused`, `batch.integrity_verified`, `batch.encoded_integrity_verified`, and `cursor.checkpoint_saved`. These events record worker execution and let the tracker update totals and progress. The API also persists intake and control transitions directly, as described in [Architecture](/pages/guides/concepts/architecture). # Continuous streaming runs Source: https://filament.getgalaxy.io/pages/guides/concepts/streaming How continuous runs commit progress, recover after interruptions, and stop safely A continuous run keeps listening for new data and commits progress along the way. Imagine an orders feed that receives messages throughout the day. There is no final message to wait for, so Filament repeatedly finishes a small portion of the feed, saves where it reached, and begins the next portion. Each of those portions is an **epoch**. An epoch gives an ongoing stream a recovery boundary without requiring the connection to close or the run to end. ## Continuous execution and CDC Execution mode answers how long the work runs. A bounded run reads a finite amount of data and finishes. A continuous run stays active until paused, stopped, or interrupted. Bounded execution is the default. CDC answers a different question: what the source reads. It reads database changes, including inserts, updates, and deletes. A bounded CDC run can catch up to a log position and finish. A continuous message source can stay open without reading a database change log at all. Continuous execution requires a source with a reusable stream session and a datastore that supports the streaming runtime. The sink needs compatible write policies with explicit durability. It does not need a streaming interface. Support for bounded CDC or incremental reads alone does not establish source streaming support. The [Kafka](/pages/connectors/sources/kafka) and [NATS](/pages/connectors/sources/nats) source pages describe their current continuous behavior and limitations. Rows written by a continuous run carry the same `_filament_` lineage columns as a bounded run. CDC sources add the operation, the source position in the form the source uses, such as a WAL LSN for Postgres or a GTID set for MySQL, and the sequence within the stream. The [replication modes](/pages/guides/concepts/replication-modes#columns-filament-adds) guide lists them. ## Sink sessions and boundary defaults A reusable sink keeps its connection open across finite writes. Other sinks receive a fresh instance for each write, including client setup and schema preparation. The source session stays open in both cases. | Sink session | Default record target | Default read budget | | - | - | - | | Reusable | 1,000 | 1 second | | Fresh instance per boundary | 100,000 | 30 seconds | An explicit `RunOptions.EpochBoundary` overrides these defaults. These are soft targets, not a guaranteed write frequency. Source transaction boundaries, consumer credit, and available input can change the size of an epoch. Larger boundaries amortize setup costs for sinks that reopen each time. The logical run ID stays unchanged. Each destination session gets a separate write identity for its artifacts. S3 and GCS preserve the logical run ID in manifests and `{{.Run}}` templates. Their continuous date partitions use the finite write's start time, so a long-running stream can move into a new day. ## Follow an order through an epoch Suppose the last saved position in an orders feed is message 100. The next epoch reads messages 101 through 150 and sends their rows to the destination. Filament then needs to establish three things in order: 1. All rows through message 150 have finished passing through the pipeline, including the batch integrity checks. 2. The destination has confirmed the epoch's writes are durable according to its connector contract. 3. Filament has durably recorded the source position and the destination's receipts together in its datastore. Only then may the source acknowledge that progress upstream. For a message broker, that acknowledgement can tell it that these messages no longer need to be delivered to this consumer. ```mermaid theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} flowchart LR Read[Read to a safe source boundary] --> Drain[Finish writes and integrity checks] Drain --> Commit[Commit destination] Commit --> Save[Save epoch certificate] Save --> Ack[Acknowledge source] Ack --> Read ``` The saved record is called an **epoch certificate**. It ties the source positions, destination receipts, and completed pipeline work to a particular stream and worker attempt. It is the durable evidence used for progress and recovery; a successful batch write alone cannot advance continuous progress. ## Batches and epochs have different jobs A batch controls how rows move through memory and into the sink. An epoch controls how much work is committed and recorded together. One epoch may contain several batches, and an epoch does not imply atomic visibility at every destination. For example, newly planned PostgreSQL continuous writes use a transaction for each epoch. The NATS sink publishes messages that become visible individually. Finishing the epoch confirms those publishes. It does not turn them into a transaction. Epoch boundaries use soft targets for record count, bytes, idle wait, and age. A source may need to finish a transaction before returning a safe boundary, even if that exceeds a target. An idle read with no progress does not create a certificate. A boundary that safely advances the source position can be certified even when it produces no destination rows. The current coordinator processes epochs serially. Rows still pass through the bounded Arrow pipeline, so a slow destination eventually makes the source wait. The source session must keep its connection and protocol alive during that wait. ## Where a stream resumes A stream may have more than one bookmark. Kafka partitions, for example, each have their own position. Filament calls each independently ordered part of a source an **ordering domain**. A position belongs to that domain and to a particular incarnation of the source, so a recreated feed cannot silently reuse progress from an older one. These bookmarks describe source progress, not a universal ordering across all rows. Reading partitions one at a time does not establish a meaningful global order between them. Filament checks the source's advertised ordering against the destination's write requirements before starting. If the orders worker fails before its epoch certificate is saved, the durable bookmark remains at 100. A later attempt may read messages 101 through 150 again. This can happen even if the destination committed them: the worker might have stopped between the destination commit and the datastore write. Recovery is therefore **at least once**. Append destinations can contain duplicates after replay. A destination may use stable event identities to deduplicate, but the strength and duration of that protection belong to the connector. An epoch certificate does not provide universal exactly-once writes. If the certificate was saved but the source acknowledgement failed, the saved position remains valid. A replacement worker starts with that certified progress; any upstream acknowledgement still requires current ownership. ## Changing which tables a stream carries A stream's identity is its source, its sink and its write mode. The tables it carries, their columns and their destination names are its membership, and membership can change without starting the stream over. Run the pipeline again after saving a version that adds, removes or reshapes a table. The live run drains its current epoch and ends, and the new run takes over the same stream and the same bookmark. A table the stream has not carried yet is read in full first, pinned at one consistent point, and its changes before that point are skipped so the baseline is not replayed. Tables already carried keep streaming from where they were. A removed table leaves the publication. A table whose columns or destination changed is read in full again the same way, as is any table named in the run request's `resync_resources`. The run history shows the handover as one run ending and the next starting. Until the live run has drained, the successor waits in the `scheduled` state. Stopping the pipeline while a successor waits cancels the successor. Each baseline is certified with the epoch that carries it, so a worker that fails during one reads it again on the next attempt. Append destinations receive the baseline rows again after a resync, the same way they do after any replay. ## Pause, stop, and worker ownership Continuous runs support pause, resume, and stop. A pause or stop first changes the desired state. The worker observes that request and tries to finish the current epoch within a bounded drain period. Until it finishes, the observed state can be `draining`. Forced cancellation leaves unfinished work uncertified. Resume enables a paused execution again. A stopped execution requires a new start. These controls differ from the cancel behavior of [bounded runs](/pages/guides/concepts/runs-and-recovery). Each worker holds a renewable lease. Filament checks ownership when recording progress and before acknowledging the source. A worker that loses ownership must stop, even if it still has buffered messages. Lease expiry alone cannot prove that an old worker has stopped affecting the destination. If shutdown cannot be confirmed, the execution becomes `blocked` and automatic replacement is refused. This prevents a new worker from writing alongside an old worker whose requests may still be in flight. Cleanly ended attempts can retry with backoff. Repeated failures without progress eventually pause the execution. A write error alone does not make cleanup unproven. Local validation failures and confirmed rollbacks can end cleanly. Schema blocks and other admission errors still require their own corrective action. An upgrade restarts running streams the same way. Each attempt records the release that dispatched it. When the control plane comes up on a newer release, it asks one stale attempt per reconcile pass to yield. That worker finishes its current epoch, ends with the reason `yielded for upgrade`, and exits. The stream stays enabled, so the next pass starts a fresh attempt on the current image from the last committed position, with no backoff. Streams move to the new release one at a time rather than all at once. When inspecting a continuous run, look at its desired and observed execution states, reason, and last committed time alongside the logical run status. Committed totals come from saved epochs. A quiet feed can remain running without producing a new commit, while a blocked worker can leave the logical run active without making progress. ## Building streaming support The [streaming connector guide](/pages/connectors/building-a-connector/streaming) explains how sources establish safe boundaries and how sinks participate in the epoch lifecycle. For the checks applied to every batch, see [Integrity and checkpoints](/pages/guides/concepts/integrity-and-checkpoints). # In-pipeline transformations Source: https://filament.getgalaxy.io/pages/guides/concepts/transformations Rename, drop, and compute columns as rows move from a source to a sink A transformation is a list of column steps attached to a pipeline edge. Filament applies it to every batch of a resource after the source has produced the batch and before the sink writes it. Steps work on whole columns. No step removes rows, joins resources, or aggregates. A transformation is checked twice. Saving a pipeline compiles it against the source's current schema, so an unknown column or a type mismatch fails the save rather than a run. A run compiles it again against the schema the source supplies, so a source that changed since the save fails before any row moves. ## Where to define one * **Web.** Open a resource on the canvas. The Transformations section of the panel builds steps from the same function catalog and shows issues as you edit. * **API.** A `PipelineEdge` carries the definition in its `transform` field as a JSON object. An edge for one resource may only define that resource. The [Transformations](/pages/api-reference/service/transformations) reference covers the catalog and validation RPCs. * **Go.** `pipeline.Config.Transform` takes a parsed `transform.Definition` when Filament is embedded. The CLI's YAML file does not carry transformations. ## The definition ```yaml theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} version: 1 resources: users: steps: - rename: email_address: email - drop: [internal_note, legacy_flag] - compute: email: {lower: {trim: {col: email}}} full_name: {concat: [{col: first_name}, " ", {col: last_name}]} email_hash: {sha256: {col: email}} - compute: tier: "vip" where: {gte: [{col: lifetime_value}, 10000]} ``` `version` is always `1`. `resources` names each resource to transform and lists its steps. A resource the definition does not name passes through unchanged. JSON with the same shape is accepted anywhere YAML is, and the API carries it that way. A step is exactly one of `rename`, `drop`, or `compute`. `where` belongs to `compute` alone. Steps run in order, and each step sees the columns as the previous step left them. | Step | Shape | Effect | | - | - | - | | `rename` | Map of current name to new name | Changes names, keeps values and types | | `drop` | List of names | Removes the columns | | `compute` | Map of column name to expression | Sets each named column to its expression, adding the column when it does not exist | ### Rename Every current name must exist and every new name must be free. A primary key column cannot be renamed, so an existing destination stays keyed the same way. A name starting with `_filament_` is reserved. Entries in one rename step are independent, so a name that another entry in the same step frees is not available to it. Use two steps for that. ### Drop Every name must exist. A primary key column cannot be dropped. ### Compute Every entry in a compute step is evaluated against the columns as they stood before the step, then all entries are assigned together. Entries in one step cannot refer to each other. Put a dependent computation in a later step. An entry on an existing column replaces it and may change its type. An entry on a new column appends it. New columns from one step land after the existing ones in name order. A computed column is always nullable. The name cannot be a primary key column or start with `_filament_`. ### Where `where` limits a compute step to the rows its condition matches. The condition must produce a `bool`. A row where it is null is not matched. On an unmatched row an existing column keeps its value and a new column is null. Because unmatched rows keep their old values, a compute under `where` on an existing column must keep its type. ## Expressions An expression is one of three things. | Form | Example | Meaning | | - | - | - | | Literal | `"vip"`, `10000`, `0.5`, `true` | A constant | | Column | `{col: email}` | The column's current value | | Call | `{lower: {col: email}}` or `{concat: [{col: a}, "-", {col: b}]}` | A catalog function over its arguments | A call with one argument may pass it directly. A call with several passes a list. Calls nest to any depth. The function names are a closed set, listed below. Anything else fails the grammar check. A YAML integer is an `int64` literal, a number with a fraction is a `float64`, a quoted value is a `string`, and `true` or `false` is a `bool`. There is no date or null literal. Where a function needs its arguments to share a type, a literal widens to the column it sits beside when the value fits. `{eq: [{col: quantity}, 1]}` compares an `int16` column with an `int16` literal. A literal that does not fit, such as `70000` beside an `int16` column, is an error. A `decimal` column takes an integer or fractional literal when the literal needs no more scale or precision than the column has. A decimal column with precision above 38 is carried as text, and no literal can stand beside it. ## Functions Logical type names are the ones `GetResourceColumns` reports, such as `string`, `int64`, `float64`, `decimal`, `bool`, `date`, `timestamp`, and `timestamptz`. A column argument may itself be a call that produces the right type. A null input gives a null output unless noted. "Column" marks an argument that must be a column or a call, never a literal. "Literal" marks a constant parameter. "Input type" as a return means the result takes the shared type of the value arguments. ### Strings | Function | Arguments | Returns | Notes | | - | - | - | - | | `lower` | value (string column) | `string` | Lowercases | | `upper` | value (string column) | `string` | Uppercases | | `trim` | value (string column) | `string` | Removes leading and trailing whitespace | | `length` | value (string column) | `int64` | Counts characters, not bytes | | `replace` | value (string column), find (literal), with (literal) | `string` | Replaces every occurrence. An empty `find` leaves the value unchanged | | `substring` | value (string column), start (literal), length (optional literal) | `string` | Counts characters from 1. Without a length runs to the end. `start` is 1 or more and `length` 0 or more | | `concat` | part... (string column or literal) | `string` | Joins parts in order. A null in any column part gives null. Needs at least one column | | `regex_match` | value (string column), pattern (literal) | `bool` | True where the pattern matches anywhere in the value | | `regex_extract` | value (string column), pattern (literal), group (optional literal) | `string` | The first match, or the given capture group of it. No match gives null. The group must exist in the pattern | | `regex_replace` | value (string column), pattern (literal), with (literal) | `string` | Replaces every match. `$1` in `with` refers to the first group | Patterns use Go regular expression syntax, which is RE2. An invalid pattern is reported when the definition is compiled. ### Digests | Function | Arguments | Returns | | - | - | - | | `md5` | column... | `string` | | `sha1` | column... | `string` | | `sha256` | column... | `string` | | `sha512` | column... | `string` | Digests take one or more columns of type `string`, `uuid`, `int16`, `int32`, or `int64` and return the lowercase hex digest of their text joined with `-`. A string is hashed as its bytes and an integer as its decimal text, which matches a warehouse that casts before hashing. Other types are not accepted because no two systems agree on their text form. A null column contributes nothing between the separators, so a key built from several columns survives a missing value. A row where every column is null stays null, so a masked column keeps its nulls. ### Numbers | Function | Arguments | Returns | Notes | | - | - | - | - | | `add` | left, right | Input type | | | `sub` | left, right | Input type | Subtracts the second from the first | | `mul` | left, right | Input type | | | `div` | left, right | Input type | Integer inputs divide as integers | | `abs` | value (column) | Input type | | | `floor` | value (float column) | Input type | Rounds down to a whole number | | `ceil` | value (float column) | Input type | Rounds up to a whole number | | `round` | value (float column), places (optional literal) | Input type | Rounds to `places` decimal places, halves to even. Default 0 | Arithmetic takes `int16`, `int32`, `int64`, `float32`, or `float64`. Both sides share one type, with a literal widening to the column's type, and the result has that type. Division by zero and integer overflow fail the batch. `floor`, `ceil`, and `round` take `float32` or `float64`. ### Comparisons | Function | Arguments | Returns | Notes | | - | - | - | - | | `eq` | left, right | `bool` | Any type | | `neq` | left, right | `bool` | Any type | | `gt` | left, right | `bool` | Orderable types | | `gte` | left, right | `bool` | Orderable types | | `lt` | left, right | `bool` | Orderable types | | `lte` | left, right | `bool` | Orderable types | Both sides share one type, at least one is a column, and a literal widens to the column's type. Orderable types are the integer and float types, `decimal`, `date`, `time`, `timestamp`, and `timestamptz`. A null on either side compares to null. A decimal with no precision, or with precision above 38, is carried as text and still compares as a number, so `1.0` equals `1.00` and `10` is greater than `9`. `NaN` is above every number and `Infinity` and `-Infinity` sit at the ends, as PostgreSQL orders them. ### Logic | Function | Arguments | Returns | | - | - | - | | `and` | left (bool), right (bool) | `bool` | | `or` | left (bool), right (bool) | `bool` | | `not` | value (bool column) | `bool` | `and` and `or` use three-valued logic as SQL does. False and null is false, true or null is true, and the rest is null. ### Nulls | Function | Arguments | Returns | Notes | | - | - | - | - | | `is_null` | value (column of any type) | `bool` | True where the value is null. Never null itself | | `coalesce` | value... (any type) | Input type | The first value that is not null, left to right. All values share one type and at least one is a column. A literal may be last as the default | ### Dates | Function | Arguments | Returns | Notes | | - | - | - | - | | `to_date` | value (string column) | `date` | Parses `YYYY-MM-DD`. A value that does not parse fails the batch | | `year` | value (date, timestamp, or timestamptz column) | `int64` | | | `month` | value (date, timestamp, or timestamptz column) | `int64` | 1 to 12 | | `day` | value (date, timestamp, or timestamptz column) | `int64` | 1 to 31 | A `timestamptz` is read in its own zone. ## Validation Compiling a definition reports every issue at once, each with the path in the definition where it sits. `resources["users"].steps[2].compute["email"].lower[0]` is the first argument of the `lower` call that computes `email` in the third step. The web builder places issues by those paths, and the API returns them on the edge or from `ValidateTransform`. The checks run in this order. 1. The document matches the grammar. `version` is 1, every step has exactly one of its three keys, `where` sits only on a compute step, and every function name is in the catalog. The grammar is a JSON schema that `ListTransformFunctions` returns, so a client can check shape before sending. 2. Every column a step names exists in the layout the previous steps left, and the primary key and reserved name rules above hold. 3. Every call has the right number of arguments, each argument is a column or a literal as the function requires, the types match, and literals fit the column they widen to. Function rules such as a valid pattern or a positive `substring` start run here too. 4. A `where` condition is a `bool`, and a compute under it keeps an existing column's type. Steps that compile still shape the output when another step fails, so `ValidateTransform` reports the resulting columns and the type of every expression that compiled alongside the issues. ## At run time A plan is compiled once per resource when the source opens its first batch for that resource, against the schema the source supplies. It then applies to every batch as a fixed list of whole-column operations over Arrow arrays. Columns no step touches are shared with the source batch, not copied. The transform runs after the source's batch is built and before the integrity checksum, so the checksum and the `batch.written` fact describe the transformed batch. Filament's own `_filament_` lineage columns are appended after the transform and are never visible to it. Each transformed batch publishes `batch.transformed` with its record count, bytes, and the time the plan took. A batch the plan cannot transform fails the run. That covers a `to_date` value that does not parse, division by zero, and integer overflow. ## Limits * Steps never remove rows. A `where` condition picks rows to rewrite, not rows to keep. * A transformation sees one resource at a time. There are no joins, lookups, or aggregations. * The catalog is closed. `to_date` is the only type conversion. * Entries in one compute step cannot see each other. * Literals are strings, integers, floats, and booleans only. # Local development Source: https://filament.getgalaxy.io/pages/guides/contributing/local-development Set up the toolchain and run Filament from source to contribute to the open-source data movement engine. ## Toolchain The Brewfile pins the toolchain (`go`, `just`, `golangci-lint`, `buf`, `sqlc`, `node@22`, and `pnpm`). You also need Docker with Compose. Integration tests use Testcontainers. ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} brew bundle ``` ## Container engine Docker is Filament's default container engine for local infrastructure, image builds, and container-backed tests. For Podman users, select your existing installation before running Filament's development commands: ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} export CONTAINER_ENGINE=podman just container-check ``` This selects Podman for `just infra`, `just images`, and container-backed tests. Use the same selection for `just infra down`. Docker and Podman keep separate data. Podman uses the `docker-compose` provider. On macOS, tests require a rootful machine. Filament discovers its socket and configures privileged Ryuk automatically. On Linux, the Podman API socket must be available. Keep Ryuk enabled for test cleanup. ## Workspace layout The repository contains several Go modules joined by `go.work`, including the root module, `cmd/`, selected connectors and secret providers, and `tests/`. The justfile checks each module with `GOWORK=off`, so it is verified against its own `go.mod` rather than dependencies supplied only by the workspace. ## The justfile is the dev CLI Every routine task is a `just` recipe. These are the ones that matter day to day. | Recipe | What it does | | - | - | | `just infra` | Start PostgreSQL and NATS via Compose (`down` stops, `volumes` also drops data) | | `just migrate` | Run datastore migrations against the local database | | `just dev` | Worker + control plane + server in the background, wait for `:8082`, `:8080` and `:8081` `/startupz`, then the UI | | `just worker` | Worker alone on `:8082`, answering connector calls and executing runs | | `just server` | API server alone (runs `migrate` first), reaching the worker at `WORKER_URL` | | `just control-plane` | Control plane alone, with `DISPATCH_MODE=worker` | | `just ui` | Vite dev server on `:5173`, proxying the API to `:8080` | | `just gen` | Regenerate protobuf/ConnectRPC stubs (`buf generate`) and sqlc code | | `just ui-build` | Build the UI bundle the server embeds | | `just build` | `gen` + `ui-build` + compile every Go module | | `just binaries` | Linux release binaries into `bin/filament/` | | `just images` | Build images with the selected container engine | | `just docs` | Mintlify docs preview on `:3000` | | `just tidy` | `go mod tidy` in every module, then `go work sync` | Start `just infra` before `just dev`. The `dev` recipe runs migrations immediately, so the database must already be healthy. Formatting and linting take a mode argument, not a hyphenated name: ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} just format check # verify formatting without writing just lint check # run linters without fixing ``` `just format` and `just lint` (no argument) fix in place. CI runs the granular equivalents (`just go-lint check`, `just go-format check`, `just ui-lint check`, and `just ui-format check`). See [style and testing](/pages/guides/contributing/style-and-testing) for the full lint and test story. > [!NOTE] > > The justfile falls back to a hardcoded `ENCRYPTION_KEY` so `just server` works > out of the box. It is a published dev credential — never reuse it outside > local development. ## Building the UI in `just binaries` builds the server, standalone, and cli binaries with `-tags embedui` so the compiled UI ships inside them. A plain `go build ./cmd/server` without the tag serves a placeholder page at `/`, not the UI. `just ui-build` produces the embeddable bundle on its own. ## Building the worker images The worker image is published in two builds. The plain tag is a static binary on the static distroless base, like the server and control plane. The `-libc` tag is the same program built with cgo on a glibc base, and it is the only build that carries connectors linking native libraries. Each has its own Dockerfile under `cmd/worker`, and anything such a connector needs at runtime beyond the binary belongs in `Dockerfile.libc` alone. `just binaries` cross-compiles the static binaries and builds the `-libc` worker inside a Go container through the selected engine, because a cgo build targets the host it runs on and cannot cross-compile from macOS. `just images` tags it `worker:latest-libc`. # Style & testing Source: https://filament.getgalaxy.io/pages/guides/contributing/style-and-testing Formatting, linting, and the three test layers used across the Filament codebase, for contributors and reviewers. ## Formatting and linting Use these commands for routine checks. The check variant is a mode argument, not a separate recipe: ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} just format # fix formatting: Go, UI, proto just format check # verify without writing just lint # run linters with --fix just lint check # verify without fixing ``` Go formatting uses `gofumpt` and `goimports`. Go linting is configured in `.golangci.yaml`. Biome handles the UI, and Buf handles protobuf formatting and linting. Refer to those configuration files when you need the exact enabled rules. CI runs the granular recipes (`just go-lint check`, `just go-format check`, `just ui-lint check`, `just ui-format check`) plus `buf lint` and a `proto-check` that fails if regenerating stubs would change checked-in files. ## Testing There are three layers of tests. **`just test`** runs unit tests in every Go module except `tests/`. It does not need a container engine. The suite covers planning, batching and integrity, checkpoints, event delivery, connectors, storage, secrets, the runner, and the server. **`just test-integration`** recursively runs service-level contracts under `tests/integration/`, carrying `//go:build integration`. **`just test-e2e`** recursively runs cross-process, data-lake, and Kubernetes workflows under `tests/e2e/`, carrying `//go:build e2e`. Kubernetes tests additionally carry `//go:build privileged` because their nested cluster needs a privileged engine. Both use Testcontainers with Docker or Podman. The e2e suite also needs `duckdb` on your PATH for TPC-H seeding. > [!WARNING] > > Running `go test ./...` in `tests/` without a test tier tag can pass while > testing nothing. Use `just test-integration` or `just test-e2e`. Each supplies > the appropriate tag. The selected `CONTAINER_ENGINE` applies to both suites. See [local development](/pages/guides/contributing/local-development) for engine selection. The default `just test-e2e` invocation includes the privileged tag. To exercise every compatible e2e package without it, run `just test-e2e e2e`. ### What the suites prove The integration suite checks behavior across real dependencies: * Recovery tests stop runs during extraction and write new source rows before resume. Missing rows fail the test. Duplicate rows are allowed by the at-least-once contract. * PostgreSQL and MySQL connector tests cover snapshot, incremental, and CDC behavior, including physical-scan resume after table changes. * The NATS durable-consumer tests verify consumers survive restarts. * The S3 sink tests verify committed objects, manifests, and multipart aborts. * PostgreSQL persistence and seed tests exercise their contracts against an ephemeral server, including seed snapshot/restore. The e2e layer groups full workflows by deployment boundary. Data-lake tests write PostgreSQL data to Iceberg and verify it independently through Trino. Pipeline tests exercise the server API and separately run compiled server and control-plane processes through PostgreSQL and NATS. Kubernetes tests verify dispatch, idempotency, and stale-run reaping against a real k3s API server. ## Pull request titles and releases Pull requests squash-merge with the title as the commit message, and the title must follow [Conventional Commits](https://www.conventionalcommits.org): `feat(charts): ...`, `fix(sdks/python): ...`, `chore(ci): ...`. A check on every pull request enforces the format. Release Please reads those commits on `main` and keeps one release pull request open. It collects the changes since the last release and bumps each package that changed: the platform, the Python SDK, and the TypeScript SDK. Merging it creates the tags and GitHub releases, and each tag runs the publish workflow for its package. The Helm chart carries the platform's version and ships with every platform release, after the images it deploys. # Server and worker configuration Source: https://filament.getgalaxy.io/pages/guides/deployment/configuration Configure the Filament server, control plane, and workers for a local, single-process, or Kubernetes deployment. The server, control plane, and worker read configuration from environment variables. A deployment must give all three the same datastore, event bus, and secret-provider settings. The Helm chart renders these variables from chart values; other platforms set them directly. This page does not cover the `filament` CLI, which uses a YAML configuration file. ## Shared configuration The server, control plane, and worker read the variables in this section. Only the worker links connector drivers; the server and control plane reach them through `WORKER_URL`. ### Private HTTP manifests | Variable | Default | Description | | - | - | - | | `HTTP_MANIFESTS_DIR` | unset | Directory containing private `/registry.json` files and API-version manifest folders. Adds private versions and can change default aliases; collisions with concrete bundled registrations fail startup. | Set it on every worker: the persistent worker that answers connector calls and the workers that execute runs. Files are loaded once at startup; missing, empty, or invalid configured directories stop startup. The variable does not mount or distribute files. See [private catalog setup](/pages/connectors/building-a-connector/http-manifests#load-a-private-catalog-at-startup) for the directory structure and override behavior. ### Connector allowlist | Variable | Default | Description | | - | - | - | | `CONNECTOR_SOURCES` | unset | Comma-separated source connector names the worker offers. Unset offers every bundled source | | `CONNECTOR_SINKS` | unset | Comma-separated sink connector names the worker offers. Unset offers every bundled sink | Set them on every worker, the same as `HTTP_MANIFESTS_DIR`. The server and control plane learn the catalog from the worker, so connectors left off the list do not appear in the UI or CLI, and runs that use them fail. Names are unversioned. Listing an HTTP connector such as `instantly` keeps its default alias and every registered version. An unknown or versioned name stops startup, and so does a value such as `,` that names no connectors. The Helm chart sets these from `worker.connectors.sources` and `worker.connectors.sinks`. ### Datastore | Variable | Default | Description | | - | - | - | | `PERSISTENCE_PROVIDER` | `postgres` | Datastore implementation. Accepts `postgres` or `sqlite` | | `PERSISTENCE_DSN` | — | PostgreSQL connection string. Required for `postgres` | | `STORE_PATH` | — | SQLite database path. Required for `sqlite` | Use PostgreSQL for a split deployment. The service binaries accept SQLite, but a local SQLite file is not a shared datastore for services running on different hosts. ### Event bus | Variable | Default | Description | | - | - | - | | `EVENTBUS_PROVIDER` | `nats` | Event bus implementation. `nats` is the only supported value | | `NATS_URL` | — | **Required.** NATS connection URL | | `NATS_STREAM` | `EVENTBUS` | JetStream stream name; Filament creates it when needed | | `NATS_SUBJECTS` | `>` | JetStream subject filter. The Helm chart uses `ingestion.v1.>` | | `NATS_TTL_SECONDS` | `604800` | Maximum message age in seconds. Set to `0` to disable age-based expiration | > [!NOTE] > > `DISPATCH_MODE` changes where runs execute; it does not replace the event bus. ### Secret provider | Variable | Default | Description | | - | - | - | | `SECRET_PROVIDER` | unset | Unset uses the configured datastore. External values are `aws-secrets-manager` and `gcp-secret-manager` | | `ENCRYPTION_KEY` | — | Base64-encoded AES key. Required when `SECRET_PROVIDER` is unset; it must decode to 16, 24, or 32 bytes | | `ENCRYPTION_KEY_ID` | `default` | Identifier stored with secrets written by the datastore-backed provider | | `SECRETS_PREFIX` | empty | Root name for external secrets, default `filament`. AWS names secrets `//...` and GCP `-`; GCP allows only letters, digits, `_`, and `-` | | `AWS_REGION` | AWS SDK chain | AWS region. Startup fails if the SDK cannot resolve one | | `GCP_PROJECT_ID` | — | GCP project containing Secret Manager secrets. Required for `gcp-secret-manager` | | `GCP_REGION` | — | GCP region containing Secret Manager secrets. Required for `gcp-secret-manager` | The datastore-backed provider stores AES-GCM encrypted values in PostgreSQL or SQLite. Every service must receive the same encryption key. > [!WARNING] > > Keep `ENCRYPTION_KEY` safe and stable. Changing it makes existing secrets > unreadable. `ENCRYPTION_KEY_ID` records an identifier, but it does not provide > a multi-key rotation mechanism. The AWS provider loads credentials through the standard AWS SDK chain. It stores each Filament secret as a JSON envelope in AWS Secrets Manager. The GCP provider loads Application Default Credentials and uses regional Secret Manager secrets. Filament refs are mapped to deterministic GCP-safe IDs and retained in secret annotations. Grant workloads access through their attached service account or Workload Identity. Deleting a connection permanently deletes its managed GCP secrets. Managed OAuth refresh is supported with all four providers. Access tokens and expiry stay in memory for one run. Only a changed refresh token is written back to its existing secret. Rotation never creates a secret or updates a connection row. PostgreSQL and SQLite update the encrypted value in place. AWS uses [PutSecretValue](https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_PutSecretValue.html). GCP adds a version and then [destroys the previous version](https://docs.cloud.google.com/secret-manager/regional-secrets/destroy-regional-secret-version). Grant GCP workloads the `secretmanager.versions.destroy` permission as well as read and write access. Cloud providers do not require `ENCRYPTION_KEY`. Refreshes are serialized within each run. Separate runs have independent token state and do not acquire datastore leases. Avoid overlapping runs that share an authorization when the upstream provider invalidates refresh tokens on use. The datastore no longer tracks cloud secret versions or refresh ownership. A failed save stops the read. The run retains a successful exchange in memory for another save attempt. A process exit between upstream rotation and persistence can require fresh authorization. If GCP version cleanup fails, rotation reports an error even though the new version is already available. The previous version may need cleanup. ### Logs and OpenTelemetry | Variable | Default | Description | | - | - | - | | `LOG_LEVEL` | `INFO` | Log level: `INFO`, `DEBUG`, or `TRACE` | | `OTEL_EXPORTER_OTLP_ENDPOINT` | — | Shared OTLP endpoint for metrics and traces | | `OTEL_EXPORTER_OTLP_METRICS_ENDPOINT` | — | Metrics-specific OTLP endpoint | | `OTEL_EXPORTER_OTLP_TRACES_ENDPOINT` | — | Trace-specific OTLP endpoint | | `OTEL_EXPORTER_OTLP_PROTOCOL` | `grpc` | Transport for both exporters: `grpc` or `http/protobuf` | | `OTEL_SERVICE_NAME` | SDK default | Service name attached to telemetry | Filament enables OpenTelemetry export when any OTLP endpoint is set. It creates both metrics and trace exporters using the selected protocol. The exporters also honor the standard OTLP headers, TLS, timeout, and compression variables for that transport. Application logs remain JSON on standard output; Filament does not export logs through OTLP. ## Server | Variable | Default | Description | | - | - | - | | `SERVER_ADDR` | `:8080` | Listen address for the API, web application, and health endpoints | | `WORKER_URL` | — | **Required.** Address of the persistent worker that answers connector calls, for example `http://filament-worker:8080` | | `DEFAULT_TENANT_ID` | `00000000-0000-0000-0000-000000000000` | Tenant used when a request does not provide one | | `METRICSSTORE_PROVIDER` | unset | Unset reads dashboard metrics from the configured datastore. No explicit values are currently supported | ### Galaxy products Galaxy products link to each other, such as Filament opening Alchemy to write a function. Set the same variables on every product. A product links only to the products that are set, and it sends people back only to their origins. Each value is an absolute http or https URL without query or fragment, and an invalid one stops the server at start. | Variable | Default | Description | | - | - | - | | `GALAXY_ALCHEMY_URL` | unset | Where Alchemy's web application is served, such as `https://alchemy.example.com`. Chart value `galaxy.productUrls.alchemy` | | `GALAXY_FILAMENT_URL` | unset | Where Filament's web application is served, such as `https://filament.example.com`. Chart value `galaxy.productUrls.filament` | ### Webhooks In a split deployment, webhooks require the shared PostgreSQL datastore and NATS JetStream. The server verifies signed deliveries and stores them in a dedicated inbox. Workers consume the inbox after acceptance. The control plane purges it. Standalone uses SQLite and embedded NATS for the same flow. Set `WEBHOOKS_ENABLED=true` to serve `/hooks/`. Standalone defaults to a 64 MiB inbox, a 2 MiB message limit, and one replica. The other webhook variables below also apply to it. | Variable | Default | Description | | - | - | - | | `WEBHOOKS_ENABLED` | `false` | Enable the `/hooks/` delivery path and inbox retention | | `WEBHOOK_MAX_IN_FLIGHT` | `64` | Maximum concurrent deliveries per server replica. Excess requests return `503` with `Retry-After` | | `WEBHOOK_PUBLIC_BASE_URL` | unset | Public origin senders reach, such as `https://filament.example.com`. The API and UI show delivery URLs when set. Unset makes the delivery URL unavailable in the UI | | `WEBHOOK_INBOX_MAX_BYTES` | — | Required in a split deployment. Standalone defaults to 64 MiB. Increasing it expands the existing stream on startup. A lower value does not shrink the stream | | `WEBHOOK_INBOX_MAX_MESSAGE_BYTES` | — | Required in a split deployment. Standalone defaults to 2 MiB and allows up to 32 MiB. Increasing it expands the existing stream on startup. A lower value limits this server but does not shrink the stream | | `WEBHOOK_INBOX_REPLICAS` | — | Required in a split deployment. Standalone uses one replica. Changing it on an existing stream requires a coordinated migration | | `WEBHOOK_INBOX_RETENTION_HOURS` | `168` | Hours a delivery stays in the inbox before it may be purged. Also how long a sender retry is recognized as a duplicate | | `WEBHOOK_INBOX_MAX_HOLD_HOURS` | `720` | Most hours a delivery no pipeline has read stays in the inbox. Past it the delivery is dropped and counted in `filament_webhook_expired_total`. At least the retention period | The Helm chart sets the server values through `server.webhooks` and the retention through `controlPlane.webhookRetentionHours` and `controlPlane.webhookMaxHoldHours`. Its webhooks toggle is off by default. An endpoint's body limit may not exceed the inbox message limit minus 1 KiB reserved for delivery headers. The inbox message limit may not exceed the NATS server's `max_payload`, which defaults to 1 MiB. The server refuses to start otherwise. The bundled Compose file and the chart's vendored NATS raise it to 2 MiB to match the default limit. Set it on any other NATS deployment. Expose only the `/hooks/` path to webhook senders. Every other path on the server listener is the API and UI. ### Authentication | Variable | Default | Description | | - | - | - | | `AUTH_PROVIDER` | unset | Unset disables authentication. Supported providers are `zitadel`, `keycloak` and `proxy` | | `AUTH_ISSUER` | — | Issuer URL. The Zitadel base URL, or the Keycloak realm URL in the form `https:///realms/`. Required when `AUTH_PROVIDER` is `zitadel` or `keycloak` | | `AUTH_PAT` | — | Zitadel machine-user personal access token. Required when `AUTH_PROVIDER=zitadel` | | `AUTH_CLIENT_ID` | — | Filament's confidential client in the Keycloak realm. Required when `AUTH_PROVIDER=keycloak` | | `AUTH_CLIENT_SECRET` | — | That client's secret. Required when `AUTH_PROVIDER=keycloak` | | `AUTH_ADMIN_USERNAME` | unset | Keycloak admin on the master realm. With `AUTH_ADMIN_PASSWORD`, the server creates the realm and client on boot when they are missing; unset, the realm's owners provision both | | `AUTH_ADMIN_PASSWORD` | unset | That admin's password | | `AUTH_BOOTSTRAP_TENANT` | unset | Tenant converged on every boot | | `AUTH_BOOTSTRAP_ADMIN_EMAIL` | unset | Person who administers the bootstrap tenant, created on boot and left alone once it exists. Closes sign-up: people join by invitation | | `AUTH_BOOTSTRAP_ADMIN_PASSWORD` | unset | That person's initial password, chosen by you. Required with `AUTH_BOOTSTRAP_ADMIN_EMAIL` | | `AUTH_BOOTSTRAP_CLIENT_ID` | unset | Admin service account on the bootstrap tenant, so an SDK can act before any person signs in. Keycloak only; set with `AUTH_BOOTSTRAP_CLIENT_SECRET` or not at all | | `AUTH_BOOTSTRAP_CLIENT_SECRET` | unset | Secret that service account authenticates with, chosen by you | | `AUTH_UI_ORIGIN` | `http://localhost:5173` | Origin that serves the web application. An `https://` origin enables secure session cookies | | `AUTH_PROXY_TENANT` | unset | Gateway tenant this deployment serves when `AUTH_PROVIDER=proxy`. Requests naming any other tenant are refused. Unset serves every tenant the gateway names | > [!WARNING] > > When `AUTH_PROVIDER` is unset, the API and web application are unauthenticated. #### Gateway headers With `AUTH_PROVIDER=proxy`, Filament trusts identity from an authenticating gateway in front of it, such as oauth2-proxy or Pomerium. Sign-in happens at the gateway. The gateway sets these headers on every request. | Header | Description | | - | - | | `X-Forwarded-Tenant` | Tenant the caller belongs to. Required. A single-tenant gateway sends a fixed value | | `X-Forwarded-User` | Stable user ID. Required unless `X-Forwarded-Service` is set | | `X-Forwarded-Service` | Name of a trusted service calling on its own behalf | > [!WARNING] > > Filament verifies nothing in these headers. The gateway must strip any copy a client sends, and only the gateway may reach the server. Anything else that can reach it can act as any user. Only the server reads authentication variables. ## Control plane > [!WARNING] > > Run exactly one control-plane replica. Multiple replicas may race while > coordinating schedules and runs. | Variable | Default | Description | | - | - | - | | `HEALTH_ADDR` | `:8081` | Listen address for `/livez`, `/startupz`, and `/readyz` | | `WORKER_URL` | — | **Required.** Address of the persistent worker that answers connector calls | | `DISPATCH_MODE` | `kubernetes` | Run execution mode: `kubernetes` or `worker` | | `REAPER_INTERVAL_SECONDS` | `60` | Interval between stale-run sweeps in Kubernetes mode | | `REAPER_STALE_AFTER_SECONDS` | `300` | Time without a worker heartbeat before a running run is failed | In `kubernetes` mode, the control plane creates a worker Job for each run and uses the reaper to detect workers that stop reporting heartbeats. In `worker` mode, the control plane dispatches nothing: a long-lived worker started with `-execute` consumes requested runs from the event bus. There are no worker Jobs, heartbeats, or reaper. Pipeline webhooks run automatically in the control plane and standalone app, using the existing datastore and secrets provider. Standalone uses environment secret references for destinations. See [Notifications](/pages/api-reference/service/pipelines#notifications). ### Kubernetes dispatch These variables apply only when `DISPATCH_MODE=kubernetes`. The Helm chart sets them from its `worker` values. | Variable | Default | Description | | - | - | - | | `K8S_WORKER_IMAGE` | — | **Required.** Container image for worker Jobs | | `K8S_WORKER_SECRET_NAME` | — | **Required.** Secret loaded into worker containers with `envFrom` | | `K8S_WORKER_CONFIGMAP_NAME` | — | Optional ConfigMap loaded with `envFrom` | | `K8S_NAMESPACE` | ServiceAccount namespace | Namespace in which to create Jobs | | `K8S_KUBECONFIG` | in-cluster configuration | Kubeconfig path. Falls back to `KUBECONFIG` | | `K8S_WORKER_SERVICE_ACCOUNT` | namespace default | ServiceAccount assigned to worker pods | | `K8S_WORKER_APP_NAME` | `filament` | Value of the worker's `app.kubernetes.io/name` label | | `K8S_WORKER_INSTANCE` | unset | Value of the worker's `app.kubernetes.io/instance` label | | `K8S_WORKER_IMAGE_PULL_POLICY` | `IfNotPresent` | Worker image pull policy | | `K8S_WORKER_RESTART_POLICY` | `Never` | Worker pod restart policy | | `K8S_WORKER_TERMINATION_GRACE_SECONDS` | Kubernetes default | Worker termination grace period | | `K8S_WORKER_ACTIVE_DEADLINE_SECONDS` | unset | Maximum lifetime of a worker Job | | `K8S_JOB_NAME_PREFIX` | `filament` | Prefix for generated Job names | | `K8S_JOB_BACKOFF_LIMIT` | `1` | Number of retries before Kubernetes marks a Job failed | | `K8S_JOB_TTL_SECONDS_AFTER_FINISHED` | unset | Time to retain a finished Job | ## Worker The worker is the one binary that links connector drivers. Without flags it executes one dispatched run and exits. With `-serve` it runs long-lived and answers connector calls for the server and control plane, needing neither datastore nor event bus. With `-execute` it runs long-lived and executes requested runs from the event bus, for deployments without Kubernetes. The two flags combine; neither combines with `RUN_ID`. With `-serve`, `/readyz` reports whether connector serving is available. This also applies to `-serve -execute`: a datastore or event-bus outage does not remove the connector service from its Service endpoints. An execution-only worker's readiness checks its datastore and event bus. Both modes report not ready before startup completes and during shutdown. | Variable | Default | Description | | - | - | - | | `TENANT_ID` | — | **Required** for a dispatched run. Tenant that owns the run | | `RUN_ID` | — | **Required** for a dispatched run. Persisted run to execute | | `WORKER_ADDR` | `:8080` | Listen address for connector calls and health endpoints when long-lived | | `HEARTBEAT_SECONDS` | `30` | Interval between worker heartbeats | The Kubernetes dispatcher injects `TENANT_ID` and `RUN_ID`. The worker loads the remaining shared settings from its Secret and ConfigMap. Invalid or non-positive `HEARTBEAT_SECONDS` values use the 30-second default. ## Standalone Standalone is intended for testing and evaluation. It has its own embedded NATS server, SQLite datastore, and read-only environment secret provider. | Variable | Default | Description | | - | - | - | | `INGESTION_ADDR` | `:8080` | Listen address for the API and web application | | `NATS_STORE_DIR` | `/filament-standalone` | Embedded JetStream storage directory | | `STORE_PATH` | `/filament.db` | SQLite database path | Standalone also reads `LOG_LEVEL`, `NATS_TTL_SECONDS` and the `GALAXY__URL` variables. Its secret provider maps a reference such as `postgres-creds/dsn` to `POSTGRES_CREDS_DSN`. It cannot create, update, or delete secrets. The public Go API also uses `INGESTION_ADDR`. See [Embedded](/pages/guides/usage/embedded) for library configuration. ## Migrations PostgreSQL migrations are embedded in the server image. The server's `-migrate` flag waits up to five minutes for the database, applies pending migrations, and exits: ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} ./server -migrate ``` The Helm chart runs this command in a post-install and post-upgrade hook. Use the same command as a pre-deploy step on platforms such as Railway. SQLite applies its migrations when the datastore opens. The [Helm chart README](https://github.com/galaxy-io/filament/tree/main/charts/filament) lists the chart values that produce these variables. # Deploy Filament on DigitalOcean Source: https://filament.getgalaxy.io/pages/guides/deployment/digitalocean Deploy a single-process Filament instance to DigitalOcean App Platform The repository's `.do/deploy.template.yaml` deploys the Filament standalone image as one DigitalOcean App Platform service: [![Deploy to DigitalOcean](https://www.deploytodo.com/do-btn-blue.svg)](https://cloud.digitalocean.com/apps/new?repo=https://github.com/galaxy-io/filament/tree/main) ## What gets deployed The template runs `ghcr.io/galaxy-io/filament/standalone:0.1.0` on one 512 MiB App Platform service. The image contains the API, web application, scheduler, execution engine, SQLite datastore, and embedded NATS JetStream server. This topology is intended for testing and evaluation. DigitalOcean's Deploy to DO template format supports one service, optionally with a development database, so it cannot deploy Filament's separate server, control plane, and NATS services from one button. > [!WARNING] > > DigitalOcean App Platform does not provide persistent volumes. The standalone > image stores its SQLite database and JetStream data on the service's local > filesystem, so deployments and container replacements can erase all Filament > state. Do not use this template for production or irreplaceable data. ## Deploy the template **1. Open the template** Click **Deploy to DigitalOcean** above and sign in to DigitalOcean. **2. Review the service** Confirm the service uses the `filament/standalone:0.1.0` image and review the selected instance size and estimated monthly cost. **3. Create the app** Click **Create Resources** and wait for the service to become healthy. **4. Open Filament** Open the generated `ondigitalocean.app` URL shown for the service. ## Connector credentials The standalone image uses a read-only environment secret provider. Convert a secret reference to uppercase and replace punctuation with underscores, then add that environment variable to the App Platform service. For example, the reference `postgres-creds/dsn` resolves from `POSTGRES_CREDS_DSN`. Restart the deployment after adding or changing credential environment variables. See [Configuration](/pages/guides/deployment/configuration) for all standalone settings. ## Upgrades The template pins the standalone image to a Filament release. To upgrade new deployments, change the image tag in `.do/deploy.template.yaml`. Existing apps can select the new tag from the service's **Source** settings and redeploy. # Deploy Filament on Kubernetes Source: https://filament.getgalaxy.io/pages/guides/deployment/kubernetes Deploy Filament on Kubernetes with the Helm chart, with the server, control plane, and one worker Job per run. Kubernetes with Helm is the recommended way to run Filament in production. The chart deploys the server, control plane, and a persistent worker for connector calls. It runs database migrations and creates a worker Job for each run. > [!WARNING] > > Run exactly one control-plane replica. Multiple replicas may race while > coordinating schedules and runs. Keep `controlPlane.replicas` at `1` and > leave `controlPlane.autoscaling.enabled` disabled. Upgrading the chart restarts the server and control plane as Deployments. Worker Jobs for continuous runs keep their image until the new control plane asks each one, one at a time, to finish its epoch and exit, then starts it again on the new image. See [streaming](/pages/guides/concepts/streaming#pause-stop-and-worker-ownership). ## Install the chart The default setup uses PostgreSQL as its datastore, NATS JetStream as its event bus, and the datastore-backed secret provider. It needs these three values: | Chart value | Purpose | | - | - | | `persistence.postgresql.dsn` | PostgreSQL connection string | | `eventBus.nats.url` | NATS connection URL | | `secrets.datastore.encryptionKey` | Key used to encrypt stored credentials | Generate an encryption key and install the chart: ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} helm upgrade --install filament oci://ghcr.io/galaxy-io/charts/filament \ --set-string persistence.postgresql.dsn="postgresql://filament:...@db:5432/filament" \ --set-string secrets.datastore.encryptionKey="$(openssl rand -base64 32)" \ --set-string eventBus.nats.url="nats://nats:4222" ``` The encryption key must be base64 and decode to 16, 24, or 32 bytes. To manage these values outside Helm, set `existingSecret` to a Kubernetes Secret that contains `PERSISTENCE_DSN`, `NATS_URL`, and `ENCRYPTION_KEY`. When `existingSecret` is set, the chart does not create a runtime Secret. Authentication credentials use a separate provider Secret so they are not passed to the control plane or workers. If you use AWS or GCP Secret Manager instead of the datastore-backed provider, you do not need `ENCRYPTION_KEY`. For GKE, configure Workload Identity on the server, control-plane, and worker ServiceAccounts using their existing `serviceAccount.name` or `serviceAccount.annotations` values. See [Configuration](/pages/guides/deployment/configuration) for provider settings. ## Resources ### Server The server Deployment serves the API and web application through a Service on port 8080. It starts with one replica. The chart can also create an Ingress, HorizontalPodAutoscaler, and PodDisruptionBudget. ### Control plane The control-plane Deployment runs the scheduler, dispatcher, tracker, and reaper. It starts with one replica and exposes health endpoints on port 8081. Its ServiceAccount has namespaced access to the Kubernetes Jobs it creates and removes. ### Database migrations A post-install and post-upgrade hook runs migrations with the server image. The migration Job waits up to five minutes for PostgreSQL and retries failed attempts up to six times. Set `persistence.migrate: false` if you manage migrations separately. ## Rollouts and health checks Both Deployments annotate their pods with checksums of the rendered ConfigMap and chart-managed Secret. Changing either resource through Helm triggers a rollout even when the image tag stays the same. The server also checksums its chart-managed authentication Secret, so rotating provider credentials only rolls the server. Changes to an existing Secret do not affect these checksums: restart both Deployments after rotating the runtime Secret, or just the server after rotating an authentication Secret. The server and control plane expose `/startupz`, `/readyz`, and `/livez`. Startup succeeds after NATS connects and the runtime modules start. Readiness checks PostgreSQL and NATS; the server also ensures that its default tenant exists. Liveness checks that the process can answer HTTP requests. The startup probe gates the other checks, readiness marks a pod unready, and liveness can restart its container. Worker Jobs do not expose health endpoints. They report progress through heartbeats instead. ## Worker Jobs For each run, the control plane creates a Kubernetes Job that starts the worker image. It passes `TENANT_ID` and `RUN_ID` to the worker. The worker loads shared settings from a Secret and ConfigMap, then loads the run from the datastore. Each pipeline can set its own CPU, memory, node selectors, and tolerations. This lets Kubernetes place and size each run independently. The chart also runs the worker image as a persistent Deployment that answers the server's connector calls. It shares the Jobs' image and ServiceAccount and receives no runtime Secret. The worker NetworkPolicy is enabled by default. It allows connector calls only from this release's server and control plane in the same namespace, on `worker.service.port`. It does not restrict outbound connector traffic or select dispatched worker Jobs. The cluster's network plugin must enforce NetworkPolicy, and other policies can allow additional traffic. Use `worker.networkPolicy.extraIngress` for additional callers, or set `worker.networkPolicy.enabled=false` when access is managed externally. NetworkPolicy does not encrypt the RPC connection. Use TLS or a service mesh to protect resolved connection credentials in transit. Common worker settings include: * `worker.job.namePrefix` (default `filament`) * `worker.job.backoffLimit` (default 1) * `worker.job.ttlSecondsAfterFinished` (default 3600) * `worker.job.restartPolicy` (default `Never`) * `worker.job.terminationGraceSeconds` * `worker.job.activeDeadlineSeconds` * `worker.replicas` (default 1) and `worker.resources` for the persistent worker For all worker settings, see the [Helm chart README](https://github.com/galaxy-io/filament/tree/main/charts/filament). ## Scaling The server is stateless and can scale horizontally. Keep the control plane at one replica. Worker capacity scales through Kubernetes because each run gets its own Job and resource configuration. ## Vendored dependencies The chart includes optional PostgreSQL, NATS, Zitadel, and Keycloak subcharts. All four are disabled by default: * Bitnami PostgreSQL with an 8Gi PVC and optional daily `pg_dumpall` backups * NATS with JetStream and a 10Gi file store * Zitadel for authentication * Keycloak (codecentric keycloakx) for authentication > [!WARNING] > > Use the vendored subcharts for local and test clusters. For production, use > managed services with lifecycles separate from Filament. Authentication is disabled by default. Set `auth.enabled: true`, `auth.uiOrigin`, and `auth.zitadel.issuer` to use Zitadel. An external Zitadel instance also requires `auth.zitadel.pat` or an `AUTH_PAT` entry in the separate `auth.zitadel.existingSecret`. Without an existing provider Secret, the chart stores the PAT in `-zitadel-auth`. The vendored Zitadel setup mints its own token. > [!NOTE] > > Do not use `--wait` when enabling the vendored Zitadel chart. Its setup Jobs > must mint the server token before the server can become ready. Set `auth.type: keycloak` to use Keycloak. An external realm requires `auth.keycloak.issuer` and `auth.keycloak.clientSecret`, or a dedicated `keycloak.existingSecret` containing `AUTH_CLIENT_SECRET`. For vendored Keycloak, enable `keycloak.enabled` and supply `keycloak.hostname`, `auth.keycloak.clientSecret`, and `auth.keycloak.adminPassword`. The hostname is an HTTP(S) origin that must resolve inside the cluster as well as outside. Configure ingress TLS when using HTTPS. Enable the vendored PostgreSQL and set its password, or configure `keycloak.database` for an external database. The server creates the realm and client on boot using `keycloak.adminUser`. Keycloak credentials live in `-keycloak-auth`, separately from the shared runtime Secret. To manage them outside Helm, put `AUTH_CLIENT_SECRET` and `AUTH_ADMIN_PASSWORD` in a dedicated Secret and set `keycloak.existingSecret` to its name. Set `auth.keycloak.bootstrap.clientId` and `clientSecret` to add an SDK admin service account to the bootstrap tenant; with an existing Secret, supply `AUTH_BOOTSTRAP_CLIENT_SECRET` there instead. ### Bootstrap admin Set `auth.bootstrap.tenant`, `auth.bootstrap.adminEmail`, and `auth.bootstrap.adminPassword` with either provider. The server converges the tenant on every boot, creates the admin with that password the first time, and closes sign-up. Everyone else joins through the members page. The password lives in the provider Secret as `AUTH_BOOTSTRAP_ADMIN_PASSWORD`; with an existing provider Secret, supply that key there instead. Earlier chart versions stored `AUTH_PAT` in the runtime Secret; move it to the provider Secret on upgrade. Updating the bootstrap admin password value does not rotate it in Keycloak: change the password in Keycloak first, then update the Secret and restart the server. ## Chart reference The [Helm chart README](https://github.com/galaxy-io/filament/tree/main/charts/filament) lists every supported value and its default. # Deployment options Source: https://filament.getgalaxy.io/pages/guides/deployment/overview Choose how and where to run Filament, as a single binary, on Kubernetes with Helm, on a PaaS like Railway or Render, or embedded in Go. Filament runs as separate server and control-plane services backed by a datastore, an event bus, and a secret provider. Kubernetes with Helm is the recommended production deployment. Railway and Render are alternatives when Kubernetes worker Jobs are not available. DigitalOcean provides a single-process evaluation deployment. ## Deployment options | Platform | Run execution | Best for | | - | - | - | | [Kubernetes](/pages/guides/deployment/kubernetes) | One worker Job per run | Production deployments with isolated, independently configured workers | | [Railway](/pages/guides/deployment/railway) | In a long-lived worker service | Simpler deployments on a platform without a Kubernetes Jobs API | | [Render](/pages/guides/deployment/render) | In a long-lived worker service | One-click Blueprint deployments with managed PostgreSQL | | [DigitalOcean](/pages/guides/deployment/digitalocean) | Inside the standalone service | One-click testing and evaluation with ephemeral state | Kubernetes, Railway, and Render run the server and control plane as separate services. The DigitalOcean template uses the standalone image to fit the platform's one-service Deploy to DO template format. > [!WARNING] > > Run exactly one control-plane replica. Multiple replicas may race while > coordinating schedules and runs. ## Service architecture **Server** serves the API and web application. It accepts connection, pipeline, and run requests and persists them through the configured datastore. **Control plane** manages schedules and coordinates runs. With Kubernetes dispatch it creates worker Jobs and tracks their progress. With worker dispatch it leaves execution to a long-lived worker. **Worker** is the one process that links connector drivers. A persistent worker answers the server's connector calls: specs, config checks, discovery, and column inspection. The same image executes runs, either as a Job per run or as a long-lived process. The server and control plane coordinate through the datastore and event bus; they do not call each other directly. Both call the persistent worker for anything that needs a connector. ## Where runs execute The control plane's `DISPATCH_MODE` determines where runs execute: * `kubernetes`, the default, creates one worker Job per run. Each run receives its own container and resource configuration. Workers report heartbeats, and the reaper fails runs whose heartbeats become stale. * `worker` dispatches nothing. A long-lived worker started with `-execute` consumes requested runs from the event bus; every run shares that worker's CPU and memory. Deployments without Kubernetes use this mode. Both modes use the same runner; dispatch changes where it runs, not how a pipeline behaves. ## Runtime dependencies A Filament deployment provides three runtime dependencies: * **Datastore** persists run state, checkpoints, connections, pipelines, and schedules. The packaged server and control-plane deployment uses PostgreSQL. * **Event bus** carries run requests and progress events between runtime modules. The packaged deployment uses NATS JetStream. * **Secret provider** stores or resolves connector credentials. The default provider stores encrypted secrets in the configured datastore; AWS Secrets Manager is also supported. The datastore-backed secret provider requires a base64-encoded AES encryption key. Provider selection and connection settings are covered in [Configuration](/pages/guides/deployment/configuration). # Deploy Filament on Railway Source: https://filament.getgalaxy.io/pages/guides/deployment/railway Deploy a Filament instance from the Railway template, then connect sources and sinks from the Filament web app. Filament publishes a Railway template that deploys the server, control plane, worker, PostgreSQL, and NATS as one connected project: [![Deploy on Railway](https://railway.com/button.svg)](https://railway.com/deploy/filament?referralCode=H5DcHR\&utm_medium=integration\&utm_source=template\&utm_campaign=generic) ## What gets deployed | Resource | Purpose | | - | - | | Filament server | Serves the API and web application over Railway's public network | | Filament control plane | Fires schedules and tracks pipeline runs | | Filament worker | Links the connectors, serves the catalog, and executes pipeline runs | | PostgreSQL | Stores pipelines, runs, checkpoints, schedules, and encrypted credentials | | NATS | Carries lifecycle events through JetStream | The template connects the services over Railway's private network and supplies the shared PostgreSQL DSN, NATS URL, worker URL, and encryption key. Database migrations run before the server starts. ## Deploy the template **1. Open the template** Click **Deploy on Railway** above, sign in, and choose the workspace where you want to create the project. **2. Review the project** Confirm that the server, control plane, worker, PostgreSQL, and NATS services are included. Review the resource plans and generated variables before deploying. **3. Wait for the services** Railway provisions the backing services, applies database migrations, and starts the server, control plane, and worker. Wait for every service to become healthy. **4. Open Filament** Open the public domain for the Filament server. If the template has not created one, select the server service and generate a domain under **Settings → Networking**. ## Connectors and run execution The worker is the only service that links connector drivers. It runs with `-serve -execute`. With `-serve` it answers connector calls from the server and control plane, which reach it through `WORKER_URL` on the private network. With `-execute` it consumes requested runs from NATS and executes them itself, since Railway has no Kubernetes Jobs API. The control plane sets `DISPATCH_MODE=worker` and dispatches nothing. Every pipeline run shares the worker service's CPU and memory. > [!WARNING] > > Keep the control plane at one replica. Multiple replicas may race while > coordinating schedules and pipeline runs. Increase the worker service's CPU and memory for concurrent or resource-intensive pipelines. Use the [Kubernetes deployment](/pages/guides/deployment/kubernetes) when runs need isolated containers or independent resource configuration. ## Before production * Configure authentication before storing sensitive connector credentials on a public deployment. Authentication is disabled when `AUTH_PROVIDER` is unset. * Keep `ENCRYPTION_KEY` backed up and unchanged. Replacing it makes existing encrypted credentials unreadable. * Configure retention and backups for PostgreSQL and JetStream to match your recovery requirements. * The template tracks the `latest` image tag for the server, control plane, and worker. Pin all three to the same Filament release before relying on the deployment, and upgrade them together. See [Configuration](/pages/guides/deployment/configuration) for authentication, secrets, logging, and other runtime settings. # Deploy Filament on Render Source: https://filament.getgalaxy.io/pages/guides/deployment/render Deploy a Filament instance from the Render Blueprint, then connect sources and sinks from the web app. The repository's `deploy/render.yaml` Blueprint deploys the Filament server, control plane, worker, PostgreSQL, and NATS as one connected stack: [![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy?repo=https%3A%2F%2Fgithub.com%2Fgalaxy-io%2Ffilament\&branch=main\&path=deploy%2Frender.yaml) ## What gets deployed | Filament component | Hosted on Render as | Purpose | | - | - | - | | Server (`server`) | Public web service | Serves the API and embedded web application | | Control plane (`control-plane`) | Private background service | Fires schedules and tracks runs | | Worker (`worker`) | Private network service | Links the connectors, serves the catalog, and executes runs | | NATS (`nats`) | Private network service with a 1 GiB disk | Carries lifecycle events through JetStream | | PostgreSQL (`postgres`) | Free managed database | Stores pipelines, runs, checkpoints, schedules, and encrypted credentials for up to 30 days unless upgraded | All resources deploy to the same region and communicate over Render's private network. Render groups them in the `filament` project under its `production` environment. PostgreSQL has no public IP allow-list entries, and NATS is not reachable from the public internet. > [!NOTE] > > The Blueprint includes paid compute for the server, control plane, and NATS. > PostgreSQL starts on Render's free plan, which expires after 30 days. Review the > estimated monthly cost and upgrade the database before it expires if you need > to retain its data. ## Deploy the Blueprint **1. Open the Blueprint** Click **Deploy to Render** above and sign in. The button supplies the Filament repository, `main` branch, and `deploy/render.yaml` Blueprint. **2. Select the Blueprint** Confirm **Blueprint Path** is `deploy/render.yaml`. Then choose a workspace and review the five resources, their region, plans, and estimated monthly cost. **3. Deploy** Create the Blueprint and wait for every resource to become available. The server's pre-deploy command applies database migrations before the new version starts, and `/readyz` is used for health checks. **4. Open Filament** Open the public `onrender.com` URL shown for `server`. ## How NATS is provided Render does not provide a managed NATS service. The Blueprint runs the official `nats:2-alpine` image as the smallest private service, enables JetStream, and mounts a 1 GiB persistent disk at `/data`. Render injects the service's private host and port into `NATS_URL` for the control plane and the worker. NATS cannot use a free web service: free web services cannot receive private network traffic, and a public Render web service accepts HTTP rather than the NATS protocol. Render Key Value is also not a substitute because Filament's event-bus implementation requires NATS JetStream. ## Connectors and run execution The worker is the only service that links connector drivers. It runs with `-serve -execute`. With `-serve` it answers connector calls from the server and control plane, which reach it through `WORKER_URL` on the private network. With `-execute` it consumes requested runs from NATS and executes them itself, since Render has no Kubernetes Jobs API. The control plane uses `DISPATCH_MODE=worker` and dispatches nothing. Every run shares the worker service's CPU and memory. > [!WARNING] > > Keep `control-plane` at one instance. Multiple control-plane replicas may race > while coordinating schedules and runs. Increase the worker service's compute plan for concurrent or resource-intensive pipelines. Use the [Kubernetes deployment](/pages/guides/deployment/kubernetes) when runs need isolated containers or independent resource configuration. ## Before production * Configure authentication before storing sensitive connector credentials. The server is public and authentication is disabled when `AUTH_PROVIDER` is unset. * Keep the generated `ENCRYPTION_KEY` backed up and unchanged. Replacing it makes existing encrypted credentials unreadable. * Upgrade the free PostgreSQL database before its 30-day expiration to retain pipelines, runs, checkpoints, schedules, and credentials. * Keep the NATS disk attached. JetStream stores its event state at `/data`. To enable authentication, configure an external Zitadel instance and set `AUTH_PROVIDER`, `AUTH_ISSUER`, `AUTH_PAT`, and `AUTH_UI_ORIGIN` on `server`. Set `AUTH_UI_ORIGIN` to the exact HTTPS origin Render assigned to the server. See [Configuration](/pages/guides/deployment/configuration) for details. ## Upgrades The Blueprint pins the Filament server, control-plane, and worker images to the same release. To upgrade, change all three image tags in `deploy/render.yaml`, sync the Blueprint, and confirm that the server's migration step completes before using the new version. # Install Filament Source: https://filament.getgalaxy.io/pages/guides/get-started/installation Install the Filament CLI, add the Go module to your project, or deploy the Filament server on Kubernetes with Helm. Install the CLI to use Filament locally or manage a deployed server. Use the Go module to embed Filament in an application. Shared deployments run from the published container images or Helm chart. ## CLI Install the CLI on Linux or macOS: ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} curl -fsSL https://getgalaxy.io/filament/install | sh ``` On macOS, you can also use Homebrew: ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} brew install galaxy-io/tap/filament ``` Prebuilt binaries are available from [GitHub Releases](https://github.com/galaxy-io/filament/releases). Confirm the installation with: ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} filament version ``` The local CLI uses file-backed SQLite and an in-process event bus. It does not require Postgres or NATS. Continue with the [CLI guide](/pages/guides/usage/cli). ## Go module Add Filament to a Go application: ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} go get github.com/galaxy-io/filament@latest ``` Import `app` and the connectors the application needs. See [Embedded](/pages/guides/usage/embedded) for a minimal program and runtime options. ## Deployments Filament publishes these container images: | Image | Purpose | | - | - | | `ghcr.io/galaxy-io/filament/server` | API and web application | | `ghcr.io/galaxy-io/filament/control-plane` | Scheduling and run coordination | | `ghcr.io/galaxy-io/filament/worker` | Connector host and run executor | | `ghcr.io/galaxy-io/filament/standalone` | Single-process evaluation image | Use the same release tag for the server, control plane, and worker. A split deployment also needs a datastore, an event bus, and a secret provider. Worker tags with a `-libc` suffix include the connectors that depend on native libraries. Kubernetes with Helm is the recommended production installation. Railway and Render are available when runs can execute inside the control plane. Choose a path in the [deployment overview](/pages/guides/deployment/overview). ## Build from source See [local development](/pages/guides/contributing/local-development) to build the binaries, images, and web application from this repository. # What is Filament? Source: https://filament.getgalaxy.io/pages/guides/get-started/introduction Filament is an open-source (Apache 2.0) data movement engine by Galaxy for replication, ingestion, and change data capture, written in Go. Filament is an open-source data movement engine built by [Galaxy](https://www.getgalaxy.io/filament). It replicates and ingests data from databases, HTTP APIs, event streams, and object storage into warehouses, lakes, and databases. It supports full loads, incremental replication, and change data capture (CDC). Filament is written in Go and licensed under Apache 2.0, and the full engine is developed in the open on [GitHub](https://github.com/galaxy-io/filament). As data moves through the engine, Filament verifies Arrow batches at the sink handoff and, where the sink supports it, checks the exact serialized payload. You can run Filament as a standalone binary, deploy it on Kubernetes, or embed it in a Go application. For published throughput, wall time, and memory results against other replication tools, see [Benchmarking](/pages/benchmarks/overview). Connectors, the data store, and the event bus are interfaces with swappable implementations. Runs that carry resumable progress (incremental and checkpointed full reads) pick up from their last durable checkpoint instead of starting over. The requirements and recovery behavior are covered in [Runs and recovery](/pages/guides/concepts/runs-and-recovery). [Filament onboarding walkthrough](https://cdn.getgalaxy.io/filament/filament-product-demo-light.html) [Filament onboarding walkthrough](https://cdn.getgalaxy.io/filament/filament-product-demo-mobile-light.html) Welcome to Filament ## How it's put together The runner executes each data movement from extraction through the final sink write. The API server and control plane decide when and where that runner starts. On Kubernetes, that work is split across three processes: * The server owns connections, pipelines, and run requests * The control plane schedules and dispatches * Each run executes as its own worker Job For smaller deployments, runs can execute in the control plane, the standalone binary, or a Go process that embeds Filament. Postgres stores run state and NATS JetStream carries progress events when the components run separately. Read [Architecture](/pages/guides/concepts/architecture) to follow a batch through those components. ## Where to go next > [card] [Your first pipeline](/pages/how-to/first-pipeline) > > Install the CLI and run a pipeline end to end in five minutes. No database needed. > [card] [PostgreSQL to Snowflake](/pages/how-to/postgres-to-snowflake) > > Replicate inserts, updates, and deletes with change data capture. > [card] [PostgreSQL to ClickHouse](/pages/how-to/postgres-to-clickhouse) > > Snapshot 1.1M rows in seconds, then keep them fresh incrementally. > [card] [Quickstart](/pages/guides/get-started/quickstart) > > Get infra, the control plane, API server, and UI running locally. > [card] [Architecture](/pages/guides/concepts/architecture) > > Follow a batch through the runner and see how run progress is stored. > [card] [Connectors](/pages/connectors/overview/introduction) > > See what Filament can read from and write to today. > [card] [Installation](/pages/guides/get-started/installation) > > Standalone binary, Go library, or Kubernetes via Helm. > [card] [Join the Slack community](https://join.slack.com/t/galaxy-io-community/shared_invite/zt-45qln0zg5-9CTvKVXugvh3sEhpD6KzJQ) > > Ask questions, report what breaks, and hear about releases before they land. > [!NOTE] > > Filament is pre-1.0. APIs, including the interfaces documented here, may > still change. # Quickstart: run Filament locally Source: https://filament.getgalaxy.io/pages/guides/get-started/quickstart Run Filament locally from source in three commands, with Postgres, NATS JetStream, the control plane, the API server, and the web UI. ## Prerequisites You need: * Docker with Compose * Go * `just` * Node 22 with pnpm for the UI Run `brew bundle` from the repo root to install the whole toolchain from the Brewfile. For Podman users, set `CONTAINER_ENGINE=podman` before running the commands below. See [engine configuration](/pages/guides/contributing/local-development) for test requirements. ## Run it **1. Start local infra** Brings up Postgres 16 and NATS with JetStream via Compose. Wait for both containers to report healthy. The next step runs database migrations against this Postgres. ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} just infra ``` **2. Run the app** This command: * Runs migrations * Starts the control plane (in-process dispatch) and the API server in the background * Waits until both `:8080/startupz` and `:8081/startupz` answer * Finally starts the UI dev server ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} just dev ``` Once up: * The API listens on `:8080` * The control plane serves its health endpoints on `:8081` * The UI dev server runs on `localhost:5173`, proxying API calls to `:8080` **3. Run the tests (optional)** ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} just test # unit tests just test-integration # integration tests using containers ``` ## Next steps Head to [Architecture](/pages/guides/concepts/architecture) to see how these pieces relate, or [Connectors](/pages/connectors/overview/introduction) to see what you can plug in as a source or sink. # Filament Python SDK Source: https://filament.getgalaxy.io/pages/guides/sdks/python Create connections, discover resources, build pipelines, and run them from Python `filament-py` is the generated Python client for Filament's API. It ships a synchronous `Filament` client and an asynchronous `AsyncFilament` client with the same methods, and requires Python 3.10 or newer. ## Installation Install [filament-py from PyPI](https://pypi.org/project/filament-py/): ```sh uv theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} uv add filament-py ``` ```sh pip theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} pip install filament-py ``` ```sh poetry theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} poetry add filament-py ``` ## Connect ```python theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} import os from filament import Filament filament = Filament( base_url=os.getenv("FILAMENT_URL", "http://localhost:8080"), ) for connector in filament.connector.list().connectors or []: print(connector.name) ``` This connects to a server with authentication disabled; see [Authentication](#authentication) for a deployed server. Request timeouts are set with `Filament(..., timeout=30)`, in seconds. ## Authentication When the server runs with an identity provider, the SDK authenticates as a service account. Create one on the Members page of the web app, or with `filament.service_account.create(...)` while signed in as an admin. Both return a client id and a client secret; the secret is shown once. Pass them to the client. It mints an access token through the server and mints again as the token nears expiry, so nothing about the identity provider reaches your code: ```python theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} filament = Filament( base_url=os.getenv("FILAMENT_URL", "http://localhost:8080"), client_id=os.getenv("FILAMENT_CLIENT_ID"), client_secret=os.getenv("FILAMENT_CLIENT_SECRET"), ) ``` A token minted elsewhere still works as `token`. For a local server with authentication disabled, pass neither. ## Create and run a pipeline A connector is an available integration, such as `sample` or `stdout`. A connection is a configured instance you create using that connector. The workflow is: 1. Create source and sink connections. 2. Discover the source's resources and select which ones to include. 3. Create a pipeline and save its graph. 4. Submit a run. This example routes five rows from each selected sample resource to stdout. It requires a running Filament deployment with a working execution backend. ```python theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} import os from uuid import uuid4 from filament import ( Filament, IngestionV1PipelineEdge, IngestionV1PipelineGraph, IngestionV1PipelineNode, ) filament = Filament( base_url=os.getenv("FILAMENT_URL", "http://localhost:8080"), ) name = f"sample-to-stdout-{uuid4().hex[:8]}" source = filament.connection.create( name=f"{name}-source", kind="CONNECTOR_KIND_SOURCE", connector="sample", ).connection sink = filament.connection.create( name=f"{name}-sink", kind="CONNECTOR_KIND_SINK", connector="stdout", ).connection resources = filament.connector.discover_resources( connection_id=source.id, ).resources or [] # Select every available resource, or set this to ["users"]. selected_resources = [ resource.name for resource in resources if resource.is_selectable ] pipeline = filament.pipeline.create(name=name).pipeline filament.pipeline.version.create( pipeline_id=pipeline.id, graph=IngestionV1PipelineGraph( nodes=[ IngestionV1PipelineNode( id="source", kind="CONNECTOR_KIND_SOURCE", connection_id=source.id, config={"rows": 5}, ), IngestionV1PipelineNode( id="sink", kind="CONNECTOR_KIND_SINK", connection_id=sink.id, ), ], edges=[ IngestionV1PipelineEdge( from_node="source", to_node="sink", resource=resource, ) for resource in selected_resources ], ), ) submitted = filament.pipeline.run(pipeline_id=pipeline.id) print("Pipeline:", pipeline.id) for edge_run in submitted.edge_runs or []: print("Run:", edge_run.run.id, edge_run.run.status) ``` `pipeline.create(...)` creates the pipeline's metadata and `pipeline.version.create(...)` saves its graph; the backend assigns the version. Both steps are required before the first run. The sample source discovers `users` and `orders`. To route every resource without enumerating them, save one edge with `resource` omitted. Submitting a run returns its id and initial status without waiting for completion. Inspect a run with `filament.run.get(run_id=run_id)`, or open the pipeline in the web app. The stdout sink writes rows to the worker's logs. The runnable version lives in [examples/smoke.py](https://github.com/galaxy-io/filament/blob/main/sdks/python/examples/smoke.py). ## Async usage `AsyncFilament` exposes the same resource groups and methods. ```python theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} import asyncio import os from filament import AsyncFilament async def main(): filament = AsyncFilament( base_url=os.getenv("FILAMENT_URL", "http://localhost:8080"), client_id=os.getenv("FILAMENT_CLIENT_ID"), client_secret=os.getenv("FILAMENT_CLIENT_SECRET"), ) response = await filament.pipeline.list() for pipeline in response.pipelines or []: print(pipeline.id, pipeline.name) asyncio.run(main()) ``` ## API groups | Group | Examples | | - | - | | `connector` | `list`, `get`, `discover_resources`, `validate_config` | | `connection` | `create`, `get`, `list`, `update`, `delete` | | `pipeline` | `create`, `get`, `list`, `update`, `validate`, `run` | | `pipeline.version` | `create`, `get`, `list` | | `pipeline.schedule` | `create`, `update` | | `pipeline.notifier` | `create`, `list`, `update`, `delete` | | `run` | `get`, `list`, `signal` | | `metrics` | `query_timeseries`, `query_aggregate` | | `auth` | `get_config`, `get_session`, `login`, `logout` | | `member` | `list`, `invite`, `set_role`, `remove` | | `service_account` | `create`, `list`, `rotate_secret`, `remove` | The SDK covers unary API methods. Streaming `TailRun` is not included. ## Responses and pagination Methods return generated models. `pipeline.create(...)` returns a response whose `pipeline` property holds the created pipeline. Fields omitted by the server are `None`, including lists, so iterate with `response.pipelines or []`. Protobuf 64-bit integer fields, such as timestamps and record counts, can be decimal strings; use `int(value)` when needed. List methods paginate explicitly: ```python theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} from filament import IngestionV1PaginationRequest page = filament.pipeline.list( pagination=IngestionV1PaginationRequest(page_size=25), ) next_cursor = page.pagination.next_cursor if page.pagination else None ``` Pass `next_cursor` as `IngestionV1PaginationRequest(cursor=next_cursor, page_size=25)` to fetch the next page while a cursor is present. Omitting pagination returns the full result set. ## Errors and retries ```python theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} from filament.core.api_error import ApiError try: filament.pipeline.get(id="missing-pipeline") except ApiError as error: print(error.status_code) # e.g. 404 print(error.body) # Connect error code, message, and optional details ``` Automatic retries are disabled because mutations are not generally idempotent. For a read you want retried, pass `request_options={"max_retries": 2}` on the call. # Filament TypeScript SDK Source: https://filament.getgalaxy.io/pages/guides/sdks/typescript Create connections, discover resources, build pipelines, and run them from TypeScript or JavaScript `@galaxy-io/filament-ts` is the generated TypeScript client for Filament's API. It ships as ES modules with type declarations, has no runtime dependencies, and runs on Node 18 or newer or any runtime with `fetch`. ## Installation ```sh npm theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} npm install @galaxy-io/filament-ts ``` ```sh pnpm theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} pnpm add @galaxy-io/filament-ts ``` ```sh yarn theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} yarn add @galaxy-io/filament-ts ``` ```sh bun theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} bun add @galaxy-io/filament-ts ``` ## Connect ```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} import { FilamentClient } from "@galaxy-io/filament-ts"; const filament = new FilamentClient({ baseUrl: process.env.FILAMENT_URL ?? "http://localhost:8080", auth: false, }); const { connectors } = await filament.connector.list({}); for (const connector of connectors ?? []) { console.log(connector.name); } ``` This connects to a server with authentication disabled; see [Authentication](#authentication) for a deployed server. Request timeouts are set with `timeoutInSeconds` and retries with `maxRetries`, on the client or per call. ## Authentication When the server runs with an identity provider, the SDK authenticates as a service account. Create one on the Members page of the web app, or with `filament.serviceAccount.create(...)` while signed in as an admin. Both return a client id and a client secret; the secret is shown once. Pass them to the client. It mints an access token through the server and mints again as the token nears expiry, so nothing about the identity provider reaches your code: ```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} const filament = new FilamentClient({ baseUrl: process.env.FILAMENT_URL ?? "http://localhost:8080", clientId: process.env.FILAMENT_CLIENT_ID!, clientSecret: process.env.FILAMENT_CLIENT_SECRET!, }); ``` A token minted elsewhere still works as `token`. For a local server with authentication disabled, pass `auth: false` instead; the client refuses to construct without one of the three. ## Create and run a pipeline A connector is an available integration, such as `sample` or `stdout`. A connection is a configured instance you create using that connector. The workflow is: 1. Create source and sink connections. 2. Discover the source's resources and select which ones to include. 3. Create a pipeline and save its graph. 4. Submit a run. This example routes five rows from each selected sample resource to stdout. It requires a running Filament deployment with a working execution backend. ```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} import { randomUUID } from "node:crypto"; import { FilamentClient } from "@galaxy-io/filament-ts"; const filament = new FilamentClient({ baseUrl: process.env.FILAMENT_URL ?? "http://localhost:8080", auth: false, }); const name = `sample-to-stdout-${randomUUID().slice(0, 8)}`; const { connection: source } = await filament.connection.create({ name: `${name}-source`, kind: "CONNECTOR_KIND_SOURCE", connector: "sample", }); const { connection: sink } = await filament.connection.create({ name: `${name}-sink`, kind: "CONNECTOR_KIND_SINK", connector: "stdout", }); const { resources } = await filament.connector.discoverResources({ connectionId: source!.id, }); // Select every available resource, or set this to ["users"]. const selectedResources = (resources ?? []) .filter((resource) => resource.isSelectable) .map((resource) => resource.name!); const { pipeline } = await filament.pipeline.create({ name }); await filament.pipeline.version.create({ pipelineId: pipeline!.id, graph: { nodes: [ { id: "source", kind: "CONNECTOR_KIND_SOURCE", connectionId: source!.id, config: { rows: 5 }, }, { id: "sink", kind: "CONNECTOR_KIND_SINK", connectionId: sink!.id, }, ], edges: selectedResources.map((resource) => ({ fromNode: "source", toNode: "sink", resource, })), }, }); const submitted = await filament.pipeline.run({ pipelineId: pipeline!.id }); console.log("Pipeline:", pipeline!.id); for (const edgeRun of submitted.edgeRuns ?? []) { console.log("Run:", edgeRun.run?.id, edgeRun.run?.status); } ``` `pipeline.create(...)` creates the pipeline's metadata and `pipeline.version.create(...)` saves its graph; the backend assigns the version. Both steps are required before the first run. The sample source discovers `users` and `orders`. To route every resource without enumerating them, save one edge with `resource` omitted. Submitting a run returns its id and initial status without waiting for completion. Inspect a run with `filament.run.get({ runId })`, or open the pipeline in the web app. The stdout sink writes rows to the worker's logs. ## API groups | Group | Examples | | - | - | | `connector` | `list`, `get`, `discoverResources`, `validateConfig` | | `connection` | `create`, `get`, `list`, `update`, `delete` | | `pipeline` | `create`, `get`, `list`, `update`, `validate`, `run` | | `pipeline.version` | `create`, `get`, `list` | | `pipeline.schedule` | `create`, `update` | | `pipeline.notifier` | `create`, `list`, `update`, `delete` | | `run` | `get`, `list`, `signal` | | `metrics` | `queryTimeseries`, `queryAggregate` | | `auth` | `getConfig`, `getSession`, `login`, `logout` | | `member` | `list`, `invite`, `setRole`, `remove` | | `serviceAccount` | `create`, `list`, `rotateSecret`, `remove` | The SDK covers unary API methods. Streaming `TailRun` is not included. ## Responses and pagination Methods resolve to typed responses. `pipeline.create(...)` resolves to an object whose `pipeline` property holds the created pipeline. Request and response types are exported under the `Filament` namespace. Fields omitted by the server are `undefined`, including lists, so iterate with `response.pipelines ?? []`. Protobuf 64-bit integer fields, such as timestamps and record counts, can be decimal strings; use `Number(value)` or `BigInt(value)` when needed. List methods paginate explicitly: ```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} const page = await filament.pipeline.list({ pagination: { pageSize: 25 }, }); const nextCursor = page.pagination?.nextCursor; ``` Pass `nextCursor` as `pagination: { cursor: nextCursor, pageSize: 25 }` to fetch the next page while a cursor is present. Omitting pagination returns the full result set. ## Errors and retries ```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} import { FilamentError } from "@galaxy-io/filament-ts"; try { await filament.pipeline.get({ id: "missing-pipeline" }); } catch (error) { if (error instanceof FilamentError) { console.log(error.statusCode); // e.g. 404 console.log(error.body); // Connect error code, message, and optional details } } ``` Timeouts throw `FilamentTimeoutError`. The client retries failed requests twice by default; pass `maxRetries: 0` on calls that must not repeat, since mutations are not generally idempotent. # Filament CLI Source: https://filament.getgalaxy.io/pages/guides/usage/cli Manage local and deployed Filament from the command line, from connections and pipelines to runs and their progress. The `filament` CLI manages connections, pipelines, and runs. It works against the local runtime or a deployed Filament server. A context selects the target, and most management commands work with both. The built-in `local` context needs no external services. It runs a local engine, `filament-standalone`, that the CLI downloads for its own version on first use. State, secrets, run history, and checkpoints survive between commands. ## Install Run the install script on Linux or macOS: ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} curl -fsSL https://getgalaxy.io/filament/install | sh ``` On macOS, you can also use Homebrew: ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} brew install galaxy-io/tap/filament ``` Prebuilt binaries are available from [GitHub Releases](https://github.com/galaxy-io/filament/releases). Confirm the installation with `filament version`. ## Interactive mode Open the main menu in a terminal: ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} filament -i ``` The menu can create and manage connections and pipelines, discover resources, run pipelines, inspect run history, and edit local configuration. You can also open a specific wizard: ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} filament source create filament sink create filament pipeline create filament run ``` Interactive mode is optional. Every operation also has flags for scripts and CI. ## Commands | Command | What it does | | - | - | | `filament source ` | Manage sources | | `filament sink ` | Manage sinks | | `filament pipeline ` | Manage pipelines | | `filament run [pipeline]` | Run a saved pipeline or an inline transfer | | `filament run list [pipeline]` | List run history | | `filament up` | Keep the local engine and web UI running | | `filament down` | Stop the local engine started by `up` | | `filament engine install` | Download the local engine ahead of first use | | `filament status` | Show the selected context and runtime | | `filament context ` | Manage targets | | `filament auth ` | Manage remote authentication | | `filament config ` | Manage local YAML configuration | `list` can be shortened to `ls`, and `context` to `ctx`. Add `--help` after a command to see its flags. When a connector is selected, help also lists that connector's fields. The global flags work in any position: | Flag | What it does | | - | - | | `--context NAME` | Use a context for one command | | `--config PATH` | Use another local YAML file | | `-i`, `--interactive` | Open interactive menus | | `--layout boxed\|plain` | Select the table layout | ## Connections Connector fields become flags with a `source-` or `sink-` prefix. Underscores become hyphens. For example, `database_name` becomes `--source-database-name`. Create two local connections: ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} filament source create production \ --source-connector postgres \ --source-connection-method url \ --source-dsn-env POSTGRES_DSN filament sink create warehouse \ --sink-connector postgres \ --sink-connection-method url \ --sink-dsn-env POSTGRES_SINK_DSN ``` List them with `filament source ls` and `filament sink ls`. `edit` changes only the fields you pass. Use `--unset source-FIELD` or `--unset sink-FIELD` to remove an optional field. `delete` asks for confirmation unless you pass `--force`. A connection cannot be deleted while a pipeline uses it. ### Secrets Secret fields accept a value or an environment reference. These forms are equivalent in a local context: ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} --source-dsn-env POSTGRES_DSN --source-dsn '$POSTGRES_DSN' --source-dsn '${POSTGRES_DSN}' ``` The reference is stored as `env:POSTGRES_DSN` and resolved from the CLI's environment when needed. Quote `$NAME` forms so the shell does not expand them first. References inside nested configuration are resolved too. On a remote context, secret references belong to the deployment's secret provider; they do not read the CLI process's environment. A secret value sent to the server is removed from connection configuration and stored by that provider. ## Discover resources Discover a saved source: ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} filament source discover production ``` The result shows resource names, primary keys, and estimated row counts. Use `--refresh` to bypass a cached discovery result. You can also discover without saving the source: ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} filament source discover \ --source-connector postgres \ --source-connection-method url \ --source-dsn-env POSTGRES_DSN ``` ## Pipelines Create a pipeline from saved connections: ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} filament pipeline create users-copy \ --source production \ --sink warehouse \ --resources users,audit,logs \ --sync-mode full \ --write-mode replace ``` Leaving out `--resources` selects every resource discovered by the source. Available sync and write modes depend on the selected connectors. Pipeline-scoped connector fields use the same prefixes. For example, `--sink-schema filament` selects a destination schema. When a sink declares a schema, namespace, database, or key-prefix field and it is empty, the CLI uses the normalized source name. ## Run pipelines Run a saved pipeline on the selected context: ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} filament run users-copy ``` A saved pipeline without overrides runs on its target. Local runs keep history and checkpoints in SQLite. Remote runs execute in the deployment. The CLI streams progress until every run finishes. Inspect run history with: ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} filament run ls filament run ls users-copy ``` List commands show 25 items by default. Use `--limit` to change the page size and the printed `--next` cursor to fetch the next page. ### Direct local runs An inline transfer runs locally without saving connections or a pipeline: ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} filament run \ --source-connector postgres \ --source-connection-method url \ --source-dsn-env POSTGRES_DSN \ --sink-connector stdout ``` Flags passed with a saved pipeline also create a direct local run. They can change resources, modes, or pipeline-scoped connector fields for that run. Direct runs support full reads only. They do not keep run history or checkpoints. Remote contexts run saved pipelines without overrides; edit the remote pipeline before running it when its configuration must change. ## Local engine Normal local commands start the local engine, perform one operation, and stop it. While `up` is running, local commands use that engine instead. Use `up` to keep the API and web UI available: ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} filament up ``` The default address is `127.0.0.1:8080`. Run it in the background with: ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} filament up --detach filament status filament down ``` `filament up` only accepts a local context. It uses the same SQLite database and secrets as other local commands. The engine is meant for local testing, not production. `filament engine install` downloads it ahead of time, for example in CI or before going offline. Set `FILAMENT_ENGINE` to run a different binary. ## Local configuration The built-in local context reads `~/.config/filament/filament.yaml`, or `$XDG_CONFIG_HOME/filament/filament.yaml` when `XDG_CONFIG_HOME` is set. `filament config path` prints the active path. The YAML file is a declarative input to the local runtime: ```yaml theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} version: 1 sources: production: type: postgres config: connection_method: url dsn: env:POSTGRES_DSN sinks: warehouse: type: stdout pipelines: users-copy: source: ref: production sink: ref: warehouse resources: - users sync_mode: full write_mode: replace ``` The file is input, not an inventory. The CLI applies it when it changes and creates or updates the declared connections and pipelines. Removing an entry from YAML does not delete it from local state. Items created through the CLI or web app remain in SQLite and are not written back to YAML. Use `filament config validate` to check the file and `filament config edit` to open it in `$VISUAL` or `$EDITOR`. An invalid edit leaves a recovery file. Raw YAML commands apply only to local contexts. ## Remote contexts Add an unauthenticated deployment and select it: ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} filament context add production --server https://filament.example.com filament context use production ``` Use `--context production` to select it for one command instead. `filament status` shows the active context and whether its server is reachable. For an authenticated deployment, log in with a service account: ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} filament --context production auth login \ --server https://filament.example.com ``` The CLI prompts for the client ID and secret when they are not passed as flags. It verifies the credentials, creates and selects the context, and refreshes access tokens when needed. `filament auth status` shows the current state; `filament auth logout` removes the context's credentials. Contexts and credentials are stored separately with owner-only permissions. ## Output Tables use the boxed layout by default. Select a plain layout with `--layout plain` or `FILAMENT_LAYOUT=plain`. A layout chosen from the interactive Settings menu is saved for later commands. Set `NO_COLOR` to disable terminal colors. # Embed Filament in a Go service Source: https://filament.getgalaxy.io/pages/guides/usage/embedded Run Filament inside your own Go process as a library instead of as a separate server, and drive runs from your code. Call `app.Run` to serve Filament's API and execute runs inside your Go process. By default, it uses in-memory SQLite and an in-process event bus, so state and events disappear when the process restarts. You can replace them with Postgres and NATS for durability. The call listens on `INGESTION_ADDR` (default `:8080`) and blocks until its context is canceled or a component fails. Blank imports register only the connectors your binary needs. ## Minimal embed This compiles and runs as-is: ```go theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} package main import ( "context" "log" "github.com/galaxy-io/filament/app" _ "github.com/galaxy-io/filament/connectors/postgres" _ "github.com/galaxy-io/filament/connectors/stdout" ) func main() { log.Fatal(app.Run(context.Background())) } ``` With no options, `app.Run` uses an in-process event bus, in-memory SQLite, and the default connector registries populated by the blank imports. > [!WARNING] > > The default in-memory SQLite database is discarded when the process exits. > Use file-backed SQLite or PostgreSQL to keep state across restarts. See the [connector catalog](/pages/connectors/overview/introduction) for what is available to import, and [writing a source](/pages/connectors/building-a-connector/writing-a-source) to add your own. ## Options Every default is replaceable through an `app.Option`. | Option | Replaces | | - | - | | `WithBus` | The in-process event bus | | `WithDataStore` | The in-memory SQLite datastore | | `WithMetricsStore` | The dashboard metrics backend (unimplemented by default) | | `WithSecrets` | The secrets provider | | `WithSources` | The source registry | | `WithSinks` | The sink registry | | `WithUI` | The HTTP handler at `/` (e.g. `ui.Handler()`) | | `WithLogger` | The logger | Whatever store you pass to `WithDataStore` must also implement `filament.ScheduleStore`, or `Run` returns an error — the scheduler needs it. Both the SQLite and PostgreSQL stores qualify. ## Durable embed One durable setup uses the same bus, store, and secrets as the shipped binaries: ```go theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} pool, err := postgres.NewPool(ctx, dsn) // datastore/postgres if err != nil { log.Fatal(err) } bus, err := nats.New(natsURL, events.Codec) // eventbus/nats if err != nil { log.Fatal(err) } secrets, err := secretpg.NewFromEnv(pool) // secret/postgres, reads ENCRYPTION_KEY if err != nil { log.Fatal(err) } err = app.Run(ctx, app.WithBus(bus), app.WithDataStore(postgres.New(pool)), app.WithSecrets(secrets), ) ``` Each swap has a clear role: * `eventbus/nats` gives you durable, replayable JetStream delivery * `datastore/postgres` persists everything Filament tracks * secrets can come from `secret/postgres` (AES-GCM, `ENCRYPTION_KEY`), `secret/aws`, or the read-only `secret/env` provider ## Advanced composition When `app.Run` composes too much (you want only some modules, or a single run with no server), the pieces underneath are public: * `module.MountAll` mounts a chosen set of modules against `module.Deps` * `eventbus/host` runs them against a bus * `runner.RunOne` executes exactly one persisted run and exits, which is what the worker binary does Most embedders never need this layer. # Filament web app Source: https://filament.getgalaxy.io/pages/guides/usage/web The web app that ships inside the Filament server, for building pipelines on a canvas, running them, and watching progress. The web app ships inside the server binary and serves at its root, `:8080` by default. It is a client of the [ConnectRPC API](/pages/api-reference/service/introduction) and nothing else. Every button maps to an RPC you can call yourself, so anything you do here is scriptable later. ![Filament web app in light mode](https://mintcdn.com/galaxy-filament/yaBavYKQJ_HPSIYt/assets/images/filament-light.png?fit=max\&auto=format\&n=yaBavYKQJ_HPSIYt\&q=85\&s=dec4b70054cdd5b3ed44fe0f5b2fad02) The Filament web app Three objects make up the model, and the navbar follows them: * A **connection** is a configured connector. Credentials plus connection-scoped settings, saved once and reused. * A **pipeline** is a graph of connections. Edges route resources from a source to a sink, each carrying a read mode and a write mode. * A **run** is one execution of a pipeline route, tracked from request to verified write. ## Observability The landing page. A banner names any pipeline whose latest run failed, with its raw error one click away. Three tiles cover runs, throughput and usage over the timeframe you pick, each with a chart and the pipelines behind it. Throughput and usage can split their chart by pipeline or by status. Throughput switches between records and volume, usage between CPU and memory, and runs between past and upcoming, which History follows. Below them, the pipelines that need attention get a bar per hour or day beside what is scheduled next and every source and sink with the pipelines that use it. History lists every run. The charts come from the metrics service, which aggregates the same run rows the rest of the app reads. ![Observability dashboard in light mode](https://mintcdn.com/galaxy-filament/yaBavYKQJ_HPSIYt/assets/images/filament-observability-light.png?fit=max\&auto=format\&n=yaBavYKQJ_HPSIYt\&q=85\&s=04e83ae64f657e300e5bee9d342bbe35) Observability, the landing page ## Connections Sources and Sinks each list what you have already connected. A card carries the connector it uses, how many pipelines depend on it, and its current version, which is the optimistic lock that keeps concurrent edits from overwriting each other. ![Saved source connections in light mode](https://mintcdn.com/galaxy-filament/yaBavYKQJ_HPSIYt/assets/images/filament-connections-light.png?fit=max\&auto=format\&n=yaBavYKQJ_HPSIYt\&q=85\&s=ba826e5f81a79bde7e9ff7ad93cb07c0) Saved sources New source opens the connector catalog. It shows the connectors compiled into the running server and labels each one alpha, beta, or stable. ![Connector catalog in light mode](https://mintcdn.com/galaxy-filament/yaBavYKQJ_HPSIYt/assets/images/filament-connections-create-light.png?fit=max\&auto=format\&n=yaBavYKQJ_HPSIYt\&q=85\&s=2235a4db6919c66e34ceea3263e1b40a) The connector catalog Connecting one generates a form from that connector's config schema. The connector declares its fields, types, defaults, and visibility rules, and the form renders exactly those. Postgres CDC settings, for example, appear only once you set replication to `cdc`. Two details worth knowing: * **Scope.** Connections hold connection-scoped fields only, the ones that describe reaching the system. Pipeline-scoped fields like a destination schema are set later, per pipeline. * **Secrets.** Secret-typed fields are extracted on save and stored through the configured secrets provider. Reads return them masked, and editing leaves a stored secret in place unless you submit a new value. Before saving, the server checks required fields, value types, and other local configuration rules. It does not make a live connection at this point, so an unreachable hostname or rejected password can still fail during discovery or a run. ## Pipelines The list view shows each pipeline with its schedule, recent run outcomes, and last duration. Opening one gives you the canvas, the history, and the settings. ![Pipelines list in light mode](https://mintcdn.com/galaxy-filament/yaBavYKQJ_HPSIYt/assets/images/filament-pipelines-light.png?fit=max\&auto=format\&n=yaBavYKQJ_HPSIYt\&q=85\&s=d39f906e3dfea2f4e9abe1b40a3a008d) The pipelines list ### Canvas The canvas edits the pipeline graph. Nodes are connections and edges route selected resources between them. Standard sources let you choose full or incremental reads and an appropriate destination write mode. CDC sources use the connection's change stream and let the route append events or merge them into current state. Incremental reads may also need a cursor column. [Replication modes](/pages/guides/concepts/replication-modes) explains the valid combinations. Edits are validated as you work. Unmet requirements appear on the edge itself, so a table without a primary key blocks an upsert route before you save rather than failing at run time. Saving creates a new immutable pipeline version. In-flight runs keep executing against the version they started with. Running a continuous pipeline again after a save hands the live stream over to the new version, so a table you added is read in full and joins the stream. The Run button opens the run modal. Run now starts the pipeline as configured. Changing a section makes it a custom run for that run only. Resources lists every routed resource, and one set to Resync is read from the beginning again. On a bounded pipeline with a standard source, unchecking a resource leaves it out of that run. Worker configuration overrides the pod template. Reset puts every section back to its default. ![Pipeline canvas in light mode](https://mintcdn.com/galaxy-filament/yaBavYKQJ_HPSIYt/assets/images/filament-pipeline-canvas-light.png?fit=max\&auto=format\&n=yaBavYKQJ_HPSIYt\&q=85\&s=15bb4f04db1e69778b716e5283b8a167) The pipeline canvas ### History Every run, newest first, with per-resource record and byte tallies and a final status. An active run streams, so progress arrives as the engine publishes it rather than on a poll. Statuses map directly to engine states. A failed run that saved resumable progress enters `PARTIAL` and continues from its last checkpoint when requested again. See [Runs and recovery](/pages/guides/concepts/runs-and-recovery). ![Pipeline run history in light mode](https://mintcdn.com/galaxy-filament/yaBavYKQJ_HPSIYt/assets/images/filament-pipeline-history-light.png?fit=max\&auto=format\&n=yaBavYKQJ_HPSIYt\&q=85\&s=cc1b809d3f4ab6dca4282bf17cb91fe5) Run history ### Settings Name and description, a cron schedule with a timezone and an overlap policy, and the worker configuration that sizes the machines runs execute on. Metadata edits apply in place and do not create a version. ![Pipeline settings in light mode](https://mintcdn.com/galaxy-filament/yaBavYKQJ_HPSIYt/assets/images/filament-pipeline-settings-light.png?fit=max\&auto=format\&n=yaBavYKQJ_HPSIYt\&q=85\&s=77e078ff88924b9b48b78b8e6cca97ad) Pipeline settings ## Contributing to the web app For contributors, the web app lives in `ui/` as a React 18 and TypeScript app built with Vite: * **Routing and data.** TanStack Router with file-based routes in `src/host/routes/`, and TanStack Query for server state. API calls go through ConnectRPC's web transport with `connect-query` bindings. * **Generated types.** `src/gen/` holds the protobuf-generated TypeScript. Never edit it by hand. `pnpm codegen` (or `just gen` at the repo root) regenerates it with `buf` after a proto change. * **Design system.** Components, tokens, and theming come from [`@galaxy-io/dls`](https://www.npmjs.com/package/@galaxy-io/dls). The app mounts its stylesheet and `GalaxyThemeProvider` in `src/host/main.tsx`. Browse the catalog at [storybook.getgalaxy.io](https://storybook.getgalaxy.io) before building anything new. * **Styling and the canvas.** Component-local styles use Linaria. The canvas is built on `@xyflow/react`. Icons are Phosphor. * **Formatting.** Biome formats and lints the UI. The server serves the compiled bundle only when built with the `embedui` tag, which `just binaries` and the published images do. For development, `just ui` runs Vite on `:5173` against a local API. See [Local development](/pages/guides/contributing/local-development) for the rest of the workflow. # Run your first Filament pipeline Source: https://filament.getgalaxy.io/pages/how-to/first-pipeline Install the Filament CLI and run a pipeline end to end in five minutes with the built-in Sample source and stdout sink. No database, Docker, or account needed. This guide runs Filament on your machine with nothing but the `filament` CLI. You move generated rows from the [Sample](/pages/connectors/sources/sample) source to the [stdout](/pages/connectors/sinks/standard-output) sink, which prints every record as JSON. Then you save the same route as a pipeline, run it again with history, define it in YAML, and open it in the web app. The local CLI keeps its state in SQLite and runs an in-process event bus, so it needs no Postgres, NATS, Docker, or cloud account. ## 1. Install the CLI ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} curl -fsSL https://getgalaxy.io/filament/install | sh ``` On macOS you can use Homebrew instead: ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} brew install galaxy-io/tap/filament ``` Check the install and the active context: ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} filament version filament status ``` ```text theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} Context local Kind local Config ~/.config/filament/filament.yaml State ~/.config/filament/filament.db Deployment per command; keep one running with filament up ``` ## 2. Move data with one command An inline run moves data without saving anything: ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} filament run \ --source-connector sample \ --sink-connector stdout \ --resources users,orders \ --write-mode replace ``` ```text theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} {"i":0,"resource":"users","_filament_run_id":"cli-dm98fwgzpe32","_filament_run_started_at":"2026-10-20T00:18:10.284676Z"} {"i":1,"resource":"users","_filament_run_id":"cli-dm98fwgzpe32","_filament_run_started_at":"2026-10-20T00:18:10.284676Z"} {"i":2,"resource":"users","_filament_run_id":"cli-dm98fwgzpe32","_filament_run_started_at":"2026-10-20T00:18:10.284676Z"} {"i":0,"resource":"orders","_filament_run_id":"cli-dm98fwgzpe32","_filament_run_started_at":"2026-10-20T00:18:10.284676Z"} {"i":1,"resource":"orders","_filament_run_id":"cli-dm98fwgzpe32","_filament_run_started_at":"2026-10-20T00:18:10.284676Z"} {"i":2,"resource":"orders","_filament_run_id":"cli-dm98fwgzpe32","_filament_run_started_at":"2026-10-20T00:18:10.284676Z"} # {"sink":"stdout","run":"cli-dm98fwgzpe32","resources":[{"name":"orders","uri":"stdout://cli-dm98fwgzpe32/orders","records":3,"bytes":369},{"name":"users","uri":"stdout://cli-dm98fwgzpe32/users","records":3,"bytes":366}]} Run cli-dm98fwgzpe32 completed: 6 records, 735 bytes. ``` What you are looking at: * **One JSON line per record.** The Sample source emits three rows per resource by default. * **`_filament_run_id` and `_filament_run_started_at`.** Filament adds these to every row it writes, in every sink, so you can trace a row back to its run. * **The `#` receipt line.** The sink reports what it wrote for each resource, with record and byte counts. > [!NOTE] > > stdout supports only `replace` and `append` writes. Without > `--write-mode replace`, the run uses the default `upsert` and fails with > `sink "stdout" does not support write policy "upsert"`. ## 3. Save a source, a sink, and a pipeline Saved connections and pipelines keep run history, checkpoints, and settings in local state. ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} filament source create demo --source-connector sample filament sink create console --sink-connector stdout ``` See what the source offers: ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} filament source discover demo ``` ```text theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} Resource Display name Selectable Primary key Est. rows users – ✓ id – orders – ✓ id – ``` Create a pipeline. `--source-rows` is a pipeline-level setting, so you can run the same source with different settings in different pipelines: ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} filament pipeline create demo-to-console \ --source demo \ --sink console \ --resources users,orders \ --sync-mode full \ --write-mode replace \ --source-rows 5 ``` ## 4. Run it and check history ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} filament run demo-to-console ``` ```text theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} ... Run e8fb7036-ea00-56f4-8448-2fed93ff48b8 completed: 10 records, 1425 bytes. ``` ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} filament run ls demo-to-console ``` ```text theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} Run Pipeline Version Status Records Volume Started Duration e8fb7036-ea00-56f4-8448-2fed93ff48b8 demo-to-console v1 ● Completed 10 1.4 KB 2026-10-19 20:18 2ms ``` ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} filament pipeline ls ``` ```text theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} Name Source Sink Resources Sync Write Schedule Status Last run demo-to-console demo console 2 Full Replace – ● Completed just now ``` ## 5. Define pipelines in YAML The local context also reads pipelines from `~/.config/filament/filament.yaml` (`filament config path` prints the exact path). Settings that belong to the pipeline, like `rows`, go on the pipeline's source node: ```yaml theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} version: 1 sources: demo-yaml: type: sample sinks: console-yaml: type: stdout pipelines: demo-from-yaml: source: ref: demo-yaml config: rows: 2 sink: ref: console-yaml resources: - users sync_mode: full write_mode: replace ``` ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} filament config validate filament run demo-from-yaml ``` ```text theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} filament.yaml is structurally valid. ... Run 7c8e3ab0-38d0-5e08-bb99-f4ef03d54360 completed: 2 records, 282 bytes. ``` The CLI applies the file when it changes. Removing an entry from the file does not delete it from local state. ## 6. Open the web app ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} filament up --detach filament status ``` ```text theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} Deployment running (pid 13350) UI http://127.0.0.1:8080 ``` Open `http://127.0.0.1:8080` to see your pipelines on the canvas, run them, add a schedule, and inspect each run. Stop it with `filament down`. ## Next steps Swap the Sample source and stdout sink for real systems. The commands stay the same; only the connector and its fields change. > [card] [PostgreSQL to ClickHouse](/pages/how-to/postgres-to-clickhouse) > > Runs on the local CLI. Snapshot, then incremental upserts. > [card] [PostgreSQL to Snowflake](/pages/how-to/postgres-to-snowflake) > > Change data capture with merged inserts, updates, and deletes. > [card] [Replication modes](/pages/guides/concepts/replication-modes) > > How full, incremental, and CDC reads pair with write policies. > [card] [CLI reference](/pages/guides/usage/cli) > > Every command, flag, context, and output option. ## FAQ ### Do I need Docker or a database to try Filament? No. The local context runs Filament in process with SQLite and an in-process event bus. You need a datastore and an event bus only when you deploy Filament as a shared service. ### Can I run change data capture on the local CLI? No. CDC pipelines need the PostgreSQL datastore, so they run on a deployed Filament server. Full and incremental pipelines run locally. ### Is Filament free? Yes. Filament is open source under the Apache 2.0 license. The engine and every connector are on [GitHub](https://github.com/galaxy-io/filament). ### Where does the local CLI keep its state? In `filament.db` next to `filament.yaml`. `filament status` prints both paths. # Replicate MySQL to Snowflake with CDC Source: https://filament.getgalaxy.io/pages/how-to/mysql-to-snowflake Replicate MySQL 8.0+ to Snowflake with binlog change data capture in Filament. Snapshot each table, then merge inserts, updates, deletes, and new columns. Filament replicates MySQL to Snowflake by connecting as a binlog replica. The first run snapshots each table at an exact binlog position, and later runs read row events from that position up to the server's current position, then stop. Inserts, updates, and deletes are merged into typed Snowflake tables by primary key. Schedule runs as often as you need fresh data. > [!NOTE] > > The [MySQL source](/pages/connectors/sources/mysql) is **beta** and supports > MySQL 8.0 and later. The [Snowflake sink](/pages/connectors/sinks/snowflake) > is **alpha**. In a test against MySQL 8.4 with 1.1M rows, a catch-up run after 1,000 updates, 200 deletes, 1 insert, an `ALTER TABLE ... ADD COLUMN`, and 10 updates to the new column moved exactly 1,211 records, and the new column appeared in the destination. ## Prerequisites * MySQL 8.0+ with `binlog_format=ROW`, InnoDB tables, and primary keys * Binlog retention longer than the gap between runs * A Snowflake account where you can create a role, warehouse, database, and user * A Filament deployment backed by the PostgreSQL datastore, with the CLI pointed at it. The local SQLite CLI context cannot run CDC. See the note in [Replicate PostgreSQL to Snowflake](/pages/how-to/postgres-to-snowflake#prerequisites). ## 1. Prepare MySQL Check the binlog settings: ```sql theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} SHOW VARIABLES WHERE Variable_name IN ('log_bin', 'binlog_format', 'gtid_mode', 'binlog_expire_logs_seconds'); ``` `log_bin` must be `ON` and `binlog_format` must be `ROW`, both MySQL 8 defaults. `gtid_mode=ON` is preferred because GTID positions survive a replica promotion. On Amazon RDS and Aurora, binlog retention is controlled with `mysql.rds_set_configuration('binlog retention hours', 24)`. Create a replication user: ```sql theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} CREATE USER 'filament'@'%' IDENTIFIED BY 'change-me'; GRANT REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'filament'@'%'; GRANT SELECT, LOCK TABLES ON shop.* TO 'filament'@'%'; ``` `LOCK TABLES` is held for a moment while each table is first bootstrapped, so the snapshot and the binlog position line up exactly. Writers wait for a couple of round trips and nothing else is blocked. ## 2. Prepare Snowflake Create the key pair, role, warehouse, database, and service user exactly as in [step 2 of the PostgreSQL to Snowflake guide](/pages/how-to/postgres-to-snowflake#2-prepare-snowflake). One service user can serve every Filament pipeline. ## 3. Create the source and sink ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} filament source create shop-mysql \ --source-connector mysql \ --source-connection-method url \ --source-dsn "filament:change-me@tcp(mysql.internal:3306)/shop?tls=true" \ --source-replication cdc filament sink create snowflake \ --sink-connector snowflake \ --sink-account myorg-myaccount \ --sink-username FILAMENT_USER \ --sink-warehouse FILAMENT_WAREHOUSE \ --sink-database-name FILAMENT_DATABASE \ --sink-role FILAMENT_ROLE \ --sink-auth "$(jq -n --rawfile k filament_key.p8 '{type: "key_pair", private_key: $k}')" ``` The DSN uses the Go MySQL driver format. `mysql://` URLs are accepted too. CDC needs a TCP connection, so Unix socket DSNs are rejected. ## 4. Create the pipeline and run the snapshot ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} filament source discover shop-mysql filament pipeline create mysql-to-snowflake \ --source shop-mysql \ --sink snowflake \ --resources customers,orders \ --sync-mode cdc \ --write-mode merge \ --sink-schema SHOP filament run mysql-to-snowflake ``` Pass `--sync-mode cdc` explicitly, or the CLI's default read mode is rejected by the CDC source. If more than one replica reads the same MySQL server, give each pipeline a unique `--source-server-id`. ## 5. Catch up on changes ```sql theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} UPDATE orders SET status = 'shipped', updated_at = NOW(6) WHERE id BETWEEN 1 AND 1000; DELETE FROM orders WHERE id BETWEEN 5001 AND 5200; INSERT INTO orders VALUES (2000001, 1, 1, 9.99, 'placed', NOW(6), NOW(6)); ALTER TABLE customers ADD COLUMN loyalty_tier VARCHAR(16) NULL; UPDATE customers SET loyalty_tier = 'gold', updated_at = NOW(6) WHERE id <= 10; ``` ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} filament run mysql-to-snowflake ``` The run reads the 1,211 changed rows from the binlog. The added `loyalty_tier` column is created on the destination table and filled for the 10 updated customers. ## 6. Verify ```sql theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} -- MySQL SELECT COUNT(*) FROM shop.orders; -- Snowflake SELECT COUNT(*) FROM FILAMENT_DATABASE.SHOP.ORDERS; SELECT COUNT(*) FROM FILAMENT_DATABASE.SHOP.CUSTOMERS WHERE LOYALTY_TIER = 'gold'; -- 10 ``` ## 7. Schedule it Add a cron schedule in the [web app](/pages/guides/usage/web) or with the [Pipelines API](/pages/api-reference/service/pipelines). Keep the interval well inside your binlog retention. ## Going to production * **Use merge writes.** A crash during a transaction replays the whole transaction, and `merge` converges by primary key. * **Incompatible DDL:** an added nullable column is handled. A change that makes a binlog event no longer match the cached column list fails the run instead of mis-mapping values. Re-snapshot that table. * **Start without a snapshot:** `--source-snapshot-mode none` streams from the current binlog position and needs neither `LOCK TABLES` nor InnoDB. ## Troubleshooting ### `CDC connections do not accept a read mode` Add `--sync-mode cdc` to `filament pipeline create`. ### Column-count mismatch between a binlog event and the table Incompatible DDL changed the table. Re-snapshot it. ### Stream cannot start from the captured position Binlog retention expired before the run read it. Increase retention and re-snapshot. ### Snowflake `failed to auth for unknown reason. HTTP: 404` The account identifier is wrong. Use the `organization-account` form. More errors are in [Troubleshooting](/pages/how-to/troubleshooting). ## FAQ ### Does Filament support MariaDB? The MySQL source accepts `mariadb://` URLs, but it is documented and tested for MySQL 8.0 and later. ### Does Filament need GTIDs? No. With GTIDs off, Filament tracks binlog file and position. ### Does the snapshot lock my tables? Only briefly. Filament takes read locks in a side session for the instant between capturing the binlog position and opening the snapshot. ### Does it work with Amazon RDS and Aurora MySQL? It uses standard binlog replication, so it works where binlogs are enabled and retained. Set retention with `mysql.rds_set_configuration`. ## Related * [Snowflake sink reference](/pages/connectors/sinks/snowflake) * [MySQL source reference](/pages/connectors/sources/mysql) * [MySQL binlog CDC explained](https://www.getgalaxy.io/articles/mysql-cdc-binlog-replication-explained) * [MySQL to Snowflake replication guide](https://www.getgalaxy.io/articles/mysql-to-snowflake-the-complete-replication-guide) # Replicate PostgreSQL to BigQuery with CDC Source: https://filament.getgalaxy.io/pages/how-to/postgres-to-bigquery Replicate PostgreSQL to BigQuery with change data capture in Filament. Stream rows through the Storage Write API and MERGE inserts, updates, and deletes. Filament replicates PostgreSQL to BigQuery with change data capture. It reads the PostgreSQL logical replication stream, snapshots each table through the same consistent point, and streams Arrow batches into BigQuery staging tables with the Storage Write API. At commit, one `MERGE` per table applies inserts, updates, and deletes by primary key. Each run catches up to the current WAL position and stops, so you schedule runs as often as you need fresh data. > [!NOTE] > > The [PostgreSQL source](/pages/connectors/sources/postgres) is **beta** and > the [BigQuery sink](/pages/connectors/sinks/bigquery) is **alpha**. ## Prerequisites * PostgreSQL with `wal_level=logical` and a primary key on every replicated table * A Google Cloud project with the BigQuery API and the BigQuery Storage API (`bigquerystorage.googleapis.com`) enabled * A Filament deployment backed by the PostgreSQL datastore, with the CLI pointed at it. The local SQLite CLI context cannot run CDC. See the note in [Replicate PostgreSQL to Snowflake](/pages/how-to/postgres-to-snowflake#prerequisites). ## 1. Prepare PostgreSQL Enable logical replication, create a replication user, and create the publication as a table owner. These steps are identical to [step 1 of the PostgreSQL to Snowflake guide](/pages/how-to/postgres-to-snowflake#1-prepare-postgresql): ```sql theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} ALTER SYSTEM SET wal_level = logical; -- then restart PostgreSQL CREATE ROLE filament WITH LOGIN REPLICATION PASSWORD 'change-me'; GRANT USAGE ON SCHEMA public TO filament; GRANT SELECT ON ALL TABLES IN SCHEMA public TO filament; CREATE PUBLICATION filament FOR TABLE public.customers, public.orders; ``` ## 2. Give Filament access to BigQuery The BigQuery sink authenticates with [Application Default Credentials](https://cloud.google.com/docs/authentication/application-default-credentials), so the connection has no credential fields. Credentials belong to the process that runs Filament's workers. Create a service account and grant it the two roles the sink needs: ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} gcloud iam service-accounts create filament --project my-project gcloud projects add-iam-policy-binding my-project \ --member "serviceAccount:filament@my-project.iam.gserviceaccount.com" \ --role roles/bigquery.jobUser gcloud projects add-iam-policy-binding my-project \ --member "serviceAccount:filament@my-project.iam.gserviceaccount.com" \ --role roles/bigquery.dataEditor ``` `dataEditor` at the project level lets Filament create the destination dataset. If you create the dataset yourself, you can grant `dataEditor` on that dataset only. Then make the credentials available to the workers: * **GKE:** bind the worker's Kubernetes service account to `filament@` with Workload Identity. * **Other platforms:** mount a service account key and set `GOOGLE_APPLICATION_CREDENTIALS` on the worker. * **A laptop:** run `gcloud auth application-default login` before starting Filament. ## 3. Create the source and sink ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} filament source create app-db \ --source-connector postgres \ --source-connection-method url \ --source-dsn "postgres://filament:change-me@db.internal:5432/shop?sslmode=require" \ --source-replication cdc \ --source-manage-publication=false filament sink create bigquery \ --sink-connector bigquery \ --sink-project-id my-project \ --sink-location US ``` `--sink-location` applies when Filament creates the dataset. After that, the dataset's own location wins. ## 4. Create the pipeline and run the snapshot ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} filament pipeline create app-db-to-bigquery \ --source app-db \ --sink bigquery \ --resources customers,orders \ --sync-mode cdc \ --write-mode merge \ --sink-dataset shop filament run app-db-to-bigquery ``` The first run snapshots every selected table. Rows stream into per-table staging tables, and each table is published with one query at commit, so partial loads never show up in `shop`. ## 5. Catch up on changes Make changes in PostgreSQL: ```sql theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} UPDATE orders SET status = 'shipped', updated_at = now() WHERE id BETWEEN 2001 AND 3000; DELETE FROM orders WHERE id BETWEEN 5001 AND 5200; INSERT INTO orders SELECT 1000500 + g, 1 + g, 1 + g, 2, 19.99, 'placed', now(), now() FROM generate_series(1, 300) g; ``` ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} filament run app-db-to-bigquery ``` The run reads only the changes from the replication slot. In a test with these statements on a 1.1M-row database, that was 1,500 records instead of a million-row reload. The `MERGE` folds repeated changes to the same key into its final state. ## 6. Verify ```sql theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} SELECT COUNT(*) FROM `my-project.shop.orders`; SELECT COUNT(*) FROM `my-project.shop.orders` WHERE id BETWEEN 5001 AND 5200; -- 0 SELECT status, COUNT(*) FROM `my-project.shop.orders` GROUP BY status ORDER BY status; ``` PostgreSQL types map to native BigQuery types. `numeric(12,2)` becomes `NUMERIC(12, 2)`, `timestamptz` becomes `TIMESTAMP`, and `jsonb` becomes `JSON`. The full table is on the [BigQuery sink](/pages/connectors/sinks/bigquery#type-mapping) page. ## 7. Schedule it Add a cron schedule in the [web app](/pages/guides/usage/web) or with the [Pipelines API](/pages/api-reference/service/pipelines). Each run issues one `MERGE` per changed table, so a 5 to 15 minute schedule keeps query costs predictable. ## Without CDC If you cannot enable logical replication, use an incremental pipeline from a standard source, one created without `--source-replication cdc`. It needs a `NOT NULL` timestamp cursor such as `updated_at` and does not capture hard deletes: ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} filament pipeline create orders-to-bigquery \ --source app-db-standard \ --sink bigquery \ --resources orders \ --sync-mode incremental \ --write-mode upsert \ --sink-dataset shop ``` ## Troubleshooting ### `credentials: could not find default credentials` The worker process has no Application Default Credentials. Set up Workload Identity, `GOOGLE_APPLICATION_CREDENTIALS`, or `gcloud auth application-default login` as in step 2, then restart the worker. ### Permission denied on `bigquery.tables.updateData` The service account is missing `roles/bigquery.dataEditor` on the project or the destination dataset. ### `create publication "filament": ERROR: permission denied` Create the publication as a table owner and set `--source-manage-publication=false`. ### `CDC connections do not accept a read mode` Add `--sync-mode cdc` to `filament pipeline create`. More errors are in [Troubleshooting](/pages/how-to/troubleshooting). ## FAQ ### Does Filament use the BigQuery Storage Write API? Yes. Rows stream as Arrow over gRPC into staging tables, then a query publishes each table at commit. ### Does it replicate deletes? Yes, with CDC and `merge`. Incremental pipelines cannot see hard deletes. ### Does Filament add primary key constraints in BigQuery? No. Filament uses the primary key columns for `MERGE` conditions without adding BigQuery key constraints. ### Where do staging tables go? Each table gets an isolated staging table with a seven-day expiration, normally deleted as soon as the run publishes. ## Related * [BigQuery sink reference](/pages/connectors/sinks/bigquery) * [PostgreSQL source reference](/pages/connectors/sources/postgres) * [Replicate PostgreSQL to Snowflake with CDC](/pages/how-to/postgres-to-snowflake) # Replicate PostgreSQL to ClickHouse with Filament Source: https://filament.getgalaxy.io/pages/how-to/postgres-to-clickhouse Load PostgreSQL tables into ClickHouse with Filament. Snapshot 1.1M rows in seconds, then keep them fresh with incremental upserts into ReplacingMergeTree. Filament copies PostgreSQL tables into typed ClickHouse tables in two ways. A **full replace** snapshot builds each table in a staging table and swaps it in atomically. An **incremental upsert** reads only rows whose `updated_at` moved and writes them into a `ReplacingMergeTree` table keyed on the primary key. In the run below, Filament loaded 1,105,000 rows from PostgreSQL 16 into ClickHouse 25.8 in about 5 seconds, then picked up 1,500 changed rows on the next run. > [!NOTE] > > The [ClickHouse sink](/pages/connectors/sinks/clickhouse) is **alpha** and > the [PostgreSQL source](/pages/connectors/sources/postgres) is **beta**. The > ClickHouse sink does not support CDC, so deletes in PostgreSQL are not > removed from ClickHouse. Use a periodic full replace when deletes matter. ## What you'll build An e-commerce database with `customers` (100,000 rows), `products` (5,000), and `orders` (1,000,000) replicated into ClickHouse: | Pipeline | Mode | Destination | Use it for | | - | - | - | - | | `pg-to-ch-snapshot` | full, replace | `shop` database, `MergeTree` | Small or slowly changing tables, nightly rebuilds | | `pg-to-ch-orders` | incremental, upsert | `shop_live` database, `ReplacingMergeTree(updated_at)` | Large tables that change all day | ## Prerequisites * The `filament` CLI. See [Installation](/pages/guides/get-started/installation). * PostgreSQL, reachable from where Filament runs * ClickHouse, self-hosted or ClickHouse Cloud * For incremental tables, a primary key and a `NOT NULL` timestamp column that your application updates on every insert and update, such as `updated_at` Full and incremental pipelines run on the local CLI context, so you can follow this guide on a laptop. ## 1. Create a read-only PostgreSQL user ```sql theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} CREATE ROLE filament WITH LOGIN PASSWORD 'change-me'; GRANT USAGE ON SCHEMA public TO filament; GRANT SELECT ON ALL TABLES IN SCHEMA public TO filament; ``` ## 2. Create the source and sink ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} filament source create shop-pg \ --source-connector postgres \ --source-connection-method url \ --source-dsn "postgres://filament:change-me@db.internal:5432/shop?sslmode=require" filament sink create clickhouse \ --sink-connector clickhouse \ --sink-host abc123.us-east-1.aws.clickhouse.cloud \ --sink-password "$CLICKHOUSE_PASSWORD" ``` The sink defaults to the secure native port `9440` with TLS, which is what ClickHouse Cloud expects. For a local self-hosted server without TLS, add `--sink-port 9000 --sink-secure=false`. The ClickHouse user needs access to the `default` database, because Filament runs `CREATE DATABASE IF NOT EXISTS` from there. Check what Filament can read: ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} filament source discover shop-pg ``` ```text theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} Resource Selectable Primary key customers ✓ id orders ✓ id products ✓ id ``` ## 3. Snapshot the tables ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} filament pipeline create pg-to-ch-snapshot \ --source shop-pg \ --sink clickhouse \ --resources customers,products,orders \ --sync-mode full \ --write-mode replace \ --sink-database shop filament run pg-to-ch-snapshot ``` ```text theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} Run 106a899b-d1e3-5630-a671-c30390037bb6 completed: 1105000 records, 129873111 bytes. ``` `filament run ls pg-to-ch-snapshot` showed a duration of 5 seconds for the 1.1M rows. Each table is written to a staging table and swapped in with `EXCHANGE TABLES` at commit, so queries never see a half-loaded table. Filament maps PostgreSQL types to native ClickHouse types and orders the table by the primary key: ```sql theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} CREATE TABLE shop.orders ( `id` Int64, `customer_id` Int64, `product_id` Int32, `quantity` Int32, `amount` Decimal(12, 2), `status` String, `ordered_at` DateTime64(6, 'UTC'), `updated_at` DateTime64(6, 'UTC'), `_filament_run_id` Nullable(String), `_filament_run_started_at` Nullable(DateTime64(6, 'UTC')) ) ENGINE = MergeTree ORDER BY id ``` ## 4. Keep large tables fresh with incremental upserts ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} filament pipeline create pg-to-ch-orders \ --source shop-pg \ --sink clickhouse \ --resources orders \ --sync-mode incremental \ --write-mode upsert \ --sink-database shop_live filament run pg-to-ch-orders ``` The first run backfills the whole table (1,000,000 rows in under 6 seconds in this test) and records a high watermark on `(updated_at, id)`. Filament picks `updated_at` automatically because it is a conventional cursor name. Now change data in PostgreSQL: ```sql theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} UPDATE orders SET status = 'refunded', updated_at = now() WHERE id BETWEEN 1 AND 1000; INSERT INTO orders SELECT 1000000 + g, 1 + g, 1 + g, 1, 49.99, 'placed', now(), now() FROM generate_series(1, 500) g; ``` Run the pipeline again: ```text theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} Run 28ab8805-ad4d-54ac-a46b-60af31eb1aa3 completed: 4237 records, 505506 bytes. ``` The run read the 1,500 changed rows plus rows inside the default 300-second lookback window, which re-reads recent rows to catch late commits. Upserts make the overlap harmless. ## 5. Verify `ReplacingMergeTree` removes older versions of a row during background merges, so a plain `count()` can briefly include duplicates. Query with `FINAL` for exact results: ```sql theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} SELECT count() FROM shop_live.orders; -- 1004237 physical rows before merges SELECT count() AS current_rows, countIf(status = 'refunded' AND id <= 1000) AS refunded_updates FROM shop_live.orders FINAL; -- current_rows 1000500, refunded_updates 1000 ``` Compare totals with PostgreSQL: ```sql theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} -- PostgreSQL SELECT status, count(*), sum(amount) FROM orders GROUP BY 1 ORDER BY 1; -- ClickHouse SELECT status, count(), sum(amount) FROM shop.orders GROUP BY status ORDER BY status; ``` In this test both sides returned identical counts and sums for every status. ## 6. Schedule it Add a cron schedule to each pipeline in the [web app](/pages/guides/usage/web) (`filament up` on a laptop, or your deployed server), or attach one through the [Pipelines API](/pages/api-reference/service/pipelines). A common setup is the incremental pipeline every 5 to 15 minutes and the snapshot pipeline nightly. ## Going to production * **Deletes:** incremental reads cannot see hard deletes, and the ClickHouse sink has no CDC. Schedule a full replace of the table, or soft-delete in PostgreSQL with a `deleted_at` column that the incremental read picks up. * **Cursor index:** for large tables, an index on `(updated_at, id)` keeps incremental reads fast. * **Visibility:** replace loads become visible at commit. Append and upsert loads write to the live table, so rows appear while the run is in progress. * **Schema changes:** new PostgreSQL columns are added to ClickHouse tables. Type changes and dropped columns are not applied. ## Troubleshooting ### A key has more than one row in ClickHouse Older versions are removed when parts merge. Query with `FINAL`, or run `OPTIMIZE TABLE shop_live.orders FINAL` to force a merge. ### Incremental mode rejects a table The table needs a primary key and a `NOT NULL` timestamp cursor that advances on every write. Static IDs and random UUIDs are not valid cursors. ### Rows deleted in PostgreSQL are still in ClickHouse Expected with incremental upserts. See **Deletes** above. More errors are in [Troubleshooting](/pages/how-to/troubleshooting). ## FAQ ### Can Filament stream PostgreSQL changes to ClickHouse with CDC? Not yet. The ClickHouse sink supports full replace, full append, full upsert, and incremental upsert. For change data capture with deletes, replicate to a sink that supports `cdc_merge`, such as PostgreSQL, Snowflake, or BigQuery. ### How fast is it? In this guide's test, 1.1M rows from PostgreSQL 16 loaded into ClickHouse 25.8 in about 5 seconds on one machine. For a controlled comparison with other tools, see [Benchmarking](/pages/benchmarks/overview). ### Does it work with ClickHouse Cloud? Yes. ClickHouse Cloud uses the secure native port `9440` with TLS, which are the sink's defaults. ## Related * [ClickHouse sink reference](/pages/connectors/sinks/clickhouse) * [PostgreSQL source reference](/pages/connectors/sources/postgres) * [Postgres to ClickHouse replication guide](https://www.getgalaxy.io/articles/postgres-to-clickhouse-the-complete-replication-guide) # Replicate PostgreSQL to Snowflake with CDC Source: https://filament.getgalaxy.io/pages/how-to/postgres-to-snowflake Replicate PostgreSQL to Snowflake with change data capture in Filament. Set up logical replication, then merge every insert, update, and delete. Filament replicates PostgreSQL to Snowflake with change data capture. It reads the `pgoutput` logical replication stream from a slot it creates for the pipeline, snapshots each table through the same consistent point, and merges inserts, updates, and deletes into typed Snowflake tables. Data is staged as Parquet in the Snowflake user's internal stage. Each run is a bounded catch-up from the last durable position to the current WAL position, so you schedule runs as often as you need fresh data. > [!NOTE] > > The [PostgreSQL source](/pages/connectors/sources/postgres) is **beta** and > the [Snowflake sink](/pages/connectors/sinks/snowflake) is **alpha**. ## How it works 1. **Snapshot.** The first run creates a replication slot with an exported snapshot and reads every selected table through it. 2. **Catch up.** Later runs replay changes from the slot up to the current WAL position and stop. A run with no changes still saves the position. 3. **Merge.** `merge` writes upsert inserts and updates by primary key and delete removed rows, so Snowflake mirrors PostgreSQL. In a test on a 1.1M-row database, a catch-up run after 1,000 updates, 200 deletes, and 301 inserts moved exactly 1,501 records, and the next run with no changes moved 0. ## Prerequisites * PostgreSQL with `wal_level=logical`, and a primary key on every replicated table * A Snowflake account where you can create a role, warehouse, database, and user * A Filament deployment backed by the PostgreSQL datastore, with the CLI pointed at it through `filament context add` and `filament context use` > [!NOTE] > > CDC needs a datastore that can durably track replication streams. The local > CLI context stores state in SQLite and rejects CDC pipelines with > `cannot durably admit replication streams`. Deploy Filament on > [Kubernetes](/pages/guides/deployment/kubernetes), > [Railway](/pages/guides/deployment/railway), or > [Render](/pages/guides/deployment/render), or run the PostgreSQL-backed stack > from [Local development](/pages/guides/contributing/local-development) to try > it on a laptop. ## 1. Prepare PostgreSQL Enable logical replication and restart PostgreSQL. On RDS, Cloud SQL, or Azure, set the equivalent parameter on the instance instead. ```sql theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} ALTER SYSTEM SET wal_level = logical; ``` Create a replication user and grant read access: ```sql theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} CREATE ROLE filament WITH LOGIN REPLICATION PASSWORD 'change-me'; GRANT USAGE ON SCHEMA public TO filament; GRANT SELECT ON ALL TABLES IN SCHEMA public TO filament; ``` Create the publication as a table owner or superuser: ```sql theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} CREATE PUBLICATION filament FOR TABLE public.customers, public.orders; ``` Filament can create and maintain the publication itself, but only when its user has permission to create publications on those tables. A plain replication user does not, and the first run fails with `create publication "filament": ERROR: permission denied`. Creating the publication yourself and setting `manage_publication` to `false` (step 3) avoids granting Filament ownership of your tables. For tables with large `text`, `jsonb`, or `bytea` values that change without being rewritten, set full replica identity: ```sql theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} ALTER TABLE public.orders REPLICA IDENTITY FULL; ``` ## 2. Prepare Snowflake Generate a key pair for the service user: ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} openssl genrsa 2048 | openssl pkcs8 -topk8 -inform PEM -out filament_key.p8 -nocrypt openssl rsa -in filament_key.p8 -pubout -out filament_key.pub grep -v '^-----' filament_key.pub | tr -d '\n' ``` Then, as an account administrator, create the role, warehouse, database, and user, and assign the public key printed above: ```sql theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} USE ROLE SECURITYADMIN; CREATE ROLE IF NOT EXISTS FILAMENT_ROLE; GRANT ROLE FILAMENT_ROLE TO ROLE SYSADMIN; USE ROLE SYSADMIN; CREATE WAREHOUSE IF NOT EXISTS FILAMENT_WAREHOUSE WAREHOUSE_SIZE = XSMALL AUTO_SUSPEND = 60 AUTO_RESUME = TRUE INITIALLY_SUSPENDED = TRUE; CREATE DATABASE IF NOT EXISTS FILAMENT_DATABASE; GRANT USAGE ON WAREHOUSE FILAMENT_WAREHOUSE TO ROLE FILAMENT_ROLE; GRANT USAGE, CREATE SCHEMA ON DATABASE FILAMENT_DATABASE TO ROLE FILAMENT_ROLE; USE ROLE SECURITYADMIN; CREATE USER IF NOT EXISTS FILAMENT_USER TYPE = SERVICE DEFAULT_ROLE = FILAMENT_ROLE DEFAULT_WAREHOUSE = FILAMENT_WAREHOUSE; GRANT ROLE FILAMENT_ROLE TO USER FILAMENT_USER; ALTER USER FILAMENT_USER SET BINARY_INPUT_FORMAT = 'BASE64'; ALTER USER FILAMENT_USER SET TIMESTAMP_INPUT_FORMAT = 'AUTO'; ALTER USER FILAMENT_USER SET RSA_PUBLIC_KEY = ''; ``` Filament creates the destination schema, so `FILAMENT_ROLE` owns it and can create and evolve tables there. The full grant reference is on the [Snowflake sink](/pages/connectors/sinks/snowflake#snowflake-setup) page. ## 3. Create the source and sink ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} filament source create app-db \ --source-connector postgres \ --source-connection-method url \ --source-dsn "postgres://filament:change-me@db.internal:5432/shop?sslmode=require" \ --source-replication cdc \ --source-manage-publication=false filament sink create snowflake \ --sink-connector snowflake \ --sink-account myorg-myaccount \ --sink-username FILAMENT_USER \ --sink-warehouse FILAMENT_WAREHOUSE \ --sink-database-name FILAMENT_DATABASE \ --sink-role FILAMENT_ROLE \ --sink-auth "$(jq -n --rawfile k filament_key.p8 '{type: "key_pair", private_key: $k}')" ``` `--sink-account` takes the `organization-account` identifier. On a deployed server, secret values such as the DSN and private key are stored by the deployment's secret provider. ## 4. Create the pipeline and run the snapshot ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} filament source discover app-db filament pipeline create app-db-to-snowflake \ --source app-db \ --sink snowflake \ --resources customers,orders \ --sync-mode cdc \ --write-mode merge \ --sink-schema SHOP filament run app-db-to-snowflake ``` Pass `--sync-mode cdc` explicitly. Without it the CLI fills in the default read mode, and a CDC source rejects it with `pipeline graph is invalid: CDC connections do not accept a read mode`. The first run snapshots every selected table. In the test database, that was 1,100,500 rows across `customers` and `orders`. ## 5. Catch up on changes Make changes in PostgreSQL: ```sql theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} UPDATE orders SET status = 'shipped', updated_at = now() WHERE id BETWEEN 2001 AND 3000; DELETE FROM orders WHERE id BETWEEN 5001 AND 5200; INSERT INTO orders SELECT 1000500 + g, 1 + g, 1 + g, 2, 19.99, 'placed', now(), now() FROM generate_series(1, 300) g; UPDATE customers SET country = 'CA', updated_at = now() WHERE id = 42; ``` Run the pipeline again: ```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} filament run app-db-to-snowflake ``` The run reads only the 1,501 changes. Updated rows are replaced, the 200 deleted orders are removed, and the 300 new orders are inserted. ## 6. Verify ```sql theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} -- PostgreSQL SELECT count(*) FROM orders; -- Snowflake SELECT count(*) FROM FILAMENT_DATABASE.SHOP.ORDERS; SELECT count(*) FROM FILAMENT_DATABASE.SHOP.ORDERS WHERE id BETWEEN 5001 AND 5200; -- 0 ``` Each replicated row carries Filament metadata columns: `_filament_run_id`, `_filament_run_started_at`, `_filament_operation`, `_filament_source_position`, and `_filament_sequence`. On the source, check replication slot lag: ```sql theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} SELECT slot_name, active, pg_size_pretty(pg_wal_lsn_diff(pg_current_wal_lsn(), confirmed_flush_lsn)) AS lag FROM pg_replication_slots; ``` ## 7. Schedule it Add a cron schedule to the pipeline in the [web app](/pages/guides/usage/web) or with the [Pipelines API](/pages/api-reference/service/pipelines). Every 5 to 15 minutes is common. The Snowflake warehouse resumes for each load and suspends after `AUTO_SUSPEND`, so the schedule drives most of the Snowflake compute cost. ## Going to production * **Slot lag:** an unread slot keeps WAL on the source disk. Keep the schedule running, and drop slots for pipelines you delete. Filament stores each generated slot name in the control database's `replication_streams.consumer_name` column. * **Start without a snapshot:** `--source-snapshot-mode none` on the pipeline streams from the current position, and the destination fills in as rows change. * **History instead of a mirror:** `--write-mode append` keeps every change as a row, with deletes as events. * **Schema changes:** new columns are added to Snowflake tables. Renames, type changes, and dropped columns are not applied automatically. ## Troubleshooting ### `create publication "filament": ERROR: permission denied` The replication user cannot create publications. Create the publication as a table owner and set `--source-manage-publication=false`. ### `CDC connections do not accept a read mode` Add `--sync-mode cdc` to `filament pipeline create`. ### `261004 (08004): failed to auth for unknown reason. HTTP: 404` The Snowflake account identifier is wrong. Use the `organization-account` form shown in Snowsight under your account details. ### `slot is active` Another client holds the pipeline's replication slot. Stop that consumer or wait for the previous run to finish. More errors are in [Troubleshooting](/pages/how-to/troubleshooting). ## FAQ ### Does Filament replicate deletes from PostgreSQL to Snowflake? Yes. CDC captures deletes from the WAL, and `merge` removes those rows in Snowflake. ### Is the replication continuous? Each run catches up to the WAL position at the moment it starts and then stops. Scheduling runs every few minutes gives near-continuous replication without a warehouse that stays running. ### Can I replicate tables without a primary key? Not with CDC. Copy keyless tables with a separate full replace pipeline. ### Does Filament need superuser access to PostgreSQL? No. It needs a role with `REPLICATION` and `SELECT` on the tables, plus a publication created by a table owner. ## Related * [Snowflake sink reference](/pages/connectors/sinks/snowflake) * [PostgreSQL source reference](/pages/connectors/sources/postgres) * [Replicate MySQL to Snowflake with CDC](/pages/how-to/mysql-to-snowflake) * [Postgres to Snowflake replication guide](https://www.getgalaxy.io/articles/postgres-to-snowflake-the-complete-replication-guide) # Troubleshoot Filament pipelines Source: https://filament.getgalaxy.io/pages/how-to/troubleshooting Exact error messages from Filament runs with their causes and fixes, covering PostgreSQL and MySQL CDC, Snowflake, BigQuery, ClickHouse, and pipeline setup. Find the symptom below, then open its card for the exact message, the cause, and the fix. To look up a message you copied from a run, paste it into docs search (`⌘K` or `Ctrl K`). `filament run ls ` shows recent runs, and the [web app](/pages/guides/usage/web) shows per-resource progress for each run. ## Find your error | Symptom | Area | | - | - | | CDC pipeline rejects the read mode | [Pipeline setup](#pipeline-setup) | | CDC fails on the local CLI | [Pipeline setup](#pipeline-setup) | | Incremental mode rejects a table | [Pipeline setup](#pipeline-setup) | | CDC rejects a table without a primary key | [Pipeline setup](#pipeline-setup) | | Permission denied creating the publication | [PostgreSQL CDC](#postgresql-cdc) | | Replication slot is already in use | [PostgreSQL CDC](#postgresql-cdc) | | Checkpoint is older than the slot | [PostgreSQL CDC](#postgresql-cdc) | | Run fails after TRUNCATE | [PostgreSQL CDC](#postgresql-cdc) | | Update fails on a large unchanged column | [PostgreSQL CDC](#postgresql-cdc) | | WAL keeps growing on the source | [PostgreSQL CDC](#postgresql-cdc) | | Column-count mismatch after a schema change | [MySQL CDC](#mysql-cdc) | | Binlog position is no longer available | [MySQL CDC](#mysql-cdc) | | Unix socket connection rejected | [MySQL CDC](#mysql-cdc) | | Snowflake login returns 404 | [Snowflake](#snowflake) | | Snowflake key-pair authentication fails | [Snowflake](#snowflake) | | BigQuery cannot find credentials | [BigQuery](#bigquery) | | BigQuery permission denied | [BigQuery](#bigquery) | | Duplicate keys after an upsert | [ClickHouse](#clickhouse) | | Deleted rows remain in ClickHouse | [ClickHouse](#clickhouse) | | Existing ClickHouse table rejected | [ClickHouse](#clickhouse) | ## Pipeline setup > [accordion] CDC pipeline rejects the read mode > > ```text theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} > pipeline graph is invalid: CDC connections do not accept a read mode > ``` > > **Cause.** The source was created with `--source-replication cdc`, and > `filament pipeline create` filled in its default read mode. > > **Fix.** Add `--sync-mode cdc` to `filament pipeline create`. > [accordion] CDC fails on the local CLI > > ```text theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} > cannot durably admit replication streams > ``` > > **Cause.** A CDC pipeline is running on a datastore that cannot track > replication streams, such as the local SQLite CLI context. > > **Fix.** Run CDC pipelines on a deployment backed by the PostgreSQL datastore. > See [Deployment options](/pages/guides/deployment/overview). > [accordion] Incremental mode rejects a table > > **Cause.** Incremental reads need a primary key and a `NOT NULL` timestamp > cursor that advances on every insert and update. > > **Fix.** Add a cursor column such as `updated_at`, choose an existing one for > the resource, or use a full read. > [accordion] CDC rejects a table without a primary key > > **Cause.** CDC and incremental modes both require a primary key. > > **Fix.** Add a primary key, or copy the table with a separate full replace > pipeline. ## PostgreSQL CDC > [accordion] Permission denied creating the publication > > ```text theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} > postgres cdc: create publication "filament": ERROR: permission denied for database > ``` > > **Cause.** Filament tried to create its publication, and the replication user > lacks permission. > > **Fix.** Create the publication as a table owner, then set > `--source-manage-publication=false` on the source: > > ```sql theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} > CREATE PUBLICATION filament FOR TABLE public.customers, public.orders; > ``` > [accordion] Replication slot is already in use > > ```text theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} > slot is active > ``` > > **Cause.** Another client holds the pipeline route's replication slot. > > **Fix.** Stop the other consumer or wait for the previous run to end. > [accordion] Checkpoint is older than the slot > > **Cause.** Another client consumed WAL from the slot, so changes cannot be > replayed. > > **Fix.** Re-snapshot the affected tables. > [accordion] Run fails after TRUNCATE > > **Cause.** `TRUNCATE` on a tracked table fails the run. > > **Fix.** Re-snapshot the table. > [accordion] Update fails on a large unchanged column > > **Cause.** The update arrived without the large column's old value. > > **Fix.** `ALTER TABLE REPLICA IDENTITY FULL;` > [accordion] WAL keeps growing on the source > > **Cause.** A replication slot is not being read, often from a deleted pipeline. > > **Fix.** Check `pg_replication_slots` and drop slots you no longer use. Filament > stores each generated slot name in the control database's > `replication_streams.consumer_name` column. ## MySQL CDC > [accordion] Column-count mismatch after a schema change > > **Cause.** Incompatible DDL changed the table after Filament cached its columns. > Added nullable columns are handled automatically. > > **Fix.** Re-snapshot the table. > [accordion] Binlog position is no longer available > > **Cause.** Binlog retention expired before the run read it. > > **Fix.** Keep retention longer than the gap between runs, then re-snapshot. > [accordion] Unix socket connection rejected > > **Cause.** CDC needs a TCP connection. > > **Fix.** Use a `user:pass@tcp(host:3306)/db` DSN. ## Snowflake > [accordion] Snowflake login returns 404 > > ```text theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} > 261004 (08004): failed to auth for unknown reason. HTTP: 404 > ``` > > **Cause.** The account identifier does not match a Snowflake account. > > **Fix.** Set `--sink-account` to the `organization-account` identifier. > [accordion] Snowflake key-pair authentication fails > > **Cause.** The public key on `FILAMENT_USER` does not match the private key, or > the private key is encrypted. > > **Fix.** Set `RSA_PUBLIC_KEY` again from the `.pub` file, and pass an > unencrypted PKCS#8 or PKCS#1 private key. See the > [Snowflake sink](/pages/connectors/sinks/snowflake) page. ## BigQuery > [accordion] BigQuery cannot find credentials > > ```text theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}} > credentials: could not find default credentials > ``` > > **Cause.** The worker has no Application Default Credentials. > > **Fix.** Use Workload Identity on GKE, set `GOOGLE_APPLICATION_CREDENTIALS` on > the worker, or run `gcloud auth application-default login` on a laptop, then > restart the worker. > [accordion] BigQuery permission denied > > **Cause.** The service account lacks `roles/bigquery.dataEditor` or > `roles/bigquery.jobUser`. > > **Fix.** Grant both roles as in > [Replicate PostgreSQL to BigQuery](/pages/how-to/postgres-to-bigquery#2-give-filament-access-to-bigquery). ## ClickHouse > [accordion] Duplicate keys after an upsert > > **Cause.** `ReplacingMergeTree` removes older versions during background > merges, not on insert. > > **Fix.** Query with `FINAL`, or run `OPTIMIZE TABLE
FINAL`. > [accordion] Deleted rows remain in ClickHouse > > **Cause.** The ClickHouse sink has no CDC, and incremental reads cannot see hard > deletes. > > **Fix.** Schedule a full replace, or soft-delete with a column the incremental > read picks up. > [accordion] Existing ClickHouse table rejected > > **Cause.** A pre-existing table's engine, version column, or sorting key does > not match what the write mode needs. > > **Fix.** Let Filament create the table, or match the engine and `ORDER BY` key > described on the [ClickHouse sink](/pages/connectors/sinks/clickhouse) page. ## Still stuck? Ask in the [Filament Slack community](https://join.slack.com/t/galaxy-io-community/shared_invite/zt-45qln0zg5-9CTvKVXugvh3sEhpD6KzJQ) or open an issue on [GitHub](https://github.com/galaxy-io/filament/issues).