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

API reference

Test helpers

GET/api/v1/wait/email

Wait until a matching email arrives; 408 on timeout.

CLI
sendmock email wait
MCP tool
sendmock_email_wait
In the app
Mail (new emails appear live)

Answer

200 EmailDetail

Errors: 408, as { error: { code, message } }

Try it in Demo mode

GET/api/v1/wait/sms

Wait until a matching SMS arrives; 408 on timeout.

CLI
sendmock sms wait
MCP tool
sendmock_sms_wait
In the app
SMS (new messages appear live)

Answer

200 SmsMessageDetail

Errors: 408, as { error: { code, message } }

Try it in Demo mode

GET/api/v1/wait/http

Wait until the catcher records a matching request; 408 on timeout.

CLI
sendmock http wait
MCP tool
sendmock_http_wait
In the app
HTTP Catcher (new requests appear live)

Answer

200 CapturedHttpRequest

Errors: 408, as { error: { code, message } }

Try it in Demo mode

GET/api/v1/wait/payment

Wait until a payment reaches a status; 408 on timeout.

CLI
sendmock payments wait
MCP tool
sendmock_payment_wait
In the app
Payments (new and changed payments appear live)

Answer

200 PaymentDetail

Errors: 408, as { error: { code, message } }

Try it in Demo mode

GET/api/v1/otp

The latest one-time code sent to a recipient.

CLI
sendmock otp --to <recipient>
MCP tool
sendmock_otp_get
In the app
Mail, SMS and Verify: the code beside each message

Answer

200 OtpLookup

Errors: 404, 408, as { error: { code, message } }

Try it in Demo mode