SendMock

v1.6.0
io.github.shibbirweb/sendmock Checked 12 hours ago Published 7 days ago

Test 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.

ParameterTypeDescription
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.

ParameterTypeDescription
app_url *stringWhere SendMock reaches your app, such as `http://localhost:8000`.
preset_name *stringThe preset's name, from `GET /api/v1/presets`.
numbers_csvstring | nullNumbers 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.
optionsobjectThe 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.

ParameterTypeDescription
cursorstring | nullContinue after this page's `next_cursor`.
directionstring | nullOutbound from your app or inbound to it.
fromstring | nullSender contains.
has_attachmentboolean | nullOnly with attachments.
is_unreadboolean | nullOnly unread.
limitinteger | nullHow many emails per page (default 50, at most 500).
projectstring | nullOnly this project's emails (its key); every project's when not set.
querystring | nullSearch text; supports from:, to: and tag: prefixes.
sourcestring | nullHow it arrived: smtp, sendmail, native_api, or an email provider's key.
tagstring | nullHas this tag.
tostring | nullA recipient contains.

sendmock_email_delete_all

Delete every email, or only those that match the filters.

ParameterTypeDescription
directionstring | nullOutbound from your app or inbound to it.
fromstring | nullSender contains.
has_attachmentboolean | nullOnly with attachments.
is_unreadboolean | nullOnly unread.
projectstring | nullOnly this project's emails (its key); every project's when not set.
querystring | nullSearch text; supports from:, to: and tag: prefixes.
sourcestring | nullHow it arrived: smtp, sendmail, native_api, or an email provider's key.
tagstring | nullHas this tag.
tostring | nullA recipient contains.

sendmock_email_latest

The newest email to a recipient.

ParameterTypeDescription
to *stringThe recipient address.
projectstring | nullOnly this project's emails (its key); every project's when not set.
subjectstring | nullSubject contains.

sendmock_email_get

One email with bodies, headers, attachments and extracted codes.

ParameterTypeDescription
email_id *string

sendmock_email_update

Mark read or unread, or change tags.

ParameterTypeDescription
email_id *string
is_readboolean | nullMarks the email as read (true) or unread (false).
tagsarray | nullReplaces the email's tags; an empty list removes them all.

sendmock_email_delete

Delete one email.

ParameterTypeDescription
email_id *string

sendmock_email_timeline

Delivery events: received, delivered, opened, bounced.

ParameterTypeDescription
email_id *string

sendmock_email_simulate

Simulate a delivery outcome such as a bounce or complaint.

ParameterTypeDescription
email_id *string
event *The delivery event to simulate; it is added to the timeline and fires its webhook.
bounce_typeFor `bounced` only: hard (the default) or soft.
user_variablesobject | nullUser 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_idsarray | nullSend 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_requestsarray | nullPayloads 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.

ParameterTypeDescription
email_id *string
sourceWho opened it; `api` when not given.
user_agentstring | nullThe browser or client that opened it, kept in the open history.
user_variablesobject | nullUser 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_idsarray | nullSend 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_requestsarray | nullPayloads 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.

ParameterTypeDescription
email_id *string

sendmock_email_click

Record a click on one of the email's links and fire email.clicked.

ParameterTypeDescription
email_id *string
url *stringThe link that was clicked; one of the email's links.
sourceWho clicked it; `api` when not given.
user_agentstring | nullThe browser or client that clicked, kept in the click history.
user_variablesobject | nullUser 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_idsarray | nullSend 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_requestsarray | nullPayloads 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.

ParameterTypeDescription
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.

ParameterTypeDescription
kind *string
email_idstring

sendmock_email_release

Send the email on through the allowlisted relay.

ParameterTypeDescription
email_id *string
toarray | nullWho 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.

ParameterTypeDescription
email_id *string
bodystring | nullThe reply text, above the quoted original; empty or left out sends no text of its own.
ccarray | nullCopies; replaces the default, the other original recipients with `reply_all` and none without.
fromstring | nullWho replies; defaults to the original recipient.
include_originalboolean | nullQuotes the original below an "On ... wrote:" line (default true).
reply_allboolean | nullAlso sends to the other original recipients, in Cc.
subjectstring | nullDefaults to `Re: <original subject>`.
toarray | nullWho the reply goes to; replaces the default, the original `Reply-To` (or `From`).
user_variablesobject | nullUser 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_idsarray | nullSend 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_requestsarray | nullPayloads 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.

