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

Command

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-idstringoptional

    The same as the argument <inboxId>, for a script that names everything.

  • --namestringoptional

    A label, at most 100 characters.

  • --jsonobjectoptional

    The request body as one JSON object. A flag given beside it replaces the field of the same name.

Example

doorman inboxes keys create inb_01jc4q7w9k2m5n8p3r6t1v4x7z \
  --name Orchestrator

doorman inboxes keys list

Command

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-idstringoptional

    The same as the argument <inboxId>, for a script that names everything.

Example

doorman inboxes keys list inb_01jc4q7w9k2m5n8p3r6t1v4x7z

doorman inboxes keys get

Command

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-idstringoptional

    The same as the argument <inboxId>, for a script that names everything.

  • --key-idstringoptional

    The same as the argument <keyId>, for a script that names everything.

Example

doorman inboxes keys get inb_01jc4q7w9k2m5n8p3r6t1v4x7z key_01jc5c0z9y8x7w6v5t4t3s2r1q

doorman inboxes keys revoke

Command

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-idstringoptional

    The same as the argument <inboxId>, for a script that names everything.

  • --key-idstringoptional

    The same as the argument <keyId>, for a script that names everything.

Example

doorman inboxes keys revoke inb_01jc4q7w9k2m5n8p3r6t1v4x7z key_01jc5c0z9y8x7w6v5t4t3s2r1q

Up Down to move, Enter to open, Esc to close