@tpmjs/tools-postmark
Search inbound messages with optional filters.
Test @tpmjs/tools-postmark (searchInboundMessages) with AI-powered execution
0/2000 characters
Install this tool and use it with the AI SDK
npm install @tpmjs/tools-postmarkpnpm add @tpmjs/tools-postmarkyarn add @tpmjs/tools-postmarkbun add @tpmjs/tools-postmarkdeno add npm:@tpmjs/tools-postmarkimport { searchInboundMessages } from '@tpmjs/tools-postmark';import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { searchInboundMessages } from '@tpmjs/tools-postmark';
const result = await generateText({
model: openai('gpt-4o'),
tools: { searchInboundMessages },
prompt: 'Your prompt here...',
});
console.log(result.text);(count: number, offset: number, tag?: string, status?: string, todate?: string, subject?: string, fromdate?: string, fromemail?: string, recipient?: string, mailboxhash?: string) => Promise<unknown>Available configuration options
countnumberNumber of messages to return (max 500).
offsetnumberNumber of messages to skip.
recipientstringFilter by recipient email.
fromemailstringFilter by sender email.
tagstringFilter by tag.
statusstringFilter by status (blocked, processed, queued, failed, scheduled).
fromdatestringStart date (YYYY-MM-DD).
todatestringEnd date (YYYY-MM-DD).
subjectstringFilter by subject.
mailboxhashstringFilter by mailbox hash.
Schema extracted: 2/28/2026, 4:01:31 AM
ERROR: No README data found!
Downloads/month
178
GitHub Stars
14
Quality Score