> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://apidocs.polytomic.com/2023-04-25/api-reference/connections/shared-connections/list-shared-connections/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://apidocs.polytomic.com/_mcp/server. # List Shared Connections GET https://app.polytomic.com/api/connections/{parent_connection_id}/shared Lists shared copies of a connection. ## Observed rate limits You can use `rate_limit` to inspect observed rate limiting separately from Connection health. A Connection can be healthy while Polytomic has an active rate-limit marker. Shared Connections combine observations recorded for their own ID and their root Connection. Observations recorded only for another shared copy are not included. When these observed periods overlap or touch, `limited_since` reflects the start of the continuous period and `expires_at` reflects its latest expiry. An expired period separated from the active period by a gap does not extend that start. > ⚠️ Observation, not a capacity guarantee > > An active marker does not mean every endpoint or sync is blocked. No active > marker does not guarantee that the upstream service has capacity. The marker > expiry can be extended and is not a promised provider reset or exact retry time. If any required lookup is unavailable, `rate_limit` is `null`. This does not change `status` or `status_error`, and the Connection response is still returned. Reference: https://apidocs.polytomic.com/api-reference/connections/shared-connections/list-shared-connections ## Authentication - `Authorization` header (basic auth, required) — This is the Polytomic deployment key (on-premises only) - `Authorization` header (bearer token, required) — This is the Polytomic API key ## Request ### Path parameters - `parent_connection_id` (string, required) ## Response ### 200 OK - `data` (list of V2ConnectionResponseSchema, optional, nullable) ## Errors ### 401 Unauthorized Error Unauthorized - `code` (integer, optional) — Application-specific error code. - `context` (map from string to any, optional) — Application context. - `error` (string, optional) — Error message. - `status` (string, optional) — Status text. ### 403 Forbidden Error Forbidden - `key` (string, optional) - `message` (string, optional) - `metadata` (map from string to any, optional) - `status` (integer, optional) ### 404 Not Found Error Not Found - `key` (string, optional) - `message` (string, optional) - `metadata` (map from string to any, optional) - `status` (integer, optional) ### 422 Unprocessable Entity Error Unprocessable Entity - `key` (string, optional) - `message` (string, optional) - `metadata` (map from string to any, optional) - `status` (integer, optional) ### 500 Internal Server Error Internal Server Error - `key` (string, optional) - `message` (string, optional) - `metadata` (map from string to any, optional) - `status` (integer, optional) ## Types ### V2ConnectionResponseSchema - `api_calls_last_24_hours` (integer, optional, nullable) — API calls made to service in the last 24h (supported integrations only). - `configuration` (map from string to any, optional, nullable) - `created_at` (datetime, optional) - `created_by` (OutputActor, optional) - `id` (string, optional) - `name` (string, optional) - `organization_id` (string, optional) - `parent_connection_id` (string, optional) — For shared connections, the ID of the parent connection. - `policies` (list of string, optional) - `rate_limit` (V2ConnectionResponseSchemaRateLimit, optional, nullable) — Observed connection-wide rate limiting, independent of connection health. Null when any required lookup is unavailable. Shared connections combine their own marker with their root connection's marker. - `saved` (boolean, optional) - `status` (string, optional) - `status_error` (string, optional) - `type` (V2ConnectionTypeSchema, optional) - `updated_at` (datetime, optional) - `updated_by` (OutputActor, optional) ### OutputActor - `id` (string, optional) - `name` (string, optional) - `type` (string, optional) ### V2ConnectionResponseSchemaRateLimit Observed connection-wide rate limiting, independent of connection health. Null when any required lookup is unavailable. Shared connections combine their own marker with their root connection's marker. - `currently_limited` (boolean, optional) — Whether Polytomic has an unexpired connection-wide rate-limit marker. False means no active observed limit, not guaranteed upstream capacity. - `expires_at` (datetime, optional, nullable) — Marker expiry unless extended. Not a promised provider reset or exact retry time. Null when no active marker exists. - `limited_since` (datetime, optional, nullable) — Start of the continuous rate-limited period. Null when no active marker exists. ### V2ConnectionTypeSchema - `id` (string, optional) - `logo_dark_url` (string, optional) - `logo_url` (string, optional) - `name` (string, optional) - `operations` (list of string, optional, nullable) ## Examples **Response** ```json { "data": [ { "api_calls_last_24_hours": 2021, "configuration": { "database": "example", "hostname": "postgres.example.com", "password": "********", "port": 5432, "username": "user" }, "created_at": "2024-01-15T09:30:00Z", "created_by": { "id": "12345678-1234-1234-1234-123456789012", "name": "John Doe", "type": "user" }, "id": "248df4b7-aa70-47b8-a036-33ac447e668d", "name": "My Postgres Connection", "organization_id": "248df4b7-aa70-47b8-a036-33ac447e668d", "parent_connection_id": "248df4b7-aa70-47b8-a036-33ac447e668d", "policies": [ "248df4b7-aa70-47b8-a036-33ac447e668d" ], "rate_limit": { "currently_limited": true, "expires_at": "2024-01-15T09:30:00Z", "limited_since": "2024-01-15T09:30:00Z" }, "saved": true, "status": "healthy", "status_error": "error message", "type": { "id": "postgresql", "logo_dark_url": "https://connect-assets.polytomic.com/logos/dark/postgresql.svg", "logo_url": "https://connect-assets.polytomic.com/logos/postgresql.svg", "name": "PostgreSQL", "operations": [ "bulksyncsource" ] }, "updated_at": "2024-01-15T09:30:00Z", "updated_by": { "id": "12345678-1234-1234-1234-123456789012", "name": "John Doe", "type": "user" } } ] } ``` **SDK Code** ```python import requests url = "https://app.polytomic.com/api/connections/248df4b7-aa70-47b8-a036-33ac447e668d/shared" headers = { "X-Polytomic-Version": "X-Polytomic-Version" } response = requests.get(url, headers=headers, auth=("", "")) print(response.json()) ``` ```javascript const url = 'https://app.polytomic.com/api/connections/248df4b7-aa70-47b8-a036-33ac447e668d/shared'; const credentials = btoa(":"); const options = { method: 'GET', headers: { 'X-Polytomic-Version': 'X-Polytomic-Version', Authorization: `Basic ${credentials}` } }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://app.polytomic.com/api/connections/248df4b7-aa70-47b8-a036-33ac447e668d/shared" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("X-Polytomic-Version", "X-Polytomic-Version") req.SetBasicAuth("", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby require 'uri' require 'net/http' url = URI("https://app.polytomic.com/api/connections/248df4b7-aa70-47b8-a036-33ac447e668d/shared") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["X-Polytomic-Version"] = 'X-Polytomic-Version' request.basic_auth("", "") response = http.request(request) puts response.read_body ``` ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://app.polytomic.com/api/connections/248df4b7-aa70-47b8-a036-33ac447e668d/shared") .header("X-Polytomic-Version", "X-Polytomic-Version") .basicAuth("", "") .asString(); ``` ```php request('GET', 'https://app.polytomic.com/api/connections/248df4b7-aa70-47b8-a036-33ac447e668d/shared', [ 'headers' => [ 'X-Polytomic-Version' => 'X-Polytomic-Version', ], 'auth' => ['', ''], ]); echo $response->getBody(); ``` ```csharp using RestSharp; using RestSharp.Authenticators; var client = new RestClient("https://app.polytomic.com/api/connections/248df4b7-aa70-47b8-a036-33ac447e668d/shared"); client.Authenticator = new HttpBasicAuthenticator("", ""); var request = new RestRequest(Method.GET); request.AddHeader("X-Polytomic-Version", "X-Polytomic-Version"); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let credentials = Data(":".utf8).base64EncodedString() let headers = [ "X-Polytomic-Version": "X-Polytomic-Version", "Authorization": "Basic \(credentials)" ] let request = NSMutableURLRequest(url: NSURL(string: "https://app.polytomic.com/api/connections/248df4b7-aa70-47b8-a036-33ac447e668d/shared")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```