> ## Documentation Index
> Fetch the complete documentation index at: https://developers.askparable.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Taps

> A Tap is one stream of records: a transport, a pagination style, a sync mode, a record shape, and the access it needs.

Every Provider Plugin is made of **Taps**. A Tap is one stream of records from
the Provider, such as Linear `issues`, GitHub `pull_requests`, or Slack
`channels`. The Linear plugin, for example, has Taps from `issues` and
`projects` to `comments` and `workflow_states`.

Each Tap lands as its own set of tables in the
[Provider Pool](https://developers.askparable.com/data/providers.md).

The Provider Plugin describes **how** Parable reads each Tap. Read it in
`connector.taps` of one Provider connection. You do not set the transport,
the pagination, or the sync mode, because they follow how the Provider's API
works. [How a sync reads a Provider](https://developers.askparable.com/connectors/ingestion.md) follows these
fields through a Linear query and a GitHub parent-child read.

A Tap looks like this (other fields are not shown):

```json theme={null}
{
  "name": "issues",
  "docs": { "title": "Issues" },
  "enabledByDefault": true,
  "sync": {
    "mode": "incremental",
    "cursorField": "updatedAt"
  },
  "transportOptions": [
    {
      "priority": 1,
      "apiType": "graphql",
      "pagination": { "type": "cursor" }
    }
  ]
}
```

## Transport

Each Tap has one or more **transport options**. An option is one way to call
the Provider:

| `apiType` | Meaning |
| - | - |
| `rest` | An HTTP REST endpoint (`restConfig`). |
| `graphql` | A GraphQL endpoint (`graphqlConfig`). |
| `file` | A file or export. Only on uploads and on Providers that send data to Parable. |
| `custom` | A Provider-specific transport. Only on uploads and on Providers that send data to Parable. |

A sync uses one option for each Tap. A `rest` option wins over a `graphql`
option. Among options of the same kind, the lowest `priority` wins, and `1` is
highest. A sync does not try the next option when the first one fails.
GitHub Taps use `rest`. Linear Taps use `graphql`.

## Pagination

Providers return results in pages in different ways. The transport option's
`pagination.type` tells a sync how to request each page until the Provider has
no more:

| `type` | What the Provider returns |
| - | - |
| `cursor` | A next-page token in the body, such as Linear GraphQL `pageInfo.endCursor`. |
| `link_header` | RFC 8288 `Link` headers, as GitHub and GitLab return. |
| `offset` | An offset and a limit. The offset moves by the number of records on each page. |
| `page_number` | A page number. |
| `session_page` | A session ID with a page number that increases. |
| `none` | One response that holds the full set. |

You do not choose this. It lets a GitHub Tap and a Linear Tap use the same
sync engine with two different paging rules.

## Sync mode

`sync.mode` says how much each run reads:

| `mode` | Behavior |
| - | - |
| `incremental` | Each run reads only the records that changed inside its time window. `cursorField` names the change time on each record, such as `updatedAt` or `updated_at`. |
| `full` | Each run reads every record. The Provider cannot filter by time. |

Each run reads a fixed time window. After the first sync of a new connection,
each scheduled run reads the previous complete UTC day.
[Sync windows](https://developers.askparable.com/connectors/ingestion.md#sync-windows) says when the first sync
runs and what it reads.

`sync.incrementalParams.filterType` says how the window goes to the Provider:

| `filterType` | How the time window is sent |
| - | - |
| `simple` | Query parameters such as `since` and `until`. |
| `query_template` | A search string with window placeholders (Gmail `q`). |
| `body_filter` | A field in the JSON body (Linear GraphQL `variables.since`). |

Some Providers use a job that a sync creates, polls, and then reads
(`sync.asyncQuery`). You see that block on the Tap when the Provider works
that way.

## Record shape

`schema` on the plugin's Tap is the shape of the records it emits. A sync
checks each record against it. Annotations on that schema, such as
`x-transformDedupKey`, `x-transformOrdering`, and the identity annotations,
decide how each row lands in the Provider Pool.
[Tap schemas](https://developers.askparable.com/connectors/tap-schemas.md) lists every annotation, and
[Tap tables](https://developers.askparable.com/connectors/tap-projection.md) shows the tables that result.

## Reader text

Each Tap carries text for the people who read its data:

| Field | Meaning |
| - | - |
| `docs.title` | A short title for the Tap, 2 to 80 characters, such as "Issues". |
| `description` | One sentence that says what the Tap reads. |
| `purpose` | Markdown that explains why you use the data. |
| `icon` | An icon name for the Tap. |

Each field of the Tap's schema has its own text in `title`, `description`,
and `x-purpose`. Reader text never changes the stored data.

## Required access

`requiredAccess` says what the Provider credential must allow before the Tap
can read its data. Parable derives it from the plugin. You cannot set it.

GitHub `pull_requests` needs the `repo` scope:

```json theme={null}
{
  "name": "pull_requests",
  "requiredAccess": { "model": "oauth_scope", "values": ["repo"] }
}
```

| `model` | `values` |
| - | - |
| `oauth_scope` | The scopes or permissions that the credential must carry: OAuth scopes, the scopes of a scoped token, Google domain-wide delegation scopes, or Microsoft Graph application permissions. |
| `object_acl` | The one Provider object that the credential must be able to read, such as a Salesforce object or a ServiceNow table. |
| `none` | Empty. The credential works for the whole account or not at all. |

`requiredAccess` is null when the plugin offers more than one authentication
strategy, because each strategy can carry different access.

### Sensitive Taps

Some Taps read sensitive data: pay and payroll, tax IDs, birth dates, sex,
home contact details, bank accounts, or free-text notes. Each kind has its
own Tap, and each such Tap is off by default (`enabledByDefault: false`).

The plugin's main authentication strategy asks only for the access that the
default Taps need. A second strategy of the same type, with its own `label`,
adds the access of the sensitive Taps. Justworks, for example, offers
"Justworks OAuth 2.0 (company OAuth application)" and "Justworks OAuth 2.0
with pay, payroll and personal data". Because such a plugin has two
strategies, its Taps show `requiredAccess: null`. To read a sensitive Tap:

1. Connect with the strategy that adds the sensitive access, or change the
   connection to it.
2. Set a [Provider Policy](https://docs.parable.work/protection/provider-policies)
   on each table of the sensitive Tap. A table that no Provider Policy names
   is open to every reader who can read Provider data.
3. Turn the Tap on (see [Turn Taps on and off](#turn-taps-on-and-off)).

## Taps in your Workspace

Your Workspace keeps its own record for each Tap of a connection. A new
connection starts with the plugin's default Taps (`enabledByDefault: true`)
and the parent Taps that they need.

Each Workspace Tap has these fields:

| Field | Meaning |
| - | - |
| `enabled` | Whether a sync runs this Tap. |
| `name`, `description` | Copied from the plugin's Tap unless you change them. |
| `outputSchema` | Your Workspace's copy of the Tap's schema. See [Change a Tap schema in your Workspace](#change-a-tap-schema-in-your-workspace). |
| `config` | Tap settings. `config.selectedFields` limits the fields a sync requests. Salesforce Taps only. |
| `canonicalPersonSource` | Marks this Tap as a canonical source of people. Parable takes a person's name and photo from a canonical source first. |
| `kind` | `override` for a plugin Tap, `artifact` for a published Artifact, and `custom` for a Tap that Parable sets up for your Workspace. |

## Turn Taps on and off

The connection's `ingestionConfig.enabledTaps` decides which plugin Taps a
sync runs:

* When `enabledTaps` is absent, a sync runs the Taps with
  `enabledByDefault: true`.
* When `enabledTaps` is a list, a sync runs the Taps that it names. The list
  replaces the defaults. An empty list runs no Tap.
* A sync also runs the parent Taps of each Tap that runs.
* A Workspace Tap with `enabled: false` does not run, even when
  `enabledTaps` names it.

To turn on an opt-in Tap, send the connection's whole `ingestionConfig`, with
`enabledTaps` listing every Tap that you want, to
`POST /api/connectors/configure`. The `ingestionConfig` that you send
replaces the stored one, so include your other settings, such as `orgId`.

```json theme={null}
{
  "tenantConnectorId": "018f2a3b-9c4d-7e5f-8a6b-1c2d3e4f5a6b",
  "ingestionConfig": {
    "orgId": "acme-corp",
    "enabledTaps": ["repositories", "pull_requests", "issues"]
  }
}
```

This operation takes an encrypted request body. The SDKs encrypt it when you
give them your Workspace's public key. See
[Change a connection](https://developers.askparable.com/connectors/auth.md#change-a-connection) and
[Encrypted requests](https://developers.askparable.com/getting-started/encryption.md). The call needs permission
to manage the connection's credentials. Parable refuses a change of
ingestion settings while the plugin accepts only credentials
([Availability](https://developers.askparable.com/connectors/overview.md#availability)).

Parable then creates a Workspace Tap for each Tap that the list adds, and
disables the Workspace Taps of the Taps that leave the list. Turning a Tap on
starts no backfill. The Tap starts with the next scheduled sync.

To stop a Tap that runs, set `enabled` to `false` on its Workspace Tap:

```bash theme={null}
curl -X PATCH "$PARABLE_API_URL/api/tenant-connector-taps/$TAP_ID" \
  -H "Authorization: Bearer $PARABLE_API_TOKEN" \
  -H "X-Tenant: $PARABLE_WORKSPACE" \
  -H "Content-Type: application/json" \
  -d '{ "enabled": false }'
```

`enabled: false` stops a Tap. `enabled: true` does not add a Tap that
`enabledTaps` leaves out. A child Tap needs its parent. Before you disable a
parent Tap, disable its child Taps (`WA-TCT-025`, `WA-TCT-026`).

The catalog serves only enabled Taps, so a disabled Tap has no table there
until you enable it again.

Two enabled Taps of one Provider in a Workspace cannot have tables or views
with the same SQL name, on one connection or on two. For example, `orders` and
`orders_` get the same name. A create, a rename, a schema change or an enable
that causes this fails with `WA-TCT-036`, and nothing is stored. The error
names the other Tap.

The same rule applies when Parable adds a Provider's Taps to your Workspace:
when the Provider gets a new Tap, and when you save a connection's
`enabledTaps`. If a Tap would get the SQL name of an enabled `custom` Tap in
your Workspace, Parable does not add it. It adds the other Taps and gives no
error. To get the missing Tap, rename or disable the `custom` Tap, then save
the connection again.

## Change a Tap schema in your Workspace

The `outputSchema` of a Workspace Tap of kind `override` is a full copy of
the plugin's Tap schema. It keeps the same fields and types as the plugin's
schema (`WA-TCT-022`). You can change only annotations, and only some of
them.

| You can | How |
| - | - |
| Hide a top-level field from SQL | Set `"x-exclude": true` on it. A sync still reads the field. |
| Leave a field out of row search | Set `"x-transformEmbed": false` on it. |
| Re-point the ordering field, the partition date, or the fingerprint inputs | Move `x-transformOrdering`, `x-transformPartitionDate`, or `x-transformFingerprintInput` to another field. |
| Re-declare identity roles | Move `x-transformAccountId`, `x-transformPersonEmail`, `x-transformPersonName`, `x-transformPersonPhoto`, or `x-transformExternalUserId` to another field. |

`x-exclude` and `x-transformEmbed: false` stay on your copy when Parable
changes the plugin's Tap. A re-pointed ordering, partition date, fingerprint
input, or identity role lasts until Parable next changes the plugin's Tap.
Your copy then takes the plugin's annotations again.

Parable refuses these writes:

| Write | Error |
| - | - |
| Add, remove, or rename a field, or change a type | `WA-TCT-022` |
| Set `x-exclude` on a nested field | `WA-TCT-023` |
| Add an `x-transformDedupKey` that the plugin does not declare | `WA-TCT-021` |
| Exclude a field that carries the plugin's dedup key, ordering, partition date, or fingerprint input | `WA-TCT-021` |
| Exclude a field that carries an `x-transform*` or `x-access*` annotation | `WA-TCT-021` |
| Declare two ordering fields or two partition dates in one table | `WA-TCT-021` |
| Turn row search on, or change what it reads | `WA-TCT-021` |
| Change, add, or remove an `x-access*` value | `WA-TCT-035` |

A `WA-TCT-021` message names the rule and the table, such as
`outputSchema violates promote directive rules: <rule> (root table): <message>`.
A `WA-TCT-035` error lists the fields in its details. Send every `x-access*`
value as the plugin's copy holds it.
[Source permissions](https://developers.askparable.com/connectors/source-permissions.md#workspace-overrides)
explains why.

A change to `outputSchema` can need a rebuild of the Tap's stored tables, for
example a new ordering field. [When a Tap schema changes](https://developers.askparable.com/connectors/tap-schemas.md#when-a-tap-schema-changes)
lists the classes of change and how to approve a rebuild.

`config` also has keys that only Parable writes: `materializedDefault`,
`systemDisabled`, `catalogSlug`, and `storageUri`. A write that sets one of
them fails with `WA-TCT-029`. `config.selectedFields` works only on Salesforce
Taps (`WA-TCT-024`), and never on an Artifact Tap (`WA-TCT-028`).

## Manage Taps with the API

| Action | Operation |
| - | - |
| List the Taps of your Workspace, or of one connection | `GET /api/tenant-connector-taps/tenant-connector-taps?tenantConnectorId=...` |
| Read one Workspace Tap | `GET /api/tenant-connector-taps/{id}` |
| List every plugin Tap that your Workspace could use, with `requiredAccess` | `GET /api/connectors/tenant-connector-taps` |
| Create a Workspace Tap record for a plugin Tap that has none | `POST /api/tenant-connector-taps/create-tenant-connector-tap` |
| Change a Workspace Tap | `PATCH /api/tenant-connector-taps/{id}` |
| Delete a Workspace Tap | `DELETE /api/tenant-connector-taps/{id}` |
| Choose which Taps a sync runs | `POST /api/connectors/configure`, with `ingestionConfig.enabledTaps` |

The list returns up to 250 Taps on each page. Use `limit` and `offset` to read
more.

The read of one Tap returns its whole `outputSchema`. The schema of a large
Provider can be more than 50,000 characters. To read it a page at a time,
send `fieldLimit` (1 to 1,000), `fieldOffset`, or both. The answer then holds
one page of the fields of `outputSchema`: at most `fieldLimit` fields, and
fewer than 40,000 characters in the whole answer, but always one field. The
fields of the root type come first, then those of each other type by name. A
type is on each page that holds one of its fields, and the enums are on every
page. Send `nextFieldOffset` back as `fieldOffset` for the next page. The last
page has no `nextFieldOffset`. A `fieldLimit` outside 1 to 1,000 or a negative
`fieldOffset` fails with `400`.

`PATCH` can change `enabled`, `name`, `description`, `outputSchema`,
`config`, and `canonicalPersonSource`. It cannot change the connection, the
plugin Tap, the sync mode, the pagination, or the transport. A Workspace Tap
record does not add a Tap to the Taps that a sync runs. `enabledTaps` does.

The [API Reference](https://developers.askparable.com/api-reference/overview.md) has the full request and response
shapes.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.