Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

postmark-webhooks

БесплатноБез исполняемых скриптовНе проверен

Use when setting up Postmark outbound webhooks for tracking email delivery, bounces, opens, clicks, spam complaints, or subscription changes — includes…

ActiveCampaignот 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

  1. Create a webhook via API or Postmark dashboard (Server → Webhooks)
  2. Set your endpoint URL — must accept HTTP POST and return 200
  3. Select event triggers — choose which events to receive
  4. 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
  5. Handle payloads — parse the JSON body for each event type
  6. 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,

Полный SKILL.md на GitHub

Установить postmark-webhooks в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/bounce-management.mdreferences/handler-examples.mdreferences/payload-examples.mdreferences/security.mdreferences/webhook-setup.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить postmark-webhooks с