---
title: "Apps"
description: "Developer clients, installed apps and explicit session-bound consent."
url: https://doorman.fyi/docs/reference/apps
markdown: https://doorman.fyi/docs/reference/apps.md
area: "API reference"
section: "API reference"
---

# Apps

Developer clients, installed apps and explicit session-bound consent.

Source: https://doorman.fyi/docs/reference/apps

## List developer apps

`GET /v1/apps`

Access `session`: a console session only; an API key gets 403 `session_required`.

The signed-in developer's active clients. Unowned dynamic registrations are not included.

OAuth: not available to delegated app tokens.

Also available as [`client.apps.list`](https://doorman.fyi/docs/sdk/reference/apps.md#apps-list) in TypeScript, [`client.apps.list`](https://doorman.fyi/docs/python/reference/apps.md#apps-list) in Python and [`doorman apps list`](https://doorman.fyi/docs/cli/commands/apps.md#apps-list) on the command line.

Organizations: every member's console session may call it. See [Roles and permissions](https://doorman.fyi/docs/organizations.md#roles).

Answers `200`: The apps.

**Response 200: AppList**
The developer's registered apps.
- `data` (App[])

**Errors**

| Status | Error | Meaning |
| --- | --- | --- |
| 401 | `unauthorized` | The credential was missing, malformed, revoked or belongs to an inactive account. |
| 401 | `session_invalid` | The console session token could not be verified. |
| 401 | `session_expired` | The console session token has expired. |
| 401 | `session_claims_missing` | The session token does not carry a verified email address. |
| 403 | `session_required` | Account keys, developer apps, relying parties, installations, consent, approving a sign-in and the assistant require a console session. So does loosening the security policy, trusting a sender, releasing held mail, allowing a sign-in, letting agents sign in to new services alone or telling a service who owns an agent, unless the account allows its account keys to. |
| 403 | `account_suspended` | The account is suspended. |
| 403 | `account_deleted` | The account was deleted. |
| 403 | `member_deactivated` | The signed-in person's access to the organization was deactivated, or they were removed from it. It holds from their next request, whatever their session token says. An admin of the organization can let a deactivated member in again. |
| 409 | `account_mismatch` | The request named another account in `x-doorman-account` than the one its credential acts for, as happens when the console's organization was switched in another tab. Reload and try again. |
| 500 | `internal_error` | Something went wrong on the server. |

curl:
```sh
curl -s "https://api.doorman.fyi/v1/apps" \
  -H "authorization: Bearer $DOORMAN_API_KEY"
```

TypeScript:
```ts
const response = await fetch("https://api.doorman.fyi/v1/apps", {
  headers: {
    authorization: `Bearer ${process.env.DOORMAN_API_KEY}`,
  },
  redirect: "manual", credentials: "omit",
});
if (!response.ok) throw new Error(`The API answered ${response.status}.`);
const result = await response.json();
```

Python:
```python
import os
import requests

response = requests.get(
    "https://api.doorman.fyi/v1/apps",
    headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
    allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()
```

## Register an app

`POST /v1/apps`

Access `session`: a console session only; an API key gets 403 `session_required`.

Register exact redirect URIs and allowed scopes. Confidential clients receive a client secret once. Public clients still require S256 PKCE.

OAuth: not available to delegated app tokens.

Also available as [`client.apps.create`](https://doorman.fyi/docs/sdk/reference/apps.md#apps-create) in TypeScript, [`client.apps.create`](https://doorman.fyi/docs/python/reference/apps.md#apps-create) in Python and [`doorman apps create`](https://doorman.fyi/docs/cli/commands/apps.md#apps-create) on the command line.

Organizations: a member's console session needs `apps:manage`. See [Roles and permissions](https://doorman.fyi/docs/organizations.md#roles).

**Request body (application/json): CreateApp**
Register a client. Confidential clients receive a one-time secret; every client uses S256 PKCE.
- `name` (string)
- `redirectUris` (string[])
- `scopes` (("account:read" | "inboxes:read" | "inboxes:write" | "mail:read" | "mail:write" | "mail:send" | "mail:draft" | "events:read" | "webhooks:manage" | "rules:manage")[])
- `tokenEndpointAuthMethod` ("none" | "client_secret_post", optional)

Answers `201`: The app and its one-time secret, if any.

**Response 201: CreatedApp**
The client and, for confidential clients only, its secret shown once.
- `id` (string): An OAuth client identifier. Example: `app_01jc5f1a2b3c4d5e6f7g8h9j0k`
- `name` (string)
- `redirectUris` (string[])
- `scopes` (("account:read" | "inboxes:read" | "inboxes:write" | "mail:read" | "mail:write" | "mail:send" | "mail:draft" | "events:read" | "webhooks:manage" | "rules:manage")[])
- `tokenEndpointAuthMethod` ("none" | "client_secret_post")
- `status` ("active" | "deleted")
- `createdAt` (string (date-time)) Example: `2026-11-05T10:05:00.000Z`
- `updatedAt` (string (date-time)) Example: `2026-11-05T10:05:00.000Z`
- `clientSecret` (string | null)

**Errors**

| Status | Error | Meaning |
| --- | --- | --- |
| 400 | `validation_error` | A field is missing or invalid; the message names it. |
| 401 | `unauthorized` | The credential was missing, malformed, revoked or belongs to an inactive account. |
| 401 | `session_invalid` | The console session token could not be verified. |
| 401 | `session_expired` | The console session token has expired. |
| 401 | `session_claims_missing` | The session token does not carry a verified email address. |
| 403 | `session_required` | Account keys, developer apps, relying parties, installations, consent, approving a sign-in and the assistant require a console session. So does loosening the security policy, trusting a sender, releasing held mail, allowing a sign-in, letting agents sign in to new services alone or telling a service who owns an agent, unless the account allows its account keys to. |
| 403 | `account_suspended` | The account is suspended. |
| 403 | `account_deleted` | The account was deleted. |
| 403 | `permission_denied` | The signed-in member's role in the organization lacks a permission the operation needs; `permission` names it. An admin of the organization can do it, or change the member's role. |
| 403 | `member_deactivated` | The signed-in person's access to the organization was deactivated, or they were removed from it. It holds from their next request, whatever their session token says. An admin of the organization can let a deactivated member in again. |
| 409 | `limit_reached` | The abuse ceiling for inboxes, custom domains, keys, endpoints, services, relying parties, the services an address signs in to, the sends an inbox has waiting for its owner or the invitations an organization has open; delete, revoke or decide one first. |
| 409 | `account_mismatch` | The request named another account in `x-doorman-account` than the one its credential acts for, as happens when the console's organization was switched in another tab. Reload and try again. |
| 500 | `internal_error` | Something went wrong on the server. |

curl:
```sh
curl -s -X POST "https://api.doorman.fyi/v1/apps" \
  -H "authorization: Bearer $DOORMAN_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "name": "Mail triage",
    "redirectUris": [
      "https://agent.example.com/callback"
    ],
    "scopes": [
      "mail:read"
    ]
  }'
```

TypeScript:
```ts
const response = await fetch("https://api.doorman.fyi/v1/apps", {
  method: "POST",
  headers: {
    authorization: `Bearer ${process.env.DOORMAN_API_KEY}`,
    "content-type": "application/json",
  },
  redirect: "manual", credentials: "omit",
  body: JSON.stringify({
    "name": "Mail triage",
    "redirectUris": [
      "https://agent.example.com/callback"
    ],
    "scopes": [
      "mail:read"
    ]
  }),
});
if (!response.ok) throw new Error(`The API answered ${response.status}.`);
const result = await response.json();
```

Python:
```python
import os
import requests

response = requests.post(
    "https://api.doorman.fyi/v1/apps",
    headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
    json={
        "name": "Mail triage",
        "redirectUris": ["https://agent.example.com/callback"],
        "scopes": ["mail:read"],
    },
    allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()
```

## Read an app

`GET /v1/apps/{appId}`

Access `session`: a console session only; an API key gets 403 `session_required`.

One client owned by this developer, never its secret.

OAuth: not available to delegated app tokens.

Also available as [`client.apps.get`](https://doorman.fyi/docs/sdk/reference/apps.md#apps-get) in TypeScript, [`client.apps.get`](https://doorman.fyi/docs/python/reference/apps.md#apps-get) in Python and [`doorman apps get`](https://doorman.fyi/docs/cli/commands/apps.md#apps-get) on the command line.

Organizations: every member's console session may call it. See [Roles and permissions](https://doorman.fyi/docs/organizations.md#roles).

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `appId` | path | `string` | yes | The developer's client. Example: `app_01jc5f1a2b3c4d5e6f7g8h9j0k`. |

Answers `200`: The app.

**Response 200: App**
A registered client without its secret. A display name is not evidence of a verified developer.
- `id` (string): An OAuth client identifier. Example: `app_01jc5f1a2b3c4d5e6f7g8h9j0k`
- `name` (string)
- `redirectUris` (string[])
- `scopes` (("account:read" | "inboxes:read" | "inboxes:write" | "mail:read" | "mail:write" | "mail:send" | "mail:draft" | "events:read" | "webhooks:manage" | "rules:manage")[])
- `tokenEndpointAuthMethod` ("none" | "client_secret_post")
- `status` ("active" | "deleted")
- `createdAt` (string (date-time)) Example: `2026-11-05T10:05:00.000Z`
- `updatedAt` (string (date-time)) Example: `2026-11-05T10:05:00.000Z`

Example 200 response:
```json
{
  "id": "app_01jc5f1a2b3c4d5e6f7g8h9j0k",
  "name": "Mail triage",
  "redirectUris": [
    "https://agent.example.com/callback"
  ],
  "scopes": [
    "mail:read"
  ],
  "tokenEndpointAuthMethod": "none",
  "status": "active",
  "createdAt": "2026-11-05T10:05:00.000Z",
  "updatedAt": "2026-11-05T10:05:00.000Z"
}
```

**Errors**

| Status | Error | Meaning |
| --- | --- | --- |
| 401 | `unauthorized` | The credential was missing, malformed, revoked or belongs to an inactive account. |
| 401 | `session_invalid` | The console session token could not be verified. |
| 401 | `session_expired` | The console session token has expired. |
| 401 | `session_claims_missing` | The session token does not carry a verified email address. |
| 403 | `session_required` | Account keys, developer apps, relying parties, installations, consent, approving a sign-in and the assistant require a console session. So does loosening the security policy, trusting a sender, releasing held mail, allowing a sign-in, letting agents sign in to new services alone or telling a service who owns an agent, unless the account allows its account keys to. |
| 403 | `account_suspended` | The account is suspended. |
| 403 | `account_deleted` | The account was deleted. |
| 403 | `member_deactivated` | The signed-in person's access to the organization was deactivated, or they were removed from it. It holds from their next request, whatever their session token says. An admin of the organization can let a deactivated member in again. |
| 404 | `not_found` | No such resource for this caller, or no such route. |
| 409 | `account_mismatch` | The request named another account in `x-doorman-account` than the one its credential acts for, as happens when the console's organization was switched in another tab. Reload and try again. |
| 500 | `internal_error` | Something went wrong on the server. |

curl:
```sh
curl -s "https://api.doorman.fyi/v1/apps/app_01jc5f1a2b3c4d5e6f7g8h9j0k" \
  -H "authorization: Bearer $DOORMAN_API_KEY"
```

TypeScript:
```ts
const response = await fetch("https://api.doorman.fyi/v1/apps/app_01jc5f1a2b3c4d5e6f7g8h9j0k", {
  headers: {
    authorization: `Bearer ${process.env.DOORMAN_API_KEY}`,
  },
  redirect: "manual", credentials: "omit",
});
if (!response.ok) throw new Error(`The API answered ${response.status}.`);
const result = await response.json();
```

Python:
```python
import os
import requests

response = requests.get(
    "https://api.doorman.fyi/v1/apps/app_01jc5f1a2b3c4d5e6f7g8h9j0k",
    headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
    allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()
```

## Update an app

`PATCH /v1/apps/{appId}`

Access `session`: a console session only; an API key gets 403 `session_required`.

Replace supplied client metadata. Existing installations and pending authorization requests are invalidated.

OAuth: not available to delegated app tokens.

Also available as [`client.apps.update`](https://doorman.fyi/docs/sdk/reference/apps.md#apps-update) in TypeScript, [`client.apps.update`](https://doorman.fyi/docs/python/reference/apps.md#apps-update) in Python and [`doorman apps update`](https://doorman.fyi/docs/cli/commands/apps.md#apps-update) on the command line.

Organizations: a member's console session needs `apps:manage`. See [Roles and permissions](https://doorman.fyi/docs/organizations.md#roles).

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `appId` | path | `string` | yes | The developer's client. Example: `app_01jc5f1a2b3c4d5e6f7g8h9j0k`. |

**Request body (application/json): UpdateApp**
Replace supplied fields. Every edit invalidates pending consent and existing installations.
- `name` (string, optional)
- `redirectUris` (string[], optional)
- `scopes` (("account:read" | "inboxes:read" | "inboxes:write" | "mail:read" | "mail:write" | "mail:send" | "mail:draft" | "events:read" | "webhooks:manage" | "rules:manage")[], optional)

Answers `200`: The updated app.

**Response 200: App**
A registered client without its secret. A display name is not evidence of a verified developer.
- `id` (string): An OAuth client identifier. Example: `app_01jc5f1a2b3c4d5e6f7g8h9j0k`
- `name` (string)
- `redirectUris` (string[])
- `scopes` (("account:read" | "inboxes:read" | "inboxes:write" | "mail:read" | "mail:write" | "mail:send" | "mail:draft" | "events:read" | "webhooks:manage" | "rules:manage")[])
- `tokenEndpointAuthMethod` ("none" | "client_secret_post")
- `status` ("active" | "deleted")
- `createdAt` (string (date-time)) Example: `2026-11-05T10:05:00.000Z`
- `updatedAt` (string (date-time)) Example: `2026-11-05T10:05:00.000Z`

Example 200 response:
```json
{
  "id": "app_01jc5f1a2b3c4d5e6f7g8h9j0k",
  "name": "Mail triage",
  "redirectUris": [
    "https://agent.example.com/callback"
  ],
  "scopes": [
    "mail:read"
  ],
  "tokenEndpointAuthMethod": "none",
  "status": "active",
  "createdAt": "2026-11-05T10:05:00.000Z",
  "updatedAt": "2026-11-05T10:05:00.000Z"
}
```

**Errors**

| Status | Error | Meaning |
| --- | --- | --- |
| 400 | `validation_error` | A field is missing or invalid; the message names it. |
| 401 | `unauthorized` | The credential was missing, malformed, revoked or belongs to an inactive account. |
| 401 | `session_invalid` | The console session token could not be verified. |
| 401 | `session_expired` | The console session token has expired. |
| 401 | `session_claims_missing` | The session token does not carry a verified email address. |
| 403 | `session_required` | Account keys, developer apps, relying parties, installations, consent, approving a sign-in and the assistant require a console session. So does loosening the security policy, trusting a sender, releasing held mail, allowing a sign-in, letting agents sign in to new services alone or telling a service who owns an agent, unless the account allows its account keys to. |
| 403 | `account_suspended` | The account is suspended. |
| 403 | `account_deleted` | The account was deleted. |
| 403 | `permission_denied` | The signed-in member's role in the organization lacks a permission the operation needs; `permission` names it. An admin of the organization can do it, or change the member's role. |
| 403 | `member_deactivated` | The signed-in person's access to the organization was deactivated, or they were removed from it. It holds from their next request, whatever their session token says. An admin of the organization can let a deactivated member in again. |
| 404 | `not_found` | No such resource for this caller, or no such route. |
| 409 | `account_mismatch` | The request named another account in `x-doorman-account` than the one its credential acts for, as happens when the console's organization was switched in another tab. Reload and try again. |
| 500 | `internal_error` | Something went wrong on the server. |

curl:
```sh
curl -s -X PATCH "https://api.doorman.fyi/v1/apps/app_01jc5f1a2b3c4d5e6f7g8h9j0k" \
  -H "authorization: Bearer $DOORMAN_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "name": "Mail review"
  }'
```

TypeScript:
```ts
const response = await fetch("https://api.doorman.fyi/v1/apps/app_01jc5f1a2b3c4d5e6f7g8h9j0k", {
  method: "PATCH",
  headers: {
    authorization: `Bearer ${process.env.DOORMAN_API_KEY}`,
    "content-type": "application/json",
  },
  redirect: "manual", credentials: "omit",
  body: JSON.stringify({
    "name": "Mail review"
  }),
});
if (!response.ok) throw new Error(`The API answered ${response.status}.`);
const result = await response.json();
```

Python:
```python
import os
import requests

response = requests.patch(
    "https://api.doorman.fyi/v1/apps/app_01jc5f1a2b3c4d5e6f7g8h9j0k",
    headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
    json={
        "name": "Mail review",
    },
    allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()
```

## Delete an app

`DELETE /v1/apps/{appId}`

Access `session`: a console session only; an API key gets 403 `session_required`.

Disable the client and revoke every installation. Stored history is retained.

OAuth: not available to delegated app tokens.

Also available as [`client.apps.delete`](https://doorman.fyi/docs/sdk/reference/apps.md#apps-delete) in TypeScript, [`client.apps.delete`](https://doorman.fyi/docs/python/reference/apps.md#apps-delete) in Python and [`doorman apps delete`](https://doorman.fyi/docs/cli/commands/apps.md#apps-delete) on the command line.

Organizations: a member's console session needs `apps:manage`. See [Roles and permissions](https://doorman.fyi/docs/organizations.md#roles).

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `appId` | path | `string` | yes | The developer's client. Example: `app_01jc5f1a2b3c4d5e6f7g8h9j0k`. |

Answers `204`: Deleted.

**Errors**

| Status | Error | Meaning |
| --- | --- | --- |
| 401 | `unauthorized` | The credential was missing, malformed, revoked or belongs to an inactive account. |
| 401 | `session_invalid` | The console session token could not be verified. |
| 401 | `session_expired` | The console session token has expired. |
| 401 | `session_claims_missing` | The session token does not carry a verified email address. |
| 403 | `session_required` | Account keys, developer apps, relying parties, installations, consent, approving a sign-in and the assistant require a console session. So does loosening the security policy, trusting a sender, releasing held mail, allowing a sign-in, letting agents sign in to new services alone or telling a service who owns an agent, unless the account allows its account keys to. |
| 403 | `account_suspended` | The account is suspended. |
| 403 | `account_deleted` | The account was deleted. |
| 403 | `permission_denied` | The signed-in member's role in the organization lacks a permission the operation needs; `permission` names it. An admin of the organization can do it, or change the member's role. |
| 403 | `member_deactivated` | The signed-in person's access to the organization was deactivated, or they were removed from it. It holds from their next request, whatever their session token says. An admin of the organization can let a deactivated member in again. |
| 404 | `not_found` | No such resource for this caller, or no such route. |
| 409 | `account_mismatch` | The request named another account in `x-doorman-account` than the one its credential acts for, as happens when the console's organization was switched in another tab. Reload and try again. |
| 500 | `internal_error` | Something went wrong on the server. |

curl:
```sh
curl -s -X DELETE "https://api.doorman.fyi/v1/apps/app_01jc5f1a2b3c4d5e6f7g8h9j0k" \
  -H "authorization: Bearer $DOORMAN_API_KEY"
```

TypeScript:
```ts
const response = await fetch("https://api.doorman.fyi/v1/apps/app_01jc5f1a2b3c4d5e6f7g8h9j0k", {
  method: "DELETE",
  headers: {
    authorization: `Bearer ${process.env.DOORMAN_API_KEY}`,
  },
  redirect: "manual", credentials: "omit",
});
if (!response.ok) throw new Error(`The API answered ${response.status}.`);
// 204: nothing to read.
```

Python:
```python
import os
import requests

response = requests.delete(
    "https://api.doorman.fyi/v1/apps/app_01jc5f1a2b3c4d5e6f7g8h9j0k",
    headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
    allow_redirects=False, timeout=30,
)
response.raise_for_status()
# 204: nothing to read.
```

## Rotate a client secret

`POST /v1/apps/{appId}/rotate-secret`

Access `session`: a console session only; an API key gets 403 `session_required`.

Replace a confidential client's secret and revoke its installations. Public clients do not have secrets.

OAuth: not available to delegated app tokens.

Also available as [`client.apps.rotateSecret`](https://doorman.fyi/docs/sdk/reference/apps.md#apps-rotateSecret) in TypeScript, [`client.apps.rotate_secret`](https://doorman.fyi/docs/python/reference/apps.md#apps-rotateSecret) in Python and [`doorman apps rotate-secret`](https://doorman.fyi/docs/cli/commands/apps.md#apps-rotateSecret) on the command line.

Organizations: a member's console session needs `apps:manage`. See [Roles and permissions](https://doorman.fyi/docs/organizations.md#roles).

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `appId` | path | `string` | yes | The developer's client. Example: `app_01jc5f1a2b3c4d5e6f7g8h9j0k`. |

Answers `200`: The secret, shown once.

**Response 200: AppSecret**
A new client secret, shown once. Existing installations are revoked.
- `id` (string): An OAuth client identifier. Example: `app_01jc5f1a2b3c4d5e6f7g8h9j0k`
- `clientSecret` (string)

**Errors**

| Status | Error | Meaning |
| --- | --- | --- |
| 400 | `validation_error` | A field is missing or invalid; the message names it. |
| 401 | `unauthorized` | The credential was missing, malformed, revoked or belongs to an inactive account. |
| 401 | `session_invalid` | The console session token could not be verified. |
| 401 | `session_expired` | The console session token has expired. |
| 401 | `session_claims_missing` | The session token does not carry a verified email address. |
| 403 | `session_required` | Account keys, developer apps, relying parties, installations, consent, approving a sign-in and the assistant require a console session. So does loosening the security policy, trusting a sender, releasing held mail, allowing a sign-in, letting agents sign in to new services alone or telling a service who owns an agent, unless the account allows its account keys to. |
| 403 | `account_suspended` | The account is suspended. |
| 403 | `account_deleted` | The account was deleted. |
| 403 | `permission_denied` | The signed-in member's role in the organization lacks a permission the operation needs; `permission` names it. An admin of the organization can do it, or change the member's role. |
| 403 | `member_deactivated` | The signed-in person's access to the organization was deactivated, or they were removed from it. It holds from their next request, whatever their session token says. An admin of the organization can let a deactivated member in again. |
| 404 | `not_found` | No such resource for this caller, or no such route. |
| 409 | `account_mismatch` | The request named another account in `x-doorman-account` than the one its credential acts for, as happens when the console's organization was switched in another tab. Reload and try again. |
| 500 | `internal_error` | Something went wrong on the server. |

curl:
```sh
curl -s -X POST "https://api.doorman.fyi/v1/apps/app_01jc5f1a2b3c4d5e6f7g8h9j0k/rotate-secret" \
  -H "authorization: Bearer $DOORMAN_API_KEY"
```

TypeScript:
```ts
const response = await fetch("https://api.doorman.fyi/v1/apps/app_01jc5f1a2b3c4d5e6f7g8h9j0k/rotate-secret", {
  method: "POST",
  headers: {
    authorization: `Bearer ${process.env.DOORMAN_API_KEY}`,
  },
  redirect: "manual", credentials: "omit",
});
if (!response.ok) throw new Error(`The API answered ${response.status}.`);
const result = await response.json();
```

Python:
```python
import os
import requests

response = requests.post(
    "https://api.doorman.fyi/v1/apps/app_01jc5f1a2b3c4d5e6f7g8h9j0k/rotate-secret",
    headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
    allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()
```

## List installed apps

`GET /v1/app-installs`

Access `session`: a console session only; an API key gets 403 `session_required`.

The account's active grants first, then recent revoked grants, newest first within each group. At most 500 entries; all active grants are included.

OAuth: not available to delegated app tokens.

Also available as [`client.installs.list`](https://doorman.fyi/docs/sdk/reference/apps.md#installs-list) in TypeScript, [`client.installs.list`](https://doorman.fyi/docs/python/reference/apps.md#installs-list) in Python and [`doorman installs list`](https://doorman.fyi/docs/cli/commands/apps.md#installs-list) on the command line.

Organizations: every member's console session may call it. See [Roles and permissions](https://doorman.fyi/docs/organizations.md#roles).

Answers `200`: The installations.

**Response 200: AppInstallList**
The account's active and revoked installations.
- `data` (AppInstall[])

**Errors**

| Status | Error | Meaning |
| --- | --- | --- |
| 401 | `unauthorized` | The credential was missing, malformed, revoked or belongs to an inactive account. |
| 401 | `session_invalid` | The console session token could not be verified. |
| 401 | `session_expired` | The console session token has expired. |
| 401 | `session_claims_missing` | The session token does not carry a verified email address. |
| 403 | `session_required` | Account keys, developer apps, relying parties, installations, consent, approving a sign-in and the assistant require a console session. So does loosening the security policy, trusting a sender, releasing held mail, allowing a sign-in, letting agents sign in to new services alone or telling a service who owns an agent, unless the account allows its account keys to. |
| 403 | `account_suspended` | The account is suspended. |
| 403 | `account_deleted` | The account was deleted. |
| 403 | `member_deactivated` | The signed-in person's access to the organization was deactivated, or they were removed from it. It holds from their next request, whatever their session token says. An admin of the organization can let a deactivated member in again. |
| 409 | `account_mismatch` | The request named another account in `x-doorman-account` than the one its credential acts for, as happens when the console's organization was switched in another tab. Reload and try again. |
| 500 | `internal_error` | Something went wrong on the server. |

curl:
```sh
curl -s "https://api.doorman.fyi/v1/app-installs" \
  -H "authorization: Bearer $DOORMAN_API_KEY"
```

TypeScript:
```ts
const response = await fetch("https://api.doorman.fyi/v1/app-installs", {
  headers: {
    authorization: `Bearer ${process.env.DOORMAN_API_KEY}`,
  },
  redirect: "manual", credentials: "omit",
});
if (!response.ok) throw new Error(`The API answered ${response.status}.`);
const result = await response.json();
```

Python:
```python
import os
import requests

response = requests.get(
    "https://api.doorman.fyi/v1/app-installs",
    headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
    allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()
```

## Revoke an installation

`DELETE /v1/app-installs/{installationId}`

Access `session`: a console session only; an API key gets 403 `session_required`.

Stop future token, webhook and rule access. Already-sent mail and in-flight network requests cannot be recalled.

OAuth: not available to delegated app tokens.

Also available as [`client.installs.revoke`](https://doorman.fyi/docs/sdk/reference/apps.md#installs-revoke) in TypeScript, [`client.installs.revoke`](https://doorman.fyi/docs/python/reference/apps.md#installs-revoke) in Python and [`doorman installs revoke`](https://doorman.fyi/docs/cli/commands/apps.md#installs-revoke) on the command line.

Organizations: a member's console session needs `agents:connect`. See [Roles and permissions](https://doorman.fyi/docs/organizations.md#roles).

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `installationId` | path | `string` | yes | The installation. Example: `ins_01jc5f1a2b3c4d5e6f7g8h9j0k`. |

Answers `204`: Revoked.

**Errors**

| Status | Error | Meaning |
| --- | --- | --- |
| 401 | `unauthorized` | The credential was missing, malformed, revoked or belongs to an inactive account. |
| 401 | `session_invalid` | The console session token could not be verified. |
| 401 | `session_expired` | The console session token has expired. |
| 401 | `session_claims_missing` | The session token does not carry a verified email address. |
| 403 | `session_required` | Account keys, developer apps, relying parties, installations, consent, approving a sign-in and the assistant require a console session. So does loosening the security policy, trusting a sender, releasing held mail, allowing a sign-in, letting agents sign in to new services alone or telling a service who owns an agent, unless the account allows its account keys to. |
| 403 | `account_suspended` | The account is suspended. |
| 403 | `account_deleted` | The account was deleted. |
| 403 | `permission_denied` | The signed-in member's role in the organization lacks a permission the operation needs; `permission` names it. An admin of the organization can do it, or change the member's role. |
| 403 | `member_deactivated` | The signed-in person's access to the organization was deactivated, or they were removed from it. It holds from their next request, whatever their session token says. An admin of the organization can let a deactivated member in again. |
| 404 | `not_found` | No such resource for this caller, or no such route. |
| 409 | `account_mismatch` | The request named another account in `x-doorman-account` than the one its credential acts for, as happens when the console's organization was switched in another tab. Reload and try again. |
| 500 | `internal_error` | Something went wrong on the server. |

curl:
```sh
curl -s -X DELETE "https://api.doorman.fyi/v1/app-installs/ins_01jc5f1a2b3c4d5e6f7g8h9j0k" \
  -H "authorization: Bearer $DOORMAN_API_KEY"
```

TypeScript:
```ts
const response = await fetch("https://api.doorman.fyi/v1/app-installs/ins_01jc5f1a2b3c4d5e6f7g8h9j0k", {
  method: "DELETE",
  headers: {
    authorization: `Bearer ${process.env.DOORMAN_API_KEY}`,
  },
  redirect: "manual", credentials: "omit",
});
if (!response.ok) throw new Error(`The API answered ${response.status}.`);
// 204: nothing to read.
```

Python:
```python
import os
import requests

response = requests.delete(
    "https://api.doorman.fyi/v1/app-installs/ins_01jc5f1a2b3c4d5e6f7g8h9j0k",
    headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
    allow_redirects=False, timeout=30,
)
response.raise_for_status()
# 204: nothing to read.
```

## Read a consent request

`GET /v1/oauth/requests/{requestId}`

Access `session`: a console session only; an API key gets 403 `session_required`.

Bind an unused request to this account and console session and return the requested permissions. This does not approve access.

OAuth: not available to delegated app tokens.

Also available as [`client.oauthRequests.get`](https://doorman.fyi/docs/sdk/reference/apps.md#oauthRequests-get) in TypeScript and [`client.oauth_requests.get`](https://doorman.fyi/docs/python/reference/apps.md#oauthRequests-get) in Python.

Organizations: a member's console session needs `agents:connect`. See [Roles and permissions](https://doorman.fyi/docs/organizations.md#roles).

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `requestId` | path | `string` | yes | The pending consent request. |

Answers `200`: The session-bound consent request.

**Response 200: OAuthConsent**
A one-time request bound to the current console session. Approval is never automatic.
- `requestId` (string)
- `client` (object)
  - `id` (string): An OAuth client identifier. Example: `app_01jc5f1a2b3c4d5e6f7g8h9j0k`
  - `name` (string)
  - `dynamic` (boolean): The client registered itself. Nothing about it was checked, its name included.
  - `metadataUrl` (string | null): The identity document the client published, when it named itself by one. The host that serves the document was checked; the name is what that host says about itself. Null for a client registered in the console or by itself.
- `redirectUri` (string)
- `resource` (string)
- `scopes` (("account:read" | "inboxes:read" | "inboxes:write" | "mail:read" | "mail:write" | "mail:send" | "mail:draft" | "events:read" | "webhooks:manage" | "rules:manage")[])
- `expiresAt` (string (date-time)) Example: `2026-11-05T10:05:00.000Z`
- `csrf` (string)

**Errors**

| Status | Error | Meaning |
| --- | --- | --- |
| 401 | `unauthorized` | The credential was missing, malformed, revoked or belongs to an inactive account. |
| 401 | `session_invalid` | The console session token could not be verified. |
| 401 | `session_expired` | The console session token has expired. |
| 401 | `session_claims_missing` | The session token does not carry a verified email address. |
| 403 | `session_required` | Account keys, developer apps, relying parties, installations, consent, approving a sign-in and the assistant require a console session. So does loosening the security policy, trusting a sender, releasing held mail, allowing a sign-in, letting agents sign in to new services alone or telling a service who owns an agent, unless the account allows its account keys to. |
| 403 | `account_suspended` | The account is suspended. |
| 403 | `account_deleted` | The account was deleted. |
| 403 | `permission_denied` | The signed-in member's role in the organization lacks a permission the operation needs; `permission` names it. An admin of the organization can do it, or change the member's role. |
| 403 | `member_deactivated` | The signed-in person's access to the organization was deactivated, or they were removed from it. It holds from their next request, whatever their session token says. An admin of the organization can let a deactivated member in again. |
| 404 | `not_found` | No such resource for this caller, or no such route. |
| 409 | `account_mismatch` | The request named another account in `x-doorman-account` than the one its credential acts for, as happens when the console's organization was switched in another tab. Reload and try again. |
| 500 | `internal_error` | Something went wrong on the server. |

curl:
```sh
curl -s "https://api.doorman.fyi/v1/oauth/requests/{requestId}" \
  -H "authorization: Bearer $DOORMAN_API_KEY"
```

TypeScript:
```ts
const response = await fetch("https://api.doorman.fyi/v1/oauth/requests/{requestId}", {
  headers: {
    authorization: `Bearer ${process.env.DOORMAN_API_KEY}`,
  },
  redirect: "manual", credentials: "omit",
});
if (!response.ok) throw new Error(`The API answered ${response.status}.`);
const result = await response.json();
```

Python:
```python
import os
import requests

response = requests.get(
    "https://api.doorman.fyi/v1/oauth/requests/{requestId}",
    headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
    allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()
```

## Decide a consent request

`POST /v1/oauth/requests/{requestId}`

Access `session`: a console session only; an API key gets 403 `session_required`.

Approve or deny once, with this request's CSRF value and the same console session. Approval issues a short-lived PKCE-bound code.

OAuth: not available to delegated app tokens.

Also available as [`client.oauthRequests.decide`](https://doorman.fyi/docs/sdk/reference/apps.md#oauthRequests-decide) in TypeScript and [`client.oauth_requests.decide`](https://doorman.fyi/docs/python/reference/apps.md#oauthRequests-decide) in Python.

Organizations: a member's console session needs `agents:connect`. See [Roles and permissions](https://doorman.fyi/docs/organizations.md#roles).

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `requestId` | path | `string` | yes | The pending consent request. |

**Request body (application/json): DecideOAuth**
An explicit decision for this session-bound request.
- `decision` ("approve" | "deny")
- `csrf` (string)

Answers `200`: The validated client redirect.

**Response 200: OAuthDecision**
The validated redirect carrying state, issuer and a code or access_denied.
- `redirectUrl` (string)

**Errors**

| Status | Error | Meaning |
| --- | --- | --- |
| 400 | `validation_error` | A field is missing or invalid; the message names it. |
| 401 | `unauthorized` | The credential was missing, malformed, revoked or belongs to an inactive account. |
| 401 | `session_invalid` | The console session token could not be verified. |
| 401 | `session_expired` | The console session token has expired. |
| 401 | `session_claims_missing` | The session token does not carry a verified email address. |
| 403 | `session_required` | Account keys, developer apps, relying parties, installations, consent, approving a sign-in and the assistant require a console session. So does loosening the security policy, trusting a sender, releasing held mail, allowing a sign-in, letting agents sign in to new services alone or telling a service who owns an agent, unless the account allows its account keys to. |
| 403 | `account_suspended` | The account is suspended. |
| 403 | `account_deleted` | The account was deleted. |
| 403 | `permission_denied` | The signed-in member's role in the organization lacks a permission the operation needs; `permission` names it. An admin of the organization can do it, or change the member's role. |
| 403 | `member_deactivated` | The signed-in person's access to the organization was deactivated, or they were removed from it. It holds from their next request, whatever their session token says. An admin of the organization can let a deactivated member in again. |
| 404 | `not_found` | No such resource for this caller, or no such route. |
| 409 | `limit_reached` | The abuse ceiling for inboxes, custom domains, keys, endpoints, services, relying parties, the services an address signs in to, the sends an inbox has waiting for its owner or the invitations an organization has open; delete, revoke or decide one first. |
| 409 | `account_mismatch` | The request named another account in `x-doorman-account` than the one its credential acts for, as happens when the console's organization was switched in another tab. Reload and try again. |
| 500 | `internal_error` | Something went wrong on the server. |

curl:
```sh
curl -s -X POST "https://api.doorman.fyi/v1/oauth/requests/{requestId}" \
  -H "authorization: Bearer $DOORMAN_API_KEY"
```

TypeScript:
```ts
const response = await fetch("https://api.doorman.fyi/v1/oauth/requests/{requestId}", {
  method: "POST",
  headers: {
    authorization: `Bearer ${process.env.DOORMAN_API_KEY}`,
  },
  redirect: "manual", credentials: "omit",
});
if (!response.ok) throw new Error(`The API answered ${response.status}.`);
const result = await response.json();
```

Python:
```python
import os
import requests

response = requests.post(
    "https://api.doorman.fyi/v1/oauth/requests/{requestId}",
    headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
    allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()
```
