CLI: API keys
The commands of the doorman command line under API keys. Credentials for agents: account-wide keys from the console, inbox-scoped keys from the API.
doorman inboxes keys create
doorman inboxes keys create <inboxId> [flags]Sends inboxes.keys.create: POST /v1/inboxes/{inboxId}/api-keys
Create an inbox key. Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden. App tokens are refused.
Flags
--inbox-idstringoptionalThe same as the argument
<inboxId>, for a script that names everything.--namestringoptionalA label, at most 100 characters.
--jsonobjectoptionalThe request body as one JSON object. A flag given beside it replaces the field of the same name.
doorman inboxes keys create inb_01jc4q7w9k2m5n8p3r6t1v4x7z \
--name Orchestratordoorman inboxes keys list
doorman inboxes keys list <inboxId> [flags]Sends inboxes.keys.list: GET /v1/inboxes/{inboxId}/api-keys
List an inbox's keys. Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden. App tokens are refused.
Flags
--inbox-idstringoptionalThe same as the argument
<inboxId>, for a script that names everything.
doorman inboxes keys list inb_01jc4q7w9k2m5n8p3r6t1v4x7zdoorman inboxes keys get
doorman inboxes keys get <inboxId> <keyId> [flags]Sends inboxes.keys.get: GET /v1/inboxes/{inboxId}/api-keys/{keyId}
Read an inbox key. Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden. App tokens are refused.
Flags
--inbox-idstringoptionalThe same as the argument
<inboxId>, for a script that names everything.--key-idstringoptionalThe same as the argument
<keyId>, for a script that names everything.
doorman inboxes keys get inb_01jc4q7w9k2m5n8p3r6t1v4x7z key_01jc5c0z9y8x7w6v5t4t3s2r1qdoorman inboxes keys revoke
doorman inboxes keys revoke <inboxId> <keyId> [flags]Sends inboxes.keys.revoke: DELETE /v1/inboxes/{inboxId}/api-keys/{keyId}
Revoke an inbox key. Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden. App tokens are refused.
Flags
--inbox-idstringoptionalThe same as the argument
<inboxId>, for a script that names everything.--key-idstringoptionalThe same as the argument
<keyId>, for a script that names everything.
doorman inboxes keys revoke inb_01jc4q7w9k2m5n8p3r6t1v4x7z key_01jc5c0z9y8x7w6v5t4t3s2r1q
