SendMock
v1.6.0Test email, SMS, payments and webhooks locally: read messages, OTPs and webhook deliveries.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
sendmock_status
view=health: Liveness check; answers while the server runs. view=info: Version, listen addresses and enabled features.
| Parameter | Type | Description |
|---|---|---|
view * | string |
sendmock_tls_ca
The local CA to trust for the HTTPS provider port.
sendmock_tls_trust
What trusts the local CA on this machine: the system store and each runtime.
sendmock_preset_list
The stack presets: what each sets up and its options.
sendmock_preset_apply
Set SendMock up for a stack in one step; a second run changes nothing.
| Parameter | Type | Description |
|---|---|---|
app_url * | string | Where SendMock reaches your app, such as `http://localhost:8000`. |
preset_name * | string | The preset's name, from `GET /api/v1/presets`. |
numbers_csv | string | null | Numbers to add, one per line: `number,label,subaccount_sid,messaging_service_sid` (a first line starting with `number` is a header); the last two may be empty. |
options | object | The preset's options by name (its webhook paths); left out, their defaults. |
sendmock_stats
Counts and rates shown on the Overview.
sendmock_email_list
Stored emails, newest first, with search and filters.
| Parameter | Type | Description |
|---|---|---|
cursor | string | null | Continue after this page's `next_cursor`. |
direction | string | null | Outbound from your app or inbound to it. |
from | string | null | Sender contains. |
has_attachment | boolean | null | Only with attachments. |
is_unread | boolean | null | Only unread. |
limit | integer | null | How many emails per page (default 50, at most 500). |
project | string | null | Only this project's emails (its key); every project's when not set. |
query | string | null | Search text; supports from:, to: and tag: prefixes. |
source | string | null | How it arrived: smtp, sendmail, native_api, or an email provider's key. |
tag | string | null | Has this tag. |
to | string | null | A recipient contains. |
sendmock_email_delete_all
Delete every email, or only those that match the filters.
| Parameter | Type | Description |
|---|---|---|
direction | string | null | Outbound from your app or inbound to it. |
from | string | null | Sender contains. |
has_attachment | boolean | null | Only with attachments. |
is_unread | boolean | null | Only unread. |
project | string | null | Only this project's emails (its key); every project's when not set. |
query | string | null | Search text; supports from:, to: and tag: prefixes. |
source | string | null | How it arrived: smtp, sendmail, native_api, or an email provider's key. |
tag | string | null | Has this tag. |
to | string | null | A recipient contains. |
sendmock_email_latest
The newest email to a recipient.
| Parameter | Type | Description |
|---|---|---|
to * | string | The recipient address. |
project | string | null | Only this project's emails (its key); every project's when not set. |
subject | string | null | Subject contains. |
sendmock_email_get
One email with bodies, headers, attachments and extracted codes.
| Parameter | Type | Description |
|---|---|---|
email_id * | string |
sendmock_email_update
Mark read or unread, or change tags.
| Parameter | Type | Description |
|---|---|---|
email_id * | string | |
is_read | boolean | null | Marks the email as read (true) or unread (false). |
tags | array | null | Replaces the email's tags; an empty list removes them all. |
sendmock_email_delete
Delete one email.
| Parameter | Type | Description |
|---|---|---|
email_id * | string |
sendmock_email_timeline
Delivery events: received, delivered, opened, bounced.
| Parameter | Type | Description |
|---|---|---|
email_id * | string |
sendmock_email_simulate
Simulate a delivery outcome such as a bounce or complaint.
| Parameter | Type | Description |
|---|---|---|
email_id * | string | |
event * | The delivery event to simulate; it is added to the timeline and fires its webhook. | |
bounce_type | For `bounced` only: hard (the default) or soft. | |
user_variables | object | null | User variables for this action's webhooks, such as your app's order id, merged over the email's own (Mailgun's `user-variables`, `data.user_variables` in templates), before each payload is signed. |
webhook_endpoint_ids | array | null | Send this action's webhooks to exactly these endpoints (IDs from `GET /api/v1/webhooks/endpoints`) instead of the ones the rules pick; an empty list sends none. Leave it out to let the rules decide. |
webhook_requests | array | null | Payloads edited for this action, by endpoint: each body is sent as written instead of the rendered one. Leave it out to send the rendered payloads. |
sendmock_email_open
Record an open and fire email.opened.
| Parameter | Type | Description |
|---|---|---|
email_id * | string | |
source | Who opened it; `api` when not given. | |
user_agent | string | null | The browser or client that opened it, kept in the open history. |
user_variables | object | null | User variables for this action's webhooks, such as your app's order id, merged over the email's own (Mailgun's `user-variables`, `data.user_variables` in templates), before each payload is signed. |
webhook_endpoint_ids | array | null | Send this action's webhooks to exactly these endpoints (IDs from `GET /api/v1/webhooks/endpoints`) instead of the ones the rules pick; an empty list sends none. Leave it out to let the rules decide. |
webhook_requests | array | null | Payloads edited for this action, by endpoint: each body is sent as written instead of the rendered one. Leave it out to send the rendered payloads. |
sendmock_email_opens
Every recorded open of the email, oldest first.
| Parameter | Type | Description |
|---|---|---|
email_id * | string |
sendmock_email_click
Record a click on one of the email's links and fire email.clicked.
| Parameter | Type | Description |
|---|---|---|
email_id * | string | |
url * | string | The link that was clicked; one of the email's links. |
source | Who clicked it; `api` when not given. | |
user_agent | string | null | The browser or client that clicked, kept in the click history. |
user_variables | object | null | User variables for this action's webhooks, such as your app's order id, merged over the email's own (Mailgun's `user-variables`, `data.user_variables` in templates), before each payload is signed. |
webhook_endpoint_ids | array | null | Send this action's webhooks to exactly these endpoints (IDs from `GET /api/v1/webhooks/endpoints`) instead of the ones the rules pick; an empty list sends none. Leave it out to let the rules decide. |
webhook_requests | array | null | Payloads edited for this action, by endpoint: each body is sent as written instead of the rendered one. Leave it out to send the rendered payloads. |
sendmock_email_clicks
Every recorded click on the email's links, newest first.
| Parameter | Type | Description |
|---|---|---|
email_id * | string |
sendmock_email_check
kind=unsubscribe: List-Unsubscribe and one-click unsubscribe checks. kind=html: HTML and CSS support across email clients. kind=links: Check every link in the message. kind=spam: Score the message with the spam rules.
| Parameter | Type | Description |
|---|---|---|
kind * | string | |
email_id | string |
sendmock_email_release
Send the email on through the allowlisted relay.
| Parameter | Type | Description |
|---|---|---|
email_id * | string | |
to | array | null | Who receives it on the real SMTP server; empty sends to the original recipients. Every address must match the release allowlist. |
sendmock_email_reply
Reply as the recipient; the reply arrives as inbound email.
| Parameter | Type | Description |
|---|---|---|
email_id * | string | |
body | string | null | The reply text, above the quoted original; empty or left out sends no text of its own. |
cc | array | null | Copies; replaces the default, the other original recipients with `reply_all` and none without. |
from | string | null | Who replies; defaults to the original recipient. |
include_original | boolean | null | Quotes the original below an "On ... wrote:" line (default true). |
reply_all | boolean | null | Also sends to the other original recipients, in Cc. |
subject | string | null | Defaults to `Re: <original subject>`. |
to | array | null | Who the reply goes to; replaces the default, the original `Reply-To` (or `From`). |
user_variables | object | null | User variables for this action's webhooks, such as your app's order id, merged over the email's own (Mailgun's `user-variables`, `data.user_variables` in templates), before each payload is signed. |
webhook_endpoint_ids | array | null | Send this action's webhooks to exactly these endpoints (IDs from `GET /api/v1/webhooks/endpoints`) instead of the ones the rules pick; an empty list sends none. Leave it out to let the rules decide. |
webhook_requests | array | null | Payloads edited for this action, by endpoint: each body is sent as written instead of the rendered one. Leave it out to send the rendered payloads. |
sendmock_email_forward
Forward as the recipient; the copy arrives as inbound email.
| Parameter | Type | Description |
|---|---|---|
email_id * | string | |
to * | string | Where the email is forwarded, e.g. your app's inbound address. |
body | string | null | A note above the forwarded message. |
from | string | null | Who forwards; defaults to the original recipient. |
include_attachments | boolean | null | Forwards the original attachments too (default true). |
include_original | boolean | null | Adds the original below a "Forwarded message" block (default true). |
subject | string | null | Defaults to `Fwd: <original subject>`. |
user_variables | object | null | User variables for this action's webhooks, such as your app's order id, merged over the email's own (Mailgun's `user-variables`, `data.user_variables` in templates), before each payload is signed. |
webhook_endpoint_ids | array | null | Send this action's webhooks to exactly these endpoints (IDs from `GET /api/v1/webhooks/endpoints`) instead of the ones the rules pick; an empty list sends none. Leave it out to let the rules decide. |
webhook_requests | array | null | Payloads edited for this action, by endpoint: each body is sent as written instead of the rendered one. Leave it out to send the rendered payloads. |
sendmock_email_template_list
Local email templates: a provider send naming one gets its subject and bodies.
sendmock_email_template_create
Add a local email template under a provider's template id or name.
| Parameter | Type | Description |
|---|---|---|
html * | string | null | The HTML body. |
id * | string | The provider's template id or name: SendGrid's `d-...`, Postmark's number or alias, Mailgun's template name. |
subject * | string | The subject, used when the send gives none; can use the template data. |
text * | string | null | The plain-text body; at least one of `text` and `html`. |
sendmock_email_template_update
Change a local email template's subject or bodies.
| Parameter | Type | Description |
|---|---|---|
template_id * | string | The template's id, from `GET /api/v1/emails/templates`. |
html | string | null | |
subject | string | |
text | string | null |
sendmock_email_template_delete
Remove a local email template; sends naming it keep their own bodies.
| Parameter | Type | Description |
|---|---|---|
template_id * | string | The template's id, from `GET /api/v1/emails/templates`. |
sendmock_email_inbound
Create an incoming email from fields or raw MIME; fires email.inbound.
| Parameter | Type | Description |
|---|---|---|
from | string | null | The sender, as an address or `Name <address>`. |
html | string | null | The HTML body. |
raw | string | null | A whole message (RFC 5322); when set, the other fields are ignored. |
subject | string | null | The subject line. |
text | string | null | The plain-text body. |
to | array | null | The recipients, usually your app's inbound address. |
user_variables | object | null | User variables for this action's webhooks, such as your app's order id, merged over the email's own (Mailgun's `user-variables`, `data.user_variables` in templates), before each payload is signed. |
webhook_endpoint_ids | array | null | Send this action's webhooks to exactly these endpoints (IDs from `GET /api/v1/webhooks/endpoints`) instead of the ones the rules pick; an empty list sends none. Leave it out to let the rules decide. |
webhook_requests | array | null | Payloads edited for this action, by endpoint: each body is sent as written instead of the rendered one. Leave it out to send the rendered payloads. |
sendmock_email_mime
The MIME tree of the message.
| Parameter | Type | Description |
|---|---|---|
email_id * | string |
sendmock_email_send
Native send: JSON with optional base64 attachments.
| Parameter | Type | Description |
|---|---|---|
from * | string | The sender, as an address or `Name <address>`. |
subject * | string | The subject line. |
to * | array | The recipients. |
attachments | array | null | Files to attach. |
bcc | array | null | Hidden copy recipients; stored with the email but not in its headers. |
cc | array | null | Copy recipients. |
headers | object | null | Extra headers, by name. |
html | string | null | The HTML body. Send `text`, `html` or both. |
tags | array | null | Tags to file the email under in Mail. |
text | string | null | The plain-text body. Send `text`, `html` or both. |
sendmock_email_send_raw
Store a raw message as sent by your app, as the sendmail shim does.
| Parameter | Type | Description |
|---|---|---|
raw_message * | string |
sendmock_otp_get
The latest one-time code sent to a recipient.
| Parameter | Type | Description |
|---|---|---|
to * | string | The recipient. |
channel | string | null | email or sms (default: email). |
project | string | null | Only this project's messages (its key); every project's when not set. |
timeout | string | null | How long to wait for a first match, e.g. 10s (default: answer at once). |
sendmock_links_get
The links of the latest email to a recipient.
| Parameter | Type | Description |
|---|---|---|
to * | string | The recipient. |
project | string | null | Only this project's emails (its key); every project's when not set. |
timeout | string | null | How long to wait for a first match, e.g. 10s (default: answer at once). |
sendmock_email_wait
Wait until a matching email arrives; 408 on timeout.
| Parameter | Type | Description |
|---|---|---|
project | string | null | Only this project's emails (its key); every project's when not set. |
since | string | null | Only emails received after this time (default: 30 s ago). |
subject | string | null | Subject contains. |
timeout | string | null | How long to wait, e.g. 30s (default 30s). |
to | string | null | A recipient contains. |
sendmock_events_recent
The latest events, newest first: the polling twin of the live stream.
| Parameter | Type | Description |
|---|---|---|
limit | integer | null | At most this many (default 50). |
project | string | null | Only events about this project's emails, SMS and verifications (its key); every event when not set. |
since | string | null | Only events newer than this time. |
type | string | null | An event type, e.g. http.captured. |
sendmock_sms_list
SMS and WhatsApp messages, newest first, with filters.
| Parameter | Type | Description |
|---|---|---|
cursor | string | null | The next_cursor of the previous page. |
direction | string | null | Outbound from your app or inbound to it. |
from | string | null | Sender number. |
limit | integer | null | Items per page, 1 to 200 (default 50). |
project | string | null | Only this project's messages (its key); every project's when not set. |
query | string | null | Number or text. |
status | string | null | Delivery status. |
thread_id | string | null | Only this conversation. |
to | string | null | Recipient number. |
sendmock_sms_delete_all
Delete every message, or one project's.
| Parameter | Type | Description |
|---|---|---|
project | string | null | Only this project's messages (its key); every project's when not set. |
sendmock_sms_send
Native send, with optional media URLs or inline media.
| Parameter | Type | Description |
|---|---|---|
body * | string | The message text. Its length and characters decide the segments and the encoding (GSM-7 or UCS-2). |
from * | string | The sender: an E.164 number or an alphanumeric sender ID. |
to * | string | The recipient, an E.164 number; `whatsapp:+...` sends over WhatsApp. |
media | array | null | Files sent inline as MMS media, base64 encoded. |
media_urls | array | null | Public links SendMock downloads, like Twilio's `MediaUrl`. |
metadata | object | null | Any JSON you want stored with the message and echoed in its events. |
status_callback | string | null | Your app's URL that receives each status change (queued, sent, delivered, failed). |
sendmock_sms_threads
Conversations, one per contact and your number.
| Parameter | Type | Description |
|---|---|---|
project | string | null | Only this project's messages (its key); every project's when not set. |
sendmock_sms_thread_update
Mark a conversation read, or its newest message unread.
| Parameter | Type | Description |
|---|---|---|
is_read * | boolean | True marks every message in the conversation read; false marks its newest message unread. |
thread_id * | string | The conversation's `thread_id`, from `GET /api/v1/sms/threads`. |
sendmock_sms_thread_delete
Delete a conversation with its messages.
| Parameter | Type | Description |
|---|---|---|
thread_id * | string | The conversation's `thread_id`, from `GET /api/v1/sms/threads`. |
sendmock_sms_get
One message with its status history and callbacks.
| Parameter | Type | Description |
|---|---|---|
sms_id * | string | The SMS's ID, from `GET /api/v1/sms`. |
sendmock_sms_delete
Delete one message.
| Parameter | Type | Description |
|---|---|---|
sms_id * | string | The SMS's ID, from `GET /api/v1/sms`. |
sendmock_sms_set_status
Set a delivery status by hand and fire its callback.
| Parameter | Type | Description |
|---|---|---|
sms_id * | string | The SMS's ID, from `GET /api/v1/sms`. |
status * | string | The new status; fires the status callback and the matching event. |
error_code | string | null | A Twilio error code for `failed` or `undelivered`, e.g. `30003` (unreachable). |
user_variables | object | null | User variables for this action's webhooks, such as your app's order id, merged over the email's own (Mailgun's `user-variables`, `data.user_variables` in templates), before each payload is signed. |
webhook_endpoint_ids | array | null | Send this action's webhooks to exactly these endpoints (IDs from `GET /api/v1/webhooks/endpoints`) instead of the ones the rules pick; an empty list sends none. Leave it out to let the rules decide. |
webhook_requests | array | null | Payloads edited for this action, by endpoint: each body is sent as written instead of the rendered one. Leave it out to send the rendered payloads. |
sendmock_sms_open
Record a read and fire sms.opened.
| Parameter | Type | Description |
|---|---|---|
sms_id * | string | The SMS's ID, from `GET /api/v1/sms`. |
source | Who read it; `api` when not given. | |
user_agent | string | null | The browser or client that read it, kept in the open history. |
user_variables | object | null | User variables for this action's webhooks, such as your app's order id, merged over the email's own (Mailgun's `user-variables`, `data.user_variables` in templates), before each payload is signed. |
webhook_endpoint_ids | array | null | Send this action's webhooks to exactly these endpoints (IDs from `GET /api/v1/webhooks/endpoints`) instead of the ones the rules pick; an empty list sends none. Leave it out to let the rules decide. |
webhook_requests | array | null | Payloads edited for this action, by endpoint: each body is sent as written instead of the rendered one. Leave it out to send the rendered payloads. |
sendmock_sms_opens
Every recorded read of an outbound message, oldest first.
| Parameter | Type | Description |
|---|---|---|
sms_id * | string | The SMS's ID, from `GET /api/v1/sms`. |
sendmock_sms_simulate_inbound
Simulate a message from a contact to one of your numbers.
| Parameter | Type | Description |
|---|---|---|
body * | string | The message text. |
from * | string | Who texts your app: the user's number. |
to * | string | Your app's number that receives it, usually a virtual number. |
channel | string | null | `sms` (default) or `whatsapp`. |
media | array | null | Files sent with the message, as MMS or WhatsApp media. |
template_id | string | null | The payload template for the inbound webhook, instead of the number's (e.g. `twilio.inbound_sms`). |
user_variables | object | null | User variables for this action's webhooks, such as your app's order id, merged over the email's own (Mailgun's `user-variables`, `data.user_variables` in templates), before each payload is signed. |
webhook_endpoint_ids | array | null | Send this action's webhooks to exactly these endpoints (IDs from `GET /api/v1/webhooks/endpoints`) instead of the ones the rules pick; an empty list sends none. Leave it out to let the rules decide. |
webhook_requests | array | null | Payloads edited for this action, by endpoint: each body is sent as written instead of the rendered one. Leave it out to send the rendered payloads. |
sendmock_sms_wait
Wait until a matching SMS arrives; 408 on timeout.
| Parameter | Type | Description |
|---|---|---|
from | string | null | The sender number. |
project | string | null | Only this project's messages (its key); every project's when not set. |
since | string | null | Only match items newer than this time (default: 30 s ago). |
timeout | string | null | How long to wait, e.g. 10s (default 10s, at most 60s). |
to | string | null | The recipient number. |
sendmock_sms_reply_webhook_resend
Send an inbound message's reply webhook again.
| Parameter | Type | Description |
|---|---|---|
sms_id * | string | The SMS's ID, from `GET /api/v1/sms`. |
sendmock_sms_opt_out_list
Contacts who texted STOP, newest first.
sendmock_sms_opt_out_delete
Lift one opt-out, as if the contact texted START.
| Parameter | Type | Description |
|---|---|---|
contact_number * | string | The contact's number, E.164. |
sender * | string | Your app's number, or a Messaging Service SID, as the opt-out list shows it. |
sendmock_sms_opt_out_clear
Lift every opt-out.
sendmock_project_list
Every project, default first, with the traffic each holds.
sendmock_project_create
Add a project that apps can send traffic to by its key.
| Parameter | Type | Description |
|---|---|---|
key * | string | What apps send to pick the project: lowercase letters, digits and dashes, 1 to 40 characters, starting with a letter or digit. It never changes. |
name * | string | A name for the project, shown in the UI. |
sendmock_project_update
Rename a project; its key stays the same.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
project_key * | string | The project's key, from the list of projects. |
sendmock_project_delete
Delete a project with its emails, SMS and verifications.
| Parameter | Type | Description |
|---|---|---|
project_key * | string | The project's key, from the list of projects. |
sendmock_push_list
Push notifications, newest first, with filters.
| Parameter | Type | Description |
|---|---|---|
cursor | string | null | The next_cursor of the previous page. |
device_token | string | null | Only notifications to this device token. |
limit | integer | null | Items per page, 1 to 200 (default 50). |
project | string | null | Only this project's notifications (its key); every project's when not set. |
provider | string | null | fcm, expo or onesignal. |
status | string | null | sent or failed. |
sendmock_push_get
One push notification with its request and answer.
| Parameter | Type | Description |
|---|---|---|
push_id * | string | The notification's id, from `GET /api/v1/push`. |
sendmock_push_delete
Delete one push notification.
| Parameter | Type | Description |
|---|---|---|
push_id * | string | The notification's id, from `GET /api/v1/push`. |
sendmock_push_update
Mark a push notification read or unread.
| Parameter | Type | Description |
|---|---|---|
is_read * | boolean | Marks the notification read (true) or unread (false). |
push_id * | string | The notification's id, from `GET /api/v1/push`. |
sendmock_push_delete_all
Delete every push notification, or one project's.
| Parameter | Type | Description |
|---|---|---|
device_token | string | null | Only notifications to this device token. |
project | string | null | Only this project's notifications (its key); every project's when not set. |
provider | string | null | fcm, expo or onesignal. |
status | string | null | sent or failed. |
sendmock_push_wait
Wait until a matching push notification arrives; 408 on timeout.
| Parameter | Type | Description |
|---|---|---|
device_token | string | null | The device token. |
project | string | null | Only this project's notifications (its key); every project's when not set. |
since | string | null | Only notifications sent after this time (default: 30 s ago). |
timeout | string | null | How long to wait, e.g. 10s (default 10s, at most 60s). |
sendmock_ci_validate
Check a CI file and its scenarios without running anything.
| Parameter | Type | Description |
|---|---|---|
ci_file * | string | The CI file (`format: sendmock.ci`) in JSON or YAML. A setup or scenario named by a path must be inlined first, as `sendmock ci run` does; URLs are downloaded. |
sendmock_ci_run
Run a CI file's setup and scenarios here and answer the report, with JUnit XML.
| Parameter | Type | Description |
|---|---|---|
ci_file * | string | The CI file (`format: sendmock.ci`) in JSON or YAML. A setup or scenario named by a path must be inlined first, as `sendmock ci run` does; URLs are downloaded. |
sendmock_ci_init
The setup, a starter CI file and the pipeline job for a CI system, from this instance.
| Parameter | Type | Description |
|---|---|---|
provider * | The CI system to write a job for. `sendmock ci init` finds it from the repository. | |
app_url | string | null | The app's base URL in the pipeline [default: http://localhost:8000]. |
setup_url | string | null | Where the pipeline downloads the setup; the written file's path when null. |
sendmock_subscription_list
Subscriptions, newest first.
sendmock_subscription_create
Start a subscription on a gateway, with an optional trial.
| Parameter | Type | Description |
|---|---|---|
amount_minor * | integer | The amount of each renewal in minor units. |
customer_email * | string | Who pays. |
interval * | How often it renews: `day`, `week`, `month` or `year`. | |
plan_name * | string | The plan's name, shown on each renewal's payment. |
provider * | string | The gateway's key. |
card_number | string | null | The test card that pays each renewal; `4242424242424242` when left out. |
currency | string | null | ISO 4217 code; Settings > Payments' default currency when left out. |
trial_days | integer | null | Days before the first charge; none charges at once. |
sendmock_subscription_get
One subscription with its timeline and renewal payments.
| Parameter | Type | Description |
|---|---|---|
subscription_id * | string | The subscription's ID, from `GET /api/v1/payments/subscriptions`. |
sendmock_subscription_delete
Delete one subscription; its past payments stay.
| Parameter | Type | Description |
|---|---|---|
subscription_id * | string | The subscription's ID, from `GET /api/v1/payments/subscriptions`. |
sendmock_subscription_delete_all
Delete every subscription; their past payments stay.
sendmock_subscription_advance
Move the subscription's clock to its next renewal and charge it.
| Parameter | Type | Description |
|---|---|---|
subscription_id * | string | The subscription's ID, from `GET /api/v1/payments/subscriptions`. |
sendmock_subscription_cancel
Cancel the subscription now or at the end of its period.
| Parameter | Type | Description |
|---|---|---|
subscription_id * | string | The subscription's ID, from `GET /api/v1/payments/subscriptions`. |
at_period_end | boolean | null | End at the next advance instead of now. |
sendmock_ai_agents
For each AI agent, the install command and its MCP configuration.
| Parameter | Type | Description |
|---|---|---|
target | Only this agent. |
sendmock_twilio_subaccount_list
Subaccounts of the Twilio provider's main account, tokens masked.
sendmock_twilio_subaccount_create
Add a Twilio subaccount with its own auth token.
| Parameter | Type | Description |
|---|---|---|
friendly_name * | string | A name for the subaccount, e.g. the customer it belongs to. |
account_sid | string | null | `AC` and 32 hex digits; null makes a new one. |
auth_token | string | null | The subaccount's auth token. Null, empty or the masked value keeps the stored token; a new subaccount without one gets a generated token. |
debugger_url | string | null | Where Twilio Debugger events for this subaccount are sent; null for none. |
status |
sendmock_twilio_subaccount_update
Change a Twilio subaccount's name, status, token or Debugger URL.
| Parameter | Type | Description |
|---|---|---|
account_sid * | string | The subaccount SID, `AC...`, from `GET /api/v1/twilio/subaccounts`. |
auth_token | string | null | The subaccount's auth token. Null, empty or the masked value keeps the stored token; a new subaccount without one gets a generated token. |
debugger_url | string | null | Where Twilio Debugger events for this subaccount are sent; null for none. |
friendly_name | string | A name for the subaccount, e.g. the customer it belongs to. |
status |
sendmock_twilio_subaccount_delete
Remove a Twilio subaccount; its messages stay.
| Parameter | Type | Description |
|---|---|---|
account_sid * | string | The subaccount SID, `AC...`, from `GET /api/v1/twilio/subaccounts`. |
sendmock_email_mailgun_complaint_list
Addresses on each Mailgun domain's complaints table.
| Parameter | Type | Description |
|---|---|---|
domain | string | null | Only this sending domain's complaints; every domain's when left out. |
sendmock_email_mailgun_complaint_clear
Clear a Mailgun domain's complaints, so its addresses get mail again.
| Parameter | Type | Description |
|---|---|---|
domain * | string | The sending domain whose complaints are cleared. |
sendmock_verify_list
Verifications your app started, newest first.
| Parameter | Type | Description |
|---|---|---|
channel | string | null | |
cursor | string | null | The next_cursor of the previous page. |
limit | integer | null | |
project | string | null | Only this project's verifications (its key); every project's when not set. |
status | string | null | One status, or several separated by commas. |
to | string | null | Part of the recipient's number or address. |
sendmock_verify_get
One verification with its code, attempts and timeline.
| Parameter | Type | Description |
|---|---|---|
verification_sid * | string | The verification SID, `VE...`, from `GET /api/v1/verify`. |
sendmock_verify_delete
Delete one verification with its check attempts.
| Parameter | Type | Description |
|---|---|---|
verification_sid * | string | The verification SID, `VE...`, from `GET /api/v1/verify`. |
sendmock_verify_delete_all
Delete every verification, or those the filters match.
| Parameter | Type | Description |
|---|---|---|
channel | string | null | |
project | string | null | Only this project's verifications (its key); every project's when not set. |
status | string | null | One status, or several separated by commas. |
to | string | null | Part of the recipient's number or address. |
sendmock_verify_force
Force an outcome: approved, expired, canceled or max attempts.
| Parameter | Type | Description |
|---|---|---|
state * | The state to force: `approved`, `canceled`, `expired` or `max_attempts`. | |
verification_sid * | string | The verification SID, `VE...`, from `GET /api/v1/verify`. |
sendmock_verify_service_list
Verify services (code length, fixed code, lifetime).
sendmock_verify_service_create
Add a Verify service.
| Parameter | Type | Description |
|---|---|---|
code_length * | integer | Digits in each code, 4 to 10. |
fixed_code * | string | null | Always send this code instead of a random one; null for random. |
friendly_name * | string | The name shown in the code message, e.g. "Your Shop verification code is ...". |
ttl_seconds * | integer | How long a code stays valid, in seconds. |
sendmock_verify_service_update
Change a Verify service.
| Parameter | Type | Description |
|---|---|---|
service_sid * | string | The service SID, `VA...`, from `GET /api/v1/verify/services`. |
code_length | integer | Digits in each code, 4 to 10. |
fixed_code | string | null | Always send this code instead of a random one; null for random. |
friendly_name | string | The name shown in the code message, e.g. "Your Shop verification code is ...". |
ttl_seconds | integer | How long a code stays valid, in seconds. |
sendmock_verify_service_delete
Delete a Verify service.
| Parameter | Type | Description |
|---|---|---|
service_sid * | string | The service SID, `VA...`, from `GET /api/v1/verify/services`. |
sendmock_sms_provider_list
SMS providers, built in and custom, removed ones included.
sendmock_sms_provider_create
Add an SMS provider, blank or copied from another.
| Parameter | Type | Description |
|---|---|---|
key * | string | 2 to 32 lowercase letters, digits or `_`, starting with a letter; unique in its area. |
name * | string | The display name, e.g. "SSL Wireless". |
start_from * | string | null | The provider of the same area to copy, or `null` to start blank. |
sendmock_sms_provider_get
One provider definition; secret credentials masked.
| Parameter | Type | Description |
|---|---|---|
provider_key * | string | The provider's key, e.g. `twilio`, from its providers list. |
sendmock_sms_provider_update
Change a provider; 400 with the problems for template errors, bad paths or a path clash.
| Parameter | Type | Description |
|---|---|---|
provider_key * | string | The provider's key, e.g. `twilio`, from its providers list. |
accent | string | `#rrggbb`, used on its badge. |
callback_template_key | string | null | The webhook template its status callbacks are sent with; null sends none. |
check_credentials | boolean | Off: any credentials are accepted. On: wrong ones get the `unauthorized` answer. |
credentials | array | The credentials your app is configured with; a masked secret keeps the stored value. |
error_responses | array | The answer for each kind of error. |
field_mapping | array | Where each part of a sent message is read from. |
host | string | null | The provider's API host, used on the provider port to tell apart providers that share a path; null when not needed. |
is_enabled | boolean | Off providers answer nothing; their paths get SendMock's native 404. |
key | string | The provider's key; fixed after creation, so the path's key wins. |
message_id_template | string | The provider's id for each message, a template. |
name | string | The provider's name, shown on messages and in pickers. |
operations | array | The requests it answers. |
opt_out_auto_replies | boolean | SMS: answer STOP, START and HELP with Twilio's default replies, stored as outbound messages. |
opt_out_keywords | boolean | null | SMS: Twilio's Advanced Opt-Out. An inbound STOP (STOPALL, UNSUBSCRIBE, CANCEL, END, QUIT) blocks later sends to the contact with 21610 until START, YES or UNSTOP. Null keeps the default: on for Twilio… |
outcome_error_codes | object | SMS only: the provider's error code for each delivery outcome. |
status_names | object | The provider's name for each SendMock status. |
success_response | The answer to a request that passes every check. | |
validation_rules | array | The checks run on each send, in order. |
sendmock_sms_provider_delete
Remove a built-in (restorable) or delete a custom provider; its messages stay.
| Parameter | Type | Description |
|---|---|---|
provider_key * | string | The provider's key, e.g. `twilio`, from its providers list. |
sendmock_sms_provider_restore
Bring a removed built-in back as it was.
| Parameter | Type | Description |
|---|---|---|
provider_key * | string | The provider's key, e.g. `twilio`, from its providers list. |
sendmock_sms_provider_reset
Put a built-in provider back as shipped.
| Parameter | Type | Description |
|---|---|---|
provider_key * | string | The provider's key, e.g. `twilio`, from its providers list. |
sendmock_sms_provider_preview
Run a sample request through a definition: the message it would store and the answer it would give.
| Parameter | Type | Description |
|---|---|---|
provider * | The provider settings to run, saved or not. | |
provider_key * | string | The provider's key, e.g. `twilio`, from its providers list. |
sample_request | The request to run; the provider's example send when left out. |
sendmock_sms_whatsapp_verify_webhook
Send Meta's callback URL check to the app and report whether it answered the challenge.
| Parameter | Type | Description |
|---|---|---|
url | string | null | The URL to check; the WhatsApp Cloud provider's `webhook_url` when left out. |
sendmock_email_provider_list
Email providers, built in and custom, removed ones included.
sendmock_email_provider_create
Add an email provider, blank or copied from another.
| Parameter | Type | Description |
|---|---|---|
key * | string | 2 to 32 lowercase letters, digits or `_`, starting with a letter; unique in its area. |
name * | string | The display name, e.g. "SSL Wireless". |
start_from * | string | null | The provider of the same area to copy, or `null` to start blank. |
sendmock_email_provider_get
One provider definition; secret credentials masked.
| Parameter | Type | Description |
|---|---|---|
provider_key * | string | The provider's key, e.g. `twilio`, from its providers list. |
sendmock_email_provider_update
Change a provider; 400 with the problems for template errors, bad paths or a path clash.
| Parameter | Type | Description |
|---|---|---|
provider_key * | string | The provider's key, e.g. `twilio`, from its providers list. |
accent | string | `#rrggbb`, used on its badge. |
callback_template_key | string | null | The webhook template its status callbacks are sent with; null sends none. |
check_credentials | boolean | Off: any credentials are accepted. On: wrong ones get the `unauthorized` answer. |
credentials | array | The credentials your app is configured with; a masked secret keeps the stored value. |
error_responses | array | The answer for each kind of error. |
field_mapping | array | Where each part of a sent message is read from. |
host | string | null | The provider's API host, used on the provider port to tell apart providers that share a path; null when not needed. |
is_enabled | boolean | Off providers answer nothing; their paths get SendMock's native 404. |
key | string | The provider's key; fixed after creation, so the path's key wins. |
message_id_template | string | The provider's id for each message, a template. |
name | string | The provider's name, shown on messages and in pickers. |
operations | array | The requests it answers. |
opt_out_auto_replies | boolean | SMS: answer STOP, START and HELP with Twilio's default replies, stored as outbound messages. |
opt_out_keywords | boolean | null | SMS: Twilio's Advanced Opt-Out. An inbound STOP (STOPALL, UNSUBSCRIBE, CANCEL, END, QUIT) blocks later sends to the contact with 21610 until START, YES or UNSTOP. Null keeps the default: on for Twilio… |
outcome_error_codes | object | SMS only: the provider's error code for each delivery outcome. |
status_names | object | The provider's name for each SendMock status. |
success_response | The answer to a request that passes every check. | |
validation_rules | array | The checks run on each send, in order. |
sendmock_email_provider_delete
Remove a built-in (restorable) or delete a custom provider; its messages stay.
| Parameter | Type | Description |
|---|---|---|
provider_key * | string | The provider's key, e.g. `twilio`, from its providers list. |
sendmock_email_provider_restore
Bring a removed built-in back as it was.
| Parameter | Type | Description |
|---|---|---|
provider_key * | string | The provider's key, e.g. `twilio`, from its providers list. |
sendmock_email_provider_reset
Put a built-in provider back as shipped.
| Parameter | Type | Description |
|---|---|---|
provider_key * | string | The provider's key, e.g. `twilio`, from its providers list. |
sendmock_email_provider_preview
Run a sample request through a definition: the message it would store and the answer it would give.
| Parameter | Type | Description |
|---|---|---|
provider * | The provider settings to run, saved or not. | |
provider_key * | string | The provider's key, e.g. `twilio`, from its providers list. |
sample_request | The request to run; the provider's example send when left out. |
sendmock_webhook_endpoint_list
Where webhooks go: URL, template, secret and retry policy.
sendmock_webhook_endpoint_create
Add an endpoint; its signing secret is generated.
| Parameter | Type | Description |
|---|---|---|
name * | string | A name for the endpoint, shown in lists and deliveries. |
url * | string | Where deliveries are sent; can use templates. |
body_fields | array | The rows of `fields` mode. |
body_mode | How the body is built: `template`, `fields`, `raw` or `none`. | |
extra_fields | object | Extra body fields layered on top of the template's. |
fields_encoding | How `fields` mode is sent: `json`, `form` (`x-www-form-urlencoded`) or `multipart` (`multipart/form-data`, where `file` fields are fetched from their URL when sent). | |
headers | object | Extra headers layered on top of the template's. |
is_enabled | boolean | Off endpoints receive no deliveries. |
method | The HTTP method of each delivery. | |
query_params | array | Query parameters added to the URL. |
raw_body | string | The body template of `raw` mode. |
raw_content_type | string | The content type of `raw` mode. |
render_mode | `strict` or `lenient` rendering of undefined variables. | |
retry_policy | When and how often failed deliveries are retried. | |
template_id | string | The payload template, e.g. `native` (Standard Webhooks JSON) or `slack.incoming_webhook`. |
template_mode | `linked` follows template updates, `detached` keeps its own copy. | |
timeout_ms | integer | How long to wait for your app's answer, in milliseconds (1000 to 60000). |
sendmock_webhook_endpoint_get
One endpoint; its secret masked.
| Parameter | Type | Description |
|---|---|---|
endpoint_id * | string | The webhook endpoint's ID, from `GET /api/v1/webhooks/endpoints`. |
sendmock_webhook_endpoint_update
Change an endpoint; send only the changed keys.
| Parameter | Type | Description |
|---|---|---|
endpoint_id * | string | The webhook endpoint's ID, from `GET /api/v1/webhooks/endpoints`. |
body_fields | array | null | |
body_mode | ||
extra_fields | object | null | |
fields_encoding | ||
headers | object | null | |
is_enabled | boolean | null | |
method | ||
name | string | null | |
query_params | array | null | |
raw_body | string | null | |
raw_content_type | string | null | |
render_mode | ||
retry_policy | ||
template_id | string | null | |
template_mode | ||
timeout_ms | integer | null | |
url | string | null |
sendmock_webhook_endpoint_delete
Delete an endpoint and its rules.
| Parameter | Type | Description |
|---|---|---|
endpoint_id * | string | The webhook endpoint's ID, from `GET /api/v1/webhooks/endpoints`. |
sendmock_webhook_render
Render an unsaved endpoint's request against a message.
| Parameter | Type | Description |
|---|---|---|
email_id | string | null | Render against this email; without an email, SMS or request ID the sample event is used. |
endpoint | object | null | The endpoint settings to render, saved or not, as many fields as you like: the rest come from the saved endpoint `endpoint_id` names, or a new endpoint's defaults. Left out, the saved endpoint is rend… |
endpoint_id | string | null | A saved endpoint's own variables are used too; alone, its stored settings are rendered. |
http_request_id | string | null | Render against this captured HTTP request. |
sms_id | string | null | Render against this SMS. |
variables | object | null | Send-time values by variable name (no `vars.`); they win for this render (WH-05.5). |
sendmock_webhook_endpoint_rotate_secret
New signing secret; the old one keeps working for the overlap.
| Parameter | Type | Description |
|---|---|---|
endpoint_id * | string | The webhook endpoint's ID, from `GET /api/v1/webhooks/endpoints`. |
overlap_hours * | integer | How many hours the old secret keeps signing next to the new one (0 to 168). |
sendmock_webhook_endpoint_save_as_template
Save the endpoint's request as a custom template.
| Parameter | Type | Description |
|---|---|---|
endpoint_id * | string | The webhook endpoint's ID, from `GET /api/v1/webhooks/endpoints`. |
name * | string | The name of the new custom template. |
sendmock_webhook_endpoint_test
Send a test.ping delivery.
| Parameter | Type | Description |
|---|---|---|
endpoint_id * | string | The webhook endpoint's ID, from `GET /api/v1/webhooks/endpoints`. |
sendmock_webhook_send
Send a webhook for a chosen message or the sample, by hand.
| Parameter | Type | Description |
|---|---|---|
endpoint_id * | string | The webhook endpoint's ID, from `GET /api/v1/webhooks/endpoints`. |
body | string | null | An edited body, sent as written (WH-05.6). |
email_id | string | null | Send this email as the event. |
http_request_id | string | null | A captured HTTP request, sent as an `http.captured` event (HC-01.7). |
request | A hand-written request replacing the endpoint's, from the composer. | |
sms_id | string | null | Send this SMS as the event. |
template_id | string | null | A template used for this send instead of the endpoint's request. |
variables | object | null | Send-time values by variable name (no `vars.`), for this send only (WH-05.5). |
sendmock_webhook_delivery_list
Every webhook request sent, newest first.
| Parameter | Type | Description |
|---|---|---|
cursor | string | null | The next_cursor of the previous page. |
endpoint_id | string | null | Only this endpoint. |
event_type | string | null | Only this event. |
limit | integer | null | Items per page, 1 to 200 (default 50). |
status | string | null | succeeded, failed or pending. |
subject_id | string | null | Only the deliveries an email, SMS or other message caused, by its ID. |
sendmock_webhook_delivery_delete_all
Delete every finished delivery, or those the filters match; queued and retrying ones stay.
| Parameter | Type | Description |
|---|---|---|
endpoint_id | string | null | Only this endpoint. |
event_type | string | null | Only this event. |
status | string | null | succeeded, failed or pending. |
subject_id | string | null | Only the deliveries an email, SMS or other message caused, by its ID. |
sendmock_webhook_delivery_delete
Delete a finished delivery; 409 while it is queued or waiting for a retry.
| Parameter | Type | Description |
|---|---|---|
delivery_id * | string | The delivery's ID, from `GET /api/v1/webhooks/deliveries`. |
sendmock_webhook_delivery_get
One delivery: request, response and every attempt.
| Parameter | Type | Description |
|---|---|---|
delivery_id * | string | The delivery's ID, from `GET /api/v1/webhooks/deliveries`. |
sendmock_webhook_delivery_cancel
Stop the remaining retries.
| Parameter | Type | Description |
|---|---|---|
delivery_id * | string | The delivery's ID, from `GET /api/v1/webhooks/deliveries`. |
sendmock_webhook_delivery_replay
Send the delivery again, as it was or edited.
| Parameter | Type | Description |
|---|---|---|
delivery_id * | string | The delivery's ID, from `GET /api/v1/webhooks/deliveries`. |
rerender * | boolean | Renders the request again with today's template and variables; false resends the stored request as it was. |
body | string | null | An edited body and headers; left out to resend the stored request. |
headers | object | null | Edited headers, by name; left out to resend the stored ones. |
sendmock_webhook_delivery_wait
Wait until a matching delivery finishes; 408 on timeout.
| Parameter | Type | Description |
|---|---|---|
endpoint | string | null | The endpoint id or name. |
event | string | null | The event type, e.g. email.received. |
since | string | null | Only match items newer than this time (default: 30 s ago). |
status | string | null | succeeded or failed. |
timeout | string | null | How long to wait, e.g. 10s (default 10s, at most 60s). |
sendmock_webhook_metrics
Volume, success rate, latency and failures over a range.
| Parameter | Type | Description |
|---|---|---|
range * | 24h or 7d. | |
endpoint_id | string | null | Only this endpoint. |
sendmock_webhook_saved_list
Bookmarked requests, kept through pruning and reset.
sendmock_webhook_saved_create
Save a delivery's request under a name.
| Parameter | Type | Description |
|---|---|---|
delivery_id * | string | The delivery to save. |
name * | string | A name for the saved delivery. |
sendmock_webhook_saved_update
Rename a saved delivery.
| Parameter | Type | Description |
|---|---|---|
name * | string | The new name. |
saved_id * | string | The saved delivery's ID, from `GET /api/v1/webhooks/saved`. |
sendmock_webhook_saved_delete
Delete a saved delivery.
| Parameter | Type | Description |
|---|---|---|
saved_id * | string | The saved delivery's ID, from `GET /api/v1/webhooks/saved`. |
sendmock_webhook_saved_send
Send a saved request to its endpoint or another one.
| Parameter | Type | Description |
|---|---|---|
endpoint_id * | string | The endpoint to send it to. |
rerender * | boolean | Renders again with the endpoint's template and variables; false sends the saved request as it was. |
saved_id * | string | The saved delivery's ID, from `GET /api/v1/webhooks/saved`. |
sendmock_webhook_saved_save_as_template
Turn a saved request into a custom template.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the new custom template. |
saved_id * | string | The saved delivery's ID, from `GET /api/v1/webhooks/saved`. |
sendmock_webhook_rule_list
Which events go to which endpoint, checked from top to bottom.
sendmock_webhook_rule_create
Add a rule.
| Parameter | Type | Description |
|---|---|---|
endpoint_id * | string | The endpoint deliveries go to. |
events * | array | The events the rule listens to, e.g. `email.received`. |
filter * | Only events whose message passes the filter fire; null passes every one. | |
is_enabled * | boolean | Off rules are kept but never fire. |
name * | string | A name for the rule, shown in the list. |
sendmock_webhook_rule_get
One webhook rule with its filter.
| Parameter | Type | Description |
|---|---|---|
rule_id * | string | The rule's ID, from `GET /api/v1/webhooks/rules`. |
sendmock_webhook_rule_update
Change a rule; send only the changed keys.
| Parameter | Type | Description |
|---|---|---|
rule_id * | string | The rule's ID, from `GET /api/v1/webhooks/rules`. |
endpoint_id | string | null | |
events | array | null | |
filter | ||
is_enabled | boolean | null | |
name | string | null |
sendmock_webhook_rule_delete
Delete a rule.
| Parameter | Type | Description |
|---|---|---|
rule_id * | string | The rule's ID, from `GET /api/v1/webhooks/rules`. |
sendmock_webhook_rule_move
Move a rule up or down; answers the reordered list.
| Parameter | Type | Description |
|---|---|---|
direction * | `up` fires the rule one place earlier, `down` one place later. | |
rule_id * | string | The rule's ID, from `GET /api/v1/webhooks/rules`. |
sendmock_webhook_rule_preview
Which recent messages an unsaved rule would match.
| Parameter | Type | Description |
|---|---|---|
events * | array | The events of the unsaved rule. |
filter * | The filter of the unsaved rule; null passes every message. |
sendmock_webhook_rule_match
Which webhooks an event would trigger, before an action fires it.
| Parameter | Type | Description |
|---|---|---|
event_type * | string | The event the action fires, e.g. `email.bounced` or `sms.status`. |
data | object | null | Filter fields by name, for a message not stored yet or the values the event changes, e.g. `{ "to": ["support@app.test"], "header:x-tenant": ["acme"] }`; they win over the stored message's. |
include_requests | boolean | null | Also render the request each matching endpoint would send for the event, with secrets masked (WH-14.1). |
subject_id | string | null | The email, SMS, payment or push notification the event is about; its stored fields are what the rule filters read. |
webhook_endpoint_ids | array | null | With `include_requests`, render these endpoints' requests too, as chosen for the action instead of the rules (IDs from `GET /api/v1/webhooks/endpoints`). |
sendmock_webhook_template_list
Built-in and custom payload templates.
sendmock_webhook_signature_verify
Check a captured request's webhook signature: Standard Webhooks, Stripe or an HMAC header.
| Parameter | Type | Description |
|---|---|---|
scheme * | `standard_webhooks`, `stripe` or `hmac`. | |
secret * | string | The signing secret the app checks with; never logged. |
body | string | null | The request's raw body, exactly as sent, when no `request_id` is given. |
encoding | For `hmac`: how the digest is written, as hex digits or in Base 64 [default: hex]. | |
header | string | null | For `hmac`: the header holding the digest [default: X-Signature]. |
headers | object | The request's headers, when no `request_id` is given. |
prefix | string | null | For `hmac`: text before the digest, such as `sha256=` [default: none]. |
request_id | string | null | A captured request's ID, from an HTTP Catcher bin; or give `headers` and `body`. |
tolerance_seconds | integer | null | How far a signed timestamp may be from now, in seconds [default: 300]. |
sendmock_integration_snippet
Copy-ready settings for a stack, as Settings > Connection shows them.
| Parameter | Type | Description |
|---|---|---|
stack * | string | Your app's stack: a language (`laravel`, `node`, `python`, `go`, `java`, `ruby`, `dotnet`, `curl`) or a framework (`php`, `express`, `nestjs`, `django`, `flask`, `fastapi`, `spring`, `rails`, `aspnet`… |
channel | string | null | email, http, mailgun or twilio (default email). |
host | string | null | Where the app runs: local, docker-host or compose. |