> ## Documentation Index
> Fetch the complete documentation index at: https://docs.quivr.thevibecompany.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect a source

> Set up a feed, check that it runs, and find collected articles.

Connect an RSS feed to a Quivr collection so it picks up new articles on a schedule.

A connector remembers where it left off between runs.

![Flow diagram showing how to connect a feed and find new articles after the feed runs.](https://mintcdn.com/thevibecompany/WNQ2Bou8YdEKtZhv/images/diagrams/guide-connect-a-source.png?fit=max\&auto=format\&n=WNQ2Bou8YdEKtZhv\&q=85\&s=9f579a28f7258d7c99e462cd613874c9)

## Prerequisites

* [A running Quivr](https://docs.quivr.thevibecompany.co/get-started/launch-quivr.md) with the [RSS plugin](https://docs.quivr.thevibecompany.co/plugins/rss.md) enabled. Set `QUIVR_API_URL` and `QUIVR_API_KEY`. In the local stack, run `eval "$(make -s env)"`.
* A key with `connectors:read` and `connectors:write` on the target collection, and `content:read` and `search:query` to find the collected articles.
* A collection ID in `CORPUS_ID`. If you need to [create a collection](https://docs.quivr.thevibecompany.co/guides/add-content.md#send-an-article-with-a-title), use a key with `corpora:write` and access to all collections.
* A feed URL reachable from the RSS plugin, and Bash, `curl` and `jq`. Run `command -v curl jq` to check the tools.

## Create an instance

**1. Choose a connector**

List the connector kinds the deployment enables. Each kind supplies a schema for its settings and credentials. Check that `rss` appears.

```bash theme={null}
curl -fsS "$QUIVR_API_URL/v0/connector-kinds" -H "Authorization: Bearer $QUIVR_API_KEY" \
  | jq -e '{rss_available: any(.items[]; .kind == "rss"),
            credential_deposits, min_interval_seconds}
           | select(.rss_available and (.min_interval_seconds | type == "number"))'
```

For example, a deployment with a 30-second minimum and credential deposits enabled prints this.

```json theme={null}
{"rss_available": true, "credential_deposits": "available", "min_interval_seconds": 30}
```

Set `MIN_INTERVAL` to the number your deployment returns.

```bash theme={null}
export MIN_INTERVAL=30
```

**2. Create an RSS instance**

An instance is one configured connection. Replace the placeholder with your RSS or Atom URL before running the creation request.

```bash theme={null}
export FEED_URL='<your RSS or Atom feed URL>'
```

Use one source label (`source_namespace`) per feed in the collection. The example checks every 300 seconds or uses the deployment's minimum from the previous step if it is higher.

```bash theme={null}
interval=$(( MIN_INTERVAL > 300 ? MIN_INTERVAL : 300 ))
jq -n --argjson interval "$interval" --arg corpus "$CORPUS_ID" --arg url "$FEED_URL" '{
  idempotency_key: "city-news-feed",
  corpus_id: $corpus,
  source_namespace: "city-news",
  kind: "rss",
  config: {url: $url},
  schedule: {interval_seconds: $interval}
}' | curl -fsS -X POST "$QUIVR_API_URL/v0/connectors" \
  -H "Authorization: Bearer $QUIVR_API_KEY" -H "Content-Type: application/json" \
  --data-binary @- | jq '{connector_id, enabled}'
```

Export the returned `connector_id` as `CONNECTOR_ID`.

**3. Check the run and find the articles**

The first run is due immediately. Read the instance and check `last_success_at`. If the run fails, `last_error` names the cause.

```bash theme={null}
curl -fsS "$QUIVR_API_URL/v0/connectors/$CONNECTOR_ID" \
  -H "Authorization: Bearer $QUIVR_API_KEY" \
  | jq '.health | {state, last_success_at, last_item_at, last_error}'
```

Once the run succeeds and processing finishes, look for collected titles using [Search](https://docs.quivr.thevibecompany.co/guides/search.md), with `"filter": {"source_namespaces": ["city-news"]}`.

## What happened

The connector turns each feed item into a document. A checkpoint is the position or source state it saves after collecting, so it can continue on later runs. Quivr reuses the same document identity for an item it sees again. An edited item can produce a new Version. RSS only carries recent items, so an item falling off the feed stays in Quivr. For source kinds that report withdrawals, Quivr removes withdrawn items from search.

To see your configured instances, list them. The response contains the instances this key can read.

```bash theme={null}
curl -fsS "$QUIVR_API_URL/v0/connectors" -H "Authorization: Bearer $QUIVR_API_KEY" \
  | jq '{items: [.items[] | {connector_id, kind, enabled}]}'
```

## Credentials

For a protected feed, ask your operator to enable credential deposits. Supply a `credential.secret` object when you create the instance. RSS accepts either `username` and `password` for Basic authentication or `token` for bearer authentication. Your operator can help you get these values from the source. Reads show the credential's version and expiry. Use `PUT /v0/connectors/{connector_id}/credential` to rotate it.

## Pause and resume collection

Pause scheduled collection with `POST /v0/connectors/{connector_id}/pause` and resume with `POST /v0/connectors/{connector_id}/resume`. Both take an `idempotency_key`. Resuming continues from the last saved checkpoint. Pausing leaves push deliveries enabled. During an upgrade, wait for previous workers to stop before pausing an instance.

## Disable an instance

Use this to clean up the RSS example. Disabling is permanent and the articles already collected stay searchable. To withdraw an article, [submit a withdrawal](https://docs.quivr.thevibecompany.co/guides/add-content.md#withdraw-an-article) for its source label and Record Key.

```bash theme={null}
curl -fsS -X POST "$QUIVR_API_URL/v0/connectors/$CONNECTOR_ID/disable" \
  -H "Authorization: Bearer $QUIVR_API_KEY" -H "Content-Type: application/json" \
  -d '{"idempotency_key": "disable-city-news"}' | jq '{enabled}'
```

Repeating the create request with the same key and body returns the original instance. Choose a fresh key to create a replacement after disabling it. Reuse the source label if you want new versions to keep the same document identities.

## Other sources

### Microsoft 365 mail

For a real deployment, pin [Microsoft 365 mail](https://docs.quivr.thevibecompany.co/plugins/m365-mail.md) and use kind `m365_mail`. The local stack points to a fake Microsoft Graph endpoint.

#### Microsoft 365 steps

Register an application in Microsoft Entra and ask your Exchange administrator to scope its `Application Mail.Read` role to the mailboxes you collect. Use Exchange application RBAC to assign the role with a resource scope. Run `Test-ServicePrincipalAuthorization` with the application identity and an in-scope mailbox, then with a mailbox outside the scope. Confirm that the first is in scope and the second is denied. An additional tenant-wide read grant would bypass the scope.

Set `config.tenant_id` to the directory ID, `config.mailbox` to the mailbox's user principal name or object ID, and optionally `config.folder` to the folder to read. Deposit `client_id` with either `client_secret` or `certificate_pem` and `private_key_pem` in `credential.secret`. Set `credential.expires_at` to get an expiry warning.

#### Rotate the secret

Send `PUT /v0/connectors/{connector_id}/credential` with a new `idempotency_key`, the replacement `secret` object and its `expires_at`. The next run uses the new credential. Check the instance's health after it runs.

Use the [connector kind catalog](https://docs.quivr.thevibecompany.co/reference/api.md) to check the settings and credential schema before creating an instance.

### X lists

Pin [X lists](https://docs.quivr.thevibecompany.co/plugins/x-list.md) and use kind `x_list` with the list ID in `config.list_id` and your app's `bearer_token` in `credential.secret`. The plugin can withdraw posts it finds deleted or protected during its recent-post recheck window. Withdraw older removals yourself.

#### Real-time mode

For push delivery, the API also needs the plugin pinned and a public URL. Deposit the app's consumer secret alongside the bearer token and set `config.webhook.enabled` to `true`. The instance returns its `webhook_url`. In `health.push.state`, `pending` means setup is underway, `active` means deliveries have arrived and `degraded` means polling took over. See [Receive and secure pushes](https://docs.quivr.thevibecompany.co/operate/receive-pushes.md).

### Import archives

Use [Object storage archive](https://docs.quivr.thevibecompany.co/plugins/object-storage-archive.md) to read documents inside ZIP or tar.gz objects.

#### Choose the member identity

The Record Key groups revisions of one document. Quivr keeps the Version with the highest numeric source position current. By default the connector uses the decoded basename as the key and the member's order in the import as its position. If the archive order differs from the revision order, capture the revision number from each path.

For example, configure these patterns for member names such as `urn%3Aexample%3AITEM7-12.xml` and `urn%3Aexample%3AITEM7-3.xml`. The connector URL-decodes the name before matching. Both names produce the key `ITEM7`, and revision 12 stays current.

```json theme={null}
{
  "record_key_pattern": "urn:example:([A-Z0-9]+)-",
  "source_position_pattern": "-([0-9]+)\\.xml$"
}
```

#### Configure and start the source

Use the [instance creation request](#create-an-instance) with kind `object_storage_archive`. Set the bucket, region and prefix in `config` and specify the media type of the files inside the archive. Check that the deployment has a reader for that media type, such as [NewsML-G2](https://docs.quivr.thevibecompany.co/plugins/newsml-g2.md). Set `work_queue: "bulk"` at the request's top level for a historical import. Deposit read-only storage credentials in `credential.secret`.

#### Read progress and resume

Check `health.diagnostics` for the current `archive`, `member_offset` and `members_done`. To stop temporarily, pause and resume the same instance so it continues from the last committed checkpoint. Disable the instance when you are done collecting.

### Pair media with metadata

Use [Object storage prefix](https://docs.quivr.thevibecompany.co/plugins/object-storage-prefix.md) with `sidecars` when metadata arrives in a separate file. Only the connector receives the storage credential. Normalizers receive engine-signed references to verified Blobs.

#### Configure the connector

Use kind `object_storage_prefix` with your bucket and region. Deposit a credential that can list the prefix and read its objects. This example configuration pairs `feed/binary/abc_hr.jpg` with `feed/2026/01/02/abc-1.xml` when the XML's `remoteContent` points to that JPEG. The regular expression gives both object names the Record Key `abc`.

```json theme={null}
{
  "bucket": "example-photos",
  "prefix": "feed/",
  "region": "eu-west-3",
  "checkpoint_mode": "timestamp",
  "media_type_by_extension": {".xml": "application/vnd.iptc.g2.newsitem+xml"},
  "record_key_pattern": "/([^/]+?)(?:_[a-z]+\\.jpg|-[0-9]+\\.xml)$",
  "sidecars": {
    "patterns": ["feed/20*/**/*.xml"],
    "reference_pattern": "<remoteContent[^>]*\\shref=\"([^\"]+)\"",
    "media_patterns": ["feed/binary/**"],
    "wait_seconds": 900
  }
}
```

When metadata can arrive first, set a positive `sidecars.wait_seconds` to cover the expected delay. With the default of zero, Quivr ingests the metadata immediately and leaves later media unpaired.

## Next

* [Search collected articles](https://docs.quivr.thevibecompany.co/guides/search.md) by keyword or meaning.
* [Follow changes](https://docs.quivr.thevibecompany.co/guides/follow-changes.md) to watch for updates.


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