postmark-webhooks
БесплатноБез исполняемых скриптовНе проверенUse when setting up Postmark outbound webhooks for tracking email delivery, bounces, opens, clicks, spam complaints, or subscription changes — includes…
от ActiveCampaign★ 47 звёзд на GitHubОб этом скилле
Postmark Webhooks
Overview
Postmark webhooks deliver real-time event data to your endpoint via HTTP POST. Use webhooks to track what happens after you send an email.
This skill covers outbound webhooks — the six event types below. Inbound email webhooks run on separate infrastructure with different retry behavior; see postmark-inbound for those.
| Event | Trigger | Common Use |
|---|---|---|
| Delivery | Email accepted by recipient server | Confirm delivery, update status |
| Bounce | Email rejected by recipient server | Clean lists, alert support |
| SpamComplaint | Recipient marked as spam | Remove from lists, investigate |
| Open | Recipient opened email (tracking pixel) | Engagement analytics |
| Click | Recipient clicked a tracked link | Engagement analytics, conversion tracking |
| SubscriptionChange | Recipient unsubscribed | Update preferences, comply with regulations |
Quick Start
- Create a webhook via API or Postmark dashboard (Server → Webhooks)
- Set your endpoint URL — must accept HTTP POST and return 200
- Select event triggers — choose which events to receive
- Pass verification — Postmark tests your endpoint for every enabled event type on create and edit; each must return HTTP 200 before the webhook is saved as verified
- Handle payloads — parse the JSON body for each event type
- Respond with 200 — acknowledge receipt immediately, then process
Webhook API
Endpoints
| Endpoint | Method | Description |
|---|---|---|
/webhooks |
GET |
List all webhooks for a message stream |
/webhooks/{webhookid} |
GET |
Get a specific webhook |
/webhooks |
POST |
Create a webhook |
/webhooks/{webhookid} |
PUT |
Update a webhook |
/webhooks/{webhookid} |
DELETE |
Delete a webhook |
/webhooks/{Id}/verify |
POST |
Run endpoint verification on demand |
/webhooks/{Id}/statistics |
GET |
Delivery statistics for one webhook (rolling 24 hours) |
Create a Webhook
const postmark = require('postmark');
const client = new postmark.ServerClient(process.env.POSTMARK_SERVER_TOKEN);
const webhook = await client.createWebhook({
Url: 'https://yourdomain.com/webhooks/postmark',
MessageStream: 'outbound',
Verify: true, // default — test every enabled trigger before saving
HttpAuth: {
Username: 'webhook-user',
Password: 'webhook-secret'
},
HttpHeaders: [
{ Name: 'X-Custom-Header', Value: 'my-value' }
],
Triggers: {
Open: { Enabled: true, PostFirstOpenOnly: false },
Click: { Enabled: true },
Delivery: { Enabled: true },
Bounce: { Enabled: true, IncludeContent: true },
SpamComplaint: { Enabled: true, IncludeContent: true },
SubscriptionChange: { Enabled: true }
}
});
console.log('Webhook created:', webhook.ID);
cURL
curl "https://api.postmarkapp.com/webhooks" \
-X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "X-Postmark-Server-Token: $POSTMARK_SERVER_TOKEN" \
-d '{
"Url": "https://yourdomain.com/webhooks/postmark",
"MessageStream": "outbound",
"Verify": true,
"Triggers": {
"Open": { "Enabled": true, "PostFirstOpenOnly": false },
"Click": { "Enabled": true },
"Delivery": { "Enabled": true },
"Bounce": { "Enabled": true, "IncludeContent": true },
"SpamComplaint": { "Enabled": true, "IncludeContent": true },
"SubscriptionChange": { "Enabled": true }
}
}'
Trigger Options
| Trigger | Options |
|---|---|
| Open | Enabled, PostFirstOpenOnly (true = only first open per recipient) |
| Click | Enabled |
| Delivery | Enabled |
| Bounce | Enabled, IncludeContent (include original email content) |
| SpamComplaint | Enabled, IncludeContent |
| SubscriptionChange | Enabled |
Endpoint Verification
When a webhook is created or edited, Postmark tests the endpoint for every enabled event type. Each test must return HTTP 200 before the webhook is saved as verified.
The Verify field
| Field | Type | Default | Behavior |
|---|---|---|---|
Verify |
boolean | true |
true — test every enabled trigger before saving. false — save the webhook without testing; it stays unverified and receives no events until it passes verification later. |
If verification fails on create or edit, the save is rejected with HTTP 422 and error code 1364. Nothing is saved on create; on edit the existing webhook is left unchanged.
Verify on demand
POST /webhooks/{Id}/verify runs the check on demand.
A 200 response means the check RAN — not that it passed. Read the Success field to determine the result: Success can be false inside an HTTP 200 response. Never treat the status code as "verified."
The response body reports per-trigger results — Id,
Установить postmark-webhooks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл postmark-webhooks?
Use when setting up Postmark outbound webhooks for tracking email delivery, bounces, opens, clicks, spam complaints, or subscription changes — includes webhook configuration, endpoint verification, per-webhook statistics, retry behavior, payload handling, and security.
Как установить скилл postmark-webhooks?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл postmark-webhooks запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic