curl 'https://api.hydradb.com/connectors/{connector_id}/discover' \
-H "Authorization: Bearer $HYDRA_DB_API_KEY" \
-H "API-Version: 2"
{
"provider": "slack",
"connector_id": "{connector_id}",
"resources": [
{
"id": "{resource_id}",
"name": "general",
"resource_type": "channel"
},
{
"id": "{resource_id_2}",
"name": "engineering",
"resource_type": "channel"
}
]
}
Connectors
Discover Resources
List all resources available from the provider before activating them.
GET
/
connectors
/
{id}
/
discover
curl 'https://api.hydradb.com/connectors/{connector_id}/discover' \
-H "Authorization: Bearer $HYDRA_DB_API_KEY" \
-H "API-Version: 2"
{
"provider": "slack",
"connector_id": "{connector_id}",
"resources": [
{
"id": "{resource_id}",
"name": "general",
"resource_type": "channel"
},
{
"id": "{resource_id_2}",
"name": "engineering",
"resource_type": "channel"
}
]
}
Queries the provider (Slack, GitHub, Linear, Notion, or Gmail) and returns every resource available to the connector’s credentials: channels, repos, teams, projects, databases, pages, or labels. Call this before Configure to decide which resources to activate.
Each item in
curl 'https://api.hydradb.com/connectors/{connector_id}/discover' \
-H "Authorization: Bearer $HYDRA_DB_API_KEY" \
-H "API-Version: 2"
Path parameters
| Name | Description |
|---|---|
id | Connector UUID returned by POST /connectors. |
{
"provider": "slack",
"connector_id": "{connector_id}",
"resources": [
{
"id": "{resource_id}",
"name": "general",
"resource_type": "channel"
},
{
"id": "{resource_id_2}",
"name": "engineering",
"resource_type": "channel"
}
]
}
resources represents one syncable unit. Pass the id and resource_type values to Configure to activate the ones you want.
Related Resources
- Next: Configure Connector - activate discovered resources
- Connector Resources - see already-activated resources and their sync state
Authorizations
API key sent as a Bearer token: "Bearer prefix.secret"
Path Parameters
Connector ID
Example:
"HydraDoc1234"
Query Parameters
Opaque pagination cursor from a previous response's next_cursor
Max resources per page, 1-100 (values above 100 are clamped)
Response
OK
Example:
true
Opaque pagination cursor for the next page; null or absent when no more pages.
Example:
"eyJvZmZzZXQiOjUwfQ=="
External provider being synced (e.g. slack, github, linear, notion, gmail).
Example:
"slack"
Show child attributes
Show child attributes
Example:
[
{
"id": "HydraDoc1234",
"metadata": { "department": "finance", "priority": 7 },
"name": "general",
"resource_type": "channel"
}
]
Was this page helpful?