ParameterTypeDescription
email_id *string
to *stringWhere the email is forwarded, e.g. your app's inbound address.
bodystring | nullA note above the forwarded message.
fromstring | nullWho forwards; defaults to the original recipient.
include_attachmentsboolean | nullForwards the original attachments too (default true).
include_originalboolean | nullAdds the original below a "Forwarded message" block (default true).
subjectstring | nullDefaults to `Fwd: <original subject>`.
user_variablesobject | nullUser 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_idsarray | nullSend 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_requestsarray | nullPayloads 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.

ParameterTypeDescription
html *string | nullThe HTML body.
id *stringThe provider's template id or name: SendGrid's `d-...`, Postmark's number or alias, Mailgun's template name.
subject *stringThe subject, used when the send gives none; can use the template data.
text *string | nullThe plain-text body; at least one of `text` and `html`.

sendmock_email_template_update

Change a local email template's subject or bodies.

ParameterTypeDescription
template_id *stringThe template's id, from `GET /api/v1/emails/templates`.
htmlstring | null
subjectstring
textstring | null

sendmock_email_template_delete

Remove a local email template; sends naming it keep their own bodies.

ParameterTypeDescription
template_id *stringThe template's id, from `GET /api/v1/emails/templates`.

sendmock_email_inbound

Create an incoming email from fields or raw MIME; fires email.inbound.

ParameterTypeDescription
fromstring | nullThe sender, as an address or `Name <address>`.
htmlstring | nullThe HTML body.
rawstring | nullA whole message (RFC 5322); when set, the other fields are ignored.
subjectstring | nullThe subject line.
textstring | nullThe plain-text body.
toarray | nullThe recipients, usually your app's inbound address.
user_variablesobject | nullUser 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_idsarray | nullSend 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_requestsarray | nullPayloads 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.

ParameterTypeDescription
email_id *string

sendmock_email_send

Native send: JSON with optional base64 attachments.

ParameterTypeDescription
from *stringThe sender, as an address or `Name <address>`.
subject *stringThe subject line.
to *arrayThe recipients.
attachmentsarray | nullFiles to attach.
bccarray | nullHidden copy recipients; stored with the email but not in its headers.
ccarray | nullCopy recipients.
headersobject | nullExtra headers, by name.
htmlstring | nullThe HTML body. Send `text`, `html` or both.
tagsarray | nullTags to file the email under in Mail.
textstring | nullThe 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.

ParameterTypeDescription
raw_message *string

sendmock_otp_get

The latest one-time code sent to a recipient.

ParameterTypeDescription
to *stringThe recipient.
channelstring | nullemail or sms (default: email).
projectstring | nullOnly this project's messages (its key); every project's when not set.
timeoutstring | nullHow 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.

ParameterTypeDescription
projectstring | nullOnly this project's emails (its key); every project's when not set.
sincestring | nullOnly emails received after this time (default: 30 s ago).
subjectstring | nullSubject contains.
timeoutstring | nullHow long to wait, e.g. 30s (default 30s).
tostring | nullA recipient contains.

sendmock_events_recent

The latest events, newest first: the polling twin of the live stream.

ParameterTypeDescription
limitinteger | nullAt most this many (default 50).
projectstring | nullOnly events about this project's emails, SMS and verifications (its key); every event when not set.
sincestring | nullOnly events newer than this time.
typestring | nullAn event type, e.g. http.captured.

sendmock_sms_list

SMS and WhatsApp messages, newest first, with filters.

ParameterTypeDescription
cursorstring | nullThe next_cursor of the previous page.
directionstring | nullOutbound from your app or inbound to it.
fromstring | nullSender number.
limitinteger | nullItems per page, 1 to 200 (default 50).
projectstring | nullOnly this project's messages (its key); every project's when not set.
querystring | nullNumber or text.
statusstring | nullDelivery status.
thread_idstring | nullOnly this conversation.
tostring | nullRecipient number.

sendmock_sms_delete_all

Delete every message, or one project's.

