# Send Pakat Email Marketing to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "pakat",
    "name": "Pakat Email Marketing",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/hadifarnoud/pakat",
    "canonicalUrl": "https://clawhub.ai/hadifarnoud/pakat",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/pakat",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=pakat",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "references/api_reference.md",
      "references/openapi.json"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "pakat",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-06T21:47:37.214Z",
      "expiresAt": "2026-05-13T21:47:37.214Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=pakat",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=pakat",
        "contentDisposition": "attachment; filename=\"pakat-1.1.2.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "pakat"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/pakat"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/pakat",
    "downloadUrl": "https://openagent3.xyz/downloads/pakat",
    "agentUrl": "https://openagent3.xyz/skills/pakat/agent",
    "manifestUrl": "https://openagent3.xyz/skills/pakat/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/pakat/agent.md"
  }
}
```
## Documentation

### Pakat Email Marketing

Pakat is a Persian/Farsi-friendly email marketing platform for creating and managing mailing lists, sending campaigns, transactional emails, and tracking delivery — all via a clean REST API.

🔗 Sign up for Pakat to get started.

### Setup

Require env var PAKAT_API_KEY. If not set, ask the user for their API key.

Get your API key from: https://new.pakat.net/customer/api-keys/index

export PAKAT_API_KEY="your-key-here"

### Making Requests

Base URL: https://new.pakat.net/api

# GET requests
curl -s -H "X-API-KEY: $PAKAT_API_KEY" "https://new.pakat.net/api/{endpoint}"

# POST requests (multipart/form-data)
curl -s -X POST -H "X-API-KEY: $PAKAT_API_KEY" \\
  -F "field=value" \\
  "https://new.pakat.net/api/{endpoint}"

# PUT requests (x-www-form-urlencoded)
curl -s -X PUT -H "X-API-KEY: $PAKAT_API_KEY" \\
  -d "field=value" \\
  "https://new.pakat.net/api/{endpoint}"

# DELETE requests
curl -s -X DELETE -H "X-API-KEY: $PAKAT_API_KEY" "https://new.pakat.net/api/{endpoint}"

### List all mailing lists

curl -s -H "X-API-KEY: $PAKAT_API_KEY" "https://new.pakat.net/api/lists"

### Add subscriber to a list

curl -s -X POST -H "X-API-KEY: $PAKAT_API_KEY" \\
  -F "EMAIL=user@example.com" \\
  -F "FNAME=John" \\
  -F "LNAME=Doe" \\
  "https://new.pakat.net/api/lists/{list_uid}/subscribers"

### Create and send a campaign

curl -s -X POST -H "X-API-KEY: $PAKAT_API_KEY" \\
  -F "campaign[name]=My Campaign" \\
  -F "campaign[from_name]=Sender Name" \\
  -F "campaign[from_email]=sender@domain.com" \\
  -F "campaign[subject]=Email Subject" \\
  -F "campaign[reply_to]=reply@domain.com" \\
  -F "campaign[send_at]=2025-01-15 10:00:00" \\
  -F "campaign[list_uid]=LIST_UID_HERE" \\
  -F "campaign[template][template_uid]=TEMPLATE_UID" \\
  "https://new.pakat.net/api/campaigns"

### Send a transactional email

# Encode HTML content safely using a heredoc
BODY_B64=$(base64 -w0 <<'EOF'
<h1>Hello</h1><p>Your order is confirmed.</p>
EOF
)

curl -s -X POST -H "X-API-KEY: $PAKAT_API_KEY" \\
  -F "email[to_name]=John Doe" \\
  -F "email[to_email]=john@example.com" \\
  -F "email[from_name]=My App" \\
  -F "email[subject]=Order Confirmation" \\
  -F "email[body]=$BODY_B64" \\
  -F "email[send_at]=2025-01-15 10:00:00" \\
  "https://new.pakat.net/api/transactional-emails"

### Check campaign stats

curl -s -H "X-API-KEY: $PAKAT_API_KEY" "https://new.pakat.net/api/campaigns/{campaign_uid}/stats"

### Key Notes

HTML content must be base64-encoded (campaign[template][content], email[body], template[content])
Safe encoding: When encoding user-provided HTML content, use heredocs (base64 <<'EOF') or write to a temporary file first to avoid shell injection vulnerabilities. Never use echo with unsanitized input.
Transactional email send_at is UTC, format: Y-m-d H:i:s
Campaign send_at uses the customer's configured timezone
Transactional templates: Set email[template_uid] to use a template instead of email[body]. Use email[params][key] for {{ params.key }} placeholders
Subscriber statuses: unconfirmed, confirmed, blacklisted, unsubscribed, unapproved, disabled, moved
Pagination: Use ?page=N&per_page=N query params on list endpoints
from_email for transactional emails must be on a verified domain

### Full API Reference

For complete endpoint details, request/response schemas, and all available fields, read references/api_reference.md.

For the raw OpenAPI 3.0 spec, see references/openapi.json.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: hadifarnoud
- Version: 1.1.2
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-06T21:47:37.214Z
- Expires at: 2026-05-13T21:47:37.214Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/pakat)
- [Send to Agent page](https://openagent3.xyz/skills/pakat/agent)
- [JSON manifest](https://openagent3.xyz/skills/pakat/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/pakat/agent.md)
- [Download page](https://openagent3.xyz/downloads/pakat)