Skip to content

Sends transactional email from PinMe Workers via the send_email API with error handling guidance.

CCM score
67 of 100
skills.sh installs
521
GitHub stars
3.8K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the POST /api/v4/send_email endpoint, authenticated with the project's injected API_KEY through the X-API-Key header
  • Documents the request fields to, subject, and html, the 200 success shape, and 400, 401, and 500 error cases
  • Includes a sendEmail helper and a unified callPinmeAPI error handler for Worker TypeScript routes
  • Designed for PinMe projects that need verification codes or notification emails without configuring credentials manually

Install

$ npx -y skills add glitternetwork/pinme --skill pinme-email -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

PinMe Worker Email API Integration

Guides how to call PinMe platform's email sending API in a PinMe Worker (TypeScript).

Environment Variables

The following environment variables are automatically injected when the Worker is created — no manual configuration needed:

// backend/src/worker.ts
export interface Env {
  DB: D1Database;
  API_KEY: string;      // Project API Key — used for send_email authentication
  BASE_URL?: string;    // Optional override for PinMe API base URL, defaults to https://pinme.cloud
}

API_KEY is the sole credential for the Worker to call PinMe platform APIs. When BASE_URL is not set, it defaults to https://pinme.cloud.


Send Email API

Endpoint: POST {BASE_URL}/api/v4/send_email Authentication: X-API-Key header (using env.API_KEY) Sender: Automatically set to {project_name}@pinme.cloud

Request Format

{
  "to": "user@example.com",
  "subject": "Your verification code",
  "html": "<p>Your code is <strong>123456</strong></p>"
}

Details

Repository
github.com/glitternetwork/pinme
Categories
Email & Messaging, Backend & APIs
License
MIT
First seen
Jun 3, 2026

Questions

What does the pinme-email skill do?

The pinme-email skill guides an AI agent to add email sending to a PinMe Worker written in TypeScript, using the send_email API. It helps the agent generate correct Worker code that calls the endpoint with a recipient, subject and HTML body.

How do I install the pinme-email skill?

Run npx -y skills add glitternetwork/pinme --skill pinme-email -y in your project. After that, the pinme-email skill lets the agent write Worker code that sends email through the PinMe platform.

Does pinme-email need an API key or extra setup?

The pinme-email skill relies on the API_KEY environment variable, which PinMe injects automatically when the Worker is created, so no manual configuration is needed. The optional BASE_URL variable overrides the default PinMe API base address.

Which emails can pinme-email send, and who is the sender?

The pinme-email skill sends an email with a recipient address, a subject and an HTML body, such as a verification code. The sender is set automatically to the project name at pinme.cloud, so the agent does not choose it.

Where does pinme-email stand in its category?

The pinme-email skill sits in the Email & Messaging category. Its sibling skills there include to-questionnaire, lark-im, lark-mail, lark-event and lark-contact, and pinme-email covers sending through the PinMe Worker email API.

More from glitternetwork/pinme

All 5

Similar to Pinme Email

More Email & Messaging