---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://segmentstream.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# Inspect a connection

GET /api/workspaces/{workspaceId}/connections/{connectionKey}

## Endpoint

**GET**`/api/workspaces/{workspaceId}/connections/{connectionKey}`

Read configuration and authorization status for one connection key. This is a repeatable read. See connections_verify. Required personal key scopes: workspace:view, connections:read.

## Authorization

Bearer token · workspace:view · connections:read

## Parameters

- `workspaceId` *path · uuid · required*

  Workspace UUID returned by list workspaces.

- `connectionKey` *path · string · required*

  Key of a connection in the deployed workspace.

- `includeAuthorizedWith` *query · optional*

  Include the authorization method used by the connection.

- `includeOwnership` *query · optional*

  Include who holds the connection's credentials.

- `API-Version` *header · string · optional*

  Optional platform API major version. Omit to use the current default.

  Allowed values: 1

## Responses

### `200` Success

### application/json schema

```
{
  "type": "object",
  "properties": {
    "access": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/SharedObject_26"
        },
        {
          "type": "null"
        }
      ],
      "description": "Permissions observed for this resource when the server handled the request."
    },
    "bigquery": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "authentication": {
              "type": "string",
              "enum": [
                "service_account_impersonation"
              ],
              "description": "Authentication mechanism reported for this integration."
            },
            "sourceProjectId": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Identifier of the source project."
            },
            "sourceDatasetId": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Identifier of the source dataset."
            },
            "serviceAccountEmail": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Email identifying the service account used for access."
            },
            "lifecycle": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "provisioned",
                    "adopted"
                  ]
                },
                {
                  "type": "null"
                }
              ],
              "description": "Current stage of the resource lifecycle."
            },
            "location": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Region or location in which the resource is hosted."
            },
            "failureCode": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Machine-readable code identifying the failure."
            },
            "verifiedAt": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Time when the item was verified."
            }
          },
          "required": [
            "authentication",
            "sourceProjectId",
            "sourceDatasetId",
            "serviceAccountEmail",
            "lifecycle",
            "location",
            "failureCode",
            "verifiedAt"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ],
      "description": "Configuration or status of the BigQuery destination."
    },
    "kind": {
      "type": "string",
      "enum": [
        "custom",
        "managed",
        "native",
        "api_key"
      ],
      "description": "Discriminator identifying the kind of entry."
    },
    "key": {
      "type": "string",
      "pattern": "^[a-z][a-z0-9_]{0,63}$",
      "description": "Lookup key of the item within its parent."
    },
    "name": {
      "type": "string",
      "minLength": 2,
      "maxLength": 80,
      "allOf": [
        {
          "description": "Name identifying this item within its parent resource."
        }
      ]
    },
    "provider": {
      "type": "string",
      "pattern": "^[a-z][a-z0-9_-]{0,63}$",
      "description": "Provider associated with the connection, event or channel."
    },
    "scopes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Provider scopes requested for this connection."
    },
    "status": {
      "type": "string",
      "enum": [
        "configuration_required",
        "authorization_required",
        "reauthorization_required",
        "connected",
        "provisioning",
        "access_required",
        "setup_failed"
      ],
      "description": "Current lifecycle or execution status."
    },
    "fields": {
      "anyOf": [
        {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string",
                "pattern": "^[a-z][a-z0-9_]{0,63}$",
                "description": "Lookup key of the item within its parent."
              },
              "label": {
                "type": "string",
                "description": "Human-readable label for this field or item."
              },
              "description": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Human-readable explanation of the item."
              },
              "owned": {
                "type": "boolean",
                "description": "Whether the workspace owns this resource."
              },
              "required": {
                "type": "boolean",
                "description": "Whether the field or capability is mandatory."
              },
              "requiresAuthorization": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Whether the connection needs authorization before use."
              },
              "secretName": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Name under which the workspace stores the secret."
              },
              "isSet": {
                "type": "boolean",
                "description": "Whether a value has been supplied."
              },
              "updatedAt": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Time when the item was updated."
              },
              "verification": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "enum": [
                      true
                    ]
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "A value only the platform's checks read, such as a webhook signing secret."
              }
            },
            "required": [
              "key",
              "label",
              "owned",
              "required",
              "isSet"
            ],
            "additionalProperties": false
          }
        },
        {
          "type": "null"
        }
      ],
      "description": "Fields available in the definition or result."
    },
    "configurationRevision": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Revision of the configuration used for this observation."
    },
    "redirectUri": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Registered callback address for the authorization flow."
    },
    "webhookUrl": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Where the workspace's own provider application delivers webhooks: WhatsApp's own Meta app."
    },
    "authorizationMethods": {
      "anyOf": [
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "consent",
              "token",
              "client_credentials"
            ]
          }
        },
        {
          "type": "null"
        }
      ],
      "description": "How a member may authorize the connection, listed where its declaration names more than the provider's consent flow (connections manifest schema 26): `token`, an access token of its application they supply (`authorizeWithToken`), and `client_credentials`, its application's OAuth client credentials grant (`authorizeWithClientCredentials`). WhatsApp's tokens are its provider's and are not listed."
    },
    "authorizedWith": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "consent",
            "token",
            "client_credentials"
          ]
        },
        {
          "type": "null"
        }
      ],
      "description": "How the connection is authorized, while it is connected: `consent`, through the provider's consent page; `token`, with an access token the member supplied; `client_credentials`, with its application's client credentials grant. Absent where the credential predates recording it, and unless the request asks with `includeAuthorizedWith=true`."
    },
    "ownership": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "workspace",
            "user"
          ]
        },
        {
          "type": "null"
        }
      ],
      "description": "Who holds the connection's credentials: `workspace`, one credential the workspace shares, or `user`, one credential for each workspace user who connected it in the app. Absent unless the request asks with `includeOwnership=true`."
    },
    "owners": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "connected": {
              "type": "integer",
              "minimum": 0,
              "description": "How many users hold a usable credential of the connection."
            },
            "reconnectRequired": {
              "type": "integer",
              "minimum": 0,
              "description": "How many users must connect the connection again."
            }
          },
          "required": [
            "connected",
            "reconnectRequired"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ],
      "description": "For a connection each user connects, how many users' credentials are usable and how many must be connected again. Absent for a shared connection, and unless the request asks with `includeOwnership=true`."
    }
  },
  "required": [
    "kind",
    "key",
    "name",
    "provider",
    "scopes",
    "status"
  ],
  "additionalProperties": false
}
```

