> For the complete documentation index, see [llms.txt](https://docs.stackai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stackai.com/stackai-api/rest-api-v2/connections/get-v2-connections.md).

# GET /v2/connections

## List Connections

> List connections visible to the caller in their organization.\
> \
> Visibility follows RBAC: a non-admin sees connections they created, shared with them\
> (directly or via a group), or carrying an org-level role; an admin sees the whole\
> organization. Degraded connections (rehydration failed) are included with\
> \`status="needs\_reconnection"\`, not dropped.\
> \
> \*\*How to use\*\*\
> \
> Filter by a catalog provider\_id and select a connection you may use. Non-admin results are access-filtered; missing entries may be unshared. needs\_reconnection means repair is needed. This API has no connection-create route.\
> \
> \*\*Authentication and permissions\*\*\
> \
> Required permissions: \`connections.read\`. Resource and owner access checks also apply.

```json
{"openapi":"3.1.0","info":{"title":"StackAI API","version":"0.1.0"},"tags":[{"name":"endpoint-listConnectionsV2"}],"servers":[{"url":"https://api.stack-ai.com","description":"Hosted API. Use your deployment-specific origin for private installations."}],"security":[{"HTTPBearer":[]}],"components":{"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer","description":"Personal API key (sk_...) or supported user access JWT. See Authentication and authorization for endpoint restrictions and scopes. Use exactly one Authorization header."}},"schemas":{"OffsetBasedPaginationResponse_ConnectionResponseV2_":{"properties":{"response_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Code","description":"Machine-readable response code, when provided."},"meta":{"additionalProperties":true,"type":"object","title":"Meta","description":"Additional metadata","default":{}},"data":{"items":{"$ref":"#/components/schemas/ConnectionResponseV2"},"type":"array","title":"Data"},"offset":{"type":"integer","minimum":0,"title":"Offset","default":0},"limit":{"type":"integer","minimum":0,"title":"Limit","default":50},"total":{"type":"integer","minimum":0,"title":"Total","default":0}},"type":"object","title":"OffsetBasedPaginationResponse[ConnectionResponseV2]"},"ConnectionResponseV2":{"properties":{"connection_id":{"type":"string","format":"uuid","title":"Connection Id"},"provider_id":{"type":"string","title":"Provider Id"},"auth_method":{"type":"string","title":"Auth Method"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"status":{"$ref":"#/components/schemas/ConnectionStatusV2"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["connection_id","provider_id","auth_method","name","status","expires_at","created_at","updated_at"],"title":"ConnectionResponse","description":"A connection on the public v2 surface, deliberately credential-free."},"ConnectionStatusV2":{"type":"string","enum":["active","needs_reconnection"],"title":"ConnectionStatusV2","description":"Public connection status: healthy vs. needing a reconnect."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v2/connections":{"get":{"tags":["endpoint-listConnectionsV2"],"summary":"List Connections","description":"List connections visible to the caller in their organization.\n\nVisibility follows RBAC: a non-admin sees connections they created, shared with them\n(directly or via a group), or carrying an org-level role; an admin sees the whole\norganization. Degraded connections (rehydration failed) are included with\n`status=\"needs_reconnection\"`, not dropped.\n\n**How to use**\n\nFilter by a catalog provider_id and select a connection you may use. Non-admin results are access-filtered; missing entries may be unshared. needs_reconnection means repair is needed. This API has no connection-create route.\n\n**Authentication and permissions**\n\nRequired permissions: `connections.read`. Resource and owner access checks also apply.","operationId":"listConnectionsV2","parameters":[{"name":"provider_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by provider id","title":"Provider Id"},"description":"Filter by provider id"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of items to skip","default":0,"title":"Offset"},"description":"Number of items to skip"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of items per page","default":50,"title":"Limit"},"description":"Number of items per page"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OffsetBasedPaginationResponse_ConnectionResponseV2_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.stackai.com/stackai-api/rest-api-v2/connections/get-v2-connections.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
