# List the agents connected to an organisation

> Page: https://docs.plotwork.dev/api/get-orgs-org-connections. Index of every page: https://docs.plotwork.dev/llms.txt

The agents members connected to the organisation with a browser sign-in, newest first, with who connected each.

`GET /orgs/{org}/connections`

## TL;DR

| Question | Answer |
|---|---|
| What does it do? | List the agents connected to an organisation. |
| What does it take? | `org` in the path. |
| What does it return? | Status 200 with a body of type [`OrgConnectionList`](https://docs.plotwork.dev/api/schemas.md#orgconnectionlist). |
| What can go wrong? | `401` not signed in; `403` a member or a reader may not look (orgs.forbidden); `404` no such organisation, or the caller is not a member of it; `429` too many requests; `503` organisations are not set up on this server. Every failure uses the one error envelope. |

## What it does

The agents members connected to the organisation with a browser sign-in, newest first, with who connected each. The key behind each is never shown. The owner and an admin may look.

## Path parameters

| Field | Type | Required | Description |
|---|---|---|---|
| `org` | `string` | yes | The organisation's id or its slug. |

## Responses

| Status | Meaning | Body |
|---|---|---|
| 200 | The connected agents. | [`OrgConnectionList`](https://docs.plotwork.dev/api/schemas.md#orgconnectionlist) |
| 401 | Not signed in. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 403 | A member or a reader may not look (orgs.forbidden). | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 404 | No such organisation, or the caller is not a member of it. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 429 | Too many requests. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 503 | Organisations are not set up on this server. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |

## Response body

A 200 answer has the type [`OrgConnectionList`](https://docs.plotwork.dev/api/schemas.md#orgconnectionlist).

| Field | Type | Required | Description |
|---|---|---|---|
| `items` | `OrgConnection[]` | yes |  |
| `items[].id` | `string` | yes |  |
| `items[].clientId` | `string` | yes | The OAuth client id the agent registered with. |
| `items[].clientName` | `string` | yes | The name the agent gave itself when it registered. It is a claim, not a fact. |
| `items[].connectedAt` | `integer` | yes | Milliseconds since the epoch. |
| `items[].lastUsedAt` | `integer \| null` | yes | Milliseconds since the epoch, or null if the agent has not made a call. |
| `items[].connectedBy` | `object` | yes | The member who approved the connection. |
| `items[].connectedBy.userId` | `string` | yes |  |
| `items[].connectedBy.email` | `string` | yes |  |

## See also

| Doc | Why |
|---|---|
| [API reference](https://docs.plotwork.dev/api/reference.md) | Every endpoint, and the error envelope |
| [Schemas](https://docs.plotwork.dev/api/schemas.md) | Every request and response type |
| [Tool reference](https://docs.plotwork.dev/mcp/tools.md) | The operations as callable tools |