[Full schema and referenced types ↗](https://segmentstream.com/openapi.json)

### Example

```
{
  "kind": "custom",
  "key": "example",
  "name": "analytics",
  "provider": "example",
  "scopes": [],
  "status": "configuration_required"
}
```

### Response headers

- API-Version

  Supported platform API major version.

- RateLimit

  Remaining quota (r) and seconds until reset (t), when admission is available.

- RateLimit-Policy

  Request quota (q) and window in seconds (w).

- Deprecation

  Present when the operation is deprecated. RFC 9745 date in seconds since the Unix epoch.

- Sunset

  Present when retirement is scheduled. HTTP date of planned removal, per RFC 8594.

### `400` Error

### application/json schema

```
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "description": "Machine-readable error code or diagnostic reported by the operation."
    },
    "detail": {
      "type": "string",
      "description": "Human-readable explanation of the failure."
    },
    "requestId": {
      "type": "string",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
      "format": "uuid",
      "description": "Correlation ID for tracing the request with support."
    },
    "retryable": {
      "type": "boolean",
      "description": "Whether retrying the same failed request may succeed."
    }
  },
  "required": [
    "error",
    "detail",
    "requestId",
    "retryable"
  ],
  "additionalProperties": true
}
```

[Full schema and referenced types ↗](https://segmentstream.com/openapi.json)

### Response headers

- API-Version

  Supported platform API major version.

- RateLimit

  Remaining quota (r) and seconds until reset (t), when admission is available.

- RateLimit-Policy

  Request quota (q) and window in seconds (w).

### `401` Error

### application/json schema

```
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "description": "Machine-readable error code or diagnostic reported by the operation."
    },
    "detail": {
      "type": "string",
      "description": "Human-readable explanation of the failure."
    },
    "requestId": {
      "type": "string",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
      "format": "uuid",
      "description": "Correlation ID for tracing the request with support."
    },
    "retryable": {
      "type": "boolean",
      "description": "Whether retrying the same failed request may succeed."
    }
  },
  "required": [
    "error",
    "detail",
    "requestId",
    "retryable"
  ],
  "additionalProperties": true
}
```

[Full schema and referenced types ↗](https://segmentstream.com/openapi.json)

### Response headers

- API-Version

  Supported platform API major version.

- RateLimit

  Remaining quota (r) and seconds until reset (t), when admission is available.

- RateLimit-Policy

  Request quota (q) and window in seconds (w).

### `403` Error

### application/json schema

```
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "description": "Machine-readable error code or diagnostic reported by the operation."
    },
    "detail": {
      "type": "string",
      "description": "Human-readable explanation of the failure."
    },
    "requestId": {
      "type": "string",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
      "format": "uuid",
      "description": "Correlation ID for tracing the request with support."
    },
    "retryable": {
      "type": "boolean",
      "description": "Whether retrying the same failed request may succeed."
    }
  },
  "required": [
    "error",
    "detail",
    "requestId",
    "retryable"
  ],
  "additionalProperties": true
}
```

[Full schema and referenced types ↗](https://segmentstream.com/openapi.json)

### Response headers

- API-Version

  Supported platform API major version.

- RateLimit

  Remaining quota (r) and seconds until reset (t), when admission is available.

- RateLimit-Policy

  Request quota (q) and window in seconds (w).

### `404` Error

### application/json schema

```
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "description": "Machine-readable error code or diagnostic reported by the operation."
    },
    "detail": {
      "type": "string",
      "description": "Human-readable explanation of the failure."
    },
    "requestId": {
      "type": "string",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
      "format": "uuid",
      "description": "Correlation ID for tracing the request with support."
    },
    "retryable": {
      "type": "boolean",
      "description": "Whether retrying the same failed request may succeed."
    }
  },
  "required": [
    "error",
    "detail",
    "requestId",
    "retryable"
  ],
  "additionalProperties": true
}
```

[Full schema and referenced types ↗](https://segmentstream.com/openapi.json)

### Response headers

- API-Version

  Supported platform API major version.

- RateLimit

  Remaining quota (r) and seconds until reset (t), when admission is available.

- RateLimit-Policy

  Request quota (q) and window in seconds (w).

### `406` Unsupported platform API version

### application/json schema

```
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "description": "Machine-readable error code or diagnostic reported by the operation."
    },
    "detail": {
      "type": "string",
      "description": "Human-readable explanation of the failure."
    },
    "requestId": {
      "type": "string",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
      "format": "uuid",
      "description": "Correlation ID for tracing the request with support."
    },
    "retryable": {
      "type": "boolean",
      "description": "Whether retrying the same failed request may succeed."
    }
  },
  "required": [
    "error",
    "detail",
    "requestId",
    "retryable"
  ],
  "additionalProperties": true
}
```

[Full schema and referenced types ↗](https://segmentstream.com/openapi.json)

### Response headers

- API-Version

  Supported platform API major version.

- RateLimit

  Remaining quota (r) and seconds until reset (t), when admission is available.

- RateLimit-Policy

  Request quota (q) and window in seconds (w).

### `409` Error

### application/json schema

```
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "description": "Machine-readable error code or diagnostic reported by the operation."
    },
    "detail": {
      "type": "string",
      "description": "Human-readable explanation of the failure."
    },
    "requestId": {
      "type": "string",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
      "format": "uuid",
      "description": "Correlation ID for tracing the request with support."
    },
    "retryable": {
      "type": "boolean",
      "description": "Whether retrying the same failed request may succeed."
    }
  },
  "required": [
    "error",
    "detail",
    "requestId",
    "retryable"
  ],
  "additionalProperties": true
}
```

[Full schema and referenced types ↗](https://segmentstream.com/openapi.json)

### Response headers

- API-Version

  Supported platform API major version.

- RateLimit

  Remaining quota (r) and seconds until reset (t), when admission is available.

- RateLimit-Policy

  Request quota (q) and window in seconds (w).

### `429` Request limit reached

### application/json schema

```
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "description": "Machine-readable error code or diagnostic reported by the operation."
    },
    "detail": {
      "type": "string",
      "description": "Human-readable explanation of the failure."
    },
    "requestId": {
      "type": "string",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
      "format": "uuid",
      "description": "Correlation ID for tracing the request with support."
    },
    "retryable": {
      "type": "boolean",
      "description": "Whether retrying the same failed request may succeed."
    }
  },
  "required": [
    "error",
    "detail",
    "requestId",
    "retryable"
  ],
  "additionalProperties": true
}
```

[Full schema and referenced types ↗](https://segmentstream.com/openapi.json)

### Response headers

- Retry-After

  Seconds to wait before retrying the request.

- API-Version

  Supported platform API major version.

- RateLimit

  Remaining quota (r) and seconds until reset (t), when admission is available.

- RateLimit-Policy

  Request quota (q) and window in seconds (w).

### `500` Error

### application/json schema

```
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "description": "Machine-readable error code or diagnostic reported by the operation."
    },
    "detail": {
      "type": "string",
      "description": "Human-readable explanation of the failure."
    },
    "requestId": {
      "type": "string",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
      "format": "uuid",
      "description": "Correlation ID for tracing the request with support."
    },
    "retryable": {
      "type": "boolean",
      "description": "Whether retrying the same failed request may succeed."
    }
  },
  "required": [
    "error",
    "detail",
    "requestId",
    "retryable"
  ],
  "additionalProperties": true
}
```

[Full schema and referenced types ↗](https://segmentstream.com/openapi.json)

### Response headers

- API-Version

  Supported platform API major version.

- RateLimit

  Remaining quota (r) and seconds until reset (t), when admission is available.

- RateLimit-Policy

  Request quota (q) and window in seconds (w).

### `503` Error

### application/json schema

```
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "description": "Machine-readable error code or diagnostic reported by the operation."
    },
    "detail": {
      "type": "string",
      "description": "Human-readable explanation of the failure."
    },
    "requestId": {
      "type": "string",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
      "format": "uuid",
      "description": "Correlation ID for tracing the request with support."
    },
    "retryable": {
      "type": "boolean",
      "description": "Whether retrying the same failed request may succeed."
    }
  },
  "required": [
    "error",
    "detail",
    "requestId",
    "retryable"
  ],
  "additionalProperties": true
}
```

[Full schema and referenced types ↗](https://segmentstream.com/openapi.json)

### Response headers

- API-Version

  Supported platform API major version.

- RateLimit

  Remaining quota (r) and seconds until reset (t), when admission is available.

- RateLimit-Policy

  Request quota (q) and window in seconds (w).

[Read as Markdown ↗](https://segmentstream.com/docs/api/connections/connections_get.md)
