@tpmjs/tools-postmark
Search outbound messages with optional filters.
Test @tpmjs/tools-postmark (searchOutboundMessages) 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 { searchOutboundMessages } from '@tpmjs/tools-postmark';import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { searchOutboundMessages } from '@tpmjs/tools-postmark';
const result = await generateText({
model: openai('gpt-4o'),
tools: { searchOutboundMessages },
prompt: 'Your prompt here...',
});
console.log(result.text);(count: number, offset: number, tag?: string, status?: string, todate?: string, subject?: string, fromdate?: string, fromemail?: string, metadata_?: string, recipient?: string, messagestream?: 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 (queued, sent, processed).
fromdatestringStart date (YYYY-MM-DD).
todatestringEnd date (YYYY-MM-DD).
subjectstringFilter by subject.
metadata_stringFilter by metadata (key_value format).
messagestreamstringMessage stream ID.
Schema extracted: 2/28/2026, 4:01:25 AM
ERROR: No README data found!
Downloads/month
178
GitHub Stars
14
Quality Score