---
title: "listOrgConnections"
---

> Documentation Index
> Fetch the complete documentation index at: https://buildrforge.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# listOrgConnections

Path: Forge API › connections

`GET /orgs/{org_id}/connections`

List the org's connections and your own user connections, without credentials, each with the name of the person who connected it.

## Path parameters

- `org_id` (`listOrgConnections.path.org_id`; string, required)
  - pattern: `^org_[0-7][0-9a-hjkmnp-tv-z]{25}$`

## Code samples

### cURL

```bash
curl --request GET \
  --url '<base-url>/orgs/<org_id>/connections'
```

### TypeScript

```typescript
const url = '<base-url>/orgs/<org_id>/connections';
const options = {method: 'GET'};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "<base-url>/orgs/<org_id>/connections"

response = requests.get(url)

print(response.text)
```

## Responses

### 200

Success

#### Example

```json
[
  {
    "id": "string",
    "provider_id": "string",
    "method": "string",
    "label": "string",
    "description": "string",
    "owner": {
      "id": "string",
      "display_name": "string"
    },
    "audience": "org",
    "account_info": {
      "external_id": "string",
      "display_name": "string",
      "username": "string",
      "email": "string"
    },
    "health": {
      "extension_name": "string",
      "version": "string",
      "status": "healthy",
      "message": "string",
      "updated_at": "string"
    },
    "created_at": "string"
  }
]
```

- `id` (`listOrgConnections.response.200.id`; string, required)
  - pattern: `^connection_[0-7][0-9a-hjkmnp-tv-z]{25}$`
- `provider_id` (`listOrgConnections.response.200.provider_id`; string, required)
  - pattern: `^prv_[0-9a-f]{64}$`
- `method` (`listOrgConnections.response.200.method`; string, required)
  - minLength: `1`
- `label` (`listOrgConnections.response.200.label`; string, required)
- `description` (`listOrgConnections.response.200.description`; string, required)
- `owner` (`listOrgConnections.response.200.owner`; object, required)
  - `id` (`listOrgConnections.response.200.owner.id`; string, required)
    - pattern: `^[a-z](?:[a-z_]{0,61}[a-z])?_[0-7][0-9a-hjkmnp-tv-z]{25}$`
  - `display_name` (`listOrgConnections.response.200.owner.display_name`; string, required)
    - minLength: `1`
- `audience` (`listOrgConnections.response.200.audience`; string, required)
  - one of `"org"`, `"user"`
- `account_info` (`listOrgConnections.response.200.account_info`; any of, required)
  - any of the following:
    - `object`
      - `external_id` (`listOrgConnections.response.200.account_info.1.external_id`; string, optional)
      - `display_name` (`listOrgConnections.response.200.account_info.1.display_name`; string, optional)
      - `username` (`listOrgConnections.response.200.account_info.1.username`; string, optional)
      - `email` (`listOrgConnections.response.200.account_info.1.email`; string, optional)
    - `null`
- `health` (`listOrgConnections.response.200.health`; any of, required)
  - any of the following:
    - `object`
      - `extension_name` (`listOrgConnections.response.200.health.1.extension_name`; any of, required)
        - any of the following: `string`, `null`
      - `version` (`listOrgConnections.response.200.health.1.version`; any of, required)
        - any of the following: `string`, `null`
      - `status` (`listOrgConnections.response.200.health.1.status`; string, required)
        - one of `"healthy"`, `"unhealthy"`
      - `message` (`listOrgConnections.response.200.health.1.message`; any of, required)
        - any of the following: `string`, `null`
      - `updated_at` (`listOrgConnections.response.200.health.1.updated_at`; string, required)
    - `null`
- `created_at` (`listOrgConnections.response.200.created_at`; string, required)

### 400

InvalidRequest

#### Example

```json
{
  "_tag": "InvalidRequest",
  "part": "path",
  "issues": [
    {
      "path": [
        "string"
      ],
      "message": "string"
    }
  ]
}
```

- `_tag` (`listOrgConnections.response.400._tag`; string, required)
  - one of `"InvalidRequest"`
- `part` (`listOrgConnections.response.400.part`; string, required)
  - one of `"path"`, `"query"`, `"headers"`, `"body"`
- `issues` (`listOrgConnections.response.400.issues`; array of object, required)
  - `path` (`listOrgConnections.response.400.issues.path`; array\<any of\>, required)
    - any of the following: `string`, `integer`
  - `message` (`listOrgConnections.response.400.issues.message`; string, required)

### 401

InvalidCredentials

#### Example

```json
{
  "_tag": "InvalidCredentials"
}
```

- `_tag` (`listOrgConnections.response.401._tag`; string, required)
  - one of `"InvalidCredentials"`

### 403

Forbidden | ForbiddenOrigin | RequiresPersonalSession | RunBranchRequired

#### Example

```json
{
  "_tag": "Forbidden",
  "message": "string"
}
```

Any of the following:

- `ForbiddenEncoded`
  - `_tag` (`ForbiddenEncoded._tag`; string, required)
    - one of `"Forbidden"`
  - `message` (`ForbiddenEncoded.message`; string, required)
- `ForbiddenOriginEncoded`
  - `_tag` (`ForbiddenOriginEncoded._tag`; string, required)
    - one of `"ForbiddenOrigin"`
- `RequiresPersonalSessionEncoded`
  - `_tag` (`RequiresPersonalSessionEncoded._tag`; string, required)
    - one of `"RequiresPersonalSession"`
- `RunBranchRequiredEncoded`
  - `_tag` (`RunBranchRequiredEncoded._tag`; string, required)
    - one of `"RunBranchRequired"`
  - `branch` (`RunBranchRequiredEncoded.branch`; string, required)
    - minLength: `1`
  - `message` (`RunBranchRequiredEncoded.message`; string, required)

### 404

OrgNotFound

#### Example

```json
{
  "_tag": "OrgNotFound"
}
```

- `_tag` (`listOrgConnections.response.404._tag`; string, required)
  - one of `"OrgNotFound"`

### 429

RateLimited

#### Example

```json
{
  "_tag": "RateLimited"
}
```

- `_tag` (`listOrgConnections.response.429._tag`; string, required)
  - one of `"RateLimited"`

### 500

OrgFailure

#### Example

```json
{
  "_tag": "OrgFailure",
  "reason": "string"
}
```

- `_tag` (`listOrgConnections.response.500._tag`; string, required)
  - one of `"OrgFailure"`
- `reason` (`listOrgConnections.response.500.reason`; string, required)

### 503

SessionUnavailable | RateLimitUnavailable

#### Example

```json
{
  "_tag": "SessionUnavailable"
}
```

Any of the following:

- `SessionUnavailableEncoded`
  - `_tag` (`SessionUnavailableEncoded._tag`; string, required)
    - one of `"SessionUnavailable"`
- `RateLimitUnavailableEncoded`
  - `_tag` (`RateLimitUnavailableEncoded._tag`; string, required)
    - one of `"RateLimitUnavailable"`


Source: https://buildrforge.com/docs/api/list-org-connections/index.md
