catalog = client.list_providers()
affinity = client.list_providers(id="affinity")
const headers = { Authorization: `Bearer ${process.env.HYDRADB_API_KEY}` };
const catalog = await client.listProviders({}, { headers });
const affinity = await client.listProviders({ id: "affinity" }, { headers });
curl 'https://api.hydradb.com/connectors/providers' \
-H "Authorization: Bearer $HYDRADB_API_KEY" \
-H "API-Version: 2"
curl 'https://api.hydradb.com/connectors/providers?id=affinity' \
-H "Authorization: Bearer $HYDRADB_API_KEY" \
-H "API-Version: 2"
{
"providers": [
{
"provider": "slack",
"category": "Communication",
"supported": true,
"moveit_support": false,
"webhook_support": false,
"acl_supported": true,
"acl_description": "Captures channel-level access: public channels are visible to the whole workspace, private channels only to their members.",
"is_alpha": false,
"is_beta": false,
"rank": 1
}
]
}
{
"provider": "affinity",
"connector_type": "affinity",
"indexed_object_types": ["list_entries", "notes"],
"searchable_fields": [
{
"name": "author",
"data_type": "string",
"description": "Resolved name of the note's creator."
}
],
"filterable_fields": [
{
"name": "container_id",
"data_type": "string",
"filter_key": "additional_metadata.container_id",
"description": "Affinity list ID the record belongs to."
}
],
"credential_schema": {
"type": "object",
"properties": { "...": "JSON Schema for the provider's credential inputs" }
}
}
Connectors
List Connector Providers
List the providers you can connect, or describe one: its credentials and the fields you can filter on.
GET
/
connectors
/
providers
catalog = client.list_providers()
affinity = client.list_providers(id="affinity")
const headers = { Authorization: `Bearer ${process.env.HYDRADB_API_KEY}` };
const catalog = await client.listProviders({}, { headers });
const affinity = await client.listProviders({ id: "affinity" }, { headers });
curl 'https://api.hydradb.com/connectors/providers' \
-H "Authorization: Bearer $HYDRADB_API_KEY" \
-H "API-Version: 2"
curl 'https://api.hydradb.com/connectors/providers?id=affinity' \
-H "Authorization: Bearer $HYDRADB_API_KEY" \
-H "API-Version: 2"
{
"providers": [
{
"provider": "slack",
"category": "Communication",
"supported": true,
"moveit_support": false,
"webhook_support": false,
"acl_supported": true,
"acl_description": "Captures channel-level access: public channels are visible to the whole workspace, private channels only to their members.",
"is_alpha": false,
"is_beta": false,
"rank": 1
}
]
}
{
"provider": "affinity",
"connector_type": "affinity",
"indexed_object_types": ["list_entries", "notes"],
"searchable_fields": [
{
"name": "author",
"data_type": "string",
"description": "Resolved name of the note's creator."
}
],
"filterable_fields": [
{
"name": "container_id",
"data_type": "string",
"filter_key": "additional_metadata.container_id",
"description": "Affinity list ID the record belongs to."
}
],
"credential_schema": {
"type": "object",
"properties": { "...": "JSON Schema for the provider's credential inputs" }
}
}
Returns the catalog of providers you can connect, in display order. With
TypeScript SDK 2.1.7 requires the explicit authorization header for this method.
A
id={provider}, it describes that one provider instead: the credentials it needs and the fields you can search and filter on.
Use a catalog entry’s provider value as provider in Create Connector, and as id here to read that provider’s credential_schema.
catalog = client.list_providers()
affinity = client.list_providers(id="affinity")
const headers = { Authorization: `Bearer ${process.env.HYDRADB_API_KEY}` };
const catalog = await client.listProviders({}, { headers });
const affinity = await client.listProviders({ id: "affinity" }, { headers });
curl 'https://api.hydradb.com/connectors/providers' \
-H "Authorization: Bearer $HYDRADB_API_KEY" \
-H "API-Version: 2"
curl 'https://api.hydradb.com/connectors/providers?id=affinity' \
-H "Authorization: Bearer $HYDRADB_API_KEY" \
-H "API-Version: 2"
{
"providers": [
{
"provider": "slack",
"category": "Communication",
"supported": true,
"moveit_support": false,
"webhook_support": false,
"acl_supported": true,
"acl_description": "Captures channel-level access: public channels are visible to the whole workspace, private channels only to their members.",
"is_alpha": false,
"is_beta": false,
"rank": 1
}
]
}
{
"provider": "affinity",
"connector_type": "affinity",
"indexed_object_types": ["list_entries", "notes"],
"searchable_fields": [
{
"name": "author",
"data_type": "string",
"description": "Resolved name of the note's creator."
}
],
"filterable_fields": [
{
"name": "container_id",
"data_type": "string",
"filter_key": "additional_metadata.container_id",
"description": "Affinity list ID the record belongs to."
}
],
"credential_schema": {
"type": "object",
"properties": { "...": "JSON Schema for the provider's credential inputs" }
}
}
The catalog
Providers with anull rank are listed last, alphabetically.
enforce_acl can only be enabled for a connector when its provider reports acl_supported: true; see ACL on synced content.
One provider
credential_schemais the JSON Schema forcredentialson Create Connector and Update Connector.searchable_fieldsare values written into each synced source’s text. A query finds them, but you cannot target one field on its own.filterable_fieldsare exact-match filters. Each entry’sfilter_keyis where the value lives inmetadata_filters.
filter_key such as additional_metadata.container_id is written as a nested object in a query:
Filtering by a provider field
{
"database": "acme_corp",
"query": "diligence notes",
"metadata_filters": {
"additional_metadata": { "container_id": "12345" }
}
}
filter_key with no prefix, such as connector_id, goes directly under metadata_filters.
For Gmail, filter on account_email (additional_metadata.account_email) to scope results to one connected mailbox.
Errors
404: withid, no provider has that id. Check it against the catalog.
Related resources
- Create Connector: connect a provider
- Connectors: Overview
Authorizations
Response
OK
- Catalog
- Provider details
Was this page helpful?
