Mailly文档

Add a webhook endpoint to an inbox address

POST
/inbox/webhook/endpoints

An address can have up to 10 endpoints; every active endpoint receives its own signed delivery. While an address has an active endpoint, its mail is no longer sent to the workspace default webhook. url must be public HTTPS and unique per address. A generated signing secret is returned only once.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Mailly API key(Authorization: Bearer )

Request Body

application/json
  1. body
addressId?string

Inbox address ID

url?string
active?boolean
bodyFormat?string

text / html / markdown

stripQuotes?boolean
signingSecret?string
[key: string]?unknown

Response Body

Created

application/json
  1. response
success*boolean
endpoint*
signingSecret?string
[key: string]?unknown
curl -X POST 'https://api.mailly.site/inbox/webhook/endpoints' \  -H 'Content-Type: application/json' \  -d '{  "property1": null,  "property2": null}'
{  "success": true,  "endpoint": {    "property1": null,    "property2": null  },  "signingSecret": "string",  "property1": null,  "property2": null}