CLI: Webhooks
The commands of the doorman command line under Webhooks. The inbox webhook, account endpoints, their signed deliveries and the delivery log.
doorman inboxes webhook get
doorman inboxes webhook get <inboxId> [flags]Sends inboxes.webhook.get: GET /v1/inboxes/{inboxId}/webhook
Read the inbox webhook. 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 webhook get inb_01jc4q7w9k2m5n8p3r6t1v4x7zdoorman inboxes webhook set
doorman inboxes webhook set <inboxId> [flags]Sends inboxes.webhook.set: PUT /v1/inboxes/{inboxId}/webhook
Set the inbox webhook. 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.--urlstringrequiredAn https URL without credentials (http is accepted in local development).
--jsonobjectoptionalThe request body as one JSON object. A flag given beside it replaces the field of the same name.
doorman inboxes webhook set inb_01jc4q7w9k2m5n8p3r6t1v4x7z \
--url https://agent.example.com/hooks/doormandoorman inboxes webhook rotate-secret
doorman inboxes webhook rotate-secret <inboxId> [flags]Sends inboxes.webhook.rotateSecret: POST /v1/inboxes/{inboxId}/webhook/rotate-secret
Rotate the inbox webhook's secret. 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 webhook rotate-secret inb_01jc4q7w9k2m5n8p3r6t1v4x7zdoorman inboxes webhook delete
doorman inboxes webhook delete <inboxId> [flags]Sends inboxes.webhook.delete: DELETE /v1/inboxes/{inboxId}/webhook
Remove the inbox webhook. 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 webhook delete inb_01jc4q7w9k2m5n8p3r6t1v4x7zdoorman inboxes webhook deliveries
doorman inboxes webhook deliveries <inboxId> [flags]Sends inboxes.webhook.deliveries: GET /v1/inboxes/{inboxId}/webhook/deliveries
List the inbox webhook's deliveries. 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.--limitintegeroptionalPage size, 1 to 100. Defaults to 50.
--cursorstringoptionalThe delivery id to continue from, from the previous page's
nextCursor.
doorman inboxes webhook deliveries inb_01jc4q7w9k2m5n8p3r6t1v4x7zdoorman webhooks list
Command for webhooks.list: GET /v1/webhooks
List endpoints. Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden. An app token needs webhooks:manage and events:read and mail:read.
doorman webhooks create
doorman webhooks create [flags]Sends webhooks.create: POST /v1/webhooks
Create an endpoint. Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden. An app token needs webhooks:manage and events:read and mail:read.
Flags
--namestringoptionalA label, at most 100 characters.
--urlstringrequiredAn https URL without credentials (http is accepted in local development).
--event-types("message.received" | "message.sent" | "thread.updated" | "inbox.created" | "inbox.deleted" | "delivery.failed" | "message.held" | "send.held" | "send.discarded" | "sign_in.requested" | "sign_in.completed")[]optionalEvent types to receive; empty or absent means all.
--inbox-idsstring[]optionalIds of active inboxes of the account to receive for; empty or absent means all. Duplicates are dropped.
--enabledbooleanoptionalWhether deliveries start right away. Defaults to true.
--jsonobjectoptionalThe request body as one JSON object. A flag given beside it replaces the field of the same name.
doorman webhooks create \
--name Orchestrator \
--url https://agent.example.com/hooks/doorman \
--event-types '["message.received"]' \
--inbox-ids '[]' \
--enabled truedoorman webhooks get
doorman webhooks get <endpointId> [flags]Sends webhooks.get: GET /v1/webhooks/{endpointId}
Read an endpoint. Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden. An app token needs webhooks:manage and events:read and mail:read.
Flags
--endpoint-idstringoptionalThe same as the argument
<endpointId>, for a script that names everything.
doorman webhooks get whk_01jc5d1a2b3c4d5e6f7g8h9j0kdoorman webhooks update
doorman webhooks update <endpointId> [flags]Sends webhooks.update: PATCH /v1/webhooks/{endpointId}
Change an endpoint. Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden. An app token needs webhooks:manage and events:read and mail:read.
Flags
--endpoint-idstringoptionalThe same as the argument
<endpointId>, for a script that names everything.--namestringoptionalA label, at most 100 characters.
--urlstringoptionalAn https URL without credentials (http is accepted in local development).
--event-types("message.received" | "message.sent" | "thread.updated" | "inbox.created" | "inbox.deleted" | "delivery.failed" | "message.held" | "send.held" | "send.discarded" | "sign_in.requested" | "sign_in.completed")[]optionalEvent types to receive; empty or absent means all.
--inbox-idsstring[]optionalIds of active inboxes of the account to receive for; empty or absent means all. Duplicates are dropped.
--enabledbooleanoptionalWhether deliveries start right away. Defaults to true.
--jsonobjectoptionalThe request body as one JSON object. A flag given beside it replaces the field of the same name.
doorman webhooks update whk_01jc5d1a2b3c4d5e6f7g8h9j0k \
--enabled falsedoorman webhooks delete
doorman webhooks delete <endpointId> [flags]Sends webhooks.delete: DELETE /v1/webhooks/{endpointId}
Delete an endpoint. Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden. An app token needs webhooks:manage and events:read and mail:read.
Flags
--endpoint-idstringoptionalThe same as the argument
<endpointId>, for a script that names everything.
doorman webhooks delete whk_01jc5d1a2b3c4d5e6f7g8h9j0kdoorman webhooks rotate-secret
doorman webhooks rotate-secret <endpointId> [flags]Sends webhooks.rotateSecret: POST /v1/webhooks/{endpointId}/rotate-secret
Rotate an endpoint's secret. Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden. An app token needs webhooks:manage and events:read and mail:read.
Flags
--endpoint-idstringoptionalThe same as the argument
<endpointId>, for a script that names everything.
doorman webhooks rotate-secret whk_01jc5d1a2b3c4d5e6f7g8h9j0kdoorman webhooks test
doorman webhooks test <endpointId> [flags]Sends webhooks.test: POST /v1/webhooks/{endpointId}/test
Send a test delivery. Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden. An app token needs webhooks:manage and events:read and mail:read.
Flags
--endpoint-idstringoptionalThe same as the argument
<endpointId>, for a script that names everything.
doorman webhooks test whk_01jc5d1a2b3c4d5e6f7g8h9j0kdoorman webhooks deliveries
doorman webhooks deliveries <endpointId> [flags]Sends webhooks.deliveries: GET /v1/webhooks/{endpointId}/deliveries
List an endpoint's deliveries. Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden. An app token needs webhooks:manage and events:read and mail:read.
Flags
--endpoint-idstringoptionalThe same as the argument
<endpointId>, for a script that names everything.--limitintegeroptionalPage size, 1 to 100. Defaults to 50.
--cursorstringoptionalThe delivery id to continue from, from the previous page's
nextCursor.
doorman webhooks deliveries whk_01jc5d1a2b3c4d5e6f7g8h9j0kdoorman deliveries retry
doorman deliveries retry <deliveryId> [flags]Sends deliveries.retry: POST /v1/deliveries/{deliveryId}/retry
Retry a delivery. Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden. An app token needs webhooks:manage and events:read and mail:read.
Flags
--delivery-idstringoptionalThe same as the argument
<deliveryId>, for a script that names everything.
doorman deliveries retry whd_01jc5f1a2b3c4d5e6f7g8h9j0k