ParameterTypeDescription
projectstring | nullOnly this project's messages (its key); every project's when not set.

sendmock_sms_send

Native send, with optional media URLs or inline media.

ParameterTypeDescription
body *stringThe message text. Its length and characters decide the segments and the encoding (GSM-7 or UCS-2).
from *stringThe sender: an E.164 number or an alphanumeric sender ID.
to *stringThe recipient, an E.164 number; `whatsapp:+...` sends over WhatsApp.
mediaarray | nullFiles sent inline as MMS media, base64 encoded.
media_urlsarray | nullPublic links SendMock downloads, like Twilio's `MediaUrl`.
metadataobject | nullAny JSON you want stored with the message and echoed in its events.
status_callbackstring | nullYour app's URL that receives each status change (queued, sent, delivered, failed).

sendmock_sms_threads

Conversations, one per contact and your number.

ParameterTypeDescription
projectstring | nullOnly 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.

ParameterTypeDescription
is_read *booleanTrue marks every message in the conversation read; false marks its newest message unread.
thread_id *stringThe conversation's `thread_id`, from `GET /api/v1/sms/threads`.

sendmock_sms_thread_delete

Delete a conversation with its messages.

ParameterTypeDescription
thread_id *stringThe conversation's `thread_id`, from `GET /api/v1/sms/threads`.

sendmock_sms_get

One message with its status history and callbacks.

ParameterTypeDescription
sms_id *stringThe SMS's ID, from `GET /api/v1/sms`.

sendmock_sms_delete

Delete one message.

ParameterTypeDescription
sms_id *stringThe SMS's ID, from `GET /api/v1/sms`.

sendmock_sms_set_status

Set a delivery status by hand and fire its callback.

ParameterTypeDescription
sms_id *stringThe SMS's ID, from `GET /api/v1/sms`.
status *stringThe new status; fires the status callback and the matching event.
error_codestring | nullA Twilio error code for `failed` or `undelivered`, e.g. `30003` (unreachable).
user_variablesobject | nullUser 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_idsarray | nullSend 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_requestsarray | nullPayloads 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.

ParameterTypeDescription
sms_id *stringThe SMS's ID, from `GET /api/v1/sms`.
sourceWho read it; `api` when not given.
user_agentstring | nullThe browser or client that read it, kept in the open history.
user_variablesobject | nullUser 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_idsarray | nullSend 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_requestsarray | nullPayloads 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.

ParameterTypeDescription
sms_id *stringThe SMS's ID, from `GET /api/v1/sms`.

sendmock_sms_simulate_inbound

Simulate a message from a contact to one of your numbers.

ParameterTypeDescription
body *stringThe message text.
from *stringWho texts your app: the user's number.
to *stringYour app's number that receives it, usually a virtual number.
channelstring | null`sms` (default) or `whatsapp`.
mediaarray | nullFiles sent with the message, as MMS or WhatsApp media.
template_idstring | nullThe payload template for the inbound webhook, instead of the number's (e.g. `twilio.inbound_sms`).
user_variablesobject | nullUser 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_idsarray | nullSend 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_requestsarray | nullPayloads 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.

ParameterTypeDescription
fromstring | nullThe sender number.
projectstring | nullOnly this project's messages (its key); every project's when not set.
sincestring | nullOnly match items newer than this time (default: 30 s ago).
timeoutstring | nullHow long to wait, e.g. 10s (default 10s, at most 60s).
tostring | nullThe recipient number.

sendmock_sms_reply_webhook_resend

Send an inbound message's reply webhook again.

ParameterTypeDescription
sms_id *stringThe 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.

ParameterTypeDescription
contact_number *stringThe contact's number, E.164.
sender *stringYour 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.

ParameterTypeDescription
key *stringWhat 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 *stringA name for the project, shown in the UI.

sendmock_project_update

Rename a project; its key stays the same.

ParameterTypeDescription
name *string
project_key *stringThe project's key, from the list of projects.

sendmock_project_delete

Delete a project with its emails, SMS and verifications.

ParameterTypeDescription
project_key *stringThe project's key, from the list of projects.

sendmock_push_list

Push notifications, newest first, with filters.

