---
title: "List workspace integration connections"
---

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

Path: Shiba public API › connections

`GET /connections`

## Authentication

- `cookieAuth`, apiKey, in cookie

## Header parameters

- `x-shiba-workspace` (`listConnections.header.x-shiba-workspace`; string, required)

## Code samples

### cURL

```bash
curl --request GET \
  --url '<base-url>/api/v1/connections' \
  --header 'x-shiba-workspace: string' \
  --cookie 'better-auth.session_token=<better-auth.session_token>'
```

### TypeScript

```typescript
const url = '<base-url>/api/v1/connections';
const options = {
  method: 'GET',
  headers: {'x-shiba-workspace': 'string', cookie: 'better-auth.session_token=<better-auth.session_token>'}
};

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

### Python

```python
import requests

url = "<base-url>/api/v1/connections"

headers = {
    "cookie": "better-auth.session_token=<better-auth.session_token>",
    "x-shiba-workspace": "string"
}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

Success

#### Example

```json
{
  "ok": true,
  "connections": [
    {
      "id": "string",
      "scope": "string",
      "workspaceId": "string",
      "providerKey": "string",
      "version": 9007199254740991,
      "generation": 9007199254740991,
      "state": "string",
      "identityLabel": "string",
      "readiness": "string",
      "grantCount": 9007199254740991,
      "uncertainExecution": true,
      "property1": null,
      "property2": null
    }
  ]
}
```

- `connections` (`listConnections.response.200.connections`; array<object>, required)
  - `id` (`listConnections.response.200.connections.id`; string, required)
  - `providerKey` (`listConnections.response.200.connections.providerKey`; string, required)
  - `state` (`listConnections.response.200.connections.state`; string, required)
  - `scope` (`listConnections.response.200.connections.scope`; string, optional)
  - `workspaceId` (`listConnections.response.200.connections.workspaceId`; string, optional)
  - `version` (`listConnections.response.200.connections.version`; integer, optional)
    - max 9007199254740991
  - `generation` (`listConnections.response.200.connections.generation`; integer, optional)
    - max 9007199254740991
  - `identityLabel` (`listConnections.response.200.connections.identityLabel`; string | null, optional)
  - `readiness` (`listConnections.response.200.connections.readiness`; string, optional)
  - `grantCount` (`listConnections.response.200.connections.grantCount`; integer, optional)
    - min 0; max 9007199254740991
  - `uncertainExecution` (`listConnections.response.200.connections.uncertainExecution`; boolean, optional)
- `ok` (`listConnections.response.200.ok`; boolean, optional)

### 400

Workspace selector required

#### Example

```json
{
  "ok": false,
  "error": "string",
  "detail": "string",
  "code": "string"
}
```

- `error` (`listConnections.response.400.error`; string, required)
- `ok` (`listConnections.response.400.ok`; boolean, optional)
- `detail` (`listConnections.response.400.detail`; string, optional)
- `code` (`listConnections.response.400.code`; string, optional)

### 401

Unauthorized

#### Example

```json
{
  "ok": false,
  "error": "string",
  "detail": "string",
  "code": "string"
}
```

- `error` (`listConnections.response.401.error`; string, required)
- `ok` (`listConnections.response.401.ok`; boolean, optional)
- `detail` (`listConnections.response.401.detail`; string, optional)
- `code` (`listConnections.response.401.code`; string, optional)


Source: https://tryshiba.dev/reference/api/connections/listConnections/index.md
