Skip to main content
Connectors continuously sync external app data (Slack, GitHub, Linear, Notion, Gmail) into your knowledge store without manual ingestion.

Endpoint references

Typical call sequence

Authentication

All connector endpoints use your HydraDB API key:

Key concepts

  • Connector - An authenticated connection to one external provider account. A single connector manages all resources synced from that account.
  • Resource - A syncable unit within a provider: a Slack channel, GitHub repo, Linear team/project, Notion database/page, or Gmail label. You activate resources individually via /configure.
  • Cursor - A per-resource bookmark of the last synced position. Sync is incremental: only content newer than the cursor is fetched on each run.
  • provider_account_scope - An identifier for the external account (e.g. Slack workspace ID, GitHub org). Used as part of the deduplication key - two connectors for the same provider must have distinct provider_account_scope values.

Metadata on synced objects

Every object synced by a connector has two metadata layers.

Tenant metadata (metadata)

Tenant metadata is the schema-declared layer. Fields are defined per tenant through database_metadata_schema and are indexed for fast, exact-match filtering. Use it for stable fields you filter on often, such as department, region, status, or priority. HydraDB writes provider into tenant metadata for every synced object. You can add fields through metadata on each resource in Configure Connector. User-supplied fields are merged first; provider takes precedence.

Document metadata (additional_metadata)

Document metadata is the free-form layer and needs no schema. Connectors automatically populate provider-specific fields including connector ID, resource ID, provider account scope, and provider-native identifiers. You can add fields through additional_metadata on each resource in Configure Connector. User-supplied fields are merged first; provider-generated fields take precedence. Use document metadata to scope a query to a connector, channel, repository, or inbox:
Querying with document metadata filter

Multiple connectors per provider

You can create more than one connector for the same provider, such as two Slack workspaces or separate personal and work Gmail accounts. Each connector has its own credentials, resources, and provider_account_scope. Set a distinct provider_account_scope for each account. It is part of every object’s deduplication key; without it, objects from two accounts of the same provider can collide. You can also route resources from one connector to different sub-tenants with Configure Connector:

Provider contracts

Use List Connector Providers to see available providers, then Get Connector Provider to inspect a provider’s indexed fields, query filters, and required credentials.