ParameterTypeDescription
cursorstring | nullThe next_cursor of the previous page.
device_tokenstring | nullOnly notifications to this device token.
limitinteger | nullItems per page, 1 to 200 (default 50).
projectstring | nullOnly this project's notifications (its key); every project's when not set.
providerstring | nullfcm, expo or onesignal.
statusstring | nullsent or failed.

sendmock_push_get

One push notification with its request and answer.

ParameterTypeDescription
push_id *stringThe notification's id, from `GET /api/v1/push`.

sendmock_push_delete

Delete one push notification.

ParameterTypeDescription
push_id *stringThe notification's id, from `GET /api/v1/push`.

sendmock_push_update

Mark a push notification read or unread.

ParameterTypeDescription
is_read *booleanMarks the notification read (true) or unread (false).
push_id *stringThe notification's id, from `GET /api/v1/push`.

sendmock_push_delete_all

Delete every push notification, or one project's.

ParameterTypeDescription
device_tokenstring | nullOnly notifications to this device token.
projectstring | nullOnly this project's notifications (its key); every project's when not set.
providerstring | nullfcm, expo or onesignal.
statusstring | nullsent or failed.

sendmock_push_wait

Wait until a matching push notification arrives; 408 on timeout.

ParameterTypeDescription
device_tokenstring | nullThe device token.
projectstring | nullOnly this project's notifications (its key); every project's when not set.
sincestring | nullOnly notifications sent after this time (default: 30 s ago).
timeoutstring | nullHow long to wait, e.g. 10s (default 10s, at most 60s).

sendmock_ci_validate

Check a CI file and its scenarios without running anything.

ParameterTypeDescription
ci_file *stringThe 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.

ParameterTypeDescription
ci_file *stringThe 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.

ParameterTypeDescription
provider *The CI system to write a job for. `sendmock ci init` finds it from the repository.
app_urlstring | nullThe app's base URL in the pipeline [default: http://localhost:8000].
setup_urlstring | nullWhere 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.

ParameterTypeDescription
amount_minor *integerThe amount of each renewal in minor units.
customer_email *stringWho pays.
interval *How often it renews: `day`, `week`, `month` or `year`.
plan_name *stringThe plan's name, shown on each renewal's payment.
provider *stringThe gateway's key.
card_numberstring | nullThe test card that pays each renewal; `4242424242424242` when left out.
currencystring | nullISO 4217 code; Settings > Payments' default currency when left out.
trial_daysinteger | nullDays before the first charge; none charges at once.

sendmock_subscription_get

One subscription with its timeline and renewal payments.

ParameterTypeDescription
subscription_id *stringThe subscription's ID, from `GET /api/v1/payments/subscriptions`.

sendmock_subscription_delete

Delete one subscription; its past payments stay.

ParameterTypeDescription
subscription_id *stringThe 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.

ParameterTypeDescription
subscription_id *stringThe subscription's ID, from `GET /api/v1/payments/subscriptions`.

sendmock_subscription_cancel

Cancel the subscription now or at the end of its period.

ParameterTypeDescription
subscription_id *stringThe subscription's ID, from `GET /api/v1/payments/subscriptions`.
at_period_endboolean | nullEnd at the next advance instead of now.

sendmock_ai_agents

For each AI agent, the install command and its MCP configuration.

ParameterTypeDescription
targetOnly 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.

ParameterTypeDescription
friendly_name *stringA name for the subaccount, e.g. the customer it belongs to.
account_sidstring | null`AC` and 32 hex digits; null makes a new one.
auth_tokenstring | nullThe subaccount's auth token. Null, empty or the masked value keeps the stored token; a new subaccount without one gets a generated token.
debugger_urlstring | nullWhere 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.

ParameterTypeDescription
account_sid *stringThe subaccount SID, `AC...`, from `GET /api/v1/twilio/subaccounts`.
auth_tokenstring | nullThe subaccount's auth token. Null, empty or the masked value keeps the stored token; a new subaccount without one gets a generated token.
debugger_urlstring | nullWhere Twilio Debugger events for this subaccount are sent; null for none.
friendly_namestringA name for the subaccount, e.g. the customer it belongs to.
status

sendmock_twilio_subaccount_delete

Remove a Twilio subaccount; its messages stay.

