Postalytics Integration for AI Agents

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Postalytics MCP or direct API to launch campaigns, track mail delivery, create templates, and sync contacts through natural language.
Postalytics Logo
Gradient Top
Gradient Middle
Gradient Bottom
divider

Try Postalytics now

Enter a prompt below to test the integration in our Tool Router playground. You'll be redirected to sign in and try it live.

Supported Tools

Tools
Add AccountTool to create a new sub-account in the Postalytics system.
Add ContactTool to add a contact to a specified contact list with their information.
Create New CampaignTool to create a new direct mail campaign in Postalytics.
Create Suppression ListTool to create a new suppression list that can be used in campaigns to suppress contacts from being sent mail.
Create Suppression List ContactTool to create a new suppression contact on a specified suppression list.
Create TemplateTool to create a new template with full HTML for postcard or letter.
Create WebhookTool to create a new webhook to receive campaign event notifications from Postalytics.
Delete AccountTool to delete a Postalytics account and all associated campaigns, templates, and lists.
Delete CampaignTool to delete a campaign from the system.
Delete Suppression ListTool to delete a specified suppression list.
Delete Suppression List ContactTool to delete a specific contact from a suppression list.
Get All Contact ListsTool to retrieve all contact lists for an account.
Get All Contacts on a ListTool to retrieve all contacts from a specified contact list with pagination support.
Get All Drip CampaignsTool to retrieve all triggered drip campaign names and endpoint IDs in the account.
Get All FlowsTool to retrieve all flows for the requester's account.
Get All WebhooksTool to retrieve all webhooks configured for the authenticated account.
Get IntegrationsTool to retrieve all Connect integrations configured for the authenticated user's account.
Get My AccountTool to retrieve basic account information for the authenticated user.
Get Suppression ListTool to get the details of a suppression list based on the id supplied.
Get Suppression List ContactTool to retrieve a specific contact from a suppression list.
Get Suppression List ContactsTool to get all contacts on a specified suppression list.
Get Suppression ListsTool to retrieve all suppression lists for the authenticated user.
Update AccountTool to update an existing account in the Postalytics system.
Update Suppression List ContactTool to update a suppression contact on the specified suppression list.
Python
TypeScript

Install Composio

python
pip install composio claude-agent-sdk
Install the Composio SDK for Python or TypeScript

Initialize Client and Create Tool Router Session

python
from composio import Composio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions

composio = Composio(api_key='your-composio-api-key')
session = composio.create(user_id='your-user-id')
url = session.mcp.url
Import and initialize the Composio client, then create a Tool Router session for Postalytics

Connect to AI Agent

python
import asyncio

options = ClaudeAgentOptions(
    permission_mode='bypassPermissions',
    mcp_servers={
        'tool_router': {
            'type': 'http',
            'url': url,
            'headers': {
                'x-api-key': 'your-composio-api-key'
            }
        }
    },
    system_prompt='You are a helpful assistant with access to Postalytics tools.',
    max_turns=10
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query('Create a new direct mail campaign for "Summer Promo" targeting leads from Salesforce.')
        async for message in client.receive_response():
            if hasattr(message, 'content'):
                for block in message.content:
                    if hasattr(block, 'text'):
                        print(block.text)

asyncio.run(main())
Use the MCP server with your AI agent (Anthropic Claude or Mastra)

Why Use Composio?

AI Native Postalytics Integration

  • Supports both Postalytics MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for reading, writing, and querying your Postalytics data

Managed Auth

  • Built-in OAuth handling with automatic token refresh and rotation
  • Central place to manage, scope, and revoke Postalytics access
  • Per user and per environment credentials instead of hard-coded keys

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access Postalytics
  • Scoped, least privilege access to Postalytics resources
  • Full audit trail of agent actions to support review and compliance

Frequently Asked Questions

Do I need my own developer credentials to use Postalytics with Composio?

Yes, Postalytics requires you to configure your own API key credentials. Once set up, Composio handles secure credential storage and API request handling for you.

Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. Learn more.

Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. Learn more.

What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

Used by agents from

Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai

Never worry about agent reliability

We handle tool reliability, observability, and security so you never have to second-guess an agent action.