Organisations
Read which apps may connect to an organisation
"Only approved apps can connect": whether it is on, the approved apps, the organisation's own apps (always allowed), and the apps seen recently.
GET
/orgs/{org}/policies/appsTL;DR
| Question | Answer |
|---|---|
| What does it do? | Read which apps may connect to an organisation. |
| What does it take? | org in the path. |
| What does it return? | Status 200 with a body of type AllowedAppsPolicy. |
| What can go wrong? | 401 not signed in; 403 a member or a reader (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
"Only approved apps can connect": whether it is on, the approved apps, the organisation's own apps (always allowed), and the apps seen recently. The owner and admins.
Path parameters
| Field | Type | Required | Description |
|---|---|---|---|
org | string | yes | The organisation's id or its slug. |
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | The policy. | AllowedAppsPolicy |
| 401 | Not signed in. | ErrorResponse |
| 403 | A member or a reader (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 AllowedAppsPolicy.
| Field | Type | Required | Description |
|---|---|---|---|
enabled | boolean | yes | "Only approved apps can connect". False means any app a member approves may connect. |
apps | PolicyApp[] | yes | The approved apps, by client id, in the order stored. |
apps[].id | string | yes | The app's client id. |
apps[].name | string | null | yes | The name the app registered, a claim; null when no app has the id any more. |
apps[].homepage | string | null | yes | |
apps[].own | boolean | yes | True for the organisation's own registered app, which is always allowed. |
own | PolicyApp[] | yes | The organisation's own registered apps, always allowed while the policy is on. |
own[].id | string | yes | The app's client id. |
own[].name | string | null | yes | The name the app registered, a claim; null when no app has the id any more. |
own[].homepage | string | null | yes | |
own[].own | boolean | yes | True for the organisation's own registered app, which is always allowed. |
recent | object[] | yes | Other apps connected to the organisation in the last 90 days, live or ended, one each, newest first. |
recent[].app | PolicyApp | yes | |
recent[].app.id | string | yes | The app's client id. |
recent[].app.name | string | null | yes | The name the app registered, a claim; null when no app has the id any more. |
recent[].app.homepage | string | null | yes | |
recent[].app.own | boolean | yes | True for the organisation's own registered app, which is always allowed. |
recent[].connections | integer | yes | How many of its connections to the organisation are live. |
recent[].lastConnectedAt | integer | 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 |