Integrations · Postmark
A Guild agent sends transactional emails, monitors delivery health, and manages inbound routing rules through Postmark. Guild stores the Postmark API key server-side so agent code never sees it. Credential policies let you restrict which operations each agent can call, and every request runs through Guild’s audit trail.
Book a demo
See how teams govern agents that use Postmark.
Talk to sales
Get access to Guild, then connect Postmark to your first agent.
What the Postmark integration exposes
The tools cover sending individual and batch emails, sending with templates, and testing template content. They also cover retrieving bounce counts, delivery stats, spam complaints, open rates, and click statistics broken down by browser, platform, and location. Additional tools create, update, list, and delete email templates, manage inbound rule triggers, and read or edit server configuration.How it works
1
Connect your Postmark credential
Go to Access & setup > Credentials, click Connect, select postmark, and paste your server API key into API Key. Guild sends it as the
X-Postmark-Server-Token header on every request.2
Import and wire the tools
Import
PostmarkTools from @guildai-services/guildai~postmark and spread it into your agent’s tools object. The package is added to your agent’s dependencies in package.json.3
Narrow tools with pick
Tools are named with the
postmark_ prefix. Use pick() to include only the tools your agent needs, such as postmark_send_email or postmark_get_bounce_counts.Why Postmark access needs governing
Postmark tools can send email at scale, delete templates, and change server configuration. Guild’s credential policies let you write ALLOW and DENY rules that the credential proxy enforces before any request leaves Guild. You can restrict an agent to read-only delivery stats by allowing onlypostmark_get_* operations, or block postmark_send_* tools in a workspace used for testing.
Credentials are stored and injected server-side; agents never receive the raw API key. You can scope a credential to one workspace, one member, or one agent using scoped credentials, so a monitoring agent and a sending agent never share the same access. Requests that no rule allows are denied by default once you remove the auto-created allow-all policy.
About the Postmark integration
Agents can send individual or batch emails using Postmark, including template-based sends. They can monitor delivery performance by retrieving bounce counts, spam complaints, open rates, and click statistics. Agents can also manage email templates and configure inbound message rules. The integration isguildai~postmark.
Authentication
- Type: API key
- Header: Guild sends the key as
X-Postmark-Server-Token: <key>
Setup
1
Connect Postmark
In Guild, go to Access & setup > Credentials, click Connect, select postmark, and paste the key into API Key.
Usage
Selecting specific tools
Tools are named with thepostmark_ prefix. Use pick() to include only what your agent needs.
Tools
Tools in the latest published version ofguildai~postmark:
All 43 tools
All 43 tools
Frequently asked questions
Can I send a batch of emails using a template?
Can I send a batch of emails using a template?
Yes. The
postmark_send_email_batch_with_templates tool sends a batch of emails using a Postmark template in one call.Does the integration support webhook events from Postmark?
Does the integration support webhook events from Postmark?
No. The catalog entry for
guildai~postmark lists no webhook events, so the integration does not receive inbound event callbacks from Postmark.Can I limit an agent to only reading stats, not sending email?
Can I limit an agent to only reading stats, not sending email?
Yes. Write a credential policy with a DENY rule on
postmark_send_* operations and an ALLOW rule on postmark_get_*. Guild’s credential proxy enforces this before any request reaches Postmark. See credential policies for syntax.Can I give one agent its own Postmark key separate from the rest of the workspace?
Can I give one agent its own Postmark key separate from the rest of the workspace?
Yes. From the installed agent’s page, connect a credential scoped Dedicated to this agent. Guild uses that credential ahead of any workspace or account credential when that agent runs. See credentials for the full resolution order.
Put a governed agent on Postmark this week
Book a demo
See how teams govern agents that use Postmark.
Talk to sales
Get access to Guild, then connect Postmark to your first agent.