ParameterTypeDescription
account_sid *stringThe subaccount SID, `AC...`, from `GET /api/v1/twilio/subaccounts`.

sendmock_email_mailgun_complaint_list

Addresses on each Mailgun domain's complaints table.

ParameterTypeDescription
domainstring | nullOnly 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.

ParameterTypeDescription
domain *stringThe sending domain whose complaints are cleared.

sendmock_verify_list

Verifications your app started, newest first.

ParameterTypeDescription
channelstring | null
cursorstring | nullThe next_cursor of the previous page.
limitinteger | null
projectstring | nullOnly this project's verifications (its key); every project's when not set.
statusstring | nullOne status, or several separated by commas.
tostring | nullPart of the recipient's number or address.

sendmock_verify_get

One verification with its code, attempts and timeline.

ParameterTypeDescription
verification_sid *stringThe verification SID, `VE...`, from `GET /api/v1/verify`.

sendmock_verify_delete

Delete one verification with its check attempts.

ParameterTypeDescription
verification_sid *stringThe verification SID, `VE...`, from `GET /api/v1/verify`.

sendmock_verify_delete_all

Delete every verification, or those the filters match.

ParameterTypeDescription
channelstring | null
projectstring | nullOnly this project's verifications (its key); every project's when not set.
statusstring | nullOne status, or several separated by commas.
tostring | nullPart of the recipient's number or address.

sendmock_verify_force

Force an outcome: approved, expired, canceled or max attempts.

ParameterTypeDescription
state *The state to force: `approved`, `canceled`, `expired` or `max_attempts`.
verification_sid *stringThe 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.

ParameterTypeDescription
code_length *integerDigits in each code, 4 to 10.
fixed_code *string | nullAlways send this code instead of a random one; null for random.
friendly_name *stringThe name shown in the code message, e.g. "Your Shop verification code is ...".
ttl_seconds *integerHow long a code stays valid, in seconds.

sendmock_verify_service_update

Change a Verify service.

ParameterTypeDescription
service_sid *stringThe service SID, `VA...`, from `GET /api/v1/verify/services`.
code_lengthintegerDigits in each code, 4 to 10.
fixed_codestring | nullAlways send this code instead of a random one; null for random.
friendly_namestringThe name shown in the code message, e.g. "Your Shop verification code is ...".
ttl_secondsintegerHow long a code stays valid, in seconds.

sendmock_verify_service_delete

Delete a Verify service.

ParameterTypeDescription
service_sid *stringThe 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.

ParameterTypeDescription
key *string2 to 32 lowercase letters, digits or `_`, starting with a letter; unique in its area.
name *stringThe display name, e.g. "SSL Wireless".
start_from *string | nullThe provider of the same area to copy, or `null` to start blank.

sendmock_sms_provider_get

One provider definition; secret credentials masked.

ParameterTypeDescription
provider_key *stringThe 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.

ParameterTypeDescription
provider_key *stringThe provider's key, e.g. `twilio`, from its providers list.
accentstring`#rrggbb`, used on its badge.
callback_template_keystring | nullThe webhook template its status callbacks are sent with; null sends none.
check_credentialsbooleanOff: any credentials are accepted. On: wrong ones get the `unauthorized` answer.
credentialsarrayThe credentials your app is configured with; a masked secret keeps the stored value.
error_responsesarrayThe answer for each kind of error.
field_mappingarrayWhere each part of a sent message is read from.
hoststring | nullThe provider's API host, used on the provider port to tell apart providers that share a path; null when not needed.
is_enabledbooleanOff providers answer nothing; their paths get SendMock's native 404.
keystringThe provider's key; fixed after creation, so the path's key wins.
message_id_templatestringThe provider's id for each message, a template.
namestringThe provider's name, shown on messages and in pickers.
operationsarrayThe requests it answers.
opt_out_auto_repliesbooleanSMS: answer STOP, START and HELP with Twilio's default replies, stored as outbound messages.
opt_out_keywordsboolean | nullSMS: 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_codesobjectSMS only: the provider's error code for each delivery outcome.
status_namesobjectThe provider's name for each SendMock status.
success_responseThe answer to a request that passes every check.
validation_rulesarrayThe checks run on each send, in order.

sendmock_sms_provider_delete

Remove a built-in (restorable) or delete a custom provider; its messages stay.

ParameterTypeDescription
provider_key *stringThe provider's key, e.g. `twilio`, from its providers list.

sendmock_sms_provider_restore

Bring a removed built-in back as it was.

ParameterTypeDescription
provider_key *stringThe provider's key, e.g. `twilio`, from its providers list.

sendmock_sms_provider_reset

Put a built-in provider back as shipped.

ParameterTypeDescription
provider_key *stringThe 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.

ParameterTypeDescription
provider *The provider settings to run, saved or not.
provider_key *stringThe provider's key, e.g. `twilio`, from its providers list.
sample_requestThe 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.

ParameterTypeDescription
urlstring | nullThe 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.

ParameterTypeDescription
key *string2 to 32 lowercase letters, digits or `_`, starting with a letter; unique in its area.
name *stringThe display name, e.g. "SSL Wireless".
start_from *string | nullThe provider of the same area to copy, or `null` to start blank.

sendmock_email_provider_get

One provider definition; secret credentials masked.

ParameterTypeDescription
provider_key *stringThe 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.

ParameterTypeDescription
provider_key *stringThe provider's key, e.g. `twilio`, from its providers list.
accentstring`#rrggbb`, used on its badge.
callback_template_keystring | nullThe webhook template its status callbacks are sent with; null sends none.
check_credentialsbooleanOff: any credentials are accepted. On: wrong ones get the `unauthorized` answer.
credentialsarrayThe credentials your app is configured with; a masked secret keeps the stored value.
error_responsesarrayThe answer for each kind of error.
field_mappingarrayWhere each part of a sent message is read from.
hoststring | nullThe provider's API host, used on the provider port to tell apart providers that share a path; null when not needed.
is_enabledbooleanOff providers answer nothing; their paths get SendMock's native 404.
keystringThe provider's key; fixed after creation, so the path's key wins.
message_id_templatestringThe provider's id for each message, a template.
namestringThe provider's name, shown on messages and in pickers.
operationsarrayThe requests it answers.
opt_out_auto_repliesbooleanSMS: answer STOP, START and HELP with Twilio's default replies, stored as outbound messages.
opt_out_keywordsboolean | nullSMS: 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_codesobjectSMS only: the provider's error code for each delivery outcome.
status_namesobjectThe provider's name for each SendMock status.
success_responseThe answer to a request that passes every check.
validation_rulesarrayThe checks run on each send, in order.

sendmock_email_provider_delete

Remove a built-in (restorable) or delete a custom provider; its messages stay.

ParameterTypeDescription
provider_key *stringThe provider's key, e.g. `twilio`, from its providers list.

sendmock_email_provider_restore

Bring a removed built-in back as it was.

ParameterTypeDescription
provider_key *stringThe provider's key, e.g. `twilio`, from its providers list.

sendmock_email_provider_reset

Put a built-in provider back as shipped.

ParameterTypeDescription
provider_key *stringThe 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.

ParameterTypeDescription
provider *The provider settings to run, saved or not.
provider_key *stringThe provider's key, e.g. `twilio`, from its providers list.
sample_requestThe 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.

