Preview: SendMock has no stable release yet. These docs follow develop.

CLI reference

Saved deliveries commands

sendmock webhook saved create

Save a delivery's request under a name.

sendmock webhook saved create --delivery <deliveryId> [flags]
FlagTypeDescription
--delivery <deliveryId>requiredstring
The delivery to save.Example: 01JB7T9Q2R5W8X3Y6Z1A4B7C9D
--name <name>requiredstring
A name for the saved delivery.Example: Failed order webhook

Example

sendmock webhook saved create --delivery 01JB7T9Q2R5W8X3Y6Z1A4B7C9D --name 'Failed order webhook'

Output with --json: SavedDelivery. Exit codes: 0, 1, 2, 3.

API
POST/api/v1/webhooks/saved
MCP tool
sendmock_webhook_saved_create
In the app
Webhooks > Deliveries > delivery > Save

sendmock webhook saved delete

Delete a saved delivery.

sendmock webhook saved delete <savedId> [flags]
ArgumentTypeDescription
<savedId>requiredstring
The saved delivery's ID, from GET /api/v1/webhooks/saved.Example: 01JB7T9Q2R5W8X3Y6Z1A4B7C9D
FlagTypeDescription
--yesboolean
Confirms a destructive command; without it the command stops.

Example

sendmock webhook saved delete 01JB7T9Q2R5W8X3Y6Z1A4B7C9D --yes

Output with --json: nothing. Exit codes: 0, 1, 2, 3.

API
DELETE/api/v1/webhooks/saved/{savedId}
MCP tool
sendmock_webhook_saved_delete
In the app
Webhooks > Saved > Delete

sendmock webhook saved rename

Rename a saved delivery.

sendmock webhook saved rename <savedId> [flags]
ArgumentTypeDescription
<savedId>requiredstring
The saved delivery's ID, from GET /api/v1/webhooks/saved.Example: 01JB7T9Q2R5W8X3Y6Z1A4B7C9D
FlagTypeDescription
--name <name>requiredstring
The new name.Example: Order webhook, missing SKU

Example

sendmock webhook saved rename 01JB7T9Q2R5W8X3Y6Z1A4B7C9D --name 'Order webhook, missing SKU'

Output with --json: SavedDelivery. Exit codes: 0, 1, 2, 3.

API
PATCH/api/v1/webhooks/saved/{savedId}
MCP tool
sendmock_webhook_saved_update
In the app
Webhooks > Saved > Rename

sendmock webhook saved save-as-template

Turn a saved request into a custom template.

sendmock webhook saved save-as-template <savedId> [flags]
ArgumentTypeDescription
<savedId>requiredstring
The saved delivery's ID, from GET /api/v1/webhooks/saved.Example: 01JB7T9Q2R5W8X3Y6Z1A4B7C9D
FlagTypeDescription
--name <name>requiredstring
The name of the new custom template.Example: Order webhook

Example

sendmock webhook saved save-as-template 01JB7T9Q2R5W8X3Y6Z1A4B7C9D --name 'Order webhook'

Output with --json: WebhookTemplateSummary. Exit codes: 0, 1, 2, 3.

API
POST/api/v1/webhooks/saved/{savedId}/template
MCP tool
sendmock_webhook_saved_save_as_template
In the app
Webhooks > Saved > Save as template

sendmock webhook saved send

Send a saved request to its endpoint or another one.

sendmock webhook saved send <savedId> [flags]
ArgumentTypeDescription
<savedId>requiredstring
The saved delivery's ID, from GET /api/v1/webhooks/saved.Example: 01JB7T9Q2R5W8X3Y6Z1A4B7C9D
FlagTypeDescription
--endpoint-id <endpoint-id>requiredstring
The endpoint to send it to.Example: 01JB7T9Q2R5W8X3Y6Z1A4B7C9D
--rerenderrequiredboolean
Renders again with the endpoint's template and variables; false sends the saved request as it was. --no-rerender sets it to false.

Example

sendmock webhook saved send 01JB7T9Q2R5W8X3Y6Z1A4B7C9D --endpoint-id 01JB7T9Q2R5W8X3Y6Z1A4B7C9D --no-rerender

Output with --json: WebhookDelivery. Exit codes: 0, 1, 2, 3.

API
POST/api/v1/webhooks/saved/{savedId}/send
MCP tool
sendmock_webhook_saved_send
In the app
Webhooks > Saved > Send