Skip to main content
Connectors provide a unified way to bring external data sources into Nia. Instead of building custom integrations for every service, connectors follow a common lifecycle: discover available types, install one with credentials, configure sync settings, trigger indexing, and search the results alongside all your other Nia sources.
Connectors are a generalization of Nia’s integration model. Each connector type (e.g., Notion, Confluence, Jira) follows the same API contract, so you can manage them all with a single set of endpoints.

How Connectors Work

1

Discover

List available connector types to see what external services Nia supports. Each type describes the authentication method it requires (API key or OAuth).
2

Install

Install a connector by providing credentials. For API-key-based connectors, pass the key directly. For OAuth-based connectors, the API returns an authorization URL — redirect the user and handle the callback.
3

Configure

Set up a sync schedule and configure what data gets indexed. You can run one-time imports or set up recurring syncs on a cron schedule.
4

Index

Trigger indexing to pull data from the external source, chunk it, embed it, and store it in Nia’s vector index.
5

Search

Once indexed, connector data is searchable through the same unified search endpoint used for repositories, docs, Slack, and every other Nia source type.

Available Connector Types

List all connector types your organization can use:
Each connector type specifies its auth_method:

Installing a Connector

API Key Authentication

For connectors that use API key auth, provide the credentials directly:

OAuth Authentication

For OAuth-based connectors, the install endpoint returns an authorization URL:
Redirect the user to authorization_url. After they approve, Notion redirects to Nia’s callback endpoint:
Nia exchanges the code for an access token and creates the installation automatically.

Managing Installations

List All Installations

Disconnect a Connector

Remove an installation and all its indexed data:
Disconnecting a connector permanently deletes all indexed data from that installation. This action cannot be undone.

Indexing

Trigger Indexing

Start an indexing job that pulls content from the external source:

Check Sync Status


Scheduling and Sync Management

Set a Sync Schedule

Configure automatic recurring syncs using a cron expression:
Common schedule patterns:

Disable Scheduled Sync

Set the schedule to null to stop automatic syncs:
Even with a schedule disabled, you can always trigger a manual sync via POST /v2/connectors/installations/{id}/index.

Searching Connector Data

Once indexed, connector data is available through Nia’s unified search endpoint alongside all your other sources:
You can also target specific connector installations:

API Reference


When you disconnect a connector via DELETE /v2/connectors/installations/{id}, all indexed data (chunks, embeddings, metadata) is permanently removed from Nia. The external source itself is not modified.
Yes. For example, you can connect multiple Confluence instances or multiple Notion workspaces. Each installation operates independently with its own credentials, schedule, and indexed data.
Indexing time depends on the volume of content in the external source and any rate limits imposed by the third-party API. Most installations with a few hundred documents complete within a few minutes. Large sources (10k+ documents) may take 30-60 minutes.

Need Help? Join our Discord community or reach out through app.trynia.ai for support.