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

CLI reference

Logs commands

sendmock logs http

Requests to the native and provider APIs, newest first.

sendmock logs http [flags]
FlagTypeDescription
--cursor <cursor>string
The next_cursor of the previous page.Example: 01JB7T9Q2R5W8X3Y6Z1A4B7C9D
--limit <limit>integer
Items per page, 1 to 200 (default 50).Example: 50
--api <api>string
Which API, e.g. twilio.Example: twilio
--status-class <status-class>string
2xx, 4xx or 5xx.One of: 2xx, 4xx, 5xxExample: 4xx
--path <path>string
Part of the path.Example: /Messages.json

Example

sendmock logs http --cursor 01JB7T9Q2R5W8X3Y6Z1A4B7C9D --limit 50

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

API
GET/api/v1/logs/http
MCP tool
sendmock_logs_http
In the app
Logs > API requests

sendmock logs http show

One API request with its request and response.

sendmock logs http show <requestId>
ArgumentTypeDescription
<requestId>requiredstring
The captured request's ID, from GET /api/v1/http/requests or GET /api/v1/logs/http.Example: 01JB7T9Q2R5W8X3Y6Z1A4B7C9D

Example

sendmock logs http show 01JB7T9Q2R5W8X3Y6Z1A4B7C9D

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

API
GET/api/v1/logs/http/{requestId}
MCP tool
sendmock_logs_http_get
In the app
Logs > API requests > open a request

sendmock logs smtp

SMTP sessions, newest first, including rejected ones.

sendmock logs smtp [flags]
FlagTypeDescription
--cursor <cursor>string
The next_cursor of the previous page.Example: 01JB7T9Q2R5W8X3Y6Z1A4B7C9D
--limit <limit>integer
Items per page, 1 to 200 (default 50).Example: 50
--result <result>string
delivered or failed.Example: delivered
--query <query>string
Client, EHLO name or user.Example: laravel.test

Example

sendmock logs smtp --cursor 01JB7T9Q2R5W8X3Y6Z1A4B7C9D --limit 50

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

API
GET/api/v1/logs/smtp
MCP tool
sendmock_logs_smtp
In the app
Logs > SMTP sessions

sendmock logs smtp show

One SMTP session with its transcript.

sendmock logs smtp show <sessionId>
ArgumentTypeDescription
<sessionId>requiredstring
The SMTP session's ID, from GET /api/v1/logs/smtp.Example: 01JB7T9Q2R5W8X3Y6Z1A4B7C9D

Example

sendmock logs smtp show 01JB7T9Q2R5W8X3Y6Z1A4B7C9D

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

API
GET/api/v1/logs/smtp/{sessionId}
MCP tool
sendmock_logs_smtp_get
In the app
Logs > SMTP sessions > open a session