CLI: Apps
The commands of the doorman command line under Apps. Developer clients, installed apps and explicit session-bound consent.
doorman apps list
Command for apps.list: GET /v1/apps
List developer apps. Access session: a console session only; an API key gets 403 session_required. App tokens are refused.
doorman apps create
doorman apps create [flags]Sends apps.create: POST /v1/apps
Register an app. Access session: a console session only; an API key gets 403 session_required. App tokens are refused.
Flags
--namestringrequired--redirect-urisstring[]required--scopes("account:read" | "inboxes:read" | "inboxes:write" | "mail:read" | "mail:write" | "mail:send" | "mail:draft" | "events:read" | "webhooks:manage" | "rules:manage")[]required--token-endpoint-auth-method"none" | "client_secret_post"optional--jsonobjectoptionalThe request body as one JSON object. A flag given beside it replaces the field of the same name.
doorman apps create \
--name 'Mail triage' \
--redirect-uris '["https://agent.example.com/callback"]' \
--scopes '["mail:read"]'doorman apps get
doorman apps get <appId> [flags]Sends apps.get: GET /v1/apps/{appId}
Read an app. Access session: a console session only; an API key gets 403 session_required. App tokens are refused.
Flags
--app-idstringoptionalThe same as the argument
<appId>, for a script that names everything.
doorman apps get app_01jc5f1a2b3c4d5e6f7g8h9j0kdoorman apps update
doorman apps update <appId> [flags]Sends apps.update: PATCH /v1/apps/{appId}
Update an app. Access session: a console session only; an API key gets 403 session_required. App tokens are refused.
Flags
--app-idstringoptionalThe same as the argument
<appId>, for a script that names everything.--namestringoptional--redirect-urisstring[]optional--scopes("account:read" | "inboxes:read" | "inboxes:write" | "mail:read" | "mail:write" | "mail:send" | "mail:draft" | "events:read" | "webhooks:manage" | "rules:manage")[]optional--jsonobjectoptionalThe request body as one JSON object. A flag given beside it replaces the field of the same name.
doorman apps update app_01jc5f1a2b3c4d5e6f7g8h9j0k \
--name 'Mail review'doorman apps delete
doorman apps delete <appId> [flags]Sends apps.delete: DELETE /v1/apps/{appId}
Delete an app. Access session: a console session only; an API key gets 403 session_required. App tokens are refused.
Flags
--app-idstringoptionalThe same as the argument
<appId>, for a script that names everything.
doorman apps delete app_01jc5f1a2b3c4d5e6f7g8h9j0kdoorman apps rotate-secret
doorman apps rotate-secret <appId> [flags]Sends apps.rotateSecret: POST /v1/apps/{appId}/rotate-secret
Rotate a client secret. Access session: a console session only; an API key gets 403 session_required. App tokens are refused.
Flags
--app-idstringoptionalThe same as the argument
<appId>, for a script that names everything.
doorman apps rotate-secret app_01jc5f1a2b3c4d5e6f7g8h9j0kdoorman installs list
Command for installs.list: GET /v1/app-installs
List installed apps. Access session: a console session only; an API key gets 403 session_required. App tokens are refused.
doorman installs revoke
doorman installs revoke <installationId> [flags]Sends installs.revoke: DELETE /v1/app-installs/{installationId}
Revoke an installation. Access session: a console session only; an API key gets 403 session_required. App tokens are refused.
Flags
--installation-idstringoptionalThe same as the argument
<installationId>, for a script that names everything.
doorman installs revoke ins_01jc5f1a2b3c4d5e6f7g8h9j0k
