Email Rules

Create an allow/block rule

Precedence allow > block. Required scope: inbox:write. (inbox:* scope cannot be assigned from the UI: it requires a full-access * key).

post/email-rules

Request

  • Base URL: https://sending.dev/api/v1
  • URL: https://sending.dev/api/v1/email-rules
  • Auth: HTTP bearer

Request body

action'allow' | 'block' required
matchType'email' | 'domain' required
valuestring required
notestring

Response

Rule created.

Example response

{
  "rule": {
    "createdAt": "2026-06-30T12:00:00.000Z"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.