Mailly文档

Send a test event to the default inbound webhook

POST
/inbox/webhook/test

Immediately POSTs one signed event with type webhook.test (Mailly-Event-Type: webhook.test, body.test = true) and returns the HTTP result. The payload has the same shape as email.received in the endpoint's body format, but the sample email is not stored, so content_url cannot be fetched. Return any 2xx to pass. Works for disabled endpoints too; nothing is queued or retried.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Mailly API key(Authorization: Bearer )

Response Body

Test sent (check test.ok for the endpoint result)

application/json
  1. response
success*boolean
test*
[key: string]?unknown
curl -X POST 'https://api.mailly.site/inbox/webhook/test'
{  "success": true,  "test": {    "property1": null,    "property2": null  },  "property1": null,  "property2": null}