Currently Available for GitHub: Resource management endpoints are currently only available for the GitHub connector. These endpoints allow you to select which repositories to sync before syncing begins.
Get Resources
GET /v3/connections/:connectionId/resources
Get available resources (e.g., repositories, folders) for a connection using stored credentials.
Query Parameters
page: Optional. Page number for pagination. Default:1per_page: Optional. Number of resources per page. Default:30
Response
Error Responses
400: Connection missing refresh token401: Unauthorized404: Connection not found501: Provider does not support resource fetching
Provider Support: Not all providers support resource fetching. This endpoint is only available for providers that implement the
fetchResources() method (e.g., GitHub). For providers that don’t support this, you’ll receive a 501 Not Implemented response.Configure Connection
POST /v3/connections/:connectionId/configure
Configure selected resources (e.g., repositories) for a connection and set up webhooks/subscriptions.
Request Body
id: Repository ID (number)name: Repository full name (string)defaultBranch: Default branch name (string)
Response
Error Responses
400: Connection missing refresh token401: Unauthorized404: Connection not found501: Provider does not support resource configuration
Automatic Sync: After successfully configuring resources, an initial sync is automatically triggered for the connection. You don’t need to manually trigger a sync after configuration.