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
Discover
List available connector types to see what external services Nia supports. Each type describes the authentication method it requires (API key or OAuth).
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.
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.
Index
Trigger indexing to pull data from the external source, chunk it, embed it, and store it in Nia’s vector index.
Available Connector Types
List all connector types your organization can use:auth_method:
| Auth Method | How It Works |
|---|---|
api_key | Pass the API key directly during installation |
oauth | Nia returns an authorization URL; the user approves access and Nia handles the token exchange via callback |
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:authorization_url. After they approve, Notion redirects to Nia’s callback endpoint:
Managing Installations
List All Installations
Disconnect a Connector
Remove an installation and all its indexed data:Indexing
Trigger Indexing
Start an indexing job that pulls content from the external source:Check Sync Status
| Status | Meaning |
|---|---|
idle | No indexing in progress |
processing | Indexing is running |
completed | Last sync finished successfully |
failed | Last sync encountered an error |
Scheduling and Sync Management
Set a Sync Schedule
Configure automatic recurring syncs using a cron expression:| Cron Expression | Frequency |
|---|---|
0 */6 * * * | Every 6 hours |
0 0 * * * | Daily at midnight |
0 9 * * 1 | Weekly on Mondays at 9 AM |
0 */1 * * * | Every hour |
Disable Scheduled Sync
Set the schedule tonull 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:API Reference
| Method | Endpoint | Description |
|---|---|---|
GET | /v2/connectors | List available connector types |
POST | /v2/connectors/{connector_type}/install | Install a connector (API key or OAuth) |
GET | /v2/connectors/{connector_type}/oauth/callback | Handle OAuth callback |
GET | /v2/connectors/installations | List all installations |
DELETE | /v2/connectors/installations/{id} | Disconnect and remove an installation |
POST | /v2/connectors/installations/{id}/index | Trigger indexing |
PATCH | /v2/connectors/installations/{id}/schedule | Update sync schedule |
GET | /v2/connectors/installations/{id}/status | Get sync status |
FAQ: What happens to my data when I disconnect?
FAQ: What happens to my data when I disconnect?
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.FAQ: Can I install the same connector type multiple times?
FAQ: Can I install the same connector type multiple times?
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.
FAQ: How long does indexing take?
FAQ: How long does indexing take?
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.