ParameterTypeDescription
name *stringA name for the endpoint, shown in lists and deliveries.
url *stringWhere deliveries are sent; can use templates.
body_fieldsarrayThe rows of `fields` mode.
body_modeHow the body is built: `template`, `fields`, `raw` or `none`.
extra_fieldsobjectExtra body fields layered on top of the template's.
fields_encodingHow `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).
headersobjectExtra headers layered on top of the template's.
is_enabledbooleanOff endpoints receive no deliveries.
methodThe HTTP method of each delivery.
query_paramsarrayQuery parameters added to the URL.
raw_bodystringThe body template of `raw` mode.
raw_content_typestringThe content type of `raw` mode.
render_mode`strict` or `lenient` rendering of undefined variables.
retry_policyWhen and how often failed deliveries are retried.
template_idstringThe payload template, e.g. `native` (Standard Webhooks JSON) or `slack.incoming_webhook`.
template_mode`linked` follows template updates, `detached` keeps its own copy.
timeout_msintegerHow long to wait for your app's answer, in milliseconds (1000 to 60000).

sendmock_webhook_endpoint_get

One endpoint; its secret masked.

ParameterTypeDescription
endpoint_id *stringThe webhook endpoint's ID, from `GET /api/v1/webhooks/endpoints`.

sendmock_webhook_endpoint_update

Change an endpoint; send only the changed keys.

ParameterTypeDescription
endpoint_id *stringThe webhook endpoint's ID, from `GET /api/v1/webhooks/endpoints`.
body_fieldsarray | null
body_mode
extra_fieldsobject | null
fields_encoding
headersobject | null
is_enabledboolean | null
method
namestring | null
query_paramsarray | null
raw_bodystring | null
raw_content_typestring | null
render_mode
retry_policy
template_idstring | null
template_mode
timeout_msinteger | null
urlstring | null

sendmock_webhook_endpoint_delete

Delete an endpoint and its rules.

ParameterTypeDescription
endpoint_id *stringThe webhook endpoint's ID, from `GET /api/v1/webhooks/endpoints`.

sendmock_webhook_render

Render an unsaved endpoint's request against a message.

ParameterTypeDescription
email_idstring | nullRender against this email; without an email, SMS or request ID the sample event is used.
endpointobject | nullThe 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_idstring | nullA saved endpoint's own variables are used too; alone, its stored settings are rendered.
http_request_idstring | nullRender against this captured HTTP request.
sms_idstring | nullRender against this SMS.
variablesobject | nullSend-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.

ParameterTypeDescription
endpoint_id *stringThe webhook endpoint's ID, from `GET /api/v1/webhooks/endpoints`.
overlap_hours *integerHow 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.

ParameterTypeDescription
endpoint_id *stringThe webhook endpoint's ID, from `GET /api/v1/webhooks/endpoints`.
name *stringThe name of the new custom template.

sendmock_webhook_endpoint_test

Send a test.ping delivery.

ParameterTypeDescription
endpoint_id *stringThe 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.

ParameterTypeDescription
endpoint_id *stringThe webhook endpoint's ID, from `GET /api/v1/webhooks/endpoints`.
bodystring | nullAn edited body, sent as written (WH-05.6).
email_idstring | nullSend this email as the event.
http_request_idstring | nullA captured HTTP request, sent as an `http.captured` event (HC-01.7).
requestA hand-written request replacing the endpoint's, from the composer.
sms_idstring | nullSend this SMS as the event.
template_idstring | nullA template used for this send instead of the endpoint's request.
variablesobject | nullSend-time values by variable name (no `vars.`), for this send only (WH-05.5).

sendmock_webhook_delivery_list

Every webhook request sent, newest first.

ParameterTypeDescription
cursorstring | nullThe next_cursor of the previous page.
endpoint_idstring | nullOnly this endpoint.
event_typestring | nullOnly this event.
limitinteger | nullItems per page, 1 to 200 (default 50).
statusstring | nullsucceeded, failed or pending.
subject_idstring | nullOnly 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.

ParameterTypeDescription
endpoint_idstring | nullOnly this endpoint.
event_typestring | nullOnly this event.
statusstring | nullsucceeded, failed or pending.
subject_idstring | nullOnly 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.

ParameterTypeDescription
delivery_id *stringThe delivery's ID, from `GET /api/v1/webhooks/deliveries`.

sendmock_webhook_delivery_get

One delivery: request, response and every attempt.

ParameterTypeDescription
delivery_id *stringThe delivery's ID, from `GET /api/v1/webhooks/deliveries`.

sendmock_webhook_delivery_cancel

Stop the remaining retries.

ParameterTypeDescription
delivery_id *stringThe delivery's ID, from `GET /api/v1/webhooks/deliveries`.

sendmock_webhook_delivery_replay

Send the delivery again, as it was or edited.

ParameterTypeDescription
delivery_id *stringThe delivery's ID, from `GET /api/v1/webhooks/deliveries`.
rerender *booleanRenders the request again with today's template and variables; false resends the stored request as it was.
bodystring | nullAn edited body and headers; left out to resend the stored request.
headersobject | nullEdited headers, by name; left out to resend the stored ones.

sendmock_webhook_delivery_wait

Wait until a matching delivery finishes; 408 on timeout.

ParameterTypeDescription
endpointstring | nullThe endpoint id or name.
eventstring | nullThe event type, e.g. email.received.
sincestring | nullOnly match items newer than this time (default: 30 s ago).
statusstring | nullsucceeded or failed.
timeoutstring | nullHow long to wait, e.g. 10s (default 10s, at most 60s).

sendmock_webhook_metrics

Volume, success rate, latency and failures over a range.

ParameterTypeDescription
range *24h or 7d.
endpoint_idstring | nullOnly 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.

ParameterTypeDescription
delivery_id *stringThe delivery to save.
name *stringA name for the saved delivery.

sendmock_webhook_saved_update

Rename a saved delivery.

ParameterTypeDescription
name *stringThe new name.
saved_id *stringThe saved delivery's ID, from `GET /api/v1/webhooks/saved`.

sendmock_webhook_saved_delete

Delete a saved delivery.

ParameterTypeDescription
saved_id *stringThe saved delivery's ID, from `GET /api/v1/webhooks/saved`.

sendmock_webhook_saved_send

Send a saved request to its endpoint or another one.

ParameterTypeDescription
endpoint_id *stringThe endpoint to send it to.
rerender *booleanRenders again with the endpoint's template and variables; false sends the saved request as it was.
saved_id *stringThe saved delivery's ID, from `GET /api/v1/webhooks/saved`.

sendmock_webhook_saved_save_as_template

Turn a saved request into a custom template.

ParameterTypeDescription
name *stringThe name of the new custom template.
saved_id *stringThe 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.

ParameterTypeDescription
endpoint_id *stringThe endpoint deliveries go to.
events *arrayThe events the rule listens to, e.g. `email.received`.
filter *Only events whose message passes the filter fire; null passes every one.
is_enabled *booleanOff rules are kept but never fire.
name *stringA name for the rule, shown in the list.

sendmock_webhook_rule_get

One webhook rule with its filter.

ParameterTypeDescription
rule_id *stringThe rule's ID, from `GET /api/v1/webhooks/rules`.

sendmock_webhook_rule_update

Change a rule; send only the changed keys.

ParameterTypeDescription
rule_id *stringThe rule's ID, from `GET /api/v1/webhooks/rules`.
endpoint_idstring | null
eventsarray | null
filter
is_enabledboolean | null
namestring | null

sendmock_webhook_rule_delete

Delete a rule.

ParameterTypeDescription
rule_id *stringThe rule's ID, from `GET /api/v1/webhooks/rules`.

sendmock_webhook_rule_move

Move a rule up or down; answers the reordered list.

ParameterTypeDescription
direction *`up` fires the rule one place earlier, `down` one place later.
rule_id *stringThe rule's ID, from `GET /api/v1/webhooks/rules`.

sendmock_webhook_rule_preview

Which recent messages an unsaved rule would match.

ParameterTypeDescription
events *arrayThe 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.

ParameterTypeDescription
event_type *stringThe event the action fires, e.g. `email.bounced` or `sms.status`.
dataobject | nullFilter 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_requestsboolean | nullAlso render the request each matching endpoint would send for the event, with secrets masked (WH-14.1).
subject_idstring | nullThe email, SMS, payment or push notification the event is about; its stored fields are what the rule filters read.
webhook_endpoint_idsarray | nullWith `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.

ParameterTypeDescription
scheme *`standard_webhooks`, `stripe` or `hmac`.
secret *stringThe signing secret the app checks with; never logged.
bodystring | nullThe request's raw body, exactly as sent, when no `request_id` is given.
encodingFor `hmac`: how the digest is written, as hex digits or in Base 64 [default: hex].
headerstring | nullFor `hmac`: the header holding the digest [default: X-Signature].
headersobjectThe request's headers, when no `request_id` is given.
prefixstring | nullFor `hmac`: text before the digest, such as `sha256=` [default: none].
request_idstring | nullA captured request's ID, from an HTTP Catcher bin; or give `headers` and `body`.
tolerance_secondsinteger | nullHow 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.

ParameterTypeDescription
stack *stringYour 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`…
channelstring | nullemail, http, mailgun or twilio (default email).
hoststring | nullWhere the app runs: local, docker-host or compose.