Home/Tools/@tpmjs/tools-postmark

searchInboundMessages

@tpmjs/tools-postmark

Search inbound messages with optional filters.

Official
ops
v0.2.1
MIT

Interactive Playground

Test @tpmjs/tools-postmark (searchInboundMessages) with AI-powered execution

0/2000 characters

Installation & Usage

Install this tool and use it with the AI SDK

1. Install the package

npm install @tpmjs/tools-postmark
pnpm add @tpmjs/tools-postmark
yarn add @tpmjs/tools-postmark
bun add @tpmjs/tools-postmark
deno add npm:@tpmjs/tools-postmark

2. Import the tool

import { searchInboundMessages } from '@tpmjs/tools-postmark';

3. Use with AI SDK

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);

Signature

(count: number, offset: number, tag?: string, status?: string, todate?: string, subject?: string, fromdate?: string, fromemail?: string, recipient?: string, mailboxhash?: string) => Promise<unknown>

Tags

agent
email
filters
inbound
messages
ops
optional
postmark
search
smtp
tpmjs
transactional

Parameters

Available configuration options

Auto-extracted
count
Required
Type: number

Number of messages to return (max 500).

offset
Required
Type: number

Number of messages to skip.

recipient
Optional
Type: string

Filter by recipient email.

fromemail
Optional
Type: string

Filter by sender email.

tag
Optional
Type: string

Filter by tag.

status
Optional
Type: string

Filter by status (blocked, processed, queued, failed, scheduled).

fromdate
Optional
Type: string

Start date (YYYY-MM-DD).

todate
Optional
Type: string

End date (YYYY-MM-DD).

subject
Optional
Type: string

Filter by subject.

mailboxhash
Optional
Type: string

Filter by mailbox hash.

Schema extracted: 2/28/2026, 4:01:31 AM

README

ERROR: No README data found!

Statistics

Downloads/month

178

GitHub Stars

14

Quality Score

89%

Bundle Size

NPM Keywords

tpmjs
postmark
email
transactional
smtp
agent

Maintainers

thomasdavis(thomasalwyndavis@gmail.com)

Frameworks

vercel-ai