Skip to main content
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.Flow diagram showing how to connect a feed and find new articles after the feed runs.

Prerequisites

  • A running Quivr with the RSS plugin 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, 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.
For example, a deployment with a 30-second minimum and credential deposits enabled prints this.
Set MIN_INTERVAL to the number your deployment returns.
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.
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.
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.
Once the run succeeds and processing finishes, look for collected titles using Search, 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.

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 for its source label and Record Key.
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 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 to check the settings and credential schema before creating an instance.

X lists

Pin X lists 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.

Import archives

Use Object storage archive 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.

Configure and start the source

Use the instance creation request 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. 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 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.
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