CLI: Passport
The commands of the doorman command line under Passport. The outside services an inbox's address is signed up for, the verification codes and sign-in links they send, and how the address signs in to the ones that accept Sign in with Doorman.
doorman passport get
Command for passport.get: GET /v1/passport
Read passport settings. Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden. App tokens are refused.
doorman passport update
doorman passport update [flags]Sends passport.update: PATCH /v1/passport
Update passport settings. Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden. App tokens are refused.
Flags
--alert-emailsbooleanoptionalWhether to email the account owner when a service receives an unexplained code or link, a password reset, or a security notice.
--agent-sign-inbooleanoptionalWhether an agent may sign in to a service the owner has not allowed yet.
--share-ownerbooleanoptionalWhether a service an agent signed in to alone is told who owns the agent, when it asks.
--briefing-emailsbooleanoptionalWhether to email the account owner a daily briefing in counts only. The first one covers what arrives from the moment it is switched on.
--briefing-hourintegeroptionalThe hour of the day, in
timeZone, at which the briefing is sent.--time-zonestringoptionalThe IANA time zone
briefingHouris read in.--jsonobjectoptionalThe request body as one JSON object. A flag given beside it replaces the field of the same name.
doorman passport update \
--alert-emails truedoorman services list
doorman services list [flags]Sends services.list: GET /v1/services
List services. Access any: any API key, or a console session. An app token needs mail:read.
Flags
--inbox-idstringoptionalOnly this inbox's services.
--status"pending" | "active" | "cancelled" | "archived"optionalOnly services with this status. Without it, every status but archived.
--attention"true" | "false"optionalOnly services with (
true) or without (false) an active warning.--qstringoptionalKeep the services whose domain or name contains this text, case-insensitively.
--limitintegeroptionalPage size, 1 to 100. Defaults to 50.
--offsetintegeroptionalRows to skip. Defaults to 0.
doorman services get
doorman services get <serviceId> [flags]Sends services.get: GET /v1/services/{serviceId}
Read a service. Access any: any API key, or a console session. App tokens are refused.
Flags
--service-idstringoptionalThe same as the argument
<serviceId>, for a script that names everything.
doorman services get svc_01jc5g2b3c4d5e6f7g8h9j0k1mdoorman inboxes services create
doorman inboxes services create <inboxId> [flags]Sends inboxes.services.create: POST /v1/inboxes/{inboxId}/services
Declare or add a service. Access any: any API key, or a console session. An app token needs mail:write and mail:read.
Flags
--inbox-idstringoptionalThe same as the argument
<inboxId>, for a script that names everything.--domainstringrequiredThe service's domain, or a host under it:
app.example.netis recorded asexample.net.--namestringoptionalA label, at most 100 characters. Defaults to the domain.
--notestring | nulloptionalAt most 500 characters: why the agent signed up, or the plan it chose and its price.
--jsonobjectoptionalThe request body as one JSON object. A flag given beside it replaces the field of the same name.
doorman inboxes services create inb_01jc4q7w9k2m5n8p3r6t1v4x7z \
--domain example.net \
--name 'Example Tools' \
--note 'Sign-up for the weekly report'doorman services update
doorman services update <serviceId> [flags]Sends services.update: PATCH /v1/services/{serviceId}
Update a service. Access any: any API key, or a console session. App tokens are refused.
Flags
--service-idstringoptionalThe same as the argument
<serviceId>, for a script that names everything.--namestringoptional--status"pending" | "active" | "cancelled" | "archived"optionalarchivedsets the service aside as not a sign-up: mail from it no longer makes it pending again. It clears any active warning and stops every one of the service'ssignIns.--notestring | nulloptional--planobject | nulloptional--attentionanyoptionalNull clears an active
attentionwarning once the owner has checked the account. Needs a console session unless the account allows its account keys to (403session_required).--sign-inobjectoptionalA decision about one of the service's
signIns. Stopping one, and no longer sharing the owner, are open to any key that reaches the service. Allowing one, and sharing the owner, need a console session unless the account allows its account keys to (403session_required).--jsonobjectoptionalThe request body as one JSON object. A flag given beside it replaces the field of the same name.
doorman services update svc_01jc5g2b3c4d5e6f7g8h9j0k1m \
--status cancelleddoorman services delete
doorman services delete <serviceId> [flags]Sends services.delete: DELETE /v1/services/{serviceId}
Delete a service. Access any: any API key, or a console session. App tokens are refused.
Flags
--service-idstringoptionalThe same as the argument
<serviceId>, for a script that names everything.
doorman services delete svc_01jc5g2b3c4d5e6f7g8h9j0k1mdoorman inboxes verifications list
doorman inboxes verifications list <inboxId> [flags]Sends inboxes.verifications.list: GET /v1/inboxes/{inboxId}/verifications
Read verification codes. Access any: any API key, or a console session. An app token needs mail:read.
Flags
--inbox-idstringoptionalThe same as the argument
<inboxId>, for a script that names everything.--domainstringoptionalOnly codes and links from this service's domain, or a host under it.
--sincestring (date-time)optionalOnly those that arrived after this instant.
--wait-secondsintegeroptionalWhen none has arrived yet, wait up to this many seconds for one. Defaults to 0.
doorman inboxes verifications list inb_01jc4q7w9k2m5n8p3r6t1v4x7zdoorman inboxes sign-ins create
doorman inboxes sign-ins create <inboxId> [flags]Sends inboxes.signIns.create: POST /v1/inboxes/{inboxId}/sign-ins
Start a sign-in. Access any: any API key, or a console session. An app token needs mail:write and mail:read. Part of Sign in with Doorman, which a deployment switches on: where it is off, the call answers 404 not_found.
Flags
--inbox-idstringoptionalThe same as the argument
<inboxId>, for a script that names everything.--domainstringoptionalThe service's domain or host.
--client-idstringoptionalOr the relying party's id, when the service states one.
--jsonobjectoptionalThe request body as one JSON object. A flag given beside it replaces the field of the same name.
doorman inboxes sign-ins create inb_01jc4q7w9k2m5n8p3r6t1v4x7z \
--domain app.example.net
