Organisations
List the agents connected to an organisation
The agents members connected to the organisation with a browser sign-in, newest first, with who connected each.
GET
/orgs/{org}/connectionsTL;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. |
| 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 |
| 401 | Not signed in. | ErrorResponse |
| 403 | A member or a reader may not look (orgs.forbidden). | ErrorResponse |
| 404 | No such organisation, or the caller is not a member of it. | ErrorResponse |
| 429 | Too many requests. | ErrorResponse |
| 503 | Organisations are not set up on this server. | ErrorResponse |
Response body
A 200 answer has the type 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 | Every endpoint, and the error envelope |
| Schemas | Every request and response type |
| Tool reference | The operations as callable tools |