# The X, LinkedIn and TikTok accounts the workspace posts as

`GET` `/api/v1/workspaces/{workspace}/connections`

`listConnections`

May backfill this workspace's migrated connection identities from saved credentials; this GET can update account metadata. Who can call it: An API token with the "read" scope, or a member of this workspace, signed in.

**Scopes:** `read`

**Parameters**

| Name | In | Required | Type and constraints | Description / example |
| --- | --- | --- | --- | --- |
| `workspace` | path | Yes | `string`; pattern: `"^ws_[a-z0-9]{16}$"` |  Example: `"ws_aaaaaaaaaaaaaaaa"` |

**Request example**

```http
GET https://app.flaghand.com/api/v1/workspaces/ws_aaaaaaaaaaaaaaaa/connections
Authorization: Bearer tok_<your workspace token>
```

**Response example**

```json
{
  "connections": [
    {
      "id": "con_gggggggggggggggg",
      "platform": "x",
      "external_id": "123456789",
      "handle": "example_studio",
      "display_name": "Example Studio",
      "status": "active",
      "scopes": [
        "tweet.read",
        "tweet.write",
        "users.read",
        "offline.access"
      ],
      "expires_at": null,
      "renews": true,
      "connected_at": "2026-10-25T16:00:00Z",
      "profile": {
        "name": "Example Studio",
        "handle": "example_studio",
        "kind": "person",
        "verified": "blue",
        "premium": false,
        "headline": null,
        "cta": null,
        "avatar_url": "/api/v1/workspaces/ws_aaaaaaaaaaaaaaaa/cache/0123456789abcdef0123456789abcdef.png",
        "affiliate_url": null,
        "updated_at": "2026-10-25T16:00:00Z"
      }
    }
  ]
}
```

Success: HTTP 200. Content-Type: application/json.

**Errors:** `invalid_request` (400), `internal` (500), `unauthorized` (401), `invalid_token` (401), `session_expired` (401), `bad_origin` (403), `scope_missing` (403), `not_found` (404). See the [error codes](https://app.flaghand.com/docs/errors.md) for meanings and the shared default error response. Other domain errors from that catalog may apply; the response's code and message are authoritative.

**CLI:** `flaghand connections list`

```sh
flaghand connections list --workspace ws_aaaaaaaaaaaaaaaa --json
```

**MCP tool:** `listConnections` (also reachable through `callWriteOperation`; use `getOperation` to load its full schema).

```json
{
  "name": "callWriteOperation",
  "arguments": {
    "operation_id": "listConnections",
    "arguments": {
      "workspace": "ws_aaaaaaaaaaaaaaaa"
    }
  }
}
```

Base URL: `https://app.flaghand.com/api/v1`. Part of the [API reference](https://app.flaghand.com/docs/api.md); every error code is in [errors](https://app.flaghand.com/docs/errors.md).
