-
Notifications
You must be signed in to change notification settings - Fork 33
Trigger Inbound Rules
Igor Balos edited this page Oct 29, 2018
·
1 revision
Inbound rules allow you to filter out email which is going to be processed. If it matches rules, it can be rejected.
For these API requests you will need to use a server API token. Once you obtain it, you will need to use server API client.
const serverToken = "xxxx-xxxxx-xxxx-xxxxx-xxxxxx"
let postmark = require("postmark")
let client = new postmark.ServerClient(serverToken);
client.createInboundRuleTrigger({Rule: "example.com"}).then(result => {
console.log(result.Rule);
console.log(result.ID);
});
client.getInboundRuleTriggers().then(result => {
console.log(result.TotalCount);
console.log(result.InboundRules[0].Rule);
console.log(result.InboundRules[0].ID);
});
client.deleteInboundRuleTrigger(123456).then(result => {
console.log(result.Message);
console.log(result.ErrorCode);
});
For additional information about the capabilities of the Postmark API, see Postmark Developers Documentation.
- Overview
- Migration from older version
- Getting started
- Email sending
- Bounces
- Templates
- Templates Push
- Server
- Servers
- Message Streams
- Webhooks
- Messages
- Domains
- Sender Signatures
- Stats
- Trigger Inbound Rules
- Suppressions
- Data Removal
- Embedding images in emails
- Error Handling
- Handling Web Hooks
- Mocking requests
- Troubleshooting
- Known issues and how to resolve them