# Pm Mailgun

> Mailgun connector knowledge and safe action guide.

- Skill: `polymetrics-ai/pm-mailgun` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx get-skill add polymetrics-ai/pm-mailgun`
- Raw SKILL.md: https://api.skillmd.com/api/skills/polymetrics-ai/pm-mailgun/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: polymetrics-ai (https://skillmd.com/u/polymetrics-ai)
- Updated: 2026-11-24
- Page: https://skillmd.com/skills/polymetrics-ai/pm-mailgun

---


# pm-mailgun

## Purpose

Reads Mailgun sending domains, email events, mailing lists, and analytics tags through the Mailgun v3 REST API.

## Icon

- id: mailgun
- asset: icons/mailgun.svg
- source: upstream_registry
- review_status: upstream_seeded
- review_url: https://documentation.mailgun.com/en/latest/api_reference.html

## Capabilities

- check=true catalog=true read=true write=false query=false
- Integration type: api

## Authentication

- Use pm credentials add with --from-env or --value-stdin for secret fields.

## Configuration

- base_url
- domain_name
- mode
- page_size
- private_key (secret) (required)

## ETL Streams

- domains:
  - primary key: id
  - cursor: created_at
  - fields: created_at(string), id(string), is_disabled(boolean), name(string), smtp_login(string), spam_action(string), state(string), type(string), wildcard(boolean)
- events:
  - primary key: id
  - cursor: timestamp
  - fields: event(string), id(string), log_level(string), message_id(string), reason(string), recipient(string), timestamp(number)
- mailing_lists:
  - primary key: address
  - cursor: created_at
  - fields: access_level(string), address(string), created_at(string), description(string), members_count(integer), name(string)
- tags:
  - primary key: tag
  - fields: description(string), first_seen(string), last_seen(string), tag(string)

## Sync Modes

- ETL sync modes: full_refresh_append, full_refresh_overwrite, full_refresh_overwrite_deduped

## Security

- read risk: external Mailgun API read of sending-domain, event, mailing-list, and tag data
- approval: none; read-only source connector
- Never pass secret values in chat, shell arguments, logs, docs, or JSON output.

## Commands

### Inspect as a manual

```bash
pm connectors inspect mailgun
```

### Inspect as structured JSON

```bash
pm connectors inspect mailgun --json
```

## Agent Rules

- Run pm connectors inspect mailgun before creating credentials or plans.
- Use --json only when the caller needs structured output; use the manual for human-readable guidance.
- Never ask the user to paste secret values into chat.

