# Connectors and data sources

This page explains how Solidafy reads from external systems: what connectors and data sources are, how to add a data source, how a pipeline's connector step uses it, and which connectors you can pick from.

## Connectors, streams and data sources

A **connector** knows how to talk to one external system, such as GitHub, Jira or a cloud billing API. Each connector offers one or more **streams**, and a stream is one kind of record: pull requests, issues, invoices, cost lines.

A **data source** is a connector plus your credentials and settings for it, saved in an environment. Pipelines never contain credentials. A connector step points at a data source by id, and its DSL refers to the stored fields by name.

Each environment has its own data sources, so a sandbox and a production environment can use different credentials, and the same data source has a different id in each.

## Find a connector

List the connectors available to you, then look at one in detail:

```bash
solidafy registry connectors              # every connector, grouped by category
solidafy registry connectors github-graphql
```

The detail view shows the connector's authentication type, its streams, the config fields it needs, and a starting DSL snippet. The name in the first column (here `github-graphql`) is the connector type you use everywhere else.

In the portal, the same catalog appears when you add a data source.

## Add a data source

### In the portal

1. Go to **Ingestion > Data Sources** and choose **Add Data Source**.
2. Pick the connector. You can search by name or filter by category.
3. Fill in the fields the connector asks for, such as an API token and an organisation name, and save.

If the token or key you entered expires, put the date in the optional **Credential expires on** field (you can add or change it later by editing the data source). From 14 days before that date, the data source list shows an **Expires in N days** badge, and **Credential expired** once it has passed. Your organisation's admins get a reminder 14, 7 and 1 day before the date and again once it has expired, by email and as an alert in the portal.

### With the CLI

```bash
solidafy datasources create "GitHub" \
  --connector github-graphql \
  --config '{"access_token": "ghp_...", "org": "my-org"}'
```

`--config` takes a JSON object of the connector's config fields. The CLI never prints stored values back: `solidafy datasources show <name>` lists the field names only. To change credentials later, use `solidafy datasources update <name> --config '{...}'`. See the [CLI command reference](/docs/cli/commands#solidafy-datasources) for every option.

### Get the data source id

A connector step needs the data source's id:

```bash
solidafy datasources list
```

Each line shows the name, `id`, connector type and status. Copy the `id` into the step's `data_source_id`.

## Use a data source in a pipeline

A connector step reads one stream and writes it to a table:

```yaml
steps:
  - name: extract_issues
    type: connector
    data_source_id: 00000000-0000-0000-0000-000000000000
    dsl: |
      connector("jira",
        domain: "${DOMAIN}",
        email: "${EMAIL}",
        api_token: "${API_TOKEN}",
        start_date: "2025-01-01T00:00:00Z"
      )
        .stream("issues_with_changelog", cursor: "fields.updated")
        .output("jira.issues_raw",
          mode: append,
          partition_by: [_extracted_at.truncate(day)]
        )
```

The parts:

- `connector("<type>", field: value, ...)` names the connector and passes its config fields.
- `.stream("<name>")` picks the stream. Each connector step reads one stream, so a pipeline that needs three streams has three connector steps.
- `.output("namespace.table", ...)` says where the rows go. Raw connector output usually uses `mode: append`, partitioned by the day it was extracted. See [Writing tables](/docs/dsl/output).

### Credential placeholders

`${NAME}` placeholders are filled in from the data source when the step runs. Each config field of the data source is available under three names: the field name in upper case, and the same with the connector type as a prefix (dashes become underscores), and with just the first word of the connector type as a prefix. For a `github-graphql` data source with an `access_token` field, all of these work:

```text
${ACCESS_TOKEN}
${GITHUB_GRAPHQL_ACCESS_TOKEN}
${GITHUB_ACCESS_TOKEN}
```

The validator rejects a connector step that has no `${...}` placeholder at all, since its credentials have to come from the data source. Never paste a real token into the DSL instead: the file ends up in git.

### Incremental extraction

Without a cursor, every run reads the whole stream. Add `cursor:` to `.stream()` to read only what changed since the last run:

```dsl
connector("github-graphql", access_token: "${ACCESS_TOKEN}", org: "${ORG}")
  .stream("pull_requests", cursor: "updatedAt")
  .output("github_graphql.pull_requests", mode: append)
```

Solidafy remembers the highest cursor value it has written for that stream and table, and the next run resumes from there. You can also give `.stream()` an `audit:` option naming a table to keep that position in (`audit: true` uses the output table itself).

Because incremental runs append, the raw table can hold several versions of the same record. Deduplicate in a materialize step that depends on the connector step:

```dsl
source("github_graphql.pull_requests")
  .dedupe([pr_id], keep: latest_by(_extracted_at))
  .output("gh.pull_requests", mode: replace)
```

Every row a connector writes carries `_extracted_at`, the time it was pulled.

## Available connectors

These are the connectors in the public catalog, by category, as listed by `solidafy registry connectors`. The catalog changes as connectors are added, so treat `solidafy registry connectors` as the up-to-date list.

| Category | Connectors |
| --- | --- |
| Developer tools | `argocd`, `bitbucket`, `bitbucket-golden`, `datadog`, `github`, `github-golden`, `github-graphql`, `github-graphql-linkage`, `github-graphql-test`, `github-graphql-testing`, `github-rest-testing`, `gitlab`, `jira`, `jira-agile`, `jira-golden`, `jira-push`, `launchdarkly`, `linear`, `linear-golden`, `linear-testing`, `mattermost-push`, `newrelic`, `newrelic-synthetics`, `pagerduty`, `review-agents`, `segment`, `sentry`, `serper`, `slack`, `slack-push`, `snyk`, `solidafy` |
| AI | `anthropic`, `anyscale`, `assemblyai`, `aws-bedrock`, `aws-bedrock-costs`, `aws-bedrock-metrics`, `azure-openai`, `cohere`, `deepgram`, `elevenlabs`, `fireworks-ai`, `google-vertex-ai`, `groq`, `huggingface`, `lambdalabs`, `mistral`, `modal`, `openai`, `perplexity`, `replicate`, `runpod`, `solidafy-agent`, `solidafy-agent-github`, `solidafy-agent-jira`, `solidafy-agent-linear`, `stability-ai`, `together-ai` |
| Cloud | `aws-cost-explorer`, `aws-s3-storage`, `azure-cost-management`, `azure-defender`, `azure-log-analytics`, `azure-monitor`, `azure-resource-graph`, `cloudflare`, `digitalocean`, `fly-io`, `gcp-billing`, `heroku`, `netlify`, `railway`, `render`, `scaleway`, `scaleway-resources`, `vercel` |
| Databases | `cockroachdb`, `fauna`, `mongodb-atlas`, `neon`, `planetscale`, `postgres`, `redis-cloud`, `redis-cloud-billing`, `sap-hana`, `snowflake`, `supabase`, `turso`, `upstash` |
| CRM and support | `freshdesk`, `hubspot`, `intercom`, `mailchimp`, `pipedrive`, `salesforce`, `salesforce-bulk`, `sendgrid`, `twilio`, `zendesk` |
| Payments and accounting | `chargebee`, `lemonsqueezy`, `paddle`, `paypal`, `quickbooks`, `recurly`, `shopify`, `stripe`, `xero` |
| Analytics and marketing | `amplitude`, `amplitude-cohorts`, `facebook-ads`, `google-ads`, `google-analytics`, `google-sheets`, `linkedin`, `medium`, `mixpanel`, `posthog`, `reddit`, `twitter`, `youtube-public` |
| Identity | `auth0`, `clerk`, `stytch`, `supertokens`, `workos` |
| Security | `blackstoneone`, `epss`, `nvd` |
| Collaboration | `sharepoint`, `sharepoint-push` |
| Other | `datamesh-sync`, `hackernews`, `rss` |

Four connectors exist to send data rather than read it: `jira-push` (creates, comments on, transitions and labels Jira issues), `mattermost-push` (posts to a Mattermost incoming webhook), `sharepoint-push` (writes changes back to SharePoint lists) and `slack-push`. They have write actions instead of useful streams. You use `jira-push`, `mattermost-push` and `slack-push` with `.push()` at the end of a query. The one you will use most is `slack-push`, which posts to Slack or Mattermost; see [Alerts](/docs/pipelines/alerts).

> **Tip:** Try a connector you haven't used before in a sandbox environment first: push a pipeline with a single connector step, run it with `solidafy pipelines run <file> --watch`, then look at what landed with `solidafy schema <namespace.table>`.
