Skip to main content
A connector is an authenticated connection to one provider account, such as a Slack workspace or a GitHub organization. It syncs the resources you choose (channels, repositories, tables, folders) into your database on a schedule, with no ingestion code on your side. The Connectors guide explains the concepts and walks through setup. This page lists the endpoints, their call sequence, and which endpoint changes what.

Endpoint references

SDK methods are listed by their Python names. The TypeScript SDK uses the same names in camelCase, such as connectors.listResources. list_providers is a method on the client itself. Set up a connector: Check on it: Change it:

Typical call sequence

  1. POST /connectors with the provider’s credentials.
  2. GET /connectors/{id}/discover to see which resources are available.
  3. POST /connectors/{id}/configure with the resources to sync. This starts the first sync.
  4. GET /connectors/{id}/status until status is healthy and lifecycle is active.
  5. POST /query to search the database and collection chosen during configuration. query_apps is enabled by default. For content from connectors without ACL enforcement, send the caller’s identity as acl; omitting it leaves those results unfiltered. Connectors with ACL enforcement use the authenticated caller instead. See ACL on synced content.
After that, syncs run every sync_interval_seconds (one hour by default). Syncs are incremental: each one fetches only what changed since each resource’s saved sync position. Call POST /connectors/{id}/sync only when you need data sooner.

Which endpoint changes what

The PATCH endpoints change only the fields you send.
  • Instructions or ACL on one resource: PATCH /connectors/{id}/resources/{resource_id}.
  • Instructions, sync interval, credentials, or ACL enforcement for the whole connector: PATCH /connectors/{id}. Setting enforce_acl needs a dashboard session; see Authentication.
  • Name, type, database, collection, or metadata of a resource: POST /connectors/{id}/configure. Resources you leave out of the list are not touched. For each resource you list, send name and resource_type every time, and collection if the resource has one, because omitted values are cleared. Its sync position, instructions, and ACL are kept.
  • A new resource: POST /connectors/{id}/configure or POST /connectors/{id}/resources. POST /connectors/{id}/resources adds new resources only: on an existing resource_id it returns 409 and changes nothing.
In paths, {resource_id} is the resource’s id as returned by GET /connectors/{id}/discover and GET /connectors/{id}/resources, for example a Slack channel id or a Supabase schema.table name. URL-encode it when it contains spaces or other reserved characters.

Authentication

Connector API requests use your HydraDB API key:
enforce_acl is the exception. Only workspace owners and writers in a signed-in dashboard session can set it. Readers can view the current setting but cannot change it, and API-key-authenticated requests cannot set it.

Metadata on synced sources

Every source a connector syncs carries two metadata layers. The guide covers both in Filter on what HydraDB writes. metadata contains fields declared in your database’s metadata schema and indexed for exact-match filtering. HydraDB always writes connector_id and provider here. Add your own fields per resource with metadata on Configure Connector. The system fields win on conflict. additional_metadata contains free-form fields and needs no schema. HydraDB always writes connector_id and resource_id here, plus provider-specific fields that List Connector Providers shows under filterable_fields when called with ?id={provider}. Add your own per resource with additional_metadata on Configure Connector. Provider-generated fields win on conflict. To scope a query to one connector, filter on connector_id:
Querying with a metadata filter
Filter on resource_id the same way to scope to one channel, repository, or table.

Multiple connectors per provider

You can create more than one connector for the same provider, such as two Slack workspaces. Each has its own credentials and resources. Give each a distinct provider_account_scope, an identifier for the external account such as a Slack workspace id. It is part of every synced source’s deduplication key, so sources from two accounts that share an external id and scope can collide. See Connect several accounts of one provider. You can also route resources from one connector into different collections with Configure Connector: