If you're building PinMe Workers in TypeScript and need to send emails, this skill walks you through calling the platform's send_email API. It covers the environment variables that get auto-injected (API_KEY, BASE_URL), shows you how to structure the POST request with proper authentication headers, and includes a ready-to-use sendEmail helper function. The sender address is automatically set to your_project@pinme.cloud, which is convenient but might feel limiting if you want custom branding. Error handling gets decent coverage with a unified wrapper pattern for the platform's response format. Most useful when you're wiring up verification codes or transactional emails and want to avoid reinventing the fetch boilerplate.

skills.sh installs
504
GitHub stars
3.8K
last updated
Aug 21, 2026

Install

$ npx -y skills add glitternetwork/pinme --skill pinme-email --agent claude-code

Installs into .claude/skills of the current project.

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>"
}

Sponsors

Details

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

More from glitternetwork/pinme

All 5
1openclaudia avatartelegram-botopenclaudia/openclaudia-skillsSend messages, images, and marketing content to Telegram channels and groups via Bot API. Create formatted posts, polls, and media content for Telegram communit504skills.sh installs
2glitternetwork avatarpinme-llmglitternetwork/pinmeUse this skill when a PinMe project (Worker TypeScript) needs to call OpenRouter-backed LLM APIs, including models, chat/completions, streaming, or OpenRouter w503skills.sh installs
3hkuds avatarcli-anything-wiremockhkuds/cli-anythingPython CLI harness for WireMock HTTP mock server administration503skills.sh installs
42ykwang avatarhtml-visual2ykwang/agent-skillsGenerate an interactive single-file HTML visualization — mockup, wireframe, ERD, flowchart, chart, slides, architecture diagram, dashboard, timeline, mindmap, k500skills.sh installs
5bobmatnyc avatarzustandbobmatnyc/claude-mpm-skillsMinimal, unopinionated state management library for React with simple hook-based API, no providers, and minimal boilerplate for global state without Redux compl496skills.sh installs
6mjunaidca avatarpolymarket-analyzermjunaidca/polymarket-skillsUse this skill whenever the user wants to find trading opportunities, detect arbitrage, analyze a market, perform edge detection, find mispricing, do probabilit490skills.sh